|
|||||||
Join now to download all the free website templates or post on the forum. If you have never been on a forum before read the
FAQ. It's quick, easy and free to join!
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
post the cde you tried, not the script
here is the link http://www.webcheatsheet.com/php/cre...ail_images.php incase you want to look at again.
__________________
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants |
|
||||
|
Thank ishkey for get the link(you need to teach me how to using Uncle Google :P).
So here the code in index.php: PHP Code:
The function is reside on thumbnail_generator.php and it return error: Warning: fileatime() [function.fileatime]: stat failed for images/caricature/thumbs/bollywood dancing.jpg in /...../public_html/index.php on line 71 Warning: fileatime() [function.fileatime]: stat failed for images/caricature/thumbs/bollywood dancing.jpg in /...../public_html/index.php on line 71 Fatal error: Call to undefined function createthumbs() in /...../public_html/index.php on line 73 But when I put the function into index.php, it workin. thanks in advance ishkey... Cheers, AlafSiber
__________________
**NOTE** DoNT CLiCK THiS!!!! |
|
||||
|
Could you supply your "Declarations for the variables"
$pathToThumbs = ""; $pathToImages = ""; $thumbWidth = ""; The reason I ask... Quote:
__________________
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants |
|
||||
|
Thanks again ishkey already configured it since I tried to echo the path inside the function since you last post make me thinking it might be becoz theres no dir been supply... actually the dir parameter have been supply but a different one(doesnt exists in the server lol) so now already edit and it solved. Also I change the script to make the thumbnail for specified file only instead of checking all the files in that folder.
Again thank man, you point me into right direction Love ya mate Cheers, AlafSiber
__________________
**NOTE** DoNT CLiCK THiS!!!! Last edited by alafsiber; 06-20-2009 at 06:16 PM. |
|
||||
|
Got to watch those virtual paths...
Check which verson of GD is installed on your server, if GD2 then change in the code imagecopyresized to imagecopyresampled imagecopyresampled will give you a higher quality graphic/thumbnail Quote:
http://www.tuxradar.com/practicalphp/11/2/12
__________________
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants |
|
||||
|
Yups I have changed that and thanks again Ishkey...your my man... No doubt the quality is much better than using imagecopyresized now the thumbnail is much better quality...
Gonna give you a rep here ... err how actually to give it can you teach meCheers, AlafSiber
__________________
**NOTE** DoNT CLiCK THiS!!!! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|