+ 3
Downloading PHP
When I try opening my created PHP file..it loads on the browser and attempts to download the same php file...even after I click on download..if I open it..it attempts to download the same file....even when the action of the form on my HTML file is directed to the php file..it still attempts to download the file... Any solution please...
9 Respuestas
0
Open localhost:8000/your-file.php
+ 2
when I open localhost:8000 and I run the php file...it will execute?
+ 1
You will need a localhost. You can download a server either ampps or xampps or wamps. Just search online on how to install it. After complete installation. Move your php code to the server directory. The directory for wamps is www. Then enter localhost to the browser. You will see your script then click on it. It will show your script otherwise it won't show. Google search for more information.
0
You can't download PHP files, it's protected by web servers.
0
But it keeps requesting download when I open it
0
You can't download PHP files. You can only request web server to parse PHP and response with HTML.
0
i already have Xampp....
How do I move my php code to its directory?
0
For XAMPP, you can run PHP from any folder. Just open command line issue command: "c:\xampp\php.exe -S localhost:8000" and then open "localhost:8000" from any browser.
0
It happens all the time try rapidphp editor and everything will be fine