Skip to main content

How to install and configure EasyPHP

If you are going to learn PHP programming you will need to run a server that hosts your PHP pages. For doing this there are multiple ways. All of them are nothing but server applications that run an Apache server on your system, For some reasons I find installing the Apache server itself bit confusing. But that can be worked around by using WAMP or EasyPHP.

If you are getting "msvcr100.dll missing" error see this.

1. Going with EasyPHP download the latest EasyPHP Dev Server from their official site, here. As of writing this the latest is 16.1.1

2. Go with the default installation. Which will install in the directory of your windows.

3. Once installed you will see an EasyPHP tray icon as shown.



4. Right(or left) click the tray icon and click Open Dashboard. Which will open up a page in your Web Browser as shown.


5. Once we got the all we have to do is start the service we need. Since we want make PHP pages, click start under HTTP SERVER. If there are multiple choices of the server as shown below go with anyone. I went with the first one which starts with 32 bit server. I guess the other choices would have done the same.

Now let everything in default and Start it.
6. Once started you can check whether your server is running or not by opening the local host of your computer. To open local host, just type "localhost" (without quotes) in the address bar of your web browser or just click this http://127.0.0.1/ 
If you don't see any error means everything is working fine.

7. Now this localhost is a location in your system which is present in the installation directory of EasyPHP. Go to the installation directory and find the Folder by the name "www" or "eds-www" in my case. 

Open this folder and you will find a phpinfo.php file there. Let it remain there. Now we will work with our php files in this "www" folder.

You can create as many subfolders you want. Like I created a "test" folder for the sake of testing.

8. Now create a PHP file.

I did by this code:

<?php
$testPhrase= "Hello World!";
echo $testPhrase;
?>


Copy it and save the file by the name "index.php"

Place this file anywhere in the "www" directory of EasyPHP as shown.






I placed the index.php in the subfolder "test" I created.

9. To test my code is working we open the localhost in the web browser and head over to the "test" directory.


Upon clicking the "test" subfolder I get my code running.




That's it.


Comments

Popular posts from this blog

Unity Mobile Game Optimization Checklist

- On Image and Text components that aren’t interacted with you can uncheck “Raycast Target” on it, as it will remove them from any Raycast calculus. - Click on your textures in your “Project” window. Click on the “Advanced” arrow, and now check “Generate Mip Maps”, Unity especially recommends it for faster texture loading time and a lower rendering time. - Set the “Shadow Cascades” to “No Cascades” (Quality settings) - If you have dynamic UI elements like a Scroll Rect with a lot of elements to visualize, a good practice is to turn off the pixel perfect check box on the canvas that contains the list and disable the items that aren’t visible on the screen. - Set all non moving objects to "Static" - Above Unity3d 2017.2 you should turn off "autoSyncTransforms" on the Physics tab - Always use Crunch Compression Low on textures - Try to keep the “Collision Detection Mode” on “Discrete” if possible, as “Dynamic” demands more performance. - You can go to the TimeManager w...

How to make download file button in react js

To create a download file button in React.js, follow these steps: Import the necessary dependencies: javascript Copy code import React from 'react' ; import { saveAs } from 'file-saver' ; Create a function that handles the download action: javascript Copy code const handleDownload = ( ) => { // Create a new Blob object with the desired content const fileContent = 'This is the content of the file you want to download.' ; const blob = new Blob ([fileContent], { type : 'text/plain;charset=utf-8' }); // Use the saveAs function from the file-saver library to initiate the download saveAs (blob, 'download.txt' ); }; Create a button component and attach the handleDownload function to the button's onClick event: javascript Copy code const DownloadButton = ( ) => { return ( < button onClick = {handleDownload} > Download File </ button > ); }; Use the DownloadButton component wherever ...

How to Convert Unreal Engine 5.1 Blueprint Project to C++ Project

To begin, open your project in the Unreal Engine 5 or a newer version of the editor.  Next, access the New C++ Class Dialog by selecting Tools and then New C++ Class .  From there, create a new "None" class and press "Create Class."  You might receive a warning message regarding the game module compilation, but you can disregard it and choose "No."  After closing any pop-ups, warnings, or success notifications, exit the Editor.  Proceed to your project's folder, right-click on the .uproject file, and select "Generate Visual Studio project files."  Double-click your project's .sln file to open it in Visual Studio.  In Visual Studio's Solution Explorer, find and choose your project.  Select "Development Editor" in the build configuration drop-down menu.  Right-click on your project and select "Build" to compile it without any errors.  Afterward, set the build configuration drop-down menu to "Development" ...