Strange problem

Started by woss, February 02, 2008, 06:41:52 PM


I've read following topics,91.0.html,33.0.html

and I didn't found anything to help me understand where is problem with my copy of a script.
So, let's begin:
I'm running it on localhost (php5, XP proffessional).
folder for my thumbs is X:/www/htdocs/subdir/snap/thumb/
so my URL is http://localhost/subir/snap/webthumb.php   for accessing webthumb.
When I want to create thumb of my root folder I'll call this URL http://localhost/subir/snap/webthumb.php?url=http://localhost
the output is text
But when I look into source cod i get more error, the same error that i get if I want to call this script with all params using XHR.


IHDR�����������5h<br />
<b>Warning</b>:  imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png:  fatal libpng error: zlib error in <b>X:\www\htdocs\subdir\snap\image.class.php</b> on line <b>46</b><br />
<br />
<b>Warning</b>:  imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png error: setjmp returns error condition in <b>X:\www\htdocs\subdirsnap\image.class.php</b> on line <b>46</b><br />

Only once was worked ??? ??? I get then a small  image of a website.

Can anyone help pls ??? :)


I just solve my problem.
Somehow I don't have installed necessary drivers for generating PNG images. After changing extension form PNG to JPG one step of my problem was solved.

Still, I have problem with output when I try to access webthumb.php via XHR. I get strange strings, probably that is my snapped image(in code)  :) :).
I'm trying to modify your script to work with mysql database, but I didn't get too far.
The idea is that a visitor can enter URL and additional informations like: title, description, keyword(for searching), kategory.
Then all that infos will be stored in a database together with a name of snapped image.

What do you think about that?



Here is an updated link from the previous post because the page has been moved