Newbie help please. Something in a config file I need to tweak but can't find it?
Config, input script and browser output given below.
1) Have purchased system of php files all start with <?
in first line. But Apache reports error as follows:
e:/apache/apache/cgi-bin/hello.php is not executable; ensure interpreted scripts have "#!" first line
couldn't spawn child process: e:/apache/apache/cgi-bin/hello.php
2) When I change first line to #! php
I get output as shown below, kind of half and half.
php is there but output includes bogus first line
Many thanks in advance.
Going to post this at some forums etc never sure I can
find sites again, please copy answer to URL
php Code:
Original
- php Code |
|
|
|
*** Config
Apache 1.3
Windows 98
php 2.02
*** Input script:
#! php
<html>
<body>
Hello world from HTML<p>
<?php echo "Hello World from php<p>";
?> </body>
</html>
*** Browser output:
#! php Hello world from HTML
Hello World from php