Home
Recent Articles
more...    [all articles]
Articles by Catagory
php (12 )
css (1 )
Tutorials
Related Links
<<first    <prev    1  2  3  (4) 5  6       next>     last>>
Info Of The Installed Php
Posted By - Ko Ko - May 19, 2006

Summary :
To get a lot of information of the installed PHP server using a built in function
Printer Friendly Page
Show Myanmar Version show-myanmar-font

How to get information of the Php installed on your server.

Just by writing one short line of php code, you can extract 4 or 5 pages of information about the php installed on your server.

Write the following codes in a notepad and save as "phpinfo.php" in your "www" folder.

<html>
      <head>
          <title>PhpInfo</title>
      </head>
      <body>
              <?php
                   phpinfo();
              ?>

       </body>
</html>

The word "phpinfo()" is one of the Php functions called "Php Built in Function".

Type http://localhost/phpinfo.php in your browser and click enter. The following will appears.


Posted as - [programming] [php] [code snippets]
0 comment            submit comments

End of Article No. 7 - Info of the installed Php
http://phpmyanmar.com/content/article/7/info-of-the-installed-php.html

Your First Php Program
Posted By - Ko Ko - May 19, 2006

Summary :
Here I will tell you how to write your very first PHP program
Printer Friendly Page
Show Myanmar Version show-myanmar-font

Your First Php Program

Before writing our very first Php program a short explanation about Php tags will be needed.

Php code can be freely mixed with html codes.

When html code ends and php code started you have to type in the "php start tag".

Also when the php code ends and html code started again, the "php end tag" have to be type in again.

Various pairs of "php start tag" and "php end tag" are shown below:-

PHP Start and End Tags

Tag Style

Start Tag

End Tag
Standard tags <?php ?>
Short tags <? ?>
ASP tags <% %>
Script tags <script language="php"> </script>

See below how these 4 pairs of Php Tag are used:-

<?php
      put your php code here;
?>
<?
      put your php code here;
?>
<%
       put your php code here;
%>
<script language="php">
       put your php code here;
</script


Now lets write our first php program.

Open MS Notepad and type the code shown below. Observe carefully how the start and end tags were used.

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

    </body>
</html>


Save as "hello.php" in folder "www" shown below.



Now close the notepad and open the browser.

In the address box type in http://localhost/hello.php and click enter.

If you have done everything properly, you will see "Hello World!" as shown below.

Congratulation, you have written your first php program successfully.


Posted as - [programming] [php] [code snippets]
0 comment            submit comments

End of Article No. 6 - Your First Php Program
http://phpmyanmar.com/content/article/6/your-first-php-program.html

Useful Links
Posted By - Ko Ko - March 2, 2006

Summary :
Useful and informative php websites
Printer Friendly Page
Show Myanmar Version show-myanmar-font


Posted as - [programming] [php] [web developement]
0 comment            submit comments

End of Article No. 5 - Useful Links
http://phpmyanmar.com/content/article/5/useful-links.html

<<first    <prev    1  2  3  (4) 5  6       next>     last>>
Install Myanmar Font
  • Download the font, (zawgyi-one) here.
  • See how to install the font here.
PhpMyanmar Forum
Feedback (In Eng and Myan)