Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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 Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 30th, 2001, 12:36 PM
m0nk3y's Avatar
m0nk3y m0nk3y is offline
Certified m0nk3y!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 437 m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 14 h 23 m 38 sec
Reputation Power: 7
Send a message via MSN to m0nk3y
re write question

I am currently using php triad and i want to use the rewrite function. I wanted to know how to show:

/mysql/article name/

from:

article.php?cat=11&id=123

I want to use the sam thing as devshed use, how would i do this, and is it possible using php triad??
__________________
---------
Linux...Macs.... there boring, they just work....... Windows users on the other hand have all the fun!!
---------
PHP | MySQL | Apache | Zend

Reply With Quote
  #2  
Old September 30th, 2001, 01:18 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
do you want to take articles from mysql db or from flat files? if flat files then you need a table where you'll have article id and what filename it points on. Then just select filename with requested id form the table and include it. If you're using mysql db then all you'll have to do it just select articles from the tabe with needed id and category.
did that make sense to anyone?
__________________
And you know I mean that.

Reply With Quote
  #3  
Old September 30th, 2001, 01:52 PM
m0nk3y's Avatar
m0nk3y m0nk3y is offline
Certified m0nk3y!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 437 m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level)m0nk3y User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 14 h 23 m 38 sec
Reputation Power: 7
Send a message via MSN to m0nk3y
i want to take the article from a MySQL database, but ur not really answering the question, sorry to sound bad, but that doesnt really help me, i want it to show /articles/mysql/blah blah/ instead of articles.php?cat=2&id=1234

I want to same thing that devshed use such as:

/Server_Side/MySQL/PerfectJob2/

Reply With Quote
  #4  
Old September 30th, 2001, 02:02 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
it wasn't supposed to help :D

I dont think you can show url without actually 'being' there. I mean apache's url rewriting abilities won't help - you actully have to have those folders and files. I am not sure how its done on devshed, but you could write a script which on submition of every article you write will make a new specified folder and put files in it pointing on sql db with article.
Again, you better ask mods how its done here, but I would amagine something close to what I described.

Reply With Quote
  #5  
Old October 1st, 2001, 08:01 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> i want it to show /articles/mysql/blah blah/ instead of articles.php?cat=2&id=1234

PHP user-friendly URL has been well-asked and answered in Apache forum. Do a search in Apache forum under my username with keywords like: RewriteCond, internal redirect.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > re write 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


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





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