Entry
if i build a site on IIS and then host that site on Apache will it give any problem
if i build a site on IIS and then host that site on Apache will it give any problem
..
if i build a site on IIS and then host that site on Apache will it give any problem
..
Apr 22nd, 2001 18:35
Onno Benschop, Olivier ROBIN, joe joe,
You can solve this in two ways:
1) Run it through lynx.
2) Run it through php as a cgi.
For option 1, you are going to actually invoke lynx (a brouwser) to
connect to your apache server, run the url that has your script, it
would look like this (the output from the browser would be stored in
the file called outfile):
lynx -source http://localhost/someURL/myPhpThing.php > outfile
For option 2, you need to compile php as a cgi, you can then invoke the
script like this:
php myPhpThing.php
In addition, you can surpress any HTTP headers:
php -q myPhpThing.php
You can also insert the following into the very first line of your
script to run the script straight from the command line:
#!/usr/local/bin/php -q
Execution then becomes:
./myPhpThing.php