Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/143160-solved-need-to-set-up-testing-for-php/
Share on other sites

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.

???

 

So I should tell them there's nothing I can do?  ;D

 

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.

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.

:-\

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 :P

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.