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:
  #1  
Old February 2nd, 2004, 05:44 AM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to mjar81
Image Gallery question

I'm running an ISS webserver with PHP 4.3.4 using the php_gd2.dll extention enabled.

i have the basic image gallery up and running, but i'm wondering how to get the gallerys to display when the folders have special characters in them.

i want to prefix each folder with a date but i can't use the "-" character.

any ideas on how i might go about solving this problem?

Thanks for any help in advance,
mjar81

Reply With Quote
  #2  
Old February 2nd, 2004, 12:37 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to notepad
RE: Image Gallery question

the code checks to make sure that folder names are alpha-numeric characters only, so find that portion of the code and strip out "-" symbols before it runs the check. that should take care of it

Reply With Quote
  #3  
Old February 3rd, 2004, 02:08 PM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to mjar81
RE: Image Gallery question

hmm... i did a search of all my code and i can't seem to locate the portion that checks for alpha-numeric characters...

i thought i understood the code, but i guess not... i'm a newbie!

although i did manage to apply a css sheet to the page!

thanks for any help... i'm trying to learn!
mjar81

Reply With Quote
  #4  
Old February 3rd, 2004, 02:50 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to notepad
RE: Image Gallery question

it's right at the top there. change:
php Code:
Original - php Code
  1.  
  2. if(!ctype_alnum(str_replace(' ', '', $value)))
  3.     $invalid = true;

to something along the lines of:
php Code:
Original - php Code
  1.  
  2. // what characters do u want to allow?
  3. $chars = array(' ', '-');
  4. if(!ctype_alnum(str_replace($chars, '', $value)))
  5.     $invalid = true;

Reply With Quote
  #5  
Old February 3rd, 2004, 04:17 PM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to mjar81
RE: Image Gallery question

AWESOME! that did it! thanks for all the help... if you want to see my gallery in action, only to see the way cool CSS sheet i applied, head on oaver to www.markrickert.net and click on the link underneath the header graphic!

thanks again for your help!
mjar81

Reply With Quote
  #6  
Old February 3rd, 2004, 04:57 PM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to mjar81
RE: Image Gallery question

i also just added a "HOME" navigation button to the page with the code:

php Code:
Original - php Code
  1.  
  2. print('<tr><td align="center" colspan="' . COLS . '">
  3. <a href="'.$SERVER['PHP_SELF'].' ?nav=">HOME</a>
  4. </td></tr><td align="center" colspan="' . COLS . '">');


it works well!
mjar81

Reply With Quote
  #7  
Old February 3rd, 2004, 05:30 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to notepad
RE: Image Gallery question

looks good!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Image Gallery question


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek