icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Please someone help :(

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old June 6th, 2008, 10:41 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2005
15 posts
Gave thanks: 5
Thanked 0 times
Unhappy Please someone help :(

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..
pogogal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 6th, 2008, 12:15 PM   #2 (permalink)
Surpass Developer
Excelling Contributor
 
Mark's Avatar
 
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 ʎɯ
Mark is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks Mark for this great post!
pogogal (June 6th, 2008)
Old June 6th, 2008, 4:10 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2005
15 posts
Gave thanks: 5
Thanked 0 times
thanks Mark.but I just can't figure out how to edit that.

If any one wants to help ,I will give ftp access.

Thanks.
__________________
Server: Sh83
pogogal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 6th, 2008, 8:00 PM   #4 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
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:
imagecreatefromgif(http://www.priyasparadise.com/dollmaker/images/head/008.gif); 
to:
PHP Code:
imagecreatefromgif("/home/USERNAME/public_html/dollmaker/images/head/008.gif"); 
That should do it.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 6th, 2008, 8:35 PM   #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:
$realimage2 = imagecreate($_REQUEST['buildWidth'],$_REQUEST['buildHeight']);
$colour_img=imagecolorallocate($realimage2, 255, 255, 255);
imagecolortransparent($realimage2,$colour_img);
$tr=urldecode($_REQUEST['dmsString']);
$pieces = explode("##",$tr);
$f=explode("**",$pieces[0]);
$sirin=$f[1];
$visot=$f[2];

for($i=1;$i<count($pieces);$i++)
{
$f=explode("**",$pieces[$i]);
$bottomscreate = imagecreatefromgif($f[1]);
$x=imagesx($bottomscreate);
$y=imagesy($bottomscreate);
imagecopymerge($realimage2,$bottomscreate,$f[2]-$sirin,$f[3]-$visot,0,0,$x,$y,100);
}
I changed line 21.
$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
pogogal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 6th, 2008, 9:12 PM   #6 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
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:
$realimage2 = @imagecreate($_REQUEST['buildWidth'],$_REQUEST['buildHeight']);
$colour_img=@imagecolorallocate($realimage2255255255);
imagecolortransparent($realimage2,$colour_img);
$tr=urldecode($_REQUEST['dmsString']);
$pieces explode("##",$tr);
$f=explode("**",$pieces[0]);
$sirin=$f[1];
$visot=$f[2];

for(
$i=1;$i<count($pieces);$i++)
{
$f=explode("**",$pieces[$i]);
$bottomscreate imagecreatefromgif($f[1]);
$x=imagesx($bottomscreate);
$y=imagesy($bottomscreate);
imagecopymerge($realimage2,$bottomscreate,$f[2]-$sirin,$f[3]-$visot,0,0,$x,$y,100);

to
PHP Code:
$realimage2 = @imagecreate($_REQUEST['buildWidth'],$_REQUEST['buildHeight']);
$colour_img=@imagecolorallocate($realimage2255255255);
imagecolortransparent($realimage2,$colour_img);
$tr=urldecode($_REQUEST['dmsString']);
$pieces explode("##",$tr);
$pieces str_replace('http://www.priyasparadise.com/','/home/USERNAME/public_html/',$pieces);
$f=explode("**",$pieces[0]);
$sirin=$f[1];
$visot=$f[2];

for(
$i=1;$i<count($pieces);$i++)
{
$f=explode("**",$pieces[$i]);
$bottomscreate imagecreatefromgif($f[1]);
$x=imagesx($bottomscreate);
$y=imagesy($bottomscreate);
imagecopymerge($realimage2,$bottomscreate,$f[2]-$sirin,$f[3]-$visot,0,0,$x,$y,100);

Replace USERNAME above with your real username. I think that will find all occurrences of your domain url and replace with the filepath.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks MarkRH for this great post!
pogogal (June 6th, 2008)
Old June 6th, 2008, 9:33 PM   #7 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2005
15 posts
Gave thanks: 5
Thanked 0 times
OMG Mark,You are my god.I love so much.

It works yayyyyy.

Thanks so very much,I really appericate it
__________________
Server: Sh83
pogogal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 6th, 2008, 10:12 PM   #8 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
Cool beans Glad it worked for you.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 25th, 2008, 4:14 PM   #9 (permalink)
Registered User
Comfy Contributor
 
robinson.jason's Avatar
 
Joined in Jun 2006
Lives in Idaho
Hosted on PASS61
198 posts
Gave thanks: 16
Thanked 2 times
Quote:
Originally Posted by Mark View Post
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
So what about pass61? Is this a server that is a "phpsuexec server"? I have installed this software package (eTicket) many times on my client accounts but this is the first time that I am getting the "URL file-access" error.
robinson.jason is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On