Re: Writing to a text file from PHP

From: Date: Thu, 24 Aug 2000 01:25:55 +0000
Subject: Re: Writing to a text file from PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13276@lists.php.net to get a copy of this message
On 23 Aug, Jack Pappas (AIM: 'Prof Quail') wrote: > Hey- > I'm fairly new to PHP, I'm an ASP programmer by nature, but I figured > that it would be useful to know PHP as well. With that said, here's my > question. Can anyone help me with writing to a text file from PHP? I > rewrote a page I had as ASP (worked fine) to PHP (got some errors). The > error I've been getting is only labeled (parse error). Can anyone give > me pointers on how to do this, (or better) debug it another way besides > using a web browser? Thanks, -Jack > > P.S. I will include my code below if that will help anyone answer my > question. > Perhaps if you could say on which line the error[s] are? It's not exactly practical to run your code.... One tip - if there is a parse error on the last line of the script, you probably have an unclosed bracket pair. A couple of other possibilities for parse errors are failing to match quotes, failing to escape " in in a double quoted string and failing to terminate lines with ; -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#13276) next »