Re: problem including images in safe_mode
| From: | Jason Wong | Date: | Thu, 15 Jul 2004 14:28:09 +0000 |
| Subject: | Re: problem including images in safe_mode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190596@lists.php.net to get a copy of this message | ||
On Thursday 15 July 2004 19:52, Frank Holtschke wrote:
> i have sometimes problems to include images. the reason are substrings
> like <? in the image.
> in that case the php-parser tries to parse the string and returns the
> error:
>
> parse error, unexpected ',' in
>
> unforunatly there in no other way to include the image, cause the server
> runs in safe_mode and
> the image is located in the safe_mode_include_dir. therefore readfile
> and things like that wont work.
> Any suggestions how to protect an including file for getting parsed?
Even if you could prevent an included file from being parsed, I can't see how
it would help you as you can't assign the contents to a variable. But you say
that you "sometimes have problems" which implies that sometimes it works.
Could you explain how it works?
And anyway why are your images in safe_mode_include_dir in the first place?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I love you, not only for what you are, but for what I am when I am with you.
-- Roy Croft
*/