Syntax Highlighting in script
| From: | Chris Cameron | Date: | Sun, 03 Dec 2000 04:42:16 +0000 |
| Subject: | Syntax Highlighting in script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28406@lists.php.net to get a copy of this message | ||
I'm trying to highlight php syntax in a (different) PHP script. And I must
be doing something horribly wrong, cause it won't work at all.
I'm using the CGI version of PHP, and what I'm doing is;
passthru("/usr/bin/local/php -s /path");
doesn't work. Tried it with a -q too, nope. Tried using a Perl script to
execute it for the PHP, nu-uh.
I also tried system() rather than passthru. The output I'm getting is a
lot of "X-Powered-By: PHP/4.0.3pl1 Content-type: text/html" and then
eventually a failure to fork() message. When it's with a script that
connects to an SQL server, it complains of a loss of connection.
I'm outta ideas, and I hope there's an easy answer.
Thanks,
Chris
--
"Some people are born mediocre, some people achieve mediocrity, and some people have mediocrity
thrust upon them."
- Joseph Heller, "Catch-22"