PHP files work but html file with php don't

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
leawildcat
-


Joined: 04 Dec 2004
Posts: 9
Location: Texas

PostPosted: Sun Dec 05, 2004 1:22 am    Post subject: PHP files work but html file with php don't Reply with quote

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 View user's profile Send private message
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Sun Dec 05, 2004 1:33 am    Post subject: Reply with quote

This is a simple suggestion, but perhaps instead of <script> use
<?php
echo "Hi Dr. Nick!";
?>
Back to top View user's profile Send private message Send e-mail
leawildcat
-


Joined: 04 Dec 2004
Posts: 9
Location: Texas

PostPosted: Sun Dec 05, 2004 1:47 am    Post subject: Sighs Reply with quote

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 View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Mon Dec 06, 2004 11:37 am    Post subject: Re: Sighs Reply with quote

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 View user's profile Send private message Visit poster's website
janberends
-


Joined: 02 Sep 2003
Posts: 12
Location: Annen

PostPosted: Mon Dec 06, 2004 11:41 am    Post subject: Re: Sighs Reply with quote

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 View user's profile Send private message Visit poster's website
leawildcat
-


Joined: 04 Dec 2004
Posts: 9
Location: Texas

PostPosted: Mon Dec 06, 2004 12:36 pm    Post subject: kinda fixed Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group