| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2005
15 posts
Gave thanks: 5
Thanked 0 times
|
Ok,I bought a image generator script for a new site I am making.It is a addon domain to my actual domain.
So,I have installed the script and it gave me this errors... Warning: imagecreatefromgif() [function.imagecreatefromgif]: URL file-access is disabled in the server configuration in /home/USERNAME/public_html/dollmaker/make-doll.php on line 21 Warning: imagecreatefromgif(http://www.priyasparadise.com/dollma...s/head/008.gif) [function.imagecreatefromgif]: failed to open stream: no suitable wrapper could be found in /home/USERNAME/public_html/dollmaker/make-doll.php on line 21 Warning: imagesx(): supplied argument is not a valid Image resource in /home/USERNAME/public_html/dollmaker/make-doll.php on line 22 Warning: imagesy(): supplied argument is not a valid Image resource in /home/USERNAME/public_html/dollmaker/make-doll.php on line 23 Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/USERNAME/public_html/dollmaker/make-doll.php on line 24 Warning: imagecreatefromgif() [function.imagecreatefromgif]: URL file-access is disabled in the server configuration in /home/USERNAME/public_html/dollmaker/make-doll.php on line 21 Warning: imagecreatefromgif(http://www.priyasparadise.com/dollma...s/head/008.gif) [function.imagecreatefromgif]: failed to open stream: no suitable wrapper could be found in /home/USERNAME/public_html/dollmaker/make-doll.php on line 21 Warning: imagesx(): supplied argument is not a valid Image resource in /home/USERNAME/public_html/dollmaker/make-doll.php on line 22 Warning: imagesy(): supplied argument is not a valid Image resource in /home/USERNAME/public_html/dollmaker/make-doll.php on line 23 Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/USERNAME/public_html/dollmaker/make-doll.php on line 24 I thought it something to do with allow url fopen and added php.ini and httacess stuff.No luck I emailed the script writer and he says there is no fopen stuff there,check if imagemagick is there. I know imagemagick is there for sure. I emailed support,they said ask the script writer. So,I have no clue at whats going on with it. Can anyone help me,Please. ![]()
__________________
Server: Sh83 Last edited by pogogal; June 6th, 2008 at 10:42 AM.. |
|
|
|
|
|
#2 (permalink) |
|
Surpass Developer
Excelling Contributor
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
511 posts
Gave thanks: 20
Thanked 78 times
|
It is most definitely allow_url_fopen. However SH83 is not a phpsuexec server yet so php.ini wouldn't work to enable the value. However I do see you are using a .gif file from your own domain, so you should easily be able to modify the image path in the script to /home/username/public_html/IMAGEPATH/ so it pulls the files locally, intead of trying to pull them through http
__________________
Mark Surpass Hosting Developer sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ |
|
|
|
| This user thanks Mark for this great post! | pogogal (June 6th, 2008) |
|
|
#4 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
|
In your make-doll.php script around line 21, change:
PHP Code:
PHP Code:
__________________
|
|
|
|
|
|
#5 (permalink) | |
|
Registered User
Fresh Surpasser
Joined in Dec 2005
15 posts
Gave thanks: 5
Thanked 0 times
|
I am posting part of the script here.
Quote:
$bottomscreate = imagecreatefromgif($f[1]); into $bottomscreate = imagecreatefromgif($_SERVER['DOCUMENT_ROOT'].$f[1]); now the error shows up as.. Warning: imagecreatefromgif(/home/User/public_htmlhttp://www.priyasparadise.com/dollmaker/images/head/020.gif) [function.imagecreatefromgif]: failed to open stream: No such file or directory in /home/User/public_html/dollmaker/make-doll.php on line
__________________
Server: Sh83 |
|
|
|
|
|
|
#6 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
|
Hmmm.. change:
PHP Code:
PHP Code:
__________________
|
|
|
|
| This user thanks MarkRH for this great post! | pogogal (June 6th, 2008) |
|
|
#9 (permalink) | |
|
Registered User
Comfy Contributor
Joined in Jun 2006
Lives in Idaho
Hosted on PASS61
198 posts
Gave thanks: 16
Thanked 2 times
|
Quote:
__________________
pass61: Bucks Of The Northwest Chateau HOA Idaho Digital Productions Estrela Artists MyPaperCamera |
|
|
|
|