Re: Writing to a text file from PHP
| From: | Bill \(AIM: 'Prof Quail'\) | Date: | Thu, 24 Aug 2000 01:44:13 +0000 |
| Subject: | Re: Writing to a text file from PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13279@lists.php.net to get a copy of this message | ||
Thanks for the help. I tried looking for the things you mentioned, yet
I'm still getting a parse error. The error is coming from the bottom of
my code, the two parts which create a text file to write to. I tested
them individually and found that both sections which write to a file are
faulty, if that helps any. Any more tips? Thanks again, -Jack
David Robley wrote:
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net