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"); >

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

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