Jump to content

create a desktop shortcut


chanchelkumar

Recommended Posts

Hello Everyone,

 

I am trying to create a desktop shortcut icon to my index.php in htdocs ?

Is it possible.. i tried but it is opening as a php file in dreamweaver ...

 

Can anybody give suggestions? Hope u get the issue!!

 

Thanks in advance!!

 

Link to comment
https://forums.phpfreaks.com/topic/237338-create-a-desktop-shortcut/
Share on other sites

You will need to have a web server running on your machine and then have an html link to the file relative to the web server path. So, if the file is in the root of the htdocs, then the URL would look something like http://localhost/index.php. Of course, you can probably leave off the file name since index.php will more than likely be in the list of default file names.

 

By linking directly to the file you are treating it as a file on your PC and Windows is trying to open the file. To get the rendered page of a PHP file you need to request the file through a web server. The webserver will then find the file and process the PHP code before sending the rendered output to the browser.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.