Is there any way to run a php file by a shortcut in hard drive?..not by writing any protocol in the browser. I am making an online examination system in PHP. And I using Wampserver. I want to run my first page from a shortcut(like html), from then other linked pages will run sequentially.thanks in advance....
php” file is placed inside the “htdocs” folder. If you want to run it, open any web browser and enter “localhost/demo. php” and press enter. Your program will run.
Open the Finder and go to /Library/WebServer/Documents/localhost . All files that are in there are processed by the local webserver (Apache and PHP, if you want to know that). Place your file in there and open your webserver and call http://localhost/YourFile.php and it will call the file YourFile.
First Copy your local url from browser http://localhost/xxx/xxx.php
Then go to your desktop press Right click in Mouse choose -> New -> Shortcut
.
Now paste copied Link then press next
and finish
button shortcut ready.
Then copy that shortcut and paste it in anywhere.
If your wampserver is on, you can place this meta
HTML tag in your .html
file:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://localhost/index.php">
It's an HTML way of redirecting, content
is the number of seconds after which you want the redirect to take place and url
is the location you want to redirect to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With