php-install Digest 14 Jan 2002 06:04:26 -0000 Issue 648
Topics (messages 5553 through 5557):
Re: Can I use PHP to use Wake On Lan???
5553 by: Alexandros Gougousoudis
5554 by: Rasmus Lerdorf
MySQL commands not working
5555 by: John Davin
5556 by: Fred
test
5557 by: Clint Roger
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
> > Can I use PHP to use Wake On Lan???
>
> Perhaps if someone were to write a BIOS in PHP...
>
> But no, of course not. How the heck would that work?
Why not? I used PHP4 to execute a system command with a script called
ether-wake.pl, which could wake up all my computers in the network.
cu
Alex
--- End Message ---
--- Begin Message ---
Well, as a client, sure. Anything that can send out ip packets can
wake-on-lan stuff. I thought he meant server-side.
On Sun, 13 Jan 2002, Alexandros Gougousoudis wrote:
> Hi,
>
> > > Can I use PHP to use Wake On Lan???
> >
> > Perhaps if someone were to write a BIOS in PHP...
> >
> > But no, of course not. How the heck would that work?
>
> Why not? I used PHP4 to execute a system command with a script called
> ether-wake.pl, which could wake up all my computers in the network.
>
> cu
> Alex
>
--- End Message ---
--- Begin Message ---
Hi,
I'm trying to get PHP to work with MySQL. I have Apache 1.3.22 running on
Linux Mandrake 8... the apache was installed from the mandrake RPM. I
then installed PHP 4.1.1 from the RPM. The PHP parsing works fine but it
doesn't recognize mysql commands. When I do:
$linkid = mysql_connect("localhost", "root", "") or die($php_errormsg);
I get:
Fatal error: Call to undefined function: mysql_connect() ...
So I figured that meant the rpm didn't come with mysql commands enabled.
So I downloaded the source code (php-4.1.1.tar.gz) and did:
./configure --with-mysql --enable-track-vars
make
make install
Then I did apachectl stop, apachetcl start. The PHP parsing is working
but I'm still getting the exact same error about not recognizing the mysql
command.
Any ideas what's going on?
-John
--- End Message ---
--- Begin Message ---
Did you uninstall the php rpm before you installed from source? You could
still be using the old rpm. Are you sure you have mysql installed?
If you want to make this as simple as possible, uninstall the mandrake rpms
for apache, php and mysql and then do the following:
Download and install the latest mysql rpm from mysql.com
then go to rpms.arvin.dk , he has put together a bunch of rpms that work
splendidly together. At a minimum download and install the rpms for mm and
apache, then go into the php directory and download and install the rpms for
php, mod-php and php-mysql. Note, you can install rpms for many other php
extensions and they will work fine too.
Of course these rpms are made for redhat 7.1, but I am sure they will work
fine on mandrake 8.0 since it is based on redhat 7.1.
Good luck.
Fred
John Davin <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I'm trying to get PHP to work with MySQL. I have Apache 1.3.22 running on
> Linux Mandrake 8... the apache was installed from the mandrake RPM. I
> then installed PHP 4.1.1 from the RPM. The PHP parsing works fine but it
> doesn't recognize mysql commands. When I do:
> $linkid = mysql_connect("localhost", "root", "") or die($php_errormsg);
> I get:
> Fatal error: Call to undefined function: mysql_connect() ...
>
> So I figured that meant the rpm didn't come with mysql commands enabled.
> So I downloaded the source code (php-4.1.1.tar.gz) and did:
> ./configure --with-mysql --enable-track-vars
> make
> make install
>
> Then I did apachectl stop, apachetcl start. The PHP parsing is working
> but I'm still getting the exact same error about not recognizing the mysql
> command.
>
> Any ideas what's going on?
>
> -John
>
--- End Message ---
--- Begin Message ---
test
--- End Message ---