Kayden Posted January 30, 2009 Share Posted January 30, 2009 I have a user that wants to practice doing some editing on our PHP website and not have it affect the live site. Since it'd work for html, I tried just making a copy of the directory and then dragging in the index.php. It kinda worked, but half the content is missing. I know pretty much nothing about PHP. The site was set up by a contractor before I started working here. How do I set it up so my user can practice making changes on a copy? Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/ Share on other sites More sharing options...
premiso Posted January 30, 2009 Share Posted January 30, 2009 You would have to either put it in a DIR and re-do all your static links/variables or register another domain and create a development site. Or just tell him to install WampServer 2.0 on his box, copy all the data and work off of that. He just has to be wary that differences in PHP versions can effect the files and to backup and production files before committing. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750807 Share on other sites More sharing options...
Kayden Posted January 30, 2009 Author Share Posted January 30, 2009 ??? So I should tell them there's nothing I can do? I honestly have no idea what you said, and I'm the smart one here. The end user wouldn't even know how the ask the question. Kinda begs the question why she wants to edit the website... She just wants to do simple text editing for the most part, I believe. It looks like all the pathing is relative, but when I just drag the index.php into firefox, I get "EOD; } ?>" at the top of the screen and none of the (java?) menus appear. I'm a fan of the simplest solution. Person 1 wants to be able to do some changes and then hand it off to person 2 who will do more changes, so the less extra software the better. A new domain is pretty much out of the question. The copy is stored on a centralized location. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750812 Share on other sites More sharing options...
premiso Posted January 30, 2009 Share Posted January 30, 2009 Then it is basically a hard deal to do. Without changing to do Subversion control, or a development server. The folder idea may work, but you have the issue that if that file uses paths etc they have to be updated before put onto production. So unless they are willing to learn Subversion Control, or buck up the money for a dev server there is nothing you can do. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750817 Share on other sites More sharing options...
Kayden Posted January 30, 2009 Author Share Posted January 30, 2009 :-\ Wow... PHP sure seems like it's a hassle. Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750818 Share on other sites More sharing options...
premiso Posted January 30, 2009 Share Posted January 30, 2009 :-\ Wow... PHP sure seems like it's a hassle. Thanks for the help. Any language would require something like that if you do not want them to mess up, ASP, PHP, Perl(CGI). HTML is probably the only one that wouldn't, however, HTML would still need image paths updated. That and HTML really is not a programming language more of a Hyper Text Markup Language Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750822 Share on other sites More sharing options...
Kayden Posted January 30, 2009 Author Share Posted January 30, 2009 Would it be possible to create another instance on the IIS server without getting a new domain? We don't need it to be accessible on the internet. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750833 Share on other sites More sharing options...
premiso Posted January 30, 2009 Share Posted January 30, 2009 Would it be possible to create another instance on the IIS server without getting a new domain? We don't need it to be accessible on the internet. Not another instance no, however if it is internal, you should be able to setup a psuedo domain. I do not know how to do this on IIS, you can probably google, multiple sites on IIS and see what comes up. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750835 Share on other sites More sharing options...
Kayden Posted January 30, 2009 Author Share Posted January 30, 2009 I set it up by just internal IP and I was able to get it set up to do a directory listing, but when I disabled directory listing, all I could get was something about a bad host request. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750839 Share on other sites More sharing options...
Kayden Posted January 30, 2009 Author Share Posted January 30, 2009 This isn't really solved... I just don't need an answer now. Quote Link to comment https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/#findComment-750857 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.