Jump to content

PHP Cli and Mysql


khader69

Recommended Posts

Hi All,

I am stuck with a small problem. I have been using PHP/Mysql for quite a while, but all my work has been on PHP-Mysql scripts hosted on a webserver (Apache).

A few days back I tried installing a package that required me to execulte a PHP script in command line. But the installation failed because it could not recognise the Mysql related PHP functions.

[code]khader@ubuntu:/var/www/webabel$ php install.php

Fatal error: Call to undefined function:  mysql_connect() in /var/www/webabel/inc/querytool.php on line 10[/code]

I could not figure what package I need to install to get this running. Can someone help me here?

Existing packages
php4 - 4.3.10-10ubuntu4.2
libapache2-mod-php4 - 4.3.10-10ubuntu4.4
php4-cgi - 4.3.10-10ubuntu4.4
php4-cli - 4.3.10-10ubuntu4.4
php4-common - 4.3.10-10ubuntu4.4
php4-gd - 4.3.10-10ubuntu3.7
php4-mysql - 4.3.10-10ubuntu3.7
php4-universe-common - 4.3.10-10ubuntu3.7

My Distribution is Ubuntu 5.04
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.