General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 17th, 2002, 12:05 AM
dhaval_adams dhaval_adams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Dubai
Posts: 24 dhaval_adams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dhaval_adams
Talking Dynamic generation of filename..

Hi!

I wanted to know how could we generate automatic html filenames like download.com does...and many of the sites like techrepublic.com do..

dow1345,,..3434.3,..24.html or something like that...


Thank You

Dhaval

Reply With Quote
  #2  
Old November 17th, 2002, 01:32 AM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
There are many methods to this, but I prefer to use Apache's MOD_REWRITE

Best Wishes,
Joe of 4Life
__________________
Check out 4Life today!

Last edited by Joe4JC : November 17th, 2002 at 08:19 PM.

Reply With Quote
  #3  
Old November 17th, 2002, 06:35 AM
dhaval_adams dhaval_adams is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Dubai
Posts: 24 dhaval_adams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dhaval_adams
Howz that possible?

Could you please tell me how is it possible using the module that you are talking about....and what is the advantage of doing this...

Thank You
Dhaval

Reply With Quote
  #4  
Old November 17th, 2002, 08:33 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
MR Documentation

Here is what I use:
Quote:
RewriteRule ^example/(([-_a-zA-Z0-9]*)/?)?(([-_a-zA-Z0-9]*)/?)?(([-_a-zA-Z0-9]*)/?)?$ /tezt.php?var1=$2&var2=$4&var3=$6 [L]


This allows you to use the url "/example/foo/bar/joe/" to go to "tezt.php?var1=foo&var2=bar&var3=joe".

A modification that would suit your purpose:
Quote:
RewriteRule ^(([-_a-zA-Z0-9]*),?)?(([-_a-zA-Z0-9]*),?)?(([-_a-zA-Z0-9]*),?)?.html$ /tezt.php?var1=$2&var2=$4&var3=$6 [L]


Please note that the above code is only an example that has not been tested.

The above code would go inside of your httpd.conf or .htaccess file.

I hope that helps!

Cheers,
Joe of 4Life

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Dynamic generation of filename..


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 | 
  
 

Iron Speed




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