Search results

  1. M

    where to begin?

    When it comes to relational databases, Codd's "A Relational Model of Data for Large Shared Data Banks" is the seminal work. It doesn't cover many of the normal forms, and it's not easy to learn from unless you're used to academic papers. It is, however, very short (11 pages) for the amount of...
  2. M

    Images don't show up in page

    Don't remember who the poet is, but it's from "Laughing Space", collected by Isaac Asimov. It looks like mvastro has been editing the page, which might be part of it.
  3. M

    Images don't show up in page

    If you're referring to the picture of the nebula (which is that? Eagle?), then it's currently showing up. Clear your web cache, or try a super refresh (shift + refresh on many browsers). I'd be more concerned with all the <big> and <small> tags and the inline style.
  4. M

    Restricting Directories

    PHP doesn't ignore permissions; the only processes that can ignore permissions are those running as root. What happens is PHP scripts run with your credentials, so the "owner" permissions apply. Since the owner usually has read access (and execute/search for directories), the PHP script can...
  5. M

    Iframe just opens

    Web proxies are against the ToS. They fall under the zero tolerance policy, which means if you install one, your site is shut down and you're banned from X10. Note that merely opening a page on another site in an iframe isn't a web proxy, since the browser communicates with the other server...
  6. M

    cant login to mysql

    Read the sticky in this very forum: "Unable to connect to MySQL? Read this!".
  7. M

    MySql Error

    Note in the error message: This either means you're not passing a password, or you're using mysql_connect, which is failing, and you've suppressed errors from it. Rather than suppressing errors, set your own error handler or switch to PDO and use exceptions.
  8. M

    SQL not allowing connectivety

    Sticky in the "Free Hosting" forum: "Unable to connect to MySQL? Read this!".
  9. M

    help with form script please

    Note that I update poem.php to remove three XSS vulnerabilities. If you have a copy of poem.php and line.php older than this post, replace it with the new version. For reference, here's the section of poem.php that's been updated (part of printNewPoemLineForm): if (...
  10. M

    even offline

    $sitelink doesn't look to be involved with the database at all. It looks like it's used when referring to other resources (e.g. stylesheets and other pages). You should change it so that links don't refer to resources off-site. Only if you keep us up-to-date on what problem you're having and...
  11. M

    Error Establishing Database Connection

    The first place you should always check is the service alerts forum. MySQL and cPanel have been undergoing upgrades, and Lotus and Chopin have been having teething troubles.
  12. M

    Input script

    If I'm understanding the problem, a textarea is what you're looking for. On the server, split the field value on whitespace to get an array of codes.
  13. M

    Redirect when sql server fails

    Alternatively, you can work with PDO and exceptions, which has the advantages of not disclosing too much information to users, yet still making that info available for you to log: <?php include_once('localDB.php'); try { $dbConn = localDB(); $query = $dbConn->prepare(...)...
  14. M

    directing to x10 subdomains and <title> and <meta ..> tags.

    What are the actual URLs involved? No point in making up examples. Also, it's difficult to help without being able to see what's going on for ourselves. As for the HTML source, X10 doesn't generate any. Are you using an X10 provided sitebuilder? If not, are you using a prepackaged CMS? How is...
  15. M

    help with form script please

    @nobackseat: my comments were for the sake of anyone unaware of the issues at play, including tradervic and future readers. For instance, you obviously know about SQL injection, but tradervic doesn't (in all likelihood). Without such warnings, sample code winds up in production code. The key...
  16. M

    help with form script please

    For readability's sake, pick an indent style and stick with it. The opening tag should be "<?php". Short tags aren't always enabled. The old mysql driver is outdated. PDO is the way to go. For one thing, it supports prepared statements. Also, the connection to the MySQL server should be done...
  17. M

    www. redirection?

    The server name with the "www." opens for me. I'm currently getting "Fatal error: Maximum execution time of 30 seconds exceeded in /home/csense/public_html/PHP/AdServer.php on line 43" for both domains, but not when I first tried it a few minutes ago. Flush your DNS cache and try again.
  18. M

    PollDaddy Plugin for WordPress 2.9.1 Unable to Connect w/Host Issue

    "Scripts & 3rd Party Apps" is appropriate, as is the "Free Hosting" forum. To ensure a response, you should probably open a ticket, which will first start a thread in "Free Hosting". If an admin truly needs to look in to it, the thread can be escalated. However, the usual response is to ask your...
  19. M

    Help setting up redirect for "not found" pages

    As noted before, you can either use ErrorDocument and have your error document redirect to wherever, or use RedirectMatch or RewriteRule (with the R=301 flag) to match specific outdated URLs. To match alternates in a regular expression, use a vertical bar: "mob(ile)?|iphone|m". Are there no...
  20. M

    php connecting to db

    It's not necessarily an either/or situation. Use PDO, because it offers custom queries, integrates with SPL (the PDO drivers use exceptions and PDOStatement implements Traversable, so you can use it in foreach loops). Also, Don't Repeat Yourself (or others). If there's a particular feature you...
Top