Jump to content

what's required for to build a website in php by own PC.


gautammysql

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.