Php Code – Codemeets– 01
by sanka · Published · Updated
php code lesson is about php. PHP is a general-purpose scripting language. specifically designed for web development. It created by the Rasmus Lerdorf. PHP: Hypertext Preprocessor for an iterative startup.
The implementation language of php is C. It works for any OS ex: Unix, Windows.
Additional information is available at www.php.net. ATOM, Sublime Text, Php Strome as php editors. php is the server-side language.
How to install php in your pc!(Windows).
-
- First we need to download php debug pack (www.php.net).
-
- After Download Extract in C Drive.
-
- Edit the System Environment Variable.
-
- Environment Variable.
-
- Path
-
- Edit
-
- New
-
- Type C:php
-
- Click Ok
-
- Edit the System Environment Variable.
-
- Test Using CMD
-
php -v
-
- Test Using CMD
How to create CMD local host and run
-
- Open CMD
-
php -s localhost:4000
-
- Open CMD
Open Web Browser and type this url,
localhost:4000//www/site.php
Now you know how to run php file in your windows pc.
PHP Frameworks
What is the framework? this is software. this helps to make the website easy. it has more options to develop any program easy. It has web services, web resources, and web APIs. It help us develop good website. But to work with php framework you must have basic knowledge of php. See below its is top 10 php framework in 2023.
-
- Laravel
-
- CodeIgniter
-
- Symfony
-
- CakePHP
-
- Yii
-
- Laminas Project
-
- Phalcon
-
- Fat-Free Framework
-
- Lumen
-
- Slim
I recommend for develop website use CodeIgniter and Laravel it is good. I put link below you can go it site,
-
- CodeIgniter (Welcome to CodeIgniter)
How to Make First Php Code File
Hello World
-
- First Step is Open any Shoutable editor.
-
- php code have block
<?php ?>
any function you can type with this block.
- php code have block
-
- php have 2 main text output method it is
echo
orprint
you can use both of them.
- php have 2 main text output method it is
-
- special php code line end use semicolon ( ; ).
-
- See below full code of hello world in php,
<?php
echo ("Hello World");
?>
Save and run file you can see hello world for output.
Thank for all!
More php ClickHere!
See you Next php Lesson Soon!
This is the heading 01
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.