Re: ImageCreateFromJPEG fails if path contains apostrophe ?
- From: Sjoerd <sjoerd-news@xxxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 23:57:17 +0100
tim.landgraf@xxxxxxxxxxxxxx wrote:
if there is a file
with an apostrophe in it the GD function @ImageCreateFromJPEG fails.
anyone knows this problem and possible workarounds?
Since you are passing the path of the file using GET variables, you may be a victim of "magic quotes". See:
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
http://www.php.net/manual/en/function.stripslashes.php
To be sure, echo the filename and see if it is correct.
.
- References:
- ImageCreateFromJPEG fails if path contains apostrophe ?
- From: tim . landgraf
- ImageCreateFromJPEG fails if path contains apostrophe ?
- Prev by Date: Re: re-using variables
- Next by Date: Re: re-using variables
- Previous by thread: ImageCreateFromJPEG fails if path contains apostrophe ?
- Next by thread: mhash functions for my windows apache development server
- Index(es):