473,395 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can I use PHP to create a desktop icon?

Using PHP 4 and a custom icon (.ico) file, how could I create a file
users download to their machine such that clicking on it launches their
default web browser with a particular URL?

Thanks for any advice, - Dave

Jun 12 '06 #1
2 3818
*** la***********@zipmail.com escribió/wrote (12 Jun 2006 10:56:16 -0700):
Using PHP 4 and a custom icon (.ico) file, how could I create a file
users download to their machine such that clicking on it launches their
default web browser with a particular URL?


I guess you have *.url files in mind. If you open one of them in your
favourite text editor, you'll realize the format is pretty straightforward:

[InternetShortcut]
URL=http://www.google.com

I can think of two issues:

1) It isn't cross-platform
2) You can't store the icon or specify what icon explorer should display
There's a simple multiplaform alternative: a simple HTML file with a
redirection (META tag or JavaScript). It doesn't solve the icon issue
though.

--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--
Jun 12 '06 #2
<la***********@zipmail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Using PHP 4 and a custom icon (.ico) file, how could I create a file
users download to their machine such that clicking on it launches their
default web browser with a particular URL?

If your target group don't know how to bookmark, they must be really really
really stupid bunch. I'd understand if the clients were intelligent stones
or sticks with just enough brainpower to open the page but no idea how to
drag it to favourites. And now you expect that these highly intelligent
sticks and stones know how to download and use the shortcut? Something
really wrong there.

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Jun 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eskimo Joe | last post by:
I am trying to create a desktop icon using VB6. is this possible? -p
1
by: ianruffell | last post by:
i've added an icon to an app i've written. when a shortcut is added to the desktop the icon colour is as expected. hwoever, when i run the app, both the taskbar icon and the icon on the app lose...
1
by: Bodi | last post by:
Hello, Could someone please tell me if there is a way, or how do I change my html/javascript so that if I drag and drop a link from a webpage to the desktop in such a way that the name of the...
3
by: Bodi | last post by:
Hello, Could someone please tell me if there is a way, or how do I change my html so that if I drag and drop a link from a webpage to the desktop in such a way that the name of the shortcut...
1
by: | last post by:
I need to let the user know what state a certain property had the last time the program was run. Is there a way to have the application itself change the desktop icon used to start the program. I...
3
by: Michael D. Murphy | last post by:
Hi, I am searching for a way to creat desktop shortcuts when running the setup files that were created within a VB solution using the setup wizard. Thanks, Michael
0
by: Steve | last post by:
After installing my application (which I developed using Visual Studio 2005) on a target desktop, the desktop icon shows the icon that is assigned to the application exe - which is what I want. ...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
1
by: laredotornado | last post by:
Hi, When I save out an HTML file to my desktop (I'm using Windows XP), it saves with the Firefox icon, presumably because I have Firefox as the default application to open my HTML files. Is it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.