[PHP] Help! mysql problem
Hi there, I've got a quick question concerning PHP and mySQL. I've got a fresh server with recent versions of Red Hat Linux, mySQL, PHP and apache. My problem is that when I call mysql_pconnect, my PHP code hangs and doesn't proceed. I can't check mysql_error because it doesn't go beyond this point. I know that mysql is running and the PHP code prior to this statement works just fine. The mysql account is operating correctly from the prompt and I'm using all of the default values for PHP and mysql config. Has anybody had this problem before and can somebody please offer me some suggestions? Thank you!!! - Scott
[PHP] wordwrap
Hey Hey! I've got a question about wordwrap. It seems that when I run this on a string that contains spaces, if my replacement string happens to fall on a space, the space is removed completely from the string. This isn't good :-\ Any way around this? Thanks! - Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] addslashes, stripslashes
I've come across a strange problem working backwards with stripslashes after running addslashes. I take a string like: \t\4 and run it through addslashes, the result is: \\t\\4 After grabbing this data from the database and running 'stripslashes', the data comes out as: \t without the \4, for some reason stripslashes always removes any combination of \ and a number. Does anybody know a way around this or can maybe provide some insight about why this is happening? Thank you!!! - Scott