Re: Syntax Highlighting in script

From: Date: Sun, 03 Dec 2000 06:14:25 +0000
Subject: Re: Syntax Highlighting in script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28470@lists.php.net to get a copy of this message
Check out this http://www.php.net/manual/function.highlight-file.php Chris Lee Mediawaveonline.com In article <Pine.BSO.4.21.0012022134180.30778-100000@saddlebags.upnix.com>, chris@upnix.com wrote: > 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" > >

« previous php.general (#28470) next »