stripslashes, within a string?

From: Date: Thu, 08 May 2003 09:29:28 +0000
Subject: stripslashes, within a string?
Groups: php.general 
Request: Send a blank email to php-general+get-146806@lists.php.net to get a copy of this message
I wanna use a variable within a string. But I need to strip slashes first. I've used this, but it fails...? $email = addslashes($email); // variable from a previous form //Add $email to database $body = "The following E-mail address: " . stripslashes($email); . "Has been recieved"; mail($mailto, $subject, $body); Line 3 give me an error... (Parse error: parse error.....) What monkey mistake am I making? Cheers all Tris... "Radu Manole" <radu@u-zine.com> 08/05/2003 10:13 Please respond to "Radu Manole" To: <php-general@lists.php.net> cc: Subject: [PHP] Creating symlink from browser Hi guys, I have this server with PHP is installed as an apache module on a linux box and I want to create a symlink from browser. 1. When running the PHP script from shell (using #!/usr/local/bin/php) everything works fine. but 2. I copied the file into cgi-bin directory and called it from browser and it did not worked. The log file said something like "glob failed ...<_GEN_0> chunk1" 3. tried exec(), symlink() but no luck Any ideas about how can I do this are appreciated. many thanks, Radu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php *********************************************************************** The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ************************************************************************

« previous php.general (#146806) next »