HTML - How Can I Add Files So Others Can Dowload From My Page
hi i have some files that i need to upload into my webpage so people who visits my page can download those files , i try to upload the files to my public html folder and i get an error then i put the files into my ftp folder and same results i get an error am using dot5hosting .
can you guy help me thanks Similar TutorialsHi, I currently have IE 7 on my machine but I need to get IE 6 to test something. Does anyone know where I can download it? All the websites I go to only have 7. Thanks in advance in any help. I want to open the Open/Save dialog box to dowload a file. How can i do this using only html code? Is it possible? Thank you, in advance. I have a task that I need help with... I have been tasked to build a simple HTML page with a list of Hyperlinks that represent the files within a specific folder. The page must be HTML. The folder name will be hard coded. Show file names, extentions optional. Links will not be pages Links will be files (mostly PDF) Thanks in advance for any assistance with this task. Thanks SquireDude i have a lot of text files(2-400) all have quite alot of text inside them so is there some software that can help me convert it all into html pages?? somthing that i am doing right now is: copied all of my text files pasted them into other location and editing each file and giving extention html/htm. now can u tell somthing better?? all the files will open in same frame(obviously one at a time), all have styling n everything same. I have some .tif files that I want to display on my web site but they don't show up. What are my options? Thanks... Hi all, not sure if this is posted in the correct place... please move if not...! I am after some information about how to build OFT (Files Outlook File Templates). I cant find any information about how to build/develop them. It may be pretty straight forward but need some guidance. Any help or pointers would be greatly accepted! Thanks all Hurley! I have some text embedded within a '.gif' file and dont know how to change the text. I downloaded Adove Photoshop Elements 6.0 but when i use the horizontal type tool and type over the text, it makes the original text fuzzy and does not enter the new text. What am i doing wrong ? Thanks Hello, I need some help to get a HTML file to load from a PHP file. I got a host who cannot use files from PHP, only from HTML and then PHP, so can someone help me to get the register.php to load from a html file? If this is possible I would be thankfull CODE: Code: <?php ################# # # # # # Enjoy! # # # # # ################# include("config.php"); error_reporting(E_ALL ^ E_NOTICE); session_start(); $msg = Array(); $error = Array(); function addUser(){ if (empty($_POST)) return false; global $config, $msg, $error; if (empty($_POST['login'])) $error[] = 'Error, You forgot to enter a account name!'; if (empty($_POST['password'][0]) || empty($_POST['password'][1])) $error[] = 'Error, You forgot to enter a password!'; if ($_POST['password'][0] !== $_POST['password'][1]) $error[] = 'Password does not match!'; if (empty($_POST['email'])) $error[] = 'Please fill in a valid email adress!'; if (!empty($error)) return false; $db = @mysql_connect($config['mysql_host'], $config['mysql_user'], $config['mysql_pass']); if (!$db) return $error[] = 'Database: '.mysql_error(); if (!@mysql_select_db($config['mysql_dbname'], $db)) return $error[] = 'Database: '.mysql_error(); $query = "SELECT `acct` FROM `accounts` WHERE `login` = '".mysql_real_escape_string($_POST['login'])."'"; $res = mysql_query($query, $db); if (!$res) return $error[] = 'Database: '.mysql_error(); if (mysql_num_rows($res) > 0) return $error[] = 'Username already in use.'; //Modified by Jerq $query = "INSERT INTO `accounts` (`login`,`password`,`lastip`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."', '".$_SERVER['REMOTE_ADDR']."','".mysql_real_escape_string($_POST['tbc'][0])."')"; //Modified by Jerq $res = mysql_query($query, $db); if (!$res) return $error[] = 'Database: '.mysql_error(); $msg[] = 'The Account <span style="color:#00FF00"><strong>'.htmlentities($_POST['login']).'</strong></span> has been created!'; mysql_close($db); return true; } { addUser(); } ?> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Account Registration Page</title> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Cache-Control" content="no-cache"/> <style type="text/css" media="screen">@import url(server_stats.css);</style> <!--[if lt IE 7.]> <script defer type="text/javascript" src="pngfix.js"></script> <![endif]--> </head> <body> <center> <div class="logo"></div> <div style="width:300px"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr class="head"><th colspan="2">Account Creation</th></tr> <tr> <th>Username: </th><td align="center"><input class="button" type="text" name="login" size="30" maxlength="16"/></td> </tr> <tr> <th>Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td> </tr> <tr> <th>Retype Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td> </tr> <tr> <th>E-mail: </th><td align="center"><input class="button" type="text" name="email" size="30" maxlength="30"/></td> </tr> <!--Added by Jerq--> <th>Account Type:</th><td align="center"> <select name="tbc" type="select"> <option value="0">Normal</option> <option selected value="8">Burning Crusade</option> </select></td> <!--Added By Jerq--> </table> <input type="button" class="button" value="Back" onClick="history.go(-1)" /> <input type="submit" value="Create" class="button"/> </form> <?php if (!empty($error)){ echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td class="error" align="center">'; foreach($error as $text) echo $text.'</br>'; echo '</td></tr></table>'; }; if (!empty($msg)){ echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td align="center">'; foreach($msg as $text) echo $text.'</br>'; echo '</td></tr></table>'; exit(); }; ?> </div> </center> </body> </html> THE CONFIG.PHP: Code: <?php ################# # # # # # Enjoy! # # # # # ################# $config['mysql_host'] = 'wowserver.serveftp.com'; //MySQL Host $config['mysql_user'] = 'root'; //MySQL Username $config['mysql_pass'] = 'wHoSYoURDaDy65'; //MySQL Password $config['mysql_dbname'] = 'antrix'; //Database Name ?> Hi all. I am redoing my homepages but have a problem that is driving me sane! A set of files work perfectly when checked by Firefox on my computer. When that same set of files are uploaded to the Homepage a few (not all) embedded jpgs do not appear, though their titles do. The files are not corrupted, I have checked. The jpg's are right there where they belong. To see the effect the Url is. http://homepages.ihug.co.nz/~Sspinett/Index.html Internet Explorer 7 has the same result Cheers. Pete. Open Mozilla Firefox and go to this site: http://www.mm-theory.com Scroll down a bit until you see a table titled "Download PDFs" on the left-hand side. Click any one of them. Does anything happen, or do you get what I get: a blank window? Explorer doesn't seem to have this problem. I click on any of the links, I get the option to either open the PDF file in the browser or download it. If I choose to open in the browser, it does just that. Why would it not do the same in Firefox? The code for the links are as follows: Code: ... <tr><td class="PDFs"><a class="PDFs" href="../PDFs/Website Introduction.pdf">Website Introduction</a></td></tr> <tr><td class="PDFs"><a class="PDFs" href="../PDFs/Preliminary Concepts.pdf">Preliminary Concepts</a></td></tr> ... Thanks for any forthcoming help. hey... i didnt know what forum to post this in, so admins, do what you want with this thread... I've recently taken over the web designing for a company... the site is already made, and the previous designer has dropped out, and the company needs me to make updates, add articles, etc. There are .htaccess files in almost every directory and subdirectory throughout the site. When I go to add an image, and make a link to it on a page, the image is not found, even though the source is correct. ex - initially, the page links to an image at "images/image1.jpg" . I make an image2.jpg, place it in the right folder, and try to link to it - "images/image2.jpg" but the image cannot be displayed on the site (says it cannot be found - same as a 404). I am assuming this has to do with the htaccess permissions and all that stuff (also in each directory is a "_notes" subdirectory and another directory like that) but I'm not sure. I wikipedia'd htaccess files, and read that they were made for apache servers... the server hosting the site I am working on uses IIS... another confusing problem. Is there anyway to edit these .htaccess files so that I can add more images to the site? Also, why cant I see images these 'blocked' images? Is there any way to disable this blocking? guys i have a page with a link. when i click the link i want to print a file. assuming the file already exits.. say a doc file or something thanks guys your help would be mightily appreciated hi guys.. hope sm1 gonna sort out my problem i am just a beginner to html script,and my problem is that i smhow manage to get script to include media player into my webpage but i am not able to add song file into in it for e.g if i want to add akon.mp3 or any other song i am not able to do it hope sm will help me thanx in advance script is here Code: <!-- Multi WM Player at www.rainbow.arch.scriptmania.com/scripts/music/ --> <OBJECT ID="music" height=70 width=230 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=,1,52,701" standby="Loading Microsoft Windows Media Player components..." <!-- Change to value=0 to hide status --> <param name="ShowStatusBar" value="1"> <param name="AudioStream" value="-1"> <param name="AutoSize" value="0"> <param name="AutoStart" value="-1"> <param name="AnimationAtStart" value="-1"> <param name="AllowScan" value="-1"> <param name="AllowChangeDisplaySize" value="-1"> <param name="AutoRewind" value="-1"> <param name="Balance" value="0"> <param name="BaseURL" value> <param name="BufferingTime" value="5"> <param name="CaptioningID" value> <param name="ClickToPlay" value="-1"> <param name="CursorType" value="0"> <param name="CurrentPosition" value="-1"> <param name="CurrentMarker" value="0"> <param name="DefaultFrame" value> <param name="DisplayBackColor" value="0"> <param name="DisplayForeColor" value="16777215"> <param name="DisplayMode" value="0"> <param name="DisplaySize" value="0"> <param name="Enabled" value="-1"> <param name="EnableContextMenu" value="-1"> <param name="EnablePositionControls" value="-1"> <param name="EnableFullScreenControls" value="0"> <param name="EnableTracker" value="-1"> <param name="Filename" value> <param name="InvokeURLs" value="-1"> <param name="Language" value="-1"> <param name="Mute" value="0"> <param name="PlayCount" value="1"> <param name="PreviewMode" value="0"> <param name="Rate" value="1"> <param name="SAMILang" value> <param name="SAMIStyle" value> <param name="SAMIFileName" value> <param name="SelectionStart" value="-1"> <param name="SelectionEnd" value="-1"> <param name="SendOpenStateChangeEvents" value="-1"> <param name="SendWarningEvents" value="-1"> <param name="SendErrorEvents" value="-1"> <param name="SendKeyboardEvents" value="0"> <param name="SendMouseClickEvents" value="0"> <param name="SendMouseMoveEvents" value="0"> <param name="SendPlayStateChangeEvents" value="-1"> <param name="ShowCaptioning" value="0"> <param name="ShowControls" value="-1"> <param name="ShowAudioControls" value="-1"> <param name="ShowDisplay" value="0"> <param name="ShowGotoBar" value="0"> <param name="ShowPositionControls" value="-1"> <param name="ShowTracker" value="-1"> <param name="TransparentAtStart" value="-1"> <param name="VideoBorderWidth" value="0"> <param name="VideoBorderColor" value="0"> <param name="VideoBorder3D" value="0"> <param name="Volume" value="0"> <param name="WindowlessVideo" value="0"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="http://myserver/mypath/myfile.asf" name="MediaPlayer" height=70 width=230> </EMBED> </OBJECT> </div> <p> <BR> <INPUT id=song1 onclick=document.all.music.filename=document.all.song1.value; TYPE="RADIO" NAME="Music" VALUE="http://www.uploadhut.com/id153745/Crazy Frog Remixx ( WARNING VERY FUNNY!!).WAV"> Song 1</p> <p> <INPUT id=song2 onclick=document.all.music.filename=document.all.song2.value; TYPE="RADIO" NAME="Music" VALUE="http://servername/path/to/media.file"> Song 2</p> <p> <INPUT id=song3 onclick=document.all.music.filename=document.all.song3.value; TYPE="RADIO" NAME="Music" VALUE="http://servername/path/to/media.file"> Song 3</p> if i choose song 1 it should play akon.mp3 and so on...... plz help me I'm sure this is probably one of the dumbest questions to appear here, but how would I get a link to a file to open that file in its native program - i.e. a .doc into Word or a .xls with Excel rather than in an IE plugin? Problem is, of course, whilst the IE plugins work, they don't have full functionality. I read somewhere that you could change the default settings in Windows, but part of what I'm trying to set up is on a business computer and of course, things like file associations and registry are tied down pretty tight so they can't be accessed, so I need to do it from within a page of links. Many thanks (in hope) Could anyone please tell me the code to call an external html file? I need to refresh my memories! Can anyone help me learn how to attach a flash file? Im planning on making the whole website in flash so I don't have to learn to much. Thanks I am using the following code to embed sound files and everything works fine but I would like for the sound files to begin downloading when "play" is hit and not when the web loads (automatically starting the download of all sound files). Thanks. <embed src="gtr.mp3" autostart="false" loop="false" width="300" height="42" controller="true" bgcolor="#F9000"></embed> I am having some problems with my template, I have to upload it a few times before it work. Seems like when I've edited and upload it, it doesn't change the files link to it. This can't be due to me linking them wrongly, cause they used to work before after a few tries. But i've been trying for a few days with no success. Any advice? Thanks ---------------------------------------------------------------------------------------- Nevermind i managed to solve it, I have to click save instead of letting dreamweaver do it automatically before it automatically updates the rest of the link file. Hi How can I use e my music files/PC as source in my html code and play it on a social social networking site, what is the best way to do it? I'm not asking for any code but I'm a little confused, I mean, is there any way to use my PC as source or I must upload my files and make a playlist or just upload them on a website and use : <embed src="URI " /> I know Google is my friend but I didn't find anything about redirecting the site to my PC, so my PC can serve the social networking site. Thanks |