[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