Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. There's no client.side solution. For security reasons Javascript cannot access content that is on another domain. To get around it, people use what's called a proxy: a script on your server that gets content from another website. Here's one article about it: http://developer.yahoo.com/javascript/howto-proxy.html
  2. If you want to give important information to search engines, start using <h1> to <h6> tags for page titles and section titles and don't use images to show text.
  3. I believe there's cross-domain protection stopping you from accessing data from other websites.
  4. If you use HTML rather than XHTML you don't need to use XML attributes. Since HTML 5 is the newest standard XHTML is not used very commonly anymore.
  5. Use CSS to change the font. Here's the tutorial page: http://www.w3schools.com/css/css_font.asp And an example: http://www.w3schools.com/css/tryit.asp?filename=trycss_font-style
  6. You've already linked to your website in another thread and this thread is nearly identical to your previous one, so I would ask not to make threads just to advertise your website. From a web developer's perspective your website's design and code are not very well done, I would recommend looking deeper into CSS and looking up proper web design.
  7. Yes, the file_get_contents() function as mentioned just before. It saves you the step of using implode()
  8. I think justifying the text is what's causing that.
  9. Well, the only mistake they're pointing out is that you should indicate the language that the page is in. I don't believe it's a big problem but if you don't want the validator to give you the error add a lang attribute: <html lang="en" ...
  10. Javascript runs as it loads, the session only saves its value when the PHP script finishes running, so Javascript starts executing as PHP is running. If you use session_write_close() right after unsetting the value it should fix the problem. You won't be able to change any other $_SESSION values after that, though.
  11. This line is a problem because you're already inside a <?php ?> block: $f = $_SERVER['DOCUMENT_ROOT'] . "/files/<?php echo safeOutputToScreen($file->localFilePath, null, 55); ?>"; Substitute it with $f = $_SERVER['DOCUMENT_ROOT'] . "/files/" . safeOutputToScreen($file->localFilePath, null, 55); It might not be the only problem, but it's best to start with the most obvious thing to fix.
  12. Well, you'll just have to manually go through your own code and create the flow chart.
  13. The HTML 5 draft goes through many changes. It's possible that at one point it was going to allow multiple forms.
  14. I'm not sure what browser you're testing in, but Internet Explorer doesn't support the form attribute. I believe the value is case sensitive, so "Form1" would be different than "form1" Well, I am testing in Firefox and it seems that assigning an input to multiple forms isn't supported. I guess there's nothing to do about it. Here's Mozilla's description: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input
  15. It sounds like an extremely difficult task to build a program that generates a flowchart for Javascript, however, here's one I found (thanks Google): http://code-to-flow-chart-generator.soft112.com/ Don't expect to find a program that's free, it's a considerable task to build such a program. I can't promise that it will work perfectly, Javascript is an ever-changing language and an older program might not know how to interpret newer Javascript.
  16. Perhaps the problem is that you sent a string in this line rather than execute the statement: TR "Value", "Int(Value*100)"
  17. Understand that changing <h3> to <h4> means changing the meaning of it. If what you want to change is the font size, change the font-size property of the <h3> element. CSS is there to change the way the page looks.
  18. This thread is from over four years ago, the download attribute didn't exist then.
  19. Ingolme

    video length

    There are so many different factors involved in file size and the length of the video is just one of them. The compression method, the quality of the video, the resolution of the video and the distribution of bits before compression all are involved. You can't really know for sure how big a file will be until you create it, statistical averages can be made. In any case, the file size would be too large to measure in kilobytes, megabytes would be the order of magnitude the file would be measured with.
  20. Ingolme

    restrict

    The main problem here is that you're checking name of the temporary file rather on the server. You need to check what name the file had on the client, which is in the $_FILES array. $path = pathinfo($_FILES['file']['name'])
  21. I don't believe the HTML specification tells browsers how to react to multiple headers. You might find results in the HTTP specification about it. My guess is that only the most recent header is taken into account. Note that the HTML <meta> tag only provides a suggestion, as it is not actually a real HTTP header; the browser may choose to ignore it.
  22. Ingolme

    restrict

    Just to clarify, the error supressor operator is "@". Remove all the @ and see what error messages show up.
  23. Ingolme

    error

    The message means that your query failed. To find out why it failed, use the mysqli_error() function. You've forgotten to initialize $i to a value before your first loop, which might also be causing the problem.
×
×
  • Create New...