You are here: Re: ImageCreateFromJPEG fails if path contains apostrophe ? « PHP Programming Language « IT news, forums, messages
Re: ImageCreateFromJPEG fails if path contains apostrophe ?

Posted by Sjoerd on 02/27/07 22:57

tim.landgraf@googlemail.com 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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация