RE: [PHP] Need help...silly customer

From: Date: Tue, 14 Nov 2000 21:46:11 +0000
Subject: RE: [PHP] Need help...silly customer
Groups: php.general 
Request: Send a blank email to php-general+get-25253@lists.php.net to get a copy of this message
Hi Abe Try this it might help you out <? $image = "Sofa #184-8.JPG"; echo "Input - $image<BR>"; $image = urlencode($image); echo "Encoded - $image<BR>"; $image = urldecode($image); echo "UnEncoded - $image<BR>"; ?> Robert W. Collins Web Developer II Insight / TC Computers www.insight.com www.tccomputers.com -----Original Message----- From: Shane McBride [mailto:php@riversidedesigns.net] Sent: Tuesday, November 14, 2000 2:42 PM To: Abe; Php-General Subject: Re: [PHP] Need help...silly customer Ok, first of all I get a %20. So, I have tried to urlencode it by doing this: urlencode($image) What else Do I need to do? ----- Original Message ----- From: "Abe" <abe@fish.tm> To: "Shane McBride" <php@riversidedesigns.net>; "Php-General" <php-general@lists.php.net> Sent: Tuesday, November 14, 2000 4:43 PM Subject: Re: [PHP] Need help...silly customer > Dude, > > The # symbol is a comment symbol in PHP and can be URL encoded to %23. > > > ----- Original Message ----- > From: "Shane McBride" <php@riversidedesigns.net> > To: "Php-General" <php-general@lists.php.net> > Sent: Tuesday, November 14, 2000 9:26 PM > Subject: [PHP] Need help...silly customer > > > OK, I have the customer from hell here. I created a script for her that > allows her to add featured items, including an image. > > I tested it pretty well, except that all the images that the php script > uploads has no special characters. So, she uploads an image that has a > special character in the name and the image link won;t work. Of course. > > what happens is that the image uploads and puts a time stamp in front of it. > I thought that was nice since she could have duplicate image names. > > At this point the whole name is written to the database with the proper > spaces and special characters. > > When the file is moved to the correct directory by the script, the name is > maintained with the spaces and special characters. > > The problem is the number sign she insists on using!!!! She wants to name > them "Sofa #184-8.JPG". > The browser must interpret the # sign as something else. I can not remember > the name of that. > > Is there a way around this? > > TIA, > Shane > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#25253) next »