SunQuest
           Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

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:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old November 30th, 2005, 07:17 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
I'm pretty sure

this has to be set up on the server
but I want users profiles to be www.sitename.com/username
but please can someone explain to me how to set this up on my server, and if it's not done via my server how is it done

Reply With Quote
  #2  
Old December 4th, 2005, 10:57 PM
philo23 philo23 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Warrington UK
Posts: 28 philo23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: I'm pretty sure

is this using php? or not

Reply With Quote
  #3  
Old December 4th, 2005, 10:58 PM
adam4491 adam4491 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 adam4491 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: I'm pretty sure

Yeah, it's using PHP

Reply With Quote
  #4  
Old December 4th, 2005, 11:05 PM
philo23 philo23 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Warrington UK
Posts: 28 philo23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: I'm pretty sure

in the action script of the user sign up form place this code after the users been add to the DB or something
php Code:
Original - php Code
  1.  
  2. mkdir($_POST['username'], 7777);

if you need any file use this
php Code:
Original - php Code
  1.  
  2. $file = fopen($_POST['username'].'/filename.ext','w');
  3. fwrite($file, 'the contents of the file');
  4. fclose($file);

ok?

Reply With Quote
  #5  
Old December 4th, 2005, 11:16 PM
adam4491 adam4491 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 adam4491 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: I'm pretty sure

Hey, I'm alittle confused about the second PHP bit

php Code:
Original - php Code
  1. $file = fopen($_POST['username'].'/filename.ext','w');
  2. fwrite($file, 'the contents of the file');
  3. fclose($file);
  4. ?>



please can you explain what this is, what it does, and where do I put it on the page.

Reply With Quote
  #6  
Old December 5th, 2005, 07:22 AM
philo23 philo23 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Warrington UK
Posts: 28 philo23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: I'm pretty sure

heres one with comments
php Code:
Original - php Code
  1.  
  2. <?php
  3. $file = fopen($_POST['username'].'/filename.ext','w');
  4. // open a link to a non-existant file. the one you MIGHT want to create
  5. fwrite($file, 'the contents of the file');
  6. // write to this non-existant file, which will now exist
  7. fclose($file);
  8. // close the link
  9.  

Reply With Quote
  #7  
Old December 6th, 2005, 06:45 AM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,935 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 1 h 32 m 31 sec
Reputation Power: 3
Orkut
RE: I'm pretty sure

erm surely dont you want .htaccess? If your redirecting /username to some other path or script.....

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > I'm pretty sure


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 2 hosted by Hostway