As discussed early, we prefer having a separate xampp folder in the C:/ drive for easy reference of files.
Follow the steps given below to install xampp on your local computer.
> Let us say for example you have created a file named index.php in your text editor like notepad++, you must save the file in this file-path in order to run it in your local computer as a PHP file C:/xampp/htdocs/my_folder/index.php.
> My_folder in this case is a new folder you created to save your files in.
Updating the php.ini file
> Often, during the installation of xampp, the package comes with default set of things which could limit you in developing some features for your web application.
> For example PHP by default allows uploading a file to maximum of 2MB.What if your website clients require uploading a video of 10MB or 20MB?
> This can be made possible by changing your server settings in the php.ini file which can be found in this file path C:\xampp\php\php.ini.
> Open this file on a text editor most preferably notepad, and update the information concerning the file upload size by finding this line text.
Find upload_max_filesize=2M and change it to upload_max_filesize=10M.
> Save the file again to ensure the changes have been made. If you had started the apache in xampp control panel and you make changes in this php.ini file, in order to affect this change, you have to stop the apache and start it again.
> Now if you go to your browser and try to upload a file of size 10 MB, it will be uploaded if you had followed these instructions.
> Therefore, if you want to update anything concerning the php.ini file, this provides a basic example for easy understanding.
Remember: You have to stop and start the apache just in case you want to effect changes made in the php.ini file.
> The most common attributes / modules that should be altered in the PHP.ini file are resource limits, file timeouts and upload sizes. The modules can be identified by these parameters;
> php_value memory_limit