View Single Post

  #4 (permalink)  
Old 05-08-2008
Peter H. Coffin
 
Posts: n/a
Default Re: Tool to parse and validate PHP script?

On Thu, 8 May 2008 06:14:40 -0700 (PDT), ELINTPimp wrote:
>> Gilles Ganault wrote:
>> > Is there a tool on Linux/FreeBSD that can parse a PHP script to make
>> > sure there's no compile-time issues?

>>
>> > I just noticed that I copy/pasted some code that had lines longer that
>> > can fit in the SSH terminal window, and that caused a run-time error
>> > as reported in the /var/log/httpd-error.log but not in the browser:

>>
>> > [error] PHP Notice: Undefined index: etablissemen\nt in
>> > /usr/local/www/apache22/data/prospect.php on line 49, referer:
>> >http://server/myscript.php

>>

>
> Any chance to transfer your file by ftp or sftp?


Or use a better configuration on the editor....

--
This was, apparently, beyond her ken. So far beyond her ken that she was
well into barbie territory.
-- J. D. Baldwin
Reply With Quote