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.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
switching files and renaming
Old 09-26-2010, 10:47 AM switching files and renaming
Banned

Posts: 408
Name: mushget
Trades: 0
can anyone help me to create something that will switch files in my settings/conf.php?

i have several different files that i have to rename to conf.php to get it to work correctly for what im doing. can i make a dropdown box or something that will select one of my files and replace it with conf.php but also remember the original file name so when switched again it goes back to whatever it was and the next file i pick will become conf.php

basically i need to change conf2.php or conf3.php or whatever i name the file and so on to conf.php but remember the original filename when i switch to another file so that i always know which conf file it is. any help is very appreciated as this is getting tedious having to switch conf.php so many times a day. conf.php is for a crawler im running and i am trying to change conf.php to the correct file that my crawling needs are for, for that task without having to manually rename it every single time.
mushget is offline
Reply With Quote
View Public Profile Visit mushget's homepage!
 
 
Register now for full access!
Old 09-27-2010, 02:32 AM Re: switching files and renaming
Junior Talker

Posts: 1
Name: neion sk
Trades: 0
Theres the rename function

im sure youre able to make a dropdown box yourself?
if not just google for a dropdown tutorial on google

then use mysql to save old name and retrieve it when changed to something else

BUT a better way would probably to leave conf empty and just have the files with the different conf in then grab the data from the file you want and place it into the current conf and do it like that i hope this helps.



removed

Last edited by chrishirst; 09-27-2010 at 06:40 PM..
neionsk is offline
Reply With Quote
View Public Profile
 
Old 09-27-2010, 06:42 PM Re: switching files and renaming
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Why not just copy the file over?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to switching files and renaming
 

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.38227 seconds with 12 queries