How to Use Kompozer for PHP Files

104 5
    • 1). Launch the Kompozer application. Click on the "New" icon to create a new page.

    • 2). Click the "Design" tab in the lower-left corner of the work area. In the work area, type "The PHP code is below." Press the "Enter" or "Return" key.

    • 3). Click the "Save" icon. In the "Page Title" input box, type "PHP Kompozer Test." Click OK. In the "Save Page As" dialog box, enter "test.php" as the file name. Click the "Save" icon.

    • 4). Click on the "Source" tab at the bottom left corner of the work area. Click the space beside the tag beneath the text "The PHP code is below:" and press "Enter" three times.

      Enter the following code in the blank line just made:

      <?php echo "<h1>PHP and Kompozer!</h1>"; ?>

    • 5). Click on the "Save" icon. Click on the File menu and select "Quit" to close Kompozer.

    • 6). Launch the FTP application and log in to the web server. Upload the file "test.php" to the root directory of the web server.

    • 7). Click on the "Disconnect" button of the FTP application.

    • 8). Launch a web browser and enter the appropriate URL to access the PHP file. Example enter:

      http://yourdomainname.com/test.php

      Replace "yourdomainname.com" with the domain name or IP address of the web server.

    • 9). Press the enter key to load the URL and run the PHP file. The browser should display something like the following:

      The PHP code is below:

      PHP and Kompozer!

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.