1

How to save our php files so that we can load on our server . I have installed apache2 , php, and mySql . also I don't know how to connect these 3 so that I can simply work on my text editor. Please help me.

1 Answers1

0

PHP is integrated into apache upon installation and so, there is no need to worry. You can put php code into .php files into the web server. Foe example, instead of using index.html, you should use index.php so you can put php code into it. Here's a sample piece of code that can be used and easily understood -

<!DOCTYPE html>
<html>
 <head>
  <title>Foo</title>
 </head>
 <body>
  <?php
    echo "Hello World!";
  ?>
 </body>
</html>

For managing your mySQL database, you may use the package phpmyadmin from the official repositories.


For more information, refer to the following links -

  1. phpMyAdmin
  2. PHP 5 tutorials

For Another interpretation of the question, refer to this question that was asked previously

atreyabain
  • 344
  • 2
  • 6