View previous topic :: View next topic |
Author |
Message |
leawildcat -
Joined: 04 Dec 2004 Posts: 9 Location: Texas
|
Posted: Sun Dec 05, 2004 1:22 am Post subject: PHP files work but html file with php don't |
|
|
I'm on my 4th server program and I really like Abyss. I started with PWS, then Apache 2.0 and then to BigBlue or something like that. On every one of the servers I can get a file that just has php in it to work. If I try to combine html and php I just get a blank screen. I followed Trust's install guide and downloaded data sources from Microsoft I'm running Windows98SE and PHP4.3.9 and Abyss 1.2.3.0. Here is my cgi file:
CGI Processing Enabled: Yes
CGI Error File: log/cgi.log
CGI Scripts' Timeout (seconds): 30
Resolve interpreter using the Windows Registry: No
Resolve interpreter using the script's #! line: No
CGI Interpreters
C:\Php\php.exe php php3 phtml html
C:\Perl\bin\perl.exe pl cgi
CGI Paths
/cgi-bin
/*.php
/*.phtml
/*.pl
/*.cgi
/*.php3
/*.html
User CGI Environment Variables
REDIRECT_STATUS 200
My Perl scripts work just peachy. I've been trying to resolve this for 3 days. If anyone can help I would appreciate it greatly. Here are the samples of what what works and what doesn't:
test.html and test.php and test.phtml - doesn't work
<html>
<head>
<title>Example<title>
</head>
<body>
<p>Hello, I'm not a script!</p>
<script language="php">
echo("Hi, I'm a PHP script!");
</script>
</body>
</html>
What does work:
test.html
<html>
<head>
<title>Example<title>
</head>
<body>
<p>Hello, I'm not a script!</p>
</body>
</html>
phpinfo.php
<? phpinfo() ?> |
|
Back to top |
|
 |
Glitch2082 -
Joined: 02 Dec 2004 Posts: 194
|
Posted: Sun Dec 05, 2004 1:33 am Post subject: |
|
|
This is a simple suggestion, but perhaps instead of <script> use
<?php
echo "Hi Dr. Nick!";
?> |
|
Back to top |
|
 |
leawildcat -
Joined: 04 Dec 2004 Posts: 9 Location: Texas
|
Posted: Sun Dec 05, 2004 1:47 am Post subject: Sighs |
|
|
Reply, thanks but nope didn't help. Created and htm file with your script and still just a blank page. I don't even get the 'title' displayed at the top of the web page. |
|
Back to top |
|
 |
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Mon Dec 06, 2004 11:37 am Post subject: Re: Sighs |
|
|
leawildcat wrote: | Created and htm file with your script and still just a blank page. |
try using the ".php" extension (without the quotes)
It works for me and I use win98se, php4 and abyss 1.2
test.php
<html>
<head>
<title>Example<title>
</head>
<body>
<?php
echo("Hi, I'm a PHP script!");
?>
</body>
</html> _________________ Anthony R
Roganty | Links-Links.co.uk |
|
Back to top |
|
 |
janberends -
Joined: 02 Sep 2003 Posts: 12 Location: Annen
|
Posted: Mon Dec 06, 2004 11:41 am Post subject: Re: Sighs |
|
|
roganty wrote: | leawildcat wrote: | Created and htm file with your script and still just a blank page. |
try using the ".php" extension (without the quotes)
|
Or a .html as this extensions also is included in his php-extensions. |
|
Back to top |
|
 |
leawildcat -
Joined: 04 Dec 2004 Posts: 9 Location: Texas
|
Posted: Mon Dec 06, 2004 12:36 pm Post subject: kinda fixed |
|
|
It helps if I close the Title tag. I discovered this while retyping it today. They work as long as I save them as a .php file. Any other extension and I'm back at the blank screen. Thanks you guys. |
|
Back to top |
|
 |
|