Author Topic: How to view PHP pages offline  (Read 20270 times)

Offline joesal

  • Sr. Member
  • Posts: 203
  • The interent is a long and winding road
    • View Profile
    • Best Article Directory
Re: How to view PHP pages offline
« Reply #15 on: October 14, 2009, 02:07:53 PM »
PHP is one pain in the neck to work with if you want to edit pages.

multihb

  • Guest
Re: How to view PHP pages offline
« Reply #16 on: October 14, 2009, 02:44:40 PM »
Hi everyone,

Yes it is pain if you don't know the basics of PHP,

One method is change extension as .htm or html in your computer and use wysiwyg html editor
but there is always danger to corrupt PHP file if you do not know how to do it (that is if you are not familiar with the code itself to make manual corrections)

Just only html parts of the PHP can be edited with wysiwyg editors, PHP itself must edit manually with notepad or with PHP editor software.

I am using Blumental software family with my PHP editing projects

Here is the link: http://www.blumentals.net/download/

Hope this info is helpful,

Best regards!

Aatos

Ps. Marks advice on first part of this topic is real method how you can simulate PHP based websites and pages in your computer.
I am using that method regularly.

daffodil

  • Guest
Re: How to view PHP pages offline
« Reply #17 on: January 16, 2011, 10:33:51 PM »
I'm working on web site that use PHP. So far, I can only view the PHP pages online. That means that every time I make a change, I have to upload the files involved and then view them. I'd work so much more smoothly if I could see the results of my changes OFFLINE and not have to keep uploading files. So how do I work on PHP pages offline? I have php5 and apache2 installed. I'm using antiX Linux (which is based on Debian-derived MEPIS).

epn

  • Guest
Re: How to view PHP pages offline
« Reply #18 on: February 13, 2011, 01:22:44 AM »
This post is definitely new info for moi.
I'd been manually editing with Notepad++
(because it has a multiple undo function)
then uploading and seeing what damage
I did.

Had no idea about this option.

Big thanks.

Gary

Offline GraphicBass

  • Sr. Member
  • Posts: 440
    • View Profile
    • Wells-Smith Partners, Publishers
Re: How to view PHP pages offline
« Reply #19 on: February 13, 2011, 08:55:57 PM »
And if you're on a Mac...

Use Apache and PHP that is included with the normal install of Mac OSX 10.5 and just needs to be enabled:
http://foundationphp.com/tutorials/php_leopard.php

OR

Use MAMP, which contains an easy install of Apache, MsSQL and PHP and bypasses a lot of steps in the above method:
http://foundationphp.com/tutorials/php_leopard.php

I've been thinking of installing a local server for testing, so this thread inspired me to give one of these methods a try.

gary
Gary Smith,  Wells-Smith Partners, Publisher
<a href="http://www.YourEmployeeHandbook.com/become-an-affiliate/">Your Employee Handbook Affiliate Program 60% commission, average sale $57</a>

jmjyles

  • Guest
Re: How to view PHP pages offline
« Reply #20 on: March 08, 2011, 04:21:19 AM »
You would need to install php and apache on your personal computer.Its very easy to install and it works pretty well.Thanks for the very helpful & informative post!

ContentWriter

  • Guest
Re: How to view PHP pages offline
« Reply #21 on: March 08, 2011, 05:13:22 AM »
I just strip the PHP tags at the beginning & end, save as an HTML file, and load it in the browser  :D

Most of the time it works, sometimes it don't--it depends on the dependency of the intermingled code.

jackavalonpaul

  • Guest
Re: How to view PHP pages offline
« Reply #22 on: April 05, 2011, 03:56:28 PM »
Wow you have done a great job. It is very helpful. I have learned new thing today. Thanks for sharing

davidjack12

  • Guest
Re: How to view PHP pages offline
« Reply #23 on: September 15, 2011, 09:43:52 AM »
The member was referring to the 31 monthly custom niche sites in the Gold Members area. Those sites are composed of php pages, and he wanted to be able to view the php pages on his PC before he uploaded them to his server. As you know you can click on a html page on your pc (before it's uploaded) and it will load in your browser.