Re: [PHP] current location

2001-04-05 Thread Paul Juliano
Silly me, it's $HTTP_HOST. :) Paul Juliano wrote: >Hi, > >What's the php function to find out what server a php page is located? >For example, the php page is at www.myserver.com. The php page should be able >to display "Welcome to www.myserver.com

[PHP] current location

2001-04-05 Thread Paul Juliano
Hi, What's the php function to find out what server a php page is located? For example, the php page is at www.myserver.com. The php page should be able to display "Welcome to www.myserver.com". If the same php page is at www.yourserver.com, it should be able to display "Welcome to www.yourserv

Re: Re: [PHP] can't connect to mysql

2001-04-04 Thread Paul Juliano
$link = mysql_connect ("localhost","root","mypassword") or die ("Could not connect"); I'm pretty sure that the username/password is correct. I can connect from the linux shell using mysql -u root -p Dan Cleveland wrote: >What does your mysql_connect statement look like? > >Da

[PHP] can't connect to mysql

2001-04-03 Thread Paul Juliano
Hello, I have a simple question when connecting through mysql. It seems that php is trying to connect to /tmp/mysql.sock, but it's not in the /tmp directory. It's in /var/lib/mysql/mysql.sock. I can connect throught mysql through the command line just fine, but php functions cannot. It gives t

[PHP] php-4.0.5-dev with Apache rpm

2001-04-02 Thread Paul Juliano
Hi, How do I manually compile php-4.0.5-dev with an Apache rpm installation? Or do I have to install both apache and php manually? I know how to do the second method, but as much as possible, I don't want to hose the running apache install. Thanks. __ www.edsam

[PHP] ab post file

2001-03-27 Thread Paul Juliano
Hello, I have a php page that accepsts posted data. I'd like to benchmark it using ab (apache benchmark). In the ab man page, it has a -p POSTFILE option. Does anyone here know what format should this post file contain? Thanks. __ www.edsamail.com -- PHP Gene

[PHP] PHP post

2001-03-20 Thread Paul Juliano
Hello, How would I simulate an http post in PHP. Something like the equivalent of this: And how would I be able to read the resulting page. __ www.edsamail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F