elihorn Posted July 4, 2006 Share Posted July 4, 2006 Hi I'm trying to set up a website that can be added to and edited by my client. So far I am using Dadabik as the major updating process . . . the client can us it to insert content, images etc. Now I am trying to integrate PHP GD Library extensions into the business_logic.php (backbone of the Databik program) to automatically generate thumbnails each time an image is uploaded. Alone, the thumbnail generating php script works fine. I tested it on my home server (localhost/in4mation/) but as soon as the code was moved to the business_logic.php file in localhost/in4mation/dadabik/includes' (which is where it needs to be) or even if I moved the full working test file into the dadabik folder it stopped working giving me the following error:[quote][color=maroon][size=8pt]Warning: imagesx(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1924Warning: imagesy(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1925Warning: imagecopyresampled(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1942Warning: imagedestroy(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1950[/size][/color][/quote]I would have posted this on the dadabik forum, but a similair post is up and the answers are useless.Any ideas anyone??! For some reason it has to do with what folder it's in, and it has nothing to do with the permissions . . . ???Thanks in advance :) Quote Link to comment https://forums.phpfreaks.com/topic/13621-gd-library-problems-arg-please-help-integration-with-dadabik/ Share on other sites More sharing options...
.josh Posted July 4, 2006 Share Posted July 4, 2006 well i'm confused. you said it works fine at home but not on the server. both path examples you used are *nix path formats. but your warnings show windows path format. i would tell you that you are not using the right path, but that extra *nix/win thing kinda seems odd... Quote Link to comment https://forums.phpfreaks.com/topic/13621-gd-library-problems-arg-please-help-integration-with-dadabik/#findComment-52794 Share on other sites More sharing options...
elihorn Posted July 4, 2006 Author Share Posted July 4, 2006 In both cases I'm reffering to my home testing server http//:localhost/..., also C:\wamp\www\, they are the same thing, one is the http address, the other is the local root. I have double checked the paths a million time . . . >:( . . . I don't get it! I think I could get it to generate the thumbs when the actual website is called up, but it would be nicer to do it when they are uploaded Quote Link to comment https://forums.phpfreaks.com/topic/13621-gd-library-problems-arg-please-help-integration-with-dadabik/#findComment-52797 Share on other sites More sharing options...
elihorn Posted July 4, 2006 Author Share Posted July 4, 2006 sorry http://localhost/ i'm tired Quote Link to comment https://forums.phpfreaks.com/topic/13621-gd-library-problems-arg-please-help-integration-with-dadabik/#findComment-52798 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.