Welcome to Gaia! :: Dynamic image help. | Forum

Register FaceBook Login Login

 

 
GST

Welcome to Gaia's forums, where millions of members gather to discuss random stuff, make new friends,
complain about life, argue about nothing, laugh at dumb pictures, discuss serious issues and/or curse like sailors.

Lurking is creepy. Quit skulking in the shadows and join the conversation!

Register to reply

Advertisement
Share:  
forum:43, topic:56006399
Story:

1.) Fell in love with those quote sigs some of the regs here have.
2.) Found time to take action on this.
3.) Found this guide, and tackled it without PHP knowledge.
4.) Somehow, failed.

Questions:

1.) What's that code-drop link again?
2.) After I've posted the code, help with fixing it please?
 
     
 
www.paste2.org is my preference right now 'cause it keeps the useless s**t out of the way.

And of course.
     
Sorry for the late reply.

http://paste2.org/p/504247
 
     
 
Works for me.
What's the issue you're getting?
     
I want to be able to preview it so that I can finish it (position the text, etc.), but when I try to see it with an html file linking to it as an image, I get a broken image icon.

I haven't hosted it yet.
 
     
 
If your PHP is putting out any errors it will break the image, and since your script is generating an image as it's output, you won't see the error.

You can try disabling the bit of code that generates the image to see if you get any errors from the server before the image would be generated.
     
The code bolweevil's referring to are the header() and imagepng() lines.
 
     
 
Seeing as I'm playing "script kitty" and don't know PHP, I'm not sure what Bol's getting at. Does he want me to remove those lines to try to find out what's wrong?
     
Taiyuh
Seeing as I'm playing "script kitty" and don't know PHP, I'm not sure what Bol's getting at. Does he want me to remove those lines to try to find out what's wrong?
You can remove them, or comment them out by adding two forward slashes to the beginning of the lines you do not want to be processed.

Edit:
http://paste2.org/p/504300
 
     
http://tinyurl.com/yjq8h58
http://badges.mypersonality.info/badge/0/5/55785.png
http://tinyurl.com/9n5zf
 
Yeah, comment them out (put the double forward slash infront of them like you see with two of the lines in the one you put on paste2 for us), that'll temporarily disable them without you having to worry about losing them.

Though, are you testing this on your home computer, or server? If it's your home computer, you need to be running server software with PHP in order to preview/test it locally.
     
The Last Rydian
Though, are you testing this on your home computer, or server? If it's your home computer, you need to be running server software with PHP in order to preview/test it locally.

That's my answer. I'm running it on my home computer. I'll go set up a server.

Thanks.
 
     
 
XAMPP's an apache install with PHP already included. Extract/install it into a folder, put your crap in the htdocs folder (or a subdirectory), then start the server (the window will vanish once it's running) and you'll be able to access the htdocs directory through "localhost" or "127.0.0.1" in the browser.
     

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

We will be phasing out support for your browser soon.

Please upgrade to one of these more modern browsers.