Posted by J.O. Aho on 10/14/68 11:35
Xander wrote:
> As I want to train myself in PHP (I'm fairly easy with SQL, but my
> friends are not), I tried to set up a Apache-PHP-mySQL combination.
> The trouble comes with Apache. So my question is: is there a way to
> use php without apache?
You can use php as a normal scripting language, you will need to make
exceptions for html specific things, like header() won't work.
php yourscript.php
or if you want to make it to work like it would be a binary
add the following line as the first line (you need to give a path that right
for your system):
#!/usr/bin/php
and then:
chmod 755 yourscript.php
and now you can do:
../yourscript.php
//Aho
[Back to original message]
|