[PHP] Re: Reading a file from another server

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> 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.doma

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

2003-06-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > 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

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

2003-06-09 Thread Madhusudhana Rao Sunkara
you could try using file() or readfile(). while file reads the content of the file in to an array, readfile reads a file and writes it to the output buffer. - Madhu Charles Kline wrote: Hi all, I am reading the content of a text file into a variable to be used in a javascript. I am reworking s

[PHP] Re: Reading A file

2002-03-06 Thread Julio Nobrega Trabalhando
If it's a file ending in .txt, you don't need PHP at all to make visual on the web, most browsers will just display it on the screen. Just link to it. But, if you want to echo it inside html, do: From here, you might go with readfile(); or file(), that will display the pointer's content

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

2001-12-19 Thread Lee Philip Reilly
Okay, I see the problem. No reply necessary. Cheers, Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]