Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.

Author Message
mmjaeger
Light Poster

Joined: 22 Oct 2004
Posts: 25

 Posted: Wed Oct 27, 2004 4:25 am    Post subject: path to image Hello, I'm kind of having problems passing the correct path to the dropshadow.php file. This is what I finally came up with: $source =$HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/'.$HTTP_GET_VARS['img']; ....?img=/path-to-image/test.jpg is not working. ....?img=http://domain.com/path-to-image/test.jpg is not working either ....?img=../../../../'test.jpg is working. I'm really kind of confused!? Your input is very much appreciated. Thank you quasipickle Newbie Joined: 21 Oct 2004 Posts: 6  Posted: Fri Nov 05, 2004 1:48 am Post subject: My first guess would be to see if test.jpg is actually in the directory you think it is. You seem to be descending quite a bit into parent directories, before you can display test.jpg. olfudydudy Newbie Joined: 12 Oct 2004 Posts: 10 Location: Atlanta, GA  Posted: Wed Nov 10, 2004 1:05 pm Post subject: Greetings from Atlanta, I saw this post and just had to add my two cents on the subject. Based on my exerience, the loadImage path must be a physical path (c:\path\to\image\file.jpg) but with double \ (\\). The URLs or virtual paths just don't work for me. Anyway, my solution was to pass the url of the image file in the html tag to a php script which _GETs the url, then$imgstr=file_get_contents($url), then loadImageFromString($imgstr). Actual code might be something like the following: In the web page the might be: or The php script, with the file name of shadowurl.php would be: setShadowPath("d:\\path\\to\\shadow\\images\\"); $ds->loadImageFromString($img); $ds->resizeToSize($w,$h);$ds->applyShadow('b6d5e3'); \$ds->showShadow('jpg', 50); ?> Also, using this method, you can still use the dropshadow class with asp scripts, which is what I am doing. Anyway, hope this helps.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 5 Hours Page 1 of 1

 Jump to: Select a forum Message boards for the scripts----------------Amnuts Talker Helpfile ViewerBattleships By Email (BBE)CafePress BoxCrop CanvasDate/Time FunctionsDrop Shadowed Thumbnail CreatorEWTOO Talker ListerFAQ ManagerImage FunctionsImage MaskMadLibsMan Page LookupMoon PhasesString FunctionsUser QuotaWWW Checkup General message boards----------------Website FeedbackPHP Questions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum