Jump to content

accessing MySQL using .cgi file


Recommended Posts

My host has recently upgraded to

 

cPanel 11.25.0-S43473 - WHM 11.25.0 - X 3.9

REDHAT Enterprise 5.2 x86_64 standard

 

and doing so has caused my suspended page not to work like before.

 

i have a contact us page that stored the messages in a mysql database as well as email them to my email address.

 

now this does not work and i have been told that PHP does not work in a .cgi file.

 

how do i access the MySQL database using .cgi files ?

Link to comment
https://forums.phpfreaks.com/topic/201148-accessing-mysql-using-cgi-file/
Share on other sites

strange as my host says that PHP will not run in the cgi file!!

 

ok i have tried to add just basic php like so...

 

 

<?
echo("hello world");
?>

 

 

i would expect

hello world

 

to show but i get

 

<?
echo("hello world");
?>

 

at the top of my page or where ever i place this php code.  so it seems that PHP is not being executed as PHP

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.