Nhaixatael Posted June 16, 2005 Posted June 16, 2005 Ive been trying to build a new info box for a program called netviewer, it should link to the .exe and should ask if you want to execute is, But im getting file not found error even if the file is there, ive tried zipping it and that did work but I want to get it to work for the .exe file.. anyway to fix this? Code: <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_NETVIEWER); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="http://192.168.1.200/catalog/download/netviewer.exe"><img src="http://192.168.1.200/catalog/images/netviewer.gif" width="120" height="31" border="0"></a>'); new infoBox($info_box_contents); ?> also is there an easier way of linking to those directory's without having to use the ip adress of the server?
Guest Posted June 16, 2005 Posted June 16, 2005 Ive been trying to build a new info box for a program called netviewer, it should link to the .exe and should ask if you want to execute is, But im getting file not found error even if the file is there, ive tried zipping it and that did work but I want to get it to work for the .exe file.. anyway to fix this? Code: <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_NETVIEWER); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="http://192.168.1.200/catalog/download/netviewer.exe"><img src="http://192.168.1.200/catalog/images/netviewer.gif" width="120" height="31" border="0"></a>'); new infoBox($info_box_contents); ?> also is there an easier way of linking to those directory's without having to use the ip adress of the server? <{POST_SNAPBACK}> The IP address thing, if its on the same server and path as the page you are on then you dont need to fill in the http part, just put the path relative to where you are so if you are in http://192.168.1.200/catalog/ in your link just put <a href="download/netviewer.exe"> the server will do the rest. On the file not found thing, is the directory "download" readable. If not you will need to give the appropriate permissions.
Nhaixatael Posted June 16, 2005 Author Posted June 16, 2005 The IP address thing, if its on the same server and path as the page you are on then you dont need to fill in the http part, just put the path relative to where you are so if you are in http://192.168.1.200/catalog/ in your link just put <a href="download/netviewer.exe"> the server will do the rest. On the file not found thing, is the directory "download" readable. If not you will need to give the appropriate permissions. <{POST_SNAPBACK}> Yes ive tried both linking from the download dir and the images dir and the prems of images is full control (im hosting on windows 2003 webserver)
WiseWombat Posted June 16, 2005 Posted June 16, 2005 Yes ive tried both linking from the download dir and the images dir and the prems of images is full control (im hosting on windows 2003 webserver) <{POST_SNAPBACK}> If your hosting your own server on http://192.168.1.200/ Is It running though a router which has asigned this IP address 192.168.1.200 to a local area network and if so why would you want to let visitors download from your local area network????? That the last thing you want! Why not run it from the server if you have nothing to hide.! ( WARNING ) I think I know what Im talking about. BACK UP BACK UP BACK UP BACK UP
Guest Posted June 16, 2005 Posted June 16, 2005 If your hosting your own server onhttp://192.168.1.200/ Is It running though a router which has asigned this IP address 192.168.1.200 to a local area network and if so why would you want to let visitors download from your local area network????? That the last thing you want! Why not run it from the server if you have nothing to hide.! <{POST_SNAPBACK}> I assumed they were testing on a local network. The 192 address wouldnt be visible from the outside as it is a private network. I also test locally (192.168.1.15) before I upload to my server and that is why you dont want to hardcode IP addresses, which you dont need to.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.