Permission to directory in /var/www

Jordon Bedwell jordon at envygeeks.com
Thu Aug 4 13:20:54 UTC 2011


On 04/08/11 07:37, Colin Law wrote:
> On 4 August 2011 13:32, Amrit Pal Pathak <amritpalpathak1 at gmail.com> wrote:
>> On Thu, Aug 4, 2011 at 8:17 AM, Colin Law <clanlaw at googlemail.com> wrote:
>>> On 4 August 2011 13:08, Amrit Pal Pathak <amritpalpathak1 at gmail.com>
>>> wrote:
>>> > Fatal error: Call to undefined function mysql_connect() in
>>> > /var/www/GNDEC-SMS-Service/functions.php on line 13
>>> > Mysql is installed and database exist there.The
>>> > funtions.php file  looks like.
>>> How long did you spend with google before coming back to ask here?
>>> I hope you are not just seeing an error and immediately asking for
>>> more help.  That way you will never learn how to sort your own
>>> problems out.
>>     I couldn't understand it thats why i ask immediately. 
> So what have you learnt by googling the error message now?  A good
> search might be call to undefined function mysql_connect ubuntu
> 
> You may still not be able to solve it yourself but you will be able to
> say what you have tried and what happened.
> I don't know the answer myself by the way, but if I had the problem
> then google would be my first approach and only if I still could not
> sort it would I ask people to spend their time trying to help me.

The better Google query would be: "php ubuntu undefined mysql_connect"
Anyways to answer:
    apt-get install php5-mysql




More information about the ubuntu-users mailing list