Jump to content

PHP site showing source code


dmomotiuk

Recommended Posts

Hi guys. I have a site all made in PHP 5. Some of muy collegues, in their Internet Explorer 6, instead of viewing my site correctly, get the source code of the site in some frames.

I will be very thankful if someone knows what can be happening...

Link to comment
Share on other sites

They get the PHP source code? I expect you're using the short style opening tags (<?) but have them disabled in your php.ini. Either enable the short_open_tags option, or switch to full opening tags (<?php). The latter is better in my opinion, since it's more portable.

 

Alternatively, the server may have previously been set up to parse other file extensions(other than .php that is) as PHP files. If this is no longer so, then you would again see the source code.

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.