Re: [PHP-WIN] mime_content_type remote file

2008-06-05 Thread Joris Willekens
Tx for the replies, I fixed the problem: solution: USE --> $filename = str_replace(" ", "%20",$_GET["image"]); NOT --> $filename = str_replace("%20", " ",$_GET["image"]); Best Regards <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I had trouble with spaces in pathnames. I got r

Re: [PHP-WIN] mime_content_type remote file

2008-06-05 Thread charles . wroth
I had trouble with spaces in pathnames. I got round it by surrounding the whole pathname with quotes - an old Windows trick: $s = "'" . $PHP_SELF . "'"; #surround with quotes to allow for spaces in pathname echo " " .#use quotes [ ...etc ] Not sure if it applies in your ca

RE: [PHP-WIN] mime_content_type remote file

2008-06-05 Thread Brereton, Stephen
Personally, I've always coded the spaces into underscores and made sure the file is saved as that. -Original Message- From: Joris Willekens [mailto:[EMAIL PROTECTED] Sent: 05 June 2008 13:04 To: php-windows@lists.php.net Subject: Re: [PHP-WIN] mime_content_type remote file There is no

Re: [PHP-WIN] mime_content_type remote file

2008-06-05 Thread Joris Willekens
There is no problem when there are no spaces in the name. I can't prevent spaces in the filename, is there a workaround? ""Brereton, Stephen"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] How about a file without any spaces in the name? -Original Message- From: Joris Wi