Search results

  1. M

    Ozeki script running on localhost but wont send when uploaded in x10hosting

    In particular, include sample code and a link to a sample page. Describe what you expect to happen and what actually happens (which includes any error messages). As it stands, there's nowhere near enough information to understand what you're trying to do, let alone what should happen. Read my...
  2. M

    Google Docs API

    Taking a glance at the API, it looks to be more a matter of which URI you post to. Look over Creating and uploading documents and files–it lists the URI for the resumable upload (retrieved by first querying https://docs.google.com/feeds/default/private/full), and the following three sections...
  3. M

    putting two codes together

    Note that if you pick and apply an indent style (or rather, have your editor/IDE do it for you), it would have made some of these issues very apparent. A good editor/IDE can make all the difference. Eclipse, for example, is very powerful but has a steep learning curve. Notepad++ is much simpler...
  4. M

    JavaScript Regular Expression - Validating street address, city, zip and phone number

    Re: JavaScript Regular Expression - Validating street address, city, zip and phone nu If you don't know where to start, it's an issue with the lesson or study material, so it's best to talk with your teacher or TA. You haven't specified what the formats are for the fields, so it's rather...
  5. M

    how do i create login?

    Search first. This topic has been covered many times before.
  6. M

    Obtain inline image filesize (Javascript?)

    Make sure you encode date in in the proper format when outputting it. For example, use json_encode for JS data (since PHP's output format for numbers is already valid JS, you can skip the encoding for such, but for anything else (from bools to arrays), encode it) and htmlspecialchars for HTML...
  7. M

    database problem

    Import the data in phpMyAdmin, which is accessible through cPanel. The document on the phpMyAdmin wiki isn't particularly well organized, but there's not much to it: go to the Import tab, and the rest should be clear.
  8. M

    PHP - Data updated on the same page without reloading

    Code samples should be complete, concise and representative; the issue must be reproducible. If there isn't a suitable page you can share, create a sample page. Pick and apply an indent style to make your code more readable. The mysql extension is outdated and on its way to deprecation...
  9. M

    Obtain inline image filesize (Javascript?)

    It's not very helpful to think of "PHP variables" and "JS variables". There's just code and data, and there isn't always a difference between the two. It can be helpful to think of host and embedded languages when dealing with documents that mix languages. StackOverflow has many questions on...
  10. M

    cant proceed to home page after login

    Please use , [html] or [code] tags (as appropriate) to separate and format code. "stuck at login" is a woefully inadequate description; it's about as bad as "doesn't work". Follow the advice in my sig. The sample code is vulnerable to SQL injection, which is a very serious security risk...
  11. M

    Scrolling message board problem

    When you have a hammer...
  12. M

    JSP help

    If it's for class and the school doesn't offer their own resources for you to use, you should be allowed to install everything on your own computer (you should use your own machine for development, in any case) and have the teacher access your machine from somewhere on the same network at a...
  13. M

    Obtain inline image filesize (Javascript?)

    For image attributes, see HTMLImageElement from the DOM standard; the width and height are simply width and height. For AJAX, see the link in my previous post to send a "HEAD" request, and then use XMLHttpRequest.getResponseHeader("Content-Length") to get the size.
  14. M

    Bigint Not Updating to Current Timestamp

    Is this supposed to be a statement of what you've observed (a symptom), or your guess as to why the column isn't being updated? If the latter, don't guess. TIMESTAMP is a more appropriate column type. Using the outdated mysql extension dulls your skills, as you learn bad habits that you must...
  15. M

    Obtain inline image filesize (Javascript?)

    It doesn't even make sense to ask for the file size of an image element, because the image that appears in a document has been decoded, and doesn't have a file size. The only size-related properties you can access are the width and height. You might be able to do something with Flash, or by...
  16. M

    Detect user typed into textbox

    The language attribute was never a part of any HTML standard (it's not mentioned in HTML 3.2 and deprecated in the first version of HTML4, back in 1997), so the W3C didn't really change anything. I believe "language" was originally a proprietary attribute introduced by IE 4. The W3C doesn't...
  17. M

    PHP Sessions Not working

    Please pick a better indent style; the one you're using now is nigh unreadable. If you're actually using capital letters in the filenames, don't. The file system on the X10 servers is case sensitive. Generally, follow Postel's robustness principle, which (for case sensitivity) means assume...
  18. M

    Cron Job doesn't run php script (command not found)

    The location of the PHP binary has been added to the X10 Wiki article on cron jobs.
  19. M

    Detect user typed into textbox

    The language attribute is deprecated in HTML4, and absent in HTML5. The correct attribute would be "type", set to (for now) "text/javascript".
  20. M

    php script for sending forms data to email

    There is no specific script for e-mail contact forms. There are many, each of which works differently. If you're having problems with some specific script, you'll need to post a minimal code sample so the problem is reproducible. We can't correct what we can't see. Make sure you follow the rest...
Top