<[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
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
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
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
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]
5 matches
Mail list logo