Newbie question - previewing php file...

User 2108455 Photo


Registered User
7 posts

My php files have a couple of html files as includes. Is there a way for me to preview the entire page, the way it would look like in a browser after I uploaded the changes to the host?

When I go to the Preview tab or the Test in Browser tab, the content from the html files is missing.
The quality of your life is determined by the quality of questions you ask.
User 2108455 Photo


Registered User
7 posts

Adding more info...

1. URL to your Website (THIS IS THE MOST IMPORTANT ITEM) - http://smoothapps.com

2. Operating system - XP

3. Version of the application - 2010 build 323

4. Trial or registered version - Registered

5. What specific steps have you taken to create this issue?
a. Create website project
b. Download files locally to disk
c. Open index.php
d. Go to preview tab - content from html include file is missing
e. Click Test In Browser Button, same results - content from html include file is missing

6. Does it occur every time? - Yes

7. Can you recreate the issue on another computer? - Haven't tried it
The quality of your life is determined by the quality of questions you ask.
User 503621 Photo


Registered User
266 posts

to preview php files i use QuickPHP its a quick and small tool that runs a php server on your machine
its really needed !

http://www.zachsaw.co.cc/?pg=quickphp_p … r_debugger
User 2108455 Photo


Registered User
7 posts

Thanks!

I guess the other alternative is to run a web server like Apache on my local machine.

The quality of your life is determined by the quality of questions you ask.
User 184085 Photo


Ambassador
1,707 posts

WAMP is small, easy to install, and free, it give you an Apache server, PHP and MySql running under windows.

Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 2108455 Photo


Registered User
7 posts

Thanks David!

In case someone else has a similar problem in the future, here are the steps to setup apache on your windows box and use it for testing the output of your coffeecup html editor website...

1. Install wamp from http://www.wampserver.com/en/
(if you are not on windows, you can install xampp from http://www.apachefriends.org/en/xampp.html)

2. Locate the httpd.conf file of your Apache installation. Depending on the path you chose to install in, it could be in the folder like - C:\wamp\bin\apache\Apache2.2.11\conf

3. In the httpd.conf file, change the value of DocumentRoot from the default, which might be

DocumentRoot "c:/wamp/www/"

to the folder of your website project in CoffeeCup HTML editor, example...

DocumentRoot "C:/CoffeeCupEditor/Projects"

4. Change the value of the Directory directive the same way, from

<Directory "c:/wamp/www/">

to the folder of your website project in CoffeeCup HTML editor, example...

<Directory "C:/CoffeeCupEditor/Projects">

4. Now Left click the Wampp icon on the bottom right of your windows task bar (near the date), select Apache | Service and 'Start/Resume Service' or Restart Service

5. In your browser, enter
http://localhost/index.php

This should pull up the index.php page of the website you are developing and testing through CoffeeCup HTML editor.

Hope this helps.
The quality of your life is determined by the quality of questions you ask.
User 184085 Photo


Ambassador
1,707 posts

Your welcome.

I just left all the server settings, and created a website project in the editor with the wamp/www directory as the default.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.