[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP4 - Apache2 - MySQL What am I missing *FIXED*



On Fri, 27 Aug 2004 08:41:11 -0500, Michael Satterwhite
<michael@weblore.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Friday 27 August 2004 08:25, Michael Satterwhite wrote:
> 
> I'd like to blame Google, but that wouldn't be fair.
> 
> I kept going through the pages that referenced this error and found the
> (obvious) that I hadn't enabled it in php.ini.
> 
> Sorry about the previous post.
> - ---Michael

Hello Michael,
> 
> > For development purposes, I have Apache2 running on a local machine. MySQL
> > is running on one of my main machines. The development machine is running
> > Debian Sarge and PHP4. PHP4 is running fine; pages that don't use database
> > work perfectly.
> >
> > I used apt-get to install php4-mysql. I didn't see any errors during the
> > install, and I have verified that it is installed.
> >
> > When I try to open a web page that has mysql_connect, I get an error

First Of all i couldnt see the error , you are getting from your apache2 server.

Now, i am working on a network management system using php4,mysql and apache ,
 i was getting error like it, as i was sending my user name passwd
through my html form
and it was not receving by my php4 action script , after an hour hard
searching i came to know that we have to edit ????php.ini file and
there an option REGISTER_GLOBAL
should be turned ON , so that our form variables could be send to php
script through apache.

i hope it will help you in debuging your system,
cheers,

> > message because I used an undefined function mysql_connect. The same web
> > page works fine if run on the production machine.
> >
> > I've done web searches, but the only real advice I've found is to recompile
> > php. If that's what's needed, I'll do it, but I'd rather stay within the
> > structures of Debian.
> >
> > Can someone queue me in on what I missed on the MySQL capability install?
> >
> > tia
> > ---Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFBLzn/jeziQOokQnARAuj5AJ9+JqGYFaiddM5Zq3M45gejVCUsOACghgwn
> DO5mxl7yIwu16cyyDxLJbTE=
> =pYus
> -----END PGP SIGNATURE-----
> 
> 


-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell     :  92-0333-9139461



Reply to: