PHP shell script rant

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mchaggis
Forum Contributor
Posts: 150
Joined: Mon Mar 24, 2003 10:31 am
Location: UK

PHP shell script rant

Post by mchaggis »

I have been using php for shell script for some years now, as it gives the advantage that I don't have 2 re-write my class and function libraries for the backend side of apps I have written...

In the old days, I used to just compile mod_php and then also the cgi to get the php stand alone binary (moving out of the cgi-bin). It now looks like PHP is trying to encourage this by shipping the standalone binary.

My gripe with this is, that you would have thought they would implemented a switch that means u can stop using the php tags, or make em optional though shell scripts.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

in some way they did

Code: Select all

php -r "print_r($GLOBALS);"
but in script files you can leave php-blocks to passthru output. That wasn't changed so you need the tags.
Post Reply