Jump to content


Not sure what you'd call it.


1 reply to this topic

#1 Kristian

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 28 December 2006 - 05:12 AM

Ok, dont exactly know what ill call is but i need something that will create a
folder under
/public_html/stats/(username)

and have the following things in it.
/public_html/stats/(username)/config_radio.php
/public_html/stats/(username)/radio.php
/public_html/stats/(username)/radio_stats.php
/public_html/stats/(username)/popupradio.php
/public_html/stats/(username)/readme.htm
/public_html/stats/(username)/index.htm

(index.htm is just a blank page)

(username) being the username that they have signed up with, reason for this is being that they can sign up and then be able to edit the pages in that folder if there username = the folder name.

Is this by anychance possible?

Thanks, Kristian

Edit: if you would like to get the files content download like is below,
Click here to download it

#2 Chaos King

    Senior Programmer

  • P2L Staff
  • PipPipPip
  • 676 posts
  • Gender:Male
  • Location:Florida

Posted 06 January 2007 - 10:11 AM

Uhm, the trick is that you don't actually create the folders, you use technology called mod_rewrite.

http://www.pixel2lif.../mod_rewrite/1/

If you did want to create those directories, you could use php's mkdir

http://www.php.net/mkdir

If you wanted to create and manage files, you can use the file handlers.

http://www.php.net/fopen

I would not recommend anyone writing a tutorial on how to use that exact scenario due to possible security risks, but be my guess, I would have fun hacking into that.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users