[thelist] Possible PHP workaround?

McCoy, Alan amccoy at goodmanct.com
Fri Nov 16 10:05:47 CST 2001


A friend actually figured out the solution...a little Perl magic here
and there in the form of a script that parses all files with the
specified filename mask (in this case, "*.php") and inserts the line at
the top.

Worked like a charm. Thanks for the suggestions. I'll try that PHP
script anyway, Jon. :-)

Alan

> -----Original Message-----
> From: McCoy, Alan 
> Sent: Wednesday, November 14, 2001 12:38 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] Possible PHP workaround?
> 
> 
> One of our clients is hosted at Interland, where they run PHP as a
> module on their server. So, in order for me to use PHP, all my scripts
> have to make a call to the module using:
> 
> 	#!/usr/local/bin/php
> 
> While I don't really have a problem with this, I need to add this line
> to the 50 or so php scripts that will be on the site. I 
> suppose I could
> do a find/replace, but it has to go at the top of the file. Is there a
> way to specify this in a find/replace string?
> 
> If not, is there a known workaround for the call to the module?
> 
> Alan
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 
> 




More information about the thelist mailing list