473,395 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to give personal user url on a dating website just like MySpace does?

PD
Hello everyone,

I had posted a question regarding how to design high traffic fast
dating website on different PHP groups. I got a lot of useful
responses. I have added links to all the posts below for reference.

I am back with another question regarding the dating website. How do I
go about creating personal user url on the site like it is done on
MySpace.com

The personal url for user1 will look like www.myWebSite.com/user1

The first solution I know is to create a folder for each user and put a
index.php script that show the user profile. But then there would be a
lot of folders. how can I catch the user1 from the url request string
www.myWebSite.com/user1
The ssecond solution would be to set the page not found script in
Apache. But then again I need to capture the 'user1' from the request
string.

I appreciate your help and welcome any suggestions.

Thank you.


Discussion 1-
http://groups.google.com/group/Profe...6e1b11a08c5cf2
Discussion 2-
http://groups.google.com/group/php.g...b3b100d70a196e
Discussion 3-
http://groups.google.com/group/PHP-H...531288b538882e
Discussion 4-
http://groups.google.com/group/mysql...cff7c40c161889
Discussion 5-
http://groups.google.com/group/OOP-P...a2c6e36c3bc006
Discussion 6-
http://groups.google.com/group/PHP-M...c403cec4bc14e8
Discussion 7-
http://groups.google.com/group/comp....12f83d1cdb278d
Discussion 8-
http://groups.google.com/group/alt.p...4bf3f43c74f633

May 8 '06 #1
4 3789

PD wrote:
Hello everyone,

I had posted a question regarding how to design high traffic fast
dating website on different PHP groups. I got a lot of useful
responses. I have added links to all the posts below for reference.

I am back with another question regarding the dating website. How do I
go about creating personal user url on the site like it is done on
MySpace.com

The personal url for user1 will look like www.myWebSite.com/user1

The first solution I know is to create a folder for each user and put a
index.php script that show the user profile. But then there would be a
lot of folders. how can I catch the user1 from the url request string
www.myWebSite.com/user1
The ssecond solution would be to set the page not found script in
Apache. But then again I need to capture the 'user1' from the request
string.

I appreciate your help and welcome any suggestions.

Thank you.


Only thing I could think of would be mod_rewrite on the Apache end in
this case, sorry..

Phil


Discussion 1-
http://groups.google.com/group/Profe...6e1b11a08c5cf2
Discussion 2-
http://groups.google.com/group/php.g...b3b100d70a196e
Discussion 3-
http://groups.google.com/group/PHP-H...531288b538882e
Discussion 4-
http://groups.google.com/group/mysql...cff7c40c161889
Discussion 5-
http://groups.google.com/group/OOP-P...a2c6e36c3bc006
Discussion 6-
http://groups.google.com/group/PHP-M...c403cec4bc14e8
Discussion 7-
http://groups.google.com/group/comp....12f83d1cdb278d
Discussion 8-
http://groups.google.com/group/alt.p...4bf3f43c74f633


May 8 '06 #2
NC
PD wrote:

How do I go about creating personal user url on the site
like it is done on MySpace.com

The personal url for user1 will look like www.myWebSite.com/user1


Use mod_rewrite:

http://httpd.apache.org/docs/mod/mod_rewrite.html

With mod_rewrite, you can define URL rewriting rules. Say, every time
Apache receives a request to show /user1, it would actually show, say,
/index.php?user=user1. Since no redirection is involved, the user
still sees /user1 in her browser's address bar...

Cheers,
NC

May 8 '06 #3
On Mon, 08 May 2006 14:30:09 -0700, PD wrote:
The ssecond solution would be to set the page not found script in Apache.
But then again I need to capture the 'user1' from the request string.


As a way of helping you find out what you need rather than telling you the
answer, the best way of finding this out is to set the ErrorDocument in
Apache to be a script called debug.php where the contents of that file is
just:

<?php
phpinfo();
?>

Then look at the $_SERVER variables to see which ones contain the
information you need.

Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

May 10 '06 #4
mod_rewrite is how they do it.

"PD" <pd****@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
Hello everyone,

I had posted a question regarding how to design high traffic fast
dating website on different PHP groups. I got a lot of useful
responses. I have added links to all the posts below for reference.

I am back with another question regarding the dating website. How do I
go about creating personal user url on the site like it is done on
MySpace.com

The personal url for user1 will look like www.myWebSite.com/user1

The first solution I know is to create a folder for each user and put a
index.php script that show the user profile. But then there would be a
lot of folders. how can I catch the user1 from the url request string
www.myWebSite.com/user1
The ssecond solution would be to set the page not found script in
Apache. But then again I need to capture the 'user1' from the request
string.

I appreciate your help and welcome any suggestions.

Thank you.


Discussion 1-
http://groups.google.com/group/Profe...6e1b11a08c5cf2
Discussion 2-
http://groups.google.com/group/php.g...b3b100d70a196e
Discussion 3-
http://groups.google.com/group/PHP-H...531288b538882e
Discussion 4-
http://groups.google.com/group/mysql...cff7c40c161889
Discussion 5-
http://groups.google.com/group/OOP-P...a2c6e36c3bc006
Discussion 6-
http://groups.google.com/group/PHP-M...c403cec4bc14e8
Discussion 7-
http://groups.google.com/group/comp....12f83d1cdb278d
Discussion 8-
http://groups.google.com/group/alt.p...4bf3f43c74f633

May 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Joshua Beall | last post by:
Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? Should the password be plain text? Hashed? Not...
5
by: Michael Lawrence | last post by:
I am looking to start up a comprehensive Adult dating website and I need pre-made PHP scripts to set up the back-end for this project. Preferably someone out there has a set of pre-made scripts...
7
by: fbionyourtail | last post by:
Been looking for a good PHP based dating script that is reasonably priced for a while. Several come close but are unfinished. I've already been burned by scripts almost done and then a complete...
4
by: marvado | last post by:
Hi, Does anybody know of a good and FREE dating/personals script? I need to put one on my website and looked everywhere for it. Only I found was AzDGDating, but doesn't cover many aspects of a...
1
by: magia | last post by:
Start or professionally redesign your dating website with MAGIA Dating Site Design (www.qesign.com/psd-dating.shtml). Online dating is an ever expanding industry! *** Very attractive stylish...
1
by: mac | last post by:
Hi, I dont have sql 2005 express on my machine. Instead i have sql server 2005 CTP. When i build and run the website, i get following error. What are necessory steps required to run site. ...
1
by: amiri.arash | last post by:
Hi! I want to feed the news section of my band - homepage with the mySpace blog of our band (in order to keep redundancy low). The band homepage is written in PHP. I wrote an xsl-stylesheet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.