Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Re-insalled php5 now got an issie


Guest

Recommended Posts

Hi all i was getting errors through the mailing section of OSC and thought it might be a php issue so i re-installed php and now im getting:

 

Fatal error: Call to undefined function: mysql_connect() in d:\home\phpserv\simglobal.co.uk\htdocs\includes\functions\database.php on line 19

 

the main reason i re-installed php was i was trying to use the mail function from pair, but it kept saying it could not find the path: C:php/mail.php

 

i checked the phpinfo page and it say the path to pair is .;C:\php5\pear

but in my C:dir its just C:\php

 

Does it just append the 5 to php or does it not matter,

The main issue is the error im getting now...

 

Fatal error: Call to undefined function: mysql_connect() in d:\home\phpserv\simglobal.co.uk\htdocs\includes\functions\database.php on line 19

 

Regards

Craig

Link to comment
Share on other sites

Hi all i was getting errors through the mailing section of OSC and thought it might be a php issue so i re-installed php and now im getting:

 

Fatal error: Call to undefined function: mysql_connect() in d:\home\phpserv\simglobal.co.uk\htdocs\includes\functions\database.php on line 19

 

the main reason i re-installed php was i was trying to use the mail function from pair, but it kept saying it could not find the path: C:php/mail.php

 

i checked the phpinfo page and it say the path to pair is .;C:\php5\pear

but in my C:dir its just C:\php

 

Does it just append the 5 to php or does it not matter,

The main issue is the error im getting now...

 

Fatal error: Call to undefined function: mysql_connect() in d:\home\phpserv\simglobal.co.uk\htdocs\includes\functions\database.php on line 19

 

Regards

Craig

 

Hi,

 

Goto both your configure.php files i.e. 1 in catalog/admin/includes and 1 in catalog/includes and do the following:

 

Make sure you have no empty (White spaces) spaces before <?php at the top and after ?> at the bottom.

 

Note: php don't like empty spaces before and after so in all your files check these

 

Hope it works.

 

Kind Regards.

Michelle

Link to comment
Share on other sites

Don't know if this is a local install or an install on a dedicated server you're setting up.

 

If it's a local install then all you needed to do was to install Post Cast Server (mail server), and you'd be able to test osCommerce offline with full mail facilities.

 

If this is a dedicated server and you control the option of which version of PHP to use then (although you've already done it once) I'd still recommend rolling back to php 4.3.11 The problems you're getting are to do with configuring a server correctly, and only osCommerce related as a by-product of that.

 

Vger

Link to comment
Share on other sites

sorry, didn't help, it all worked before the re-install of php

 

Vger...

im using 5.02 the same version as before when it did work.

is the previous version more stable... i also tried 5.04 that gave problems to.

 

Craig

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...