If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker😭 or Donate to help us ❤️ pay for the web hosting to keep the website running.
इस tutorial में आप जानेंगे की PHP programs को कैसे XAMPP पर कैसे RUN करते है।
PHP program run करने के लिए सबसे पहले किसी text editor में php program को लिख लें | और उसे C:/xampp/htdocs में कही भी रख दें हो सके तो आप एक नयी directory भी बना सकते है। मैंने htdocs folder के अंदर test नाम की directory बनायी है। और इस directory के अंदर test.php name की save की है।
Ex. C:/xampp/htdocs/test/test.php
<?php $var = "Hello World !";
echo $var;
?>
अब XAMPP Control Panel को open करे, और उसके बाद PHP Server को start करें। MYSQL की need है तो बो भी start कर सकते हैं।
Opne XAMPP , and start Aapache Server
अब Browser को open करें या XAMPP Control पैनल Panel में PHP और MySQL के Admin पर click करें या Browser में localhost लिखें और enter kare. enter करने के बाद आप कुछ इस तरह से Output देखेंगे।
Open browser , then locate : loacalhost
अब localhost के बाद dahboard रिमूव करें और जहा भी आपने File save की हो उसे locate करें और enter करें। मैंने अपनी file को C:/xampp/htdocs/test/test.php save किया था |
तो browser में इस तरह से लिखें localhost/test/test.php तो browser में इस तरह से लिखें और आप कुछ इस तरह से result देखेंगे।
Hello World !
Hi ! My name is Rahul Kumar Rajput. I'm a back end web developer and founder of learnhindituts.com. I live in Uttar Pradesh (UP), India and I love to talk about programming as well as writing technical tutorials and tips that can help to others.
Get connected with me. :) LinkedIn Twitter Instagram Facebook