Forum Moderators: coopster

Message Too Old, No Replies

PHP shebang?

         

lZakl

11:13 pm on Jan 20, 2005 (gmt 0)

10+ Year Member



I just started work for a new client, and their web host requires a shebang line on all of their CGI scripts, inluding PHP pages.. The shebang is:

#!/usr/local/pkg/php4/bin/php

My qeustion..? I have over 140 templates already built. Is there an easy way to get that damned line into every page without having to open every file an paste it in. Is there maybe a way to have the htaccess file give the shebang for all php pages?

Be honest... am I stuck with --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste --- copy -- paste ---?

-- Zak

dreamcatcher

11:18 pm on Jan 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Zak,

Most text editors enable you to open multiple documents at once. Would only take a few seconds to add a line of code to each.

bcolflesh

11:23 pm on Jan 20, 2005 (gmt 0)

lZakl

12:17 am on Jan 21, 2005 (gmt 0)

10+ Year Member



bcolflesh,
worked like a charm... One liner saved me all that trouble... thank you!

dreamcatcher,
I am not lazy by ... well most means ;0) ... but one line solves it all and I don't have to open all those file.. I am a happpy camper! Thanks anyway..

I really do appreciate the replys you two.. thanks!

-- Zak

dreamcatcher

12:22 am on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sure, I know what you mean. Why do something the hard way if there is a simple fix.

Glad you got it sorted out. :)