gautammysql Posted July 30, 2007 Share Posted July 30, 2007 Hi, Plz replyme my question is :--- If I want to build a website in php language so what's should be have in my pc and why? plz reply me in brief description if possible. Thanks. Link to comment https://forums.phpfreaks.com/topic/62455-whats-required-for-to-build-a-website-in-php-by-own-pc/ Share on other sites More sharing options...
wildteen88 Posted July 30, 2007 Share Posted July 30, 2007 To create your PHP scripts all you need is a basic text editor such as Notepad. PHP is a server side programming langauge your PC wont be able to understand what PHP is and so you cannot run it directly in the browser, like you can with a .html files for example. What you'll want to do install a server environment. Such as download Apache and PHP. Or if you are on windows you can download a pre-configured install of AMP (Apache, PHP and MySQL (a database)), such as wampserver.com For *nix based systems you can use XAMPP. That is the very basics. Link to comment https://forums.phpfreaks.com/topic/62455-whats-required-for-to-build-a-website-in-php-by-own-pc/#findComment-310796 Share on other sites More sharing options...
gautamphp Posted July 30, 2007 Share Posted July 30, 2007 Hi, thanks to reply me, when we write a php script in text editor and save it .php extension, where it will store and how we run it after save .php extension. Because when we save a html script by .html extension it save as a internet explorer site on my computer desktop and I can see it by clicking on this icon which is created by when i have save a file .html extension So, plz tell me how and where it will save a file or script coding if i will save it as a .php extension. Thanks................. Link to comment https://forums.phpfreaks.com/topic/62455-whats-required-for-to-build-a-website-in-php-by-own-pc/#findComment-310809 Share on other sites More sharing options...
gautammysql Posted July 30, 2007 Author Share Posted July 30, 2007 Hi, thanks to reply me, when we write a php script in text editor and save it .php extension, where it will store and how we run it after save .php extension. Because when we save a html script by .html extension it save as a internet explorer site on my computer desktop and I can see it by clicking on this icon which is created by when i have save a file .html extension So, please tell me how and where it will save a file or script coding if i will save it as a .php extension. Thanks................. To create your PHP scripts all you need is a basic text editor such as Notepad. PHP is a server side programming langauge your PC wont be able to understand what PHP is and so you cannot run it directly in the browser, like you can with a .html files for example. What you'll want to do install a server environment. Such as download Apache and PHP. Or if you are on windows you can download a pre-configured install of AMP (Apache, PHP and MySQL (a database)), such as wampserver.com For *nix based systems you can use XAMPP. That is the very basics. Link to comment https://forums.phpfreaks.com/topic/62455-whats-required-for-to-build-a-website-in-php-by-own-pc/#findComment-310811 Share on other sites More sharing options...
wildteen88 Posted July 30, 2007 Share Posted July 30, 2007 it depends on Apaches configuration. Have you installed an AMP package yet, I recommended a few in my last post. From memory of using the two packages above I think for AMP you save your files in C:/wamp/www and for xxamp it is C:/program files/xampp/htdocs When you want to run your .php files you'd open your web browser and go to http://localhost/script-name.php You can not run them by just double clicking on them, like you can with .html files. You must go to http://localhost to invoke the http server (Apache) in order for your PHP scripts to get parsed. Link to comment https://forums.phpfreaks.com/topic/62455-whats-required-for-to-build-a-website-in-php-by-own-pc/#findComment-310814 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.