Jump to content

PHP Script displaying, not the HTML


Recommended Posts

I have a Windows 2003 Server with IIS6 and SP2.  I installed PHP 5.2 from the zip.  I followed the directions to a T and still getting errors.  My page will display the actually script or code in the page instead of the HTML like it is supposed to.  I also have MySQL 5.0 installed and not configured.  I would love some pointers.  I am trying to get a webdirectory installed on my PC called indexu.  Here are some details.

 

This is the page that is getting errors:

http://www.futuresoundsstudios.com/links-directory/install/install.php

 

This is the page that is stating it works, I'm confused:

http://www.futuresoundsstudios.com/links-directory/install/test.php

 

Any help would be great.

 

Please let me know.

 

 

Best Regards,

 

Russell Moran

Link to comment
Share on other sites

GameYin,

 

I am having a hard time replying, it tells me 403 error I must be logged in.  I am logged in and now am on another PC.  You can view the source I have, it's correct according to the author.

 

Also, I attached the .PHP file on the first post.  I can't insert it here as I'm on another PC.  I will try later, until then, any suggestions?

 

Russell

Link to comment
Share on other sites

The code that does not work is using short open php tags <? (and probably <?= ) instead of correct full open php tags <?php (and <?php echo ) If you do a "View source" in your browser you will see them.

 

If you have access to the server to do so, you could turn on short open tags, but there is always a risk that on the next server you use you won't have the ability to change the setting.

 

No script that is intended to be distributed should use short open tags. I recommend going through the files and change any <? to <?php and <?= to <?php echo

Link to comment
Share on other sites

You are right...it's my server and I have access to make the change, so I did and bingo...worked like a champ.  Now here's my situation:

 

PHP 4.3.10 ... Installed (current version: 5.2.5)

 

PHP module MySQL is Not Installed

 

PHP module ZLib is Installed

 

PHP module Curl is Not Installed

 

PHP module GD is Not Installed

 

PHP module XML is Installed

 

 

Go to the next screen and:

 

ALL the files are "writeable"

 

Go to the database setup and I'm LOST!!!

 

INDEXU 5.4.0

 

--------------------------------------------------------------------------------

 

File Configuration

 

--------------------------------------------------------------------------------

 

 

Database Configuration 

Username 

Password 

Host 

Database Name 

URL and Path 

Website URL (ends without /) 

Base Path (ends with /) 

Website 

Website Name 

 

--------------------------------------------------------------------------------

 

Nicecoder PHP Script Installer 

 

 

Any help?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.