Strange CSS/php/mysql problem

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
jkorman

Strange CSS/php/mysql problem

Post by jkorman »

Hi,

I'm a total newbe.  I set up a test server with redhat 9.0 which includes apache 2.0.40, mysql 3.23.54a-11 & php 4.2.2-17, also php-mysql 4.2.2-17.  The CMS made simple install went through with no trouble.  When viewing the default CMS made simple page, I noticed the css didn't seem to be applied.  Upon further investigation, which included looking at www.mywebpage.com/stylesheet.php?templateid=16 to see what it did, it gave me an error that it did not recognize the "mysql_real_escape_string()" funtion.  I spent several hours today trying to figure out what to do.  In frustration I changed the code in the stylesheet.php file from "mysql_real_escape_string()" to the older "mysql_escape_string()" function, and the css loads fine now.

Any thoughts?

Thanks!

Jeff
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Strange CSS/php/mysql problem

Post by Dee »

mysql_real_escape_string is supported in PHP version 4.3.0 and higher:
mysql_real_escape_string
(PHP 4 >= 4.3.0, PHP 5)
Regards,
D
jkorman

Re: Strange CSS/php/mysql problem

Post by jkorman »

Shouldn't the software requirements then be updated to 4.3?

Thanks.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Strange CSS/php/mysql problem

Post by Dee »

Locked

Return to “[locked] Installation, Setup and Upgrade”