Search results

  1. M

    Getting Resource Limit Hit even on Prime membership

    On the contrary, WP 2 was a known CPU hog. I've heard rumors that WP 3 isn't as bad, but haven't seen any evidence. Plugins make matters worse. Sometimes, a few specific plugins push WP past the tipping point. There's no short way of figuring out which plugins are most problematic, but the X10...
  2. M

    Get domain name (not subdomain)

    Yes, but getting into TLDs is a diversion, as ellescuba27's requirements don't involve extracting the TLD separately from the site domain. The original comment about the TLD for "mysite.x10.mx" wasn't apropos. It doesn't matter what the TLDs for "mysite.x10.mx" or "foo.bar.com" or even...
  3. M

    Sanitize contact form?

    Considering that the internet doesn't weigh anything... I wrote the second mostly to focus and expand on the concept of host vs embedded languages from the first link. About the only new information is a section on the problems of "</script>" embedded in JS embedded in HTML. It also has a few...
  4. M

    Need Help--> Concerning my page login

    Actually, he does. Leaving off a PHP close tag is perfectly valid, and the presence of same can cause the error solo1 posted if there's any whitespace (other than a single newline) after the close tag. In particular, it's an issue that arises with library/framework scripts (scripts that defines...
  5. M

    Sanitize contact form?

    While you can't have SQL injection if SQL isn't used, SQL isn't the only thing vulnerable to injection attacks. Injection happens whenever user-supplied data is interpolated directly into statements in some formal language. As a consequence, you must consider injection for outgoing data, and...
  6. M

    need help with my cgi mailform

    Please use [php], [html] or [code] tags (as appropriate) to separate and format code. Note that a search of x10hosting.com for CGI over the last year or so reveals that CGI scripts have been disabled.
  7. M

    help me

    Lotus was being worked on earlier, but should be up and running now. You can (and should) always check the News and Announcements forum and status announcements page whenever there's a server issue.
  8. M

    pretty please help

    Always check the News and Announcements forum, and the status announcements page before reporting an issue. The admins are already aware of full disk issues and are working on it. At this point, you have nothing to do but sit back and wait. Actually, check cPanel; the issue may already have been...
  9. M

    Help me...

    This particular forum is for programming issues, not hosting issues (there's the Free Hosting forum for that, as well as the support system). Before reporting an issue, check the News and Announcements forum and the status announcements page. To be fixable, problems must be reproducible. To...
  10. M

    MySQL not recording

    Insertion doesn't (indeed, can't, since it includes no type information) create databases or tables. INSERT statements are part of the DML; you need to use a DDL statement (specifically, CREATE TABLE) to create a table. See How to Create a MySQL Database and User for info on creating a DB on...
  11. M

    Code is being cut off

    Take a closer look at the generated page source and ask yourself: "what PHP code does this correspond to? What code generates the missing output? Under what conditions is that missing output printed (or not printed)? Where are those $session and $config variables set?" If you're still unsure...
  12. M

    MySQL not recording

    "What shouldn't be changed" isn't a good way of going about it, as "breaks" isn't the best measurement. It completely ignores things like best (and worst) practices. Even code that gives the correct result can be broken in that it can be inefficient, or broken from a development perspective...
  13. M

    MySQL not recording

    When asking for help, include minimal sample code. State what you expect/want to happen, and what actually happens, including all error messages. Problems must be reproducible for them to be solvable. Read my sig for more. That tutorial uses the outdated and softly-deprecated mysql extension...
  14. M

    Need Help--> Concerning my page login

    When asking for help, describe exactly what you expect/want to happen and what actually happens, including any error messages. If you're asking about code, include minimal test case and a link to a live version of same. Read my sig for more.
  15. M

    Get domain name (not subdomain)

    True, but that's exactly why we've only been talking in terms of "domains" and "subdomains", not TLDs. Extracting a domain name from a URL is a different issue from extracting a domain from a subdomain. The former is easily handled by parse_url. There's no standard PHP function that explicitly...
  16. M

    Javascript Collision detection using ID's

    There's good lazy (getting a computer to do your work) and bad lazy (getting a person to do your work). Asking for teh codez is the bad kind of lazy. Research, try to do it yourself, and ask specific questions when you're stuck.
  17. M

    Replace files on external websites with your files? (web browser)

    Why do you need this? Your written description is unclear. You can't really "trick" the browser into replacing one image with another and simultaneously have the browser "think" it's the original image, if that's what you're getting at. Even the plugin you link to merely changes the source of...
  18. M

    Web services

    You can use a tool to automatically generate JS (or code in other languages) that accesses the service. A search for "WSDL Javascript" turns up a number of potentially useful pages (the last three won't be of use on X10): Apache CXF: WSDL to Javascript Javascript SOAP Client wsdl2js (a...
  19. M

    Web services

    Another option (and my personal preference) would be to implement a RESTful web service. Rather than layering another protocol on top of HTTP (such as SOAP or XML-RPC), REST uses HTTP for transport and any format you want for data interchange (typically some combination HTML, JSON and XML)...
Top