[PHP] XML support in PHP 5

2003-07-25 Thread Juliano
I read in the site www.php.net that XML support has been completely redone in PHP 5. I would like to know if the old commands (like xml_parser_create, xml_parse, xml_set_element_handler...) will be removed or not. Where can I find more information about it? Thanks

[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

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". If the same php page is at www.your

[PHP] can't connect to mysql

2001-04-04 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

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? Dan

[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