Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Directory - driving me mad!
Old 03-07-2008, 05:26 PM PHP Directory - driving me mad!
Average Talker

Posts: 24
Location: Boston, MA
Trades: 0
Hi Guys.

I'm developing a PHP Directory using the PHPMyDirectory script. Currently it's using mod rewrite so the URLs are displaying in this format:

http://domain.com/plumbers, http://www.domain.com/attorneys and so on.

I intend to develop this further into cities, so each city has it's own folder. EG:

http://www.domain.com/city/plumbers, http://www.domain.com/city/attorneys, etc

This would be very easy using simple PHP modifications... however I intend to give a user unique access to each city/folder. They would be the 'owner' of that city and modify the listings accordingly.

The only way I can see to do this is to create a separate folder for each city, and then upload the PHPMyDirectory script to each directory. This wouldn't be a problem, but if I end up with 100 different cities then it will take up so much space (and I'd need 100 different MySQL databases, etc!)

Is there any other easy way i can accomplish this? Thanks!
spunko2010 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-07-2008, 07:19 PM Re: PHP Directory - driving me mad!
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
If your using mod rewrite, I wouldn't see why you would need physical directory locations for each city and user. If it were me, I would use the following schema:

URL: http://www.domain.com/city/user/admin/

MOD REWRITE TRANSLATE: http://www.domain.com/user_admin.php?city=city&user=user
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Directory - driving me mad!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09973 seconds with 12 queries