I need little help about PHP coding | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I need little help about PHP coding

I write some code in in PHP through Dreamweaver and then save it when I execute the .PHP file in my browser then it will only show only what I write in HTML tags but not the php coding or anything can anyone guide men why this is happening?

6th Jun 2018, 6:28 AM
Aman Saghar
Aman Saghar - avatar
6 Answers
+ 24
PHP runs on a server. You need to run this code on your local server (Apache, OpenServer or built-in PHP server).
6th Jun 2018, 6:34 AM
Igor Makarsky
Igor Makarsky - avatar
+ 2
After you download and run xampp, go to the xampp directory and inside will be a www folder. Put the php files there and then go to your browser and enter "localhost/your-php-filename.php"
6th Jun 2018, 7:05 AM
Xpl0it
Xpl0it - avatar
+ 1
thanks for your help guys
6th Jun 2018, 7:07 AM
Aman Saghar
Aman Saghar - avatar
0
how can I run through xampp my file?
6th Jun 2018, 6:58 AM
Aman Saghar
Aman Saghar - avatar
0
Note: if you turn off xampp, you won't be able to run the script until you turn it back on.
6th Jun 2018, 7:06 AM
Xpl0it
Xpl0it - avatar
0
Anytime
6th Jun 2018, 7:07 AM
Xpl0it
Xpl0it - avatar