Search results

  1. M

    Help required on my script php Dom xml

    I'm sorry, I don't understand what the problem is supposed to be in your most recent post. To which script and function are you referring?
  2. M

    Just trying to create a simple PDO query function

    What is the purpose of GetCell? As it is, it doesn't seem to gain you much. What you should be doing is hiding DB access behind a data access layer (DAL) to isolate persistent storage from the rest of the app. See the Active Record ([2], [3]) and the Data Mapper ([2], [3]) patterns for examples...
  3. M

    Get filesize of external/ remote image

    Unless you're already GETting the images with HTTP, issue a HEAD request. The Content-length header in the response is the size of the image data. If you're GETting the images for other purposes, just use the Content-length from the existing query.
  4. M

    Setting up relationships in phpMyAdmin

    This forum is ostensibly for help with 3rd party apps you've installed, rather than for the apps X10 provides for site administration. On the other hand, phpMyAdmin is an app created neither by you nor X10, so is thus "3rd party". The free hosting forum might be more appropriate (a forum admin...
  5. M

    Shared ip

    Note that both come from the X-Forwarded-For and X-Real-IP HTTP headers, respectively, and can thus be spoofed. It shouldn't matter when using the load balancing server (since they'll add the clients real IP to the headers), but if you ever migrate your code to another server that doesn't use...
  6. M

    Help required on my script php Dom xml

    That's not enough information. For example, is $chart rendered as a <dataset> element, or a parent of <dataset>? As it is, there's too much we must guess about, so any specifics we might go into are largely supposition. Code samples should be enough to be complete and to reproduce the problem...
  7. M

    POST & GET methods did'nt work

    PHP_EOL works for what it's supposed to do, but "work" is one of those generic verbs that doesn't actually say much by itself. PHP_EOL is the newline for the PHP interpreter's platform. It's useful to output a newline to suit the interpreter's platform, rather than the platform the script was...
  8. M

    POST & GET methods did'nt work

    PHP_EOL == "\n". The code ensures lines are terminated with CRLF. If "\n" == CRLF, then newlines already contain a "\r". Otherwise, the CR is added. I'm still looking for a more elegant & robust way of using multiline strings with SMTP; a simple regex, perhaps. Or maybe I should just let...
  9. M

    POST & GET methods did'nt work

    Or or , as appropriate. Note that, when properly indented, you can see structural problems with your code. <BODY> <FORM METHOD="post" ACTION="send_simpleform.php"> <P><strong>Su Nombre:</strong><br> <INPUT type="text" NAME="sender_name" SIZE=30></p> <P><strong>Su E-Mail...
  10. M

    POST & GET methods did'nt work

    Note that full source code isn't necessary. More helpful is a minimal code sample, just enough code to be complete and to demonstrate the issue. To describe the problem clearly, state what you expect to happen and what actually happens (including any error messages).
  11. M

    Dose any one know mysqli?

    mysqli is just another DB driver to interface PHP scripts with MyQSL. As long as the extension is part of the local PHP install, it will work just as well (if not better; it has greater functionality) than the outdated mysql driver. If you want to know more, read the manual.
  12. M

    Creating a Tutorial Site ???

    What subjects are the tutorials going to cover? Who is going to write the tutorials? Most CMSs could be made to work. What are your exact requirements?
  13. M

    Help required about php Dom xml

    What did you try? What were the errors? You haven't given nearly enough information. Among other things, you should post minimal sample code.
  14. M

    how to create login file...

    The two biggest would be two switch to PDO (so you can use prepared statements) and to separate authorization, user accounts, database access, and all the various concerns.
  15. M

    css3 & html5

    W3Schools fails when it comes to best practices, and it doesn't teach from useful conceptual models. W3Schools doesn't teach HTML 4 and XHTML semantically. Worse, they use presentational elements such as <b> and don't cover when it's OK to use <br/> (which is rarely, since <p>, <ol>, <ul>, <dl>...
  16. M

    WordPress change URL or domain mapping

    Nope. Make sure you're using the X10 name servers.
  17. M

    [Server setup]: CName and A record handling

    A CNAME record is a canonical hostname. When the browser goes to resolve the hostname "lookup.domain.com", it gets a response saying that "lookup.example.com" is the canonical name. The browser uses the canonical hostname rather than the original to get an IP address (often, the DNS response...
  18. M

    Using a .php file as a stylesheet

    Either set the colors on an ancestor element and rely on the cascade, or use a class. In all modern browsers, you can access style sheets via document.styleSheets and add rules (though the method differs between IE and other browsers). You can add support for DOM methods to IE, or you can use...
  19. M

    layering issues with login box...

    The only boxes that are taken out of the normal flow are floats and absolutely and fixed positioned ones. Floats won't let you overlay, so you'll need to absolutely position the element you want to appear in front (e.g. #toppanel), and relatively position its parent. Safari should work as...
  20. M

    Login not working - Information not kept across pages?

    The linked sample is vulnerable to hijacking, whether by theft, guessing the SID or XSS. It's also potentially vulnerable to server local attacks. If the folks in ##php were thinking of any other vulnerabilities, I'm not sure what they'd be.
Top