You are here: Re: php without apache « PHP SQL « IT news, forums, messages
Re: php without apache

Posted by J.O. Aho on 10/10/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация