bigperm
September 20th, 2001, 02:33
Don't you just love all these acronyms?
Anywho... so I have this NT space that has PHP...
I got the path to php, so do I put that at the top like perl scripts? Or what? Does it have to go in my cgi-bin?
Any thoughts?
niv
September 20th, 2001, 06:57
Not necessary. All you need is an escape character in your pages and web server software to handle the parsing of the blocks of PHP code.
Just put your code between these: <? and ?>
jm4n
September 20th, 2001, 10:16
I actually don't think you need the interpretor line (even in Perl scripts) on NT. Windows uses file association -- eg, .pl files are associated with your Perl interpretor. The bang line is just ignored, as that's a Unix standard.
So yes, assuming .php files are associated with your PHP interpretor, just place your PHP code within <? ?> tags and it should be parsed.
I think the exception that proves the rule is if you're using Apache on Windows, Apache handles these things internally (eg, it parses the bang line, and handles PHP scripts). That's really more an Apache thing, attempting to carry some Unix standards over... but Apache on Windows isn't recommended for production use anyway...
bigperm
September 21st, 2001, 04:09
Thanks guys.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.