Search results

  1. M

    Failed opening required - Commentics & cgi-bin

    Note that Scripts, 3rd Party Apps, and Programming is a more appropriate forum for this issue (if you ask the admins, maybe one will move the thread). To resolve this, first consider how the include and require special forms resolve relative paths: check in each directory specified in...
  2. M

    Computer RAM memory

    Typically, if the motherboard doesn't detect the memory, Memtest86+ and the like can't test it.
  3. M

    Website - Loading speed

    There are various online tools you can use to help with your site load time, which not only analyze load time but have recommendations as to how you can speed it up. Note that these tools only show the load times from your computer or their test servers; Google Analytics can show you the actual...
  4. M

    Computer RAM memory

    Re: Computer RAM not recognized Also try removing the sticks and using canned air to clean out the slots. The most likely reason that a motherboard doesn't register a module is a bad connection, such as can be caused by dirty contacts or (as techiejo mentions) an improperly seated stick (the...
  5. M

    Passing Variables to Include Files

    For essentially the same reasons that globals are bad, code should be isolated into local scopes (basically, functions); this is part of separating concerns. Instead of having code output the menu at a global level, create a view: a function or class that outputs it. You can either call the...
  6. M

    which language is good?

    Without requirements, there's no objective definition of "good". Good for what? ASP isn't a language, it's a script engine. PHP and HTML are used for entirely different things; the former is a programming language, the latter a document structuring language. It's rare that you'd use PHP...
  7. M

    Moodle and Scripts

    Some of the advice on how to handle Wordpress in the X10 Wiki article on high resource usage should apply to Moodle or any underperforming site software.
  8. M

    PHP to begin deprecation of ext/mysql -- start moving your development to PDO now

    mysqli is simpler as a drop-in replacement for the outdated mysql extension, as the interfaces are similar, but PDO is generally considered the easier to use and more expressive extension, requiring fewer method calls to achieve the same affect. The API Overview on MySQL.com says: "PDO has its...
  9. M

    Get domain name (not subdomain)

    In that case, would you mind posting your solution for the benefit others facing a similar issue? Just be warned that your solution may be picked apart and improved.
  10. M

    How you learn a programming language?

    Not again. W3Schools is outdated, inaccurate and incomplete, and that's not just my opinion. Some improvements have been made in recent years, but it's still inferior to other sources. It still teaches bad habits, and there's too much you'll have to unlearn.
  11. M

    How you learn a programming language?

    When I started out, I didn't learn a programming language, I learned to program. The depth of the topic was enough to keep me interested. After that, learning programming languages was fairly inconsequential; learning a new one now is simply a matter of recognizing which features it supports and...
  12. M

    Resolving issue

    You can (and should) always check the status page and News and Announcements sub-forum. The former has a post that certainly seems to be exactly the issue you describe: "Default Web Page" (on new accounts).
  13. M

    Print CSS Errors

    What are the specific issues, preferably illustrated with screenshots? What specific version of Firefox are you using? I see no sections missing other than what I would expect to be missing (the menu & slideshow) in FF 12.0 on OS X 10.6.8. I see a page break between the "Contact Us" heading and...
  14. M

    MySQL not recording

    Note that there are no error messages because you've implemented no error handling. In general, programs don't just do things; you need to explicitly implement any behavior you want. Sometimes the platform may handle certain tasks automatically, but you can't assume this will be the case and the...
  15. M

    Get domain name (not subdomain)

    It's never such a foregone conclusion, and you didn't seem to be trying to start anything. I just wanted to keep the thread on-topic.
  16. M

    sending emails through mail()

    Please use [php], [html] or [code] tags (as appropriate) to separate and format code. As [pre] isn't supported in the X10 forums, you can use [code] for non-code text to preserve formatting .
  17. M

    Get domain name (not subdomain)

    That's a good point. If the definition requires that the domain has a DNS record (whether of a specific type, or of any type), or must be a reachable server, a pattern-based approach won't be sufficient; gethostbyname/dns_get_record/checkdnsrr or ping (depending on the exact requirements) would...
  18. M

    Help needed PHP: Using SOAP with drupal

    Did you try searching for "drupal authentication"? Some of the first results are: Using an external data source for Drupal user authentication and login Drupal 6 External Authentication - Sample Code The search results immediately suggest that "drupal external authentication" would be...
  19. M

    PDO - Should I sanitize? if so how?

    mysql_real_string_escape should only be used with the mysql extension, not with PDO and not with mysqli. Only if PDO is emulating prepared statements (the PDO::ATTR_EMULATE_PREPARES attribute is set to TRUE, or the driver doesn't support prepared statements) will it escape data bound to...
  20. M

    Why my php code is commented ?

    "Commented" is completely the wrong term; commented code would be surrounded by "/*" and "*/", or have "//" at the beginning of each line (for PHP comments), or be surrounded by "<!--" and "-->' (for HTML comments). What you probably mean is that when you view the source of the page in a web...
Top