Re: [PHP] mirroring website

2009-06-21 Thread Nitsan Bin-Nun
Create 2 different configuration files, load the appropriate one after
checking whether $_ENV['dev'] is set to 1 or 0 then all you have to do is to
set the environment variable 'dev' to 1 or 0 through .htaccess file.
After setting this up all you have to do is to rewrite the files whenever
you want to update the files in the production server or vice versa.

Just my $0.02 ;)

Nitsan

On Sun, Jun 21, 2009 at 4:56 PM, Lars Nielsen l...@mit-web.dk wrote:

 Hey

 I have the following issue! I want to develop my website on my local
 machine, and then upload the entire developed site to a production
 server. What is the best strategy to do that?
 I have been looking at a php mirroring script but that was about 5 years
 old! Is'nt there a better/newer approach?

 By the way... I'm using Fedora linux with LAMP (php5)

 best regards
 Lars Nielsen
 www.mit-web.dk


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mirroring website

2009-06-21 Thread Richard Heyes
Hi,

 I have the following issue! I want to develop my website on my local
 machine, and then upload the entire developed site to a production
 server. What is the best strategy to do that?
 I have been looking at a php mirroring script but that was about 5 years
 old! Is'nt there a better/newer approach?

I used to use rsync (with a bunch of options) whenever I did this.
With you being on Linux, it would be trivial to automate it with a
script.

-- 
Richard Heyes
HTML5 graphing: RGraph (www.rgraph.net - updated 20th June)
PHP mail: RMail (www.phpguru.org/rmail)
PHP datagrid: RGrid (www.phpguru.org/rgrid)
PHP Template: RTemplate (www.phpguru.org/rtemplate)
PHP SMTP: http://www.phpguru.org/smtp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mirroring website

2009-06-21 Thread Lars Nielsen
Thanks for the cents.

I will try a combination of multiple configuration files and rsync!

/Lars
søn, 21 06 2009 kl. 16:39 +0100, skrev Richard Heyes:
 Hi,
 
  I have the following issue! I want to develop my website on my local
  machine, and then upload the entire developed site to a production
  server. What is the best strategy to do that?
  I have been looking at a php mirroring script but that was about 5 years
  old! Is'nt there a better/newer approach?
 
 I used to use rsync (with a bunch of options) whenever I did this.
 With you being on Linux, it would be trivial to automate it with a
 script.
 
 -- 
 Richard Heyes
 HTML5 graphing: RGraph (www.rgraph.net - updated 20th June)
 PHP mail: RMail (www.phpguru.org/rmail)
 PHP datagrid: RGrid (www.phpguru.org/rgrid)
 PHP Template: RTemplate (www.phpguru.org/rtemplate)
 PHP SMTP: http://www.phpguru.org/smtp
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mirroring Website

2001-10-03 Thread Phil Driscoll

On Wednesday 03 October 2001 5:21 am, Jon Shoberg wrote:
 Nope, teh pages are actually hosted on a (gasp ...) NT machine.  I need
 something that will suck down and write out a pure static .html mirror of
 an ASP/PHP driven website.  WGET will surely mirror everything but not
 re-structure the internal links within the pages.

 Might be time to write my own ...
Try httrack - think there are versions for multiple platforms. I've used the 
windows version to great effect.

http://httrack.free.fr
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Mirroring Website

2001-10-03 Thread Lawrence . Sheed

Webzip is ok too for downloading an entire site onto a local machine,
restructuring links, although the non registered version inserts javascript
 html code into every page header.  Its nothing that a quick regex replaces
can't fix though ;)

www.webzip.com


-Original Message-
From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
Sent: October 3, 2001 5:04 PM
To: Jon Shoberg; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Mirroring Website


On Wednesday 03 October 2001 5:21 am, Jon Shoberg wrote:
 Nope, teh pages are actually hosted on a (gasp ...) NT machine.  I need
 something that will suck down and write out a pure static .html mirror of
 an ASP/PHP driven website.  WGET will surely mirror everything but not
 re-structure the internal links within the pages.

 Might be time to write my own ...
Try httrack - think there are versions for multiple platforms. I've used the

windows version to great effect.

http://httrack.free.fr
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Mirroring Website

2001-10-02 Thread Mukul Sabharwal

Hi,

Try rsync, it's pretty much what you want.

http://rsync.samba.org


=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Mirroring Website

2001-10-02 Thread Jon Shoberg

Nope, teh pages are actually hosted on a (gasp ...) NT machine.  I need
something that will suck down and write out a pure static .html mirror of an
ASP/PHP driven website.  WGET will surely mirror everything but not
re-structure the internal links within the pages.

Might be time to write my own ...


-Original Message-
From: Mukul Sabharwal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 9:58 PM
To: Jon Shoberg; [EMAIL PROTECTED]
Subject: Re: [PHP] Mirroring Website


Hi,

Try rsync, it's pretty much what you want.

http://rsync.samba.org


=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]