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.

Freelance Programming Jobs


You are currently viewing our Freelance Programming Jobs as a guest. Please register to participate.
Login



 
PHP Developer required for One-Off job...
Old 05-08-2007, 07:05 AM PHP Developer required for One-Off job...
Junior Talker

Posts: 2
Trades: 0
:: PHP Developer required to write "copy script"
________________________________________________

Hi there,

I was wondering if someone could assist me with a project i'm currently working on.

Here is an overview my project and requirements;


Scenario;


I will publish an "industry news update" - just an index.html file and 3 folders containing the resources (css, images, etc).

On my webserver under the ROOT is a folder called "news", where the above files and folders are located.
Also in the "news" folder is a subfolder called "member", and within this "member1", "member2", "member3" and so on.


Folder structure overview:

|-/ROOT
|
|
|---/members/
| |
| |----/member1/
| |
| |----/member2/
| |
| |----/member3/
| |
| |----/member4/
|
|
|---/news
|
|----/index.html
|----/css/
|----/images/
|----/pdfs/



What i require is a script that will take the contents of the news folder (index.html, and the folders "css", "images" and "pdfs") and make a copy to ANY subdirectories found

under the "members" folder.

To help you understand better, the reason is as follows.

I wish to produce the news update once a week and upload to the "news" folder. I wish to then run a "copy script" so that a copy of the content within the "news" folder is made

to all members' folders.

Members can then login to an editor, and edit their index.html file to include their own custom content in addition to what i'd provided.

As this would be a weekly update, the script would need to be setup so that before performing the copy function, any previous content in the members' folders would be deleted.

in summary;

1. i upload my latest issue of the html newsletter to the "/news" folder on my server.
2. i then run the copy script, lets say "publish.php"
3. upon accessing the script, i am asked to confirm whether i wish to delete the last issue from all member folders.
4. having confirmed this, the script will then delete all content within the members' folders and copy the files/folders within the "/news" folder to each member folder.


Expected Folder structure after running script:

|-/ROOT
|
|
|---/members/
| |
| |----/member1/
| | |
| | |----/index.html
| | |----/css/
| | |----/images/
| | |----/pdfs/
| |
| |----/member2/
| | |
| | |----/index.html
| | |----/css/
| | |----/images/
| | |----/pdfs/
| |
| |----/member3/
| | |
| | |----/index.html
| | |----/css/
| | |----/images/
| | |----/pdfs/
| |
| |----/member4/
| | |
| | |----/index.html
| | |----/css/
| | |----/images/
| | |----/pdfs/
|
|
|---/news
|
|----/index.html
|----/css/
|----/images/
|----/pdfs/


I am only just beginning to learn php and any assistance with this, or a pointer in the right direction would be much appreciated.
A link to a free script would be amazing, as i couldn't seem to find one, and if this is not available under gpl/free, i would be happy to pay for someone to write this script

for me - please contact me at: anthonyv|at|officeclub.co.uk with a quote and approximate time period for completion if you are interested/able to do this.

In researching this, i thought maybe a php unzip function would do the trick if it was modified to perform the "delete previous issue" function and unzip the file/folder

structure to several locations?

just a thought.

Again, any help would be much appreciated.

Thanks in advance,

Anthony.

PS. if formatting of the folder structures above is not clear, please see the attached text file or: http://www.anthonyv.net/Anthony_V_Copy_Script_Brief.txt
Attached Files
File Type: txt Anthony_V_Copy_Script_Brief.txt (3.4 KB, 3 views)
anthonyv is offline
View Public Profile
 
 
Register now for full access!
Old 05-08-2007, 11:51 AM Re: PHP Developer required for One-Off job...
Average Talker

Posts: 29
Name: Amit Soni
Trades: 0
I think this can be done much easily with a database rather than copying files. Please PM, I can get it done for you.
--Amit.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Zitku is offline
View Public Profile Visit Zitku's homepage!
 
Old 05-09-2007, 12:04 PM Re: PHP Developer required for One-Off job...
Junior Talker

Posts: 2
Trades: 0
Thank you for your interest/support in the project.

The project is now complete and the requirement for a developer to take on the work has been satisfied.

Anthony.
anthonyv is offline
View Public Profile
 
   

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.12673 seconds with 13 queries