Jump to content

PHP as cgi - what are the issues?


loquela

Recommended Posts

Hi there,

 

I recenly switched hosting providers. For some reason they insist on running php as cgi instead of as an apache module.

Since migrating my websites from my previous hosting provider who used php as an apache module, I find some of my php scripts no longer work!

 

1. a very simple php styleswitcher no longer executes and is the file is now downloaded by the browser

2. a simple send mail script now returns an ionternal error:

malformed header from script. Bad header=/home/sites/educationaldesign.: confirm.php, referer: http://www.educationaldesign.co.uk/school_enquiry.php

 

What are the issues involved with running php as cgi and how can I work around them? This is driving me nuts!

 

Thanks in advance,

 

Simon

Link to comment
https://forums.phpfreaks.com/topic/41027-php-as-cgi-what-are-the-issues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.