Jump to content

Ingolme

Moderator
  • Content Count

    14,379
  • Joined

  • Last visited

  • Days Won

    98

Everything posted by Ingolme

  1. I guess DreamWeaver doesn't understand the heredoc syntax. Try to find a way to make it ignore the error and then run the code on a PHP server. I've never used DreamWeaver. For many years it a bad reputation because its preview tool was very wrong, so most developers steered clear of it. I assume by now they've fixed that, but since there are hundreds of free alternatives I don't have a reason to pay for it, especially now that it's a continuous subscription service instead of a one time purchase.
  2. The reason most tutorials don't teach it is because it is usually bad practice to use it. The "with" keyword takes the properties and methods of an object and treats them as variables inside the braces. For example: var obj = { x : 5, y : 10 }; with (obj) { alert(x + " , " + y); }
  3. What is on line 1? The heredoc isn't on line 1.
  4. Python is an alternative to PHP. PHP is actually not a great language, which is why most larger websites will use something different.
  5. You need to use prepared statements to prevent the data from messing up the query. You shouldn't put variables directly into an SQL string.
  6. You must have missed some of the code from the W3Schools example. Without seeing your code we have no way of knowing why it is not working.
  7. Try myName.equals("John"). The strings may be pointing to different spaces in memory.
  8. It depends on whether the website chose to accept numbers without leading zeroes or not. It seems that GoComics is prepared for both kinds of numbers so it is not a problem in this scenario.
  9. I don't think this is a CSS issue. The image file itself is horizontal. There might be an orientation flag embedded into the image file telling it which way is up which one of the browsers is ignoring. Try editing it in an image manipulation program and saving it again. The other possibility is that it is a CSS issue and there is some CSS rotating the element. I think this is less likely since such CSS would not work in IE7.
  10. It is probably that there is a quotation mark in the JSON contents.
  11. I've only ever heard of Julia when the people who created it visited the forums and asked for a tutorial. I haven't heard about it from any developers since then.
  12. How are you commenting the line? If it is with an HTML comment that may be the cause for different browsers interpreting it differently.
  13. Not in an easy way. I'd start by looking for APIs offered by your mail server. Some APIs are through HTTP, but some are through the IMAP protocol.
  14. It is complicated. You should probably install a CMS such as Wordpress which does that for you. If you're running on an Apache server the first step would be to use the mod_rewrite directives to control how the URL works. After that you need a server-side programming language to read the URL and choose which content to display based on the URL.
  15. Slow down or somebody might get the impression that you are advertising. I may have to remove your posts.
  16. Ingolme

    Download

    You need to upload the file to your web server. The contents of the href attribute will depends on where in the web server the file is placed.
  17. You have to upload the file to your web server. Then the path will be determined by where on the web server you placed the file.
  18. Could you explain in more details what the issue is? What result are you seeing and what was the expected result? Text editors don't usually run SQL unless you have some kind of database plugin for your text editor.
  19. document.lastModified can only show information about the current page. As I mentioned in another topic, you can use PHP's filemtime() function to get the modified date of a file on the server.
  20. If you are loading the file from another website, you have no way to know when it was last modified. To find out the modification time of a file, it has to be on your server. The ?ver=2.0 probably is just there so that older versions of the file are not loaded from the browser cache.
  21. The issue is that you should not have an <ol> tag as a direct child of another <ol> tag. It runs into an <ol> and stops counting there. Your structure should look like this: <ol> <li>text</li> <li>text</li> <li>text <!-- ol element wrapped in this li --> <ol> <li>text</li> <li>text <ol> <li>text</li> <li>text</li> <li>text</li> </ol> </li> <li>text</li> <
  22. The TypeScript features are there to help you keep all of your types in check while you are writing your code. Once the code has been compiled, type checks don't need to be done at runtime.
  23. That's not a tutorial, it is a reference page. References provide technical details about a function for somebody who already knows how to use functions. The reference expects your code to have access to a getID3 object, which does not appear in the reference manual, so it probably is an external resource. If you just want to know when a file was modified, PHP has a built in function filemtime() which returns a UNIX timestamp. the date() function can turn the UNIX timestamp into a meaningful string.
  24. I have little experience with TypeScript, but I assume that TypeScript would have shown you an error if you had tried to call add() with a string before converting it to plain Javascript. If you are using TypeScript, you should write all of your code in TypeScript rather than converting to Javascript and then writing more code. I expect it will handle type checking as long as you are working in the TypeScript environment.
  25. That is a terrible idea. The <object> tag is not very good at displaying websites, while the <iframe> is designed for that purpose.
×
×
  • Create New...