Re: [PHP] Reading a file from another server

2003-07-26 Thread Curt Zirzow
* Thus wrote Thomas ([EMAIL PROTECTED]): > I know the url is good, cause I can go on to this domain and look at all my > files. > > I guess I should explain a little further... > > This server is a game server for Counter-Strike. I'm trying to read a file > on there called "mapcycle.txt". > Thi

Re: [PHP] Reading a file from another server

2003-07-26 Thread CDitty
Have you tried downloading the file to your server and then read it from there? I do this at least 15 times a day with several different sites and I rarely have any problems. CDitty At 11:28 AM 7/26/2003, Thomas wrote: I know the url is good, cause I can go on to this domain and look at all my

Re: [PHP] Reading a file from another server

2003-07-26 Thread Thomas
I know the url is good, cause I can go on to this domain and look at all my files. I guess I should explain a little further... This server is a game server for Counter-Strike. I'm trying to read a file on there called "mapcycle.txt". This server is a secure server, so I would need to use a use

Re: [PHP] Reading a file from another server

2003-07-25 Thread Chris Shiflett
--- Thomas <[EMAIL PROTECTED]> wrote: > readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); > > It doesn't have any errors and comes up blank. > > If I put: > > $result = > readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); > print ($result); > > it ends up showing a '0' by iteself. T

Re: [PHP] Reading a file from another server

2003-07-25 Thread Thomas
if I use: readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); It doesn't have any errors and comes up blank. If I put: $result = readfile("ftp://username:[EMAIL PROTECTED]/test.txt"); print ($result); it ends up showing a '0' by iteself. that's it. and I knwo the txt file is full of inf

Re: [PHP] Reading a file from another server

2003-07-25 Thread Chris Shiflett
--- Thomas <[EMAIL PROTECTED]> wrote: > I'm having problems creating code to read a file from another > server. > > 1. Is this even possible? with a secure server aswell? Yes. > this is my code: > $filename = "http://www.domain.com/test.txt";; > $handle = fopen ($filename, "r"); >

[PHP] Reading a file from another server

2003-07-25 Thread Thomas
Hi Everyone. I'm having problems creating code to read a file from another server. 1. Is this even possible? with a secure server aswell? 2. I have tried using fopen()but this always gives me an error: Warning: stat failed for http://www.domain.com/test.txt (errno=2 - No such file or

[PHP] reading a file into variable for using in a javascript

2003-06-08 Thread Charles Kline
Hi all, I am reading the content of a text file into a variable to be used in a javascript. I am reworking some code that was originally done using ColdFusion and the jsStringFormat(var) function. What is the PHP equivalent string function? Is there one? I have searched the docs, but can't fig

RE: [PHP] Reading A file and placing data into db

2002-03-06 Thread Sven Jacobs
-pre01:index index was never started -Original Message- From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]] Sent: mercredi 6 mars 2002 15:13 To: Sven Jacobs; [EMAIL PROTECTED] Subject: Re: [PHP] Reading A file > Hey > > I have a TEXT file that I want to make visual vi

RE: [PHP] Reading A file

2002-03-06 Thread Sven Jacobs
-pre01:index index was never started -Original Message- From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]] Sent: mercredi 6 mars 2002 15:13 To: Sven Jacobs; [EMAIL PROTECTED] Subject: Re: [PHP] Reading A file > Hey > > I have a TEXT file that I want to make visual vi

Re: [PHP] Reading A file

2002-03-06 Thread Ing. Fernando Proll Segura
> Hey > > I have a TEXT file that I want to make visual via the web using php > > > Maybe this isn't the best way but to do this I use the following code: "; } $lines=file("yourfile.txt"); array_walk($lines,'do_print'); ?> As you can see I use the file() function to get each line of text in

RE: [PHP] Reading A file

2002-03-06 Thread Jon Haworth
> I have a TEXT file that I want to make visual > via the web using php HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reading A file

2002-03-06 Thread Sven Jacobs
Hey I have a TEXT file that I want to make visual via the web using php

[PHP] reading a file into a string problem : $string = join ('', file (/location/$dynamic.iq))

2001-12-19 Thread Lee Philip Reilly
Hi, I wonder if someone can help me solve this niggling problem: I have a hyperlink [javascript:openwindow('http:myserver/files.php?expid=67.iq')], which passes the argument 'expid' to the PHP script, where 'expid' is the name of a file. I want to take the file data and put it into a string. Wh

Re: [PHP] Reading a file and changing tag values

2001-04-13 Thread Plutarck
All you need is a regular expression, provided by ereg function or preg functions. You'd have the regex look for Then just adjust the result as you want it to appear. You'll need to either search around for code that already does this, or be willing to learn regular expressions (which you sho

[PHP] Reading a file and changing tag values

2001-04-13 Thread Brett
I have been able to find out how to read a file and replace certain matches, but I want to be able to take a web page stored in a string and change the tags and add www.mysite.com?page= before the actual link value so the new url would read www.mysite.com?page=original_url. Can I do this and i