Jump to content

Synook

Members
  • Content Count

    7,416
  • Joined

  • Last visited

Everything posted by Synook

  1. Any computer can run web server software, such as Apache, that you can use to serve your website.
  2. Validate your page, and use CSS. Otherwise, we'd probably need to see your code.
  3. To use the URL, you would need to dynamically change all the hyperlinks on the page to include the number (and if the user manually enters in a URL that won't work anyway).
  4. Unshuffle this for me: "wisadfpovsavnkkslda"! (Hint: the answer is "vnkksldavsaisadwfpo".) (Technically, the point is that shuffle() is not bijective and thus not invertible, that is, there is no "unshuffle" function shuffle-1() such that shuffle-1(shuffle(x)) = x for all x. Of course, shuffle() isn't even deterministic.) If you mean, how can you arrange the characters of a string in alphabetical order, then you may want to try something involving sort(). ... as Ingolme said, and I didn't see .
  5. You can use the file_get_contents() function or a HTTP library like cURL to retrieve the content from the third-party website. If they publish their statistics in RSS or another XML-based format, then of course you can use an XML library like DOMDocument to parse the results, otherwise if the information is only available on their HTML site, you can try using the XML library on the HTML anyway, but if that doesn't work your best best would probably be regular expressions. Once you have the data you can just insert it into your database as normal. To make the script run every day you can use cron (Unix) or Scheduled Tasks (Windows).
  6. Synook

    Web Caching

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html
  7. Synook

    Breadcrumbs

    The concept of "breadcrumbs" on a website may also refer to a section of the page detailing the user's browsing history.
  8. http://www.phpdoc.org/
  9. You can use cron (Unix) or Scheduled Tasks (Windows) to make a PHP script run daily (by invoking the php executable with your script as an argument).
  10. You just want to change the window.location Javascript variable to the value of the text input when the user submits the form.
  11. SetImage() is not a standard Javascript function, so you have to provide that too. As Ingolme said, however, the use of Javascript is superfluous for a simple rollover.
  12. Assignment is just a normal statement that returns the value that was assigned — there is no requirement that it goes on a line by itself. This is why things like for ($row = mysql_fetch_assoc($query)) ... work. You could do anything: $a = "a" . ($a = 5) + ($a = 10) ? $a = 10 / $a = 5 : $a = "thing"; Maybe you are thinking about list()?
  13. http://dev.w3.org/geo/api/spec-source.html
  14. Synook

    Problem With Gchrome

    The W3C HTML validator doesn't "validate" your Javascript — the CDATA markup declaration indicates that the contained text is just text, not HTML, and so it doesn't care anymore. Similar with the comment markup declaration (except that tells the parser the contents is a comment).P.S.: XHTML is a dialect of XML, and HTML is a dialect of SGML, so when it checks well-formedness it will use the relevant one.
  15. You can use whatever markup you like. A table sounds like a good idea though.
  16. What do you mean by a "real link"? Your code seems to be checking whether the URL is well-formed or not (though I can't tell whether the regular expression is correct), but http://www.9as0danotwaebsite.ca is perfectly well-formed too (just that no one seems to have registered it yet). If you want to check whether there is a web server at the given domain, or that it returns 200 for the given URL, you will need to co-opt your server using AJAX.
  17. If you used Dreamweaver, well, then you would know you've used Dreamweaver, mm? If the Javascript component of your assignment is being assessed, and you copied code from other sources, then that's already plagiarism, regardless of whether it was programmatically generated or not.
  18. You have to use a server-side language to communicate with the server, in order to permanently store events. You could store the events on the client-side using just Javascript, but that would probably defeat the purpose of making it a web-app.
  19. You have to use a regular expression. What dialect of SQL are you using?
  20. Synook

    W3 Validator

    You don't seem to have posted your HTML. Are you trying to validate your PHP code as HTML?
  21. Why don't you create an additional one-to-many relation?
  22. As a starting point, it is useful to validate your code. Based on the HTML you posted above, I do recommend starting again, however.
  23. You can lay out a Wordpress theme any way you like... did you read the documentation? You just embed some PHP code where you want things to appear.
  24. PHP has functions for working with arbitrary-length integers: BC Math and GMP.
  25. I'm not sure what you are referring to as the "function column" — keywords like ABS, etc., represent functions, not field names — but you could always create a view: CREATE VIEW v AS SELECT a, b, c, ABS(a) d FROM t
×
×
  • Create New...