Current location: Hot Scripts Forums » General Community » Script Requests » Need Automatic Directory Creator Script


Need Automatic Directory Creator Script

Reply
  #1 (permalink)  
Old 12-23-04, 04:56 PM
doncorn doncorn is offline
New Member
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Need Automatic Directory Creator Script

We have a ton of 'sponsors' that we set up on our site as beneficiaries. To make their job of marketing 'their site' to others, we have created a common site that uses CFM to manipulate the scripts in the menu bar, so it looks like:

http://www.DomainName.com/xxxxxx/

Where xxxxxxx is the 6-digit number that uniquely identifies the beneficiary.

What I need is a simple script that:

1. Upon signup, creates a sub-directory (/xxxxxx/) on the server.
2. Pulls in 2 files (top.html and index.html)
3. Opens up index.html and replaces the placeholder ('000000') with their beneficiary number ('xxxxxx').
4. Closes the file.

That's it. Sounds simple, but I'm NOT a programmer, just a guy who's learned a few things about web pages and CFM scripts. Any help appreciated. If possible, post here and send me email: doncorn@hotmail.com
Reply With Quote
  #2 (permalink)  
Old 12-24-04, 01:11 AM
RI-VVM RI-VVM is offline
Newbie Coder
 
Join Date: Oct 2004
Location: Zaporizhzhe, Ukraine
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Hi.
I can make this for you... but I don't understent point 3.
This is very simple and I make this for free
__________________
Redintek Inc.
Advanced Internet Technologies
Reply With Quote
  #3 (permalink)  
Old 12-25-04, 01:11 AM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
well what I would do in this situation is make one folder with all the files, then use mod_rewrite to create virtual directories. just make sure that no real folder names are only numbers.

Use mod_rewrite to forward any directory consisting of only numbers to the appropriate file inside the real folder, forwarding the number info which is then used to generate the page.

Now someone hop to, I unfortunately haven't got the time
Reply With Quote
  #4 (permalink)  
Old 12-25-04, 05:39 AM
feha feha is offline
Wannabe Coder
 
Join Date: Mar 2004
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Ready SignUp Script?

If you have Ready SignUp Script?

I can make a function that creates new dirs and creates asked files with in that directory.
__________________
www.flashwebshop.org/
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory browsing script needed (UNIX) uxx Script Requests 0 10-21-04 09:56 AM
Automatic directory reader Heçtor Banehearted Script Requests 8 09-13-04 10:02 PM
Add URL to human edited Directory 24-7 Shopping Directory Traffic Exchange 1 08-25-04 07:27 PM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 06:02 AM
international directory post your url for free gemsergio Traffic Exchange 0 01-08-04 06:04 PM


All times are GMT -5. The time now is 10:57 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.