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. Quote Link to comment 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. Quote Link to comment 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................. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.