SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some help with a php script using gd

    Hi

    I had my script working until I was moved to a new host. This is the base of it http://www.palmettoemb.com/phpaint/phpaint.php
    This is the orignal script not my modified on thought I would get it working so I could figure out what is up with mine, I know my path is right. I had this working on my old host fine and I got it working on windows. I just cant figure out what I am missing. I set the directory to 777.

    Even with the script I should be able to specify a local fonts directory but it wont read them.

    Please help

    I get the following errors
    26-Apr-2007 09:12:22] PHP Warning: readdir(): supplied argument is not a valid Directory resource in /home/xxx/public_html/paint/phpaint.php on line 105
    [26-Apr-2007 09:12:22] PHP Warning: closedir(): supplied argument is not a valid Directory resource in /home/xxx/public_html/paint/phpaint.php on line 109
    [26-Apr-2007 09:12:22] PHP Warning: readdir(): supplied argument is not a valid Directory resource in /home/xxx/public_html/paint/phpaint.php on line 112
    [26-Apr-2007 09:12:22] PHP Warning: closedir(): supplied argument is not a valid Directory resource in /home/xxxx/public_html/paint/phpaint.php on line 118

  2. #2
    SitePoint Wizard bronze trophy Kailash Badu's Avatar
    Join Date
    Nov 2005
    Posts
    2,561
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    make sure your opendir() function is working correctly?

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes it seems to be working on the server. I tried a simple opendir script and it worked fine.

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the error I am getting now maybe this will help

    [25-Apr-2007 23:37:12] PHP Warning: imagettfbbox() [<a href='function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in /home/xxxx/public_html/phpaint/phpimagebank.php on line 34
    [25-Apr-2007 23:37:12] PHP Warning: imagecreate() [<a href='function.imagecreate'>function.imagecreate</a>]: Invalid image dimensions in /home/xxxx/public_html/phpaint/phpimagebank.php on line 37
    [25-Apr-2007 23:37:12] PHP Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 38
    [25-Apr-2007 23:37:12] PHP Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 39
    [25-Apr-2007 23:37:12] PHP Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 40
    [25-Apr-2007 23:37:12] PHP Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 41
    [25-Apr-2007 23:37:12] PHP Warning: imagerectangle(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 42
    [25-Apr-2007 23:37:12] PHP Warning: imagerectangle(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 43
    [25-Apr-2007 23:37:12] PHP Warning: imageline(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 44
    [25-Apr-2007 23:37:12] PHP Warning: imageline(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 45
    [25-Apr-2007 23:37:12] PHP Warning: imageline(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 46
    [25-Apr-2007 23:37:12] PHP Warning: imageline(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 47
    [25-Apr-2007 23:37:12] PHP Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 55
    [25-Apr-2007 23:37:12] PHP Warning: imageline(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 56
    [25-Apr-2007 23:37:12] PHP Warning: imageline(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 57
    [25-Apr-2007 23:37:12] PHP Warning: imagettftext() expects parameter 1 to be resource, boolean given in /home/xxxx/public_html/phpaint/phpimagebank.php on line 58
    [25-Apr-2007 23:37:12] PHP Warning: imagettftext() expects parameter 1 to be resource, boolean given in /home/xxxx/public_html/phpaint/phpimagebank.php on line 59
    [25-Apr-2007 23:37:12] PHP Warning: imagepng(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 64
    [25-Apr-2007 23:37:12] PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/xxxx/public_html/phpaint/phpimagebank.php on line 65


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •