Jump to content

Ingolme

Moderator
  • Posts

    14,894
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by Ingolme

  1. Ingolme

    Frames?

    The <iframe> element is not deprecated anymore in HTML 5 because it has uses in javascript.
  2. The actual difference between <p></p> and <br> is that <p> indicates that the text is a paragraph while <br> tells the browser to put a line break there.
  3. There's no way you'll get an L-shaped table cell. Table cells are always rectangular. With a bit of CSS you could create a separate table inside one of the cells and move it to the bottom right of the cell.
  4. If users post content on your site, you are required to remove anything that violates copyright as soon as the original author requests it. If you do that, there shouldn't be any legal problems for you as long as you do that. Responsibility falls upon the user (you should state it clearly in your terms of service)
  5. Ingolme

    Seo Forum

    Here in the General form is fine.
  6. That is non-standard behavior so it may not work in all browsers. You should only use standard elements and attributes if you want to code a website professionally.
  7. Presentational attributes were deprecated in HTML 4.01 (They were valid in HTML 3.2)I don't think there ever was a "color" attribute. No color attribute appears in the list of attributes here: http://w3schools.com/tags/tag_hr.asp All presentational attributes are removed in HTML 5. Here's the page the the <hr> element in HTML 5, the color attribute is not present: http://w3schools.com/html5/tag_hr.asp
  8. I had no trouble installing Notepad++ on Windows 7. Be sure to download the windows installer file and not any of the source code ones.
  9. This thread is a year old. I don't think the person who made the thread is reading anymore.
  10. Technically, Javascript should not have access to anything pertaining to another domain, so it shouldn't work. It's possble that the Safari developers enabled some cross-domain features that they thought were safe.
  11. Things won't get done until you do them, so get to it!

  12. If the download.php file is in the exact same directory as the files, then you don't need to put the folder. Put download.php outside the folder. This way people can't use the file to download itself and see its source code.
  13. You just have to change 'downloads/' for the path to your downloads directory relative to the PHP file in the following lines: if(!file_exists('downloads/' . $file) {......echo file_get_contents('downloads/' . $file);
  14. Try to understand the PHP code. It's not very difficult to understand. I even put comments in it.
  15. Please modify the download.php file to point to the directory you wish to load the files from.
  16. If you do it with PHP, you'll have to always link to the same PHP file and tell it which file to server. <a href="download.php?file=file.jpg">File</a> download.php: <?php// Make sure only files in this directory are accessible by removing slashes$file = str_replace('/','',$_GET['file']);$file = str_replace('\\','',$file);// If the file doesn't exist, show an error message and leaveif(!file_exists('downloads/' . $file) { header("HTTP/1.0 404 Not Found"); echo 'The selected file doesn\'t exist'; exit;}// Tell the browser to download the fileheader('Content-type: application/octet-stream');header('Content-Disposition: attachment');// Output the file dataecho file_get_contents('downloads/' . $file);?>
  17. You have to make the server server them with a content disposition header. This would require a .htaccess file. Put the htaccess file in a folder called "downloads" or something, and put all your downloadable files in there.The .htaccess file <FilesMatch "\.(html|jpg|png|gif)$"> header set Content-Disposition attachment</FilesMatch> Add extensions to the <FilesMatch> expression separated by bars\.(ext1|ext2|ext3|ext4)$
  18. If an element is floated to the left you can't expect it to be in the center. First, remove all the style attributes and move the CSS to the stylesheet. The margin-right: 600px rule is actually messing things up. To center a block element, give it a specific width and then set the margin to "auto"
  19. Make your text editor save the page in UTF-8
  20. BBcode parseing is pretty much more complex than that because you have to deal with nested or unmatched tags.
  21. This thread is five years old! Let it rest.
  22. It depends on the employer.Being honest, if I was an employer I would not give much validity to the certificates, judging by the people of this forum who considered getting one.The ceritificate may show that you memorized some syntax, but doesn't prove that somebody is able to actually solve problems on their own, which is what most of the people seem to be lacking.
×
×
  • Create New...