Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 9th, 2004, 01:15 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Thumbnails with PHP

Hello there....
I am having the worst time with what is supposed to be fairly simple procedure: making a thumbnail w/ PHP.

I used the exact script from the tutorial and modified only one line of code as follows:

php Code:
Original - php Code
  1. define(IMAGE_BASE, 'home/solegrap/public_html/')


No matter how I configure or reconfigure the IMAGE_BASE, $image_file, or $image_path -> I get errors on line #13 (3rd line provided below):

php Code:
Original - php Code
  1.   $ext = strtolower(end(explode('.', $image_path)));
  2. if ($ext == 'jpg' || $ext == 'jpeg') {
  3. Â*Â*Â*Â*$img = @imagecreatefromjpeg($image_path);   


Any help would be really appreciated!
Thx :: Taeo

Reply With Quote
  #2  
Old November 11th, 2004, 10:12 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Thumbnails with PHP

maybe it's to late ... but you've setted wrong the IMAGE_BASE:

php Code:
Original - php Code
  1. define(IMAGE_BASE, 'home/solegrap/public_html/');


IF it was a absolute path ... you should have set it like:

php Code:
Original - php Code
  1. define(IMAGE_BASE, '/home/solegrap/public_html/');

/ - indicates the root folder !!!

so as you have set it ... the path was relative. ... I think you understand ...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Thumbnails with PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway