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