Jump to content

Need help with this code


DM7

Recommended Posts

Hello guys,

I'm having a little problem here, I want to put a code in my website but i don't know where, its this code :    AddHandler application/x-httpd-php4 .php .php4 .php3

I've been trying to do this by creating a .htaccess file but that doesn't work.

My server is currently running on PHP 5.3 but i want to let it switch to PHP4

It's not a CMS site.

Anybody have any sugestions to try for me?

Thanks in advance,

 

Link to comment
Share on other sites

If .htaccess isn't working it may be that the server admin has disabled that functionality. in which case it would need to go into httpd.conf or something similar. I'm not even 100% if it is even possible to run two versions of PHP from the same server (I would imagine not!). The only thing I can thing of is running a second instance of Apache on a different port with PHP4 installed. I'm sure someone else will be able to give you a better answer however.

Link to comment
Share on other sites

This may sound a bit strange - but have u tried a different browser? I had a situation recently whereby a php generating a JSON response was resulting a download of a php file on IE8. It's a long shot tho...

 

Alterantvely - do you run your own server? Are you absolutely sure that the hosting company provides php4? Does PHP run normally?

 

BTW - just seen that you can run multiple versions of PHP on one server! You learn something new everyday!

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.