Re: Displaying PHP-File
| From: | Brian Clark | Date: | Thu, 10 Aug 2000 09:12:23 +0000 |
| Subject: | Re: Displaying PHP-File | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11097@lists.php.net to get a copy of this message | ||
Martin Thoma wrote:
What version of PHP are you running? Are you pages showing the actual code in your browser or is it just a blank page? When looking at the source-code AFTER printing it out, it shows exactly the file with the "include" like its on my harddisc without changing the php-section. It shows: ...myHTMLCode <?PHP include ?> ...moreHTMLCode<?PHP probably should be <?php <?PHP works fine for me, but who knows on Win32. Other than that.. Did you restart Apache after you installed PHP? If it's showing <?php include('blah'); ?> when you view source, then Apache doesn't know anything about your PHP installation. Check your httpd.conf and make sure you have lines like this in there: DirectoryIndex index.html index.php3 index.php index.shtml index.htm ScriptAlias /php/ "c:/php/" <Directory "c:/php">
AllowOverride None
Options None
</Directory>
AddType application/x-httpd-php .php3 .php .phtml
Action application/x-httpd-php "/php/php.exe"
<disclaimer>
I'm not sure that completely correct, but it may give you a start. PHP isn't typically used as a server module on Win32; instead, it's run as a CGI, so you probably have to treat it as if it were a CGI.
</disclaimer>
For this, I'm using php 4.0.1pl2 on Apache 1.3.12 on Win98. Regards Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net