Jump to content


Photo

GD Library problems . . . ARG! Please help! (integration with dadabik)


  • Please log in to reply
3 replies to this topic

#1 elihorn

elihorn
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 04 July 2006 - 07:26 AM

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:

Warning: imagesx(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1924

Warning: imagesy(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1925

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1942

Warning: imagedestroy(): supplied argument is not a valid Image resource in C:\wamp\www\in4mation\dadabik\include\business_logic.php on line 1950


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 :)


#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 04 July 2006 - 07:36 AM

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...
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 elihorn

elihorn
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 04 July 2006 - 07:55 AM

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

#4 elihorn

elihorn
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 04 July 2006 - 07:57 AM

sorry http://localhost/ i'm tired




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users