Previewing PHP pages

In order to be able to preview PHP pages, you must configure your Rapid PHP editor to work with your web server.

Configuring Rapid PHP to work with a web server

Server side scripts such as PHP or ASP need to be executed on web server, before correct preview can be generated. Rapid PHP provides a feature called mappings, which passes scripts through web server before previewing them.

Mappings allow to map your local file system or FTP folders to web addresses. For example, you can map c:\wwwroot to http://localhost/

To add, edit or remove mapping:

  1. On the Options menu, click Preferences.
  2. In Preferences window, click Preview folder.
  3. Click Mappings.
  4. Click Add, Delete or Edit, to add, delete or edit a mapping.

You can preview PHP pages directly in Rapid PHP or open them in a selected Web browser.

Previewing PHP pages

Preview without leaving Rapid PHP

To quickly preview PHP page without leaving editing environment, click Preview tab at the bottom of the document window.

To preview PHP document in a Web browser

  1. On the Tools menu, point to Preview In.
  2. On the Preview In submenu, click the Web browser you wish to use.

Note

  • You need to have web server with PHP support installed on your computer to preview PHP scripts locally without uploading them to web.