Search results

  1. M

    I can't upload files into file manager through ftp.

    Are you still having u/l problems? What FTP client(s) are you using? Is(are) your client(s) using active or passive mode (whichever it is, try the other)? What's the exact error message? If the error is coming from the server, it should have a standard FTP error number along with a message; you...
  2. M

    500 Internal Server Error

    What do you want? What page(s) generate that error (I'm asking for URLs)? An error message with no context doesn't tell us much, especially a generic error message such as that one. If you can access the server error log (check cPanel, though it's often blank there, and look for an error_log...
  3. M

    Gay Marriage?

    How does this matter? It's only important if procreation is the foundation of marriage, which has not been proved in general and is, in truth, an opinion (unless taken as an historical statement, in which case it remains unproven and not necessarily significant for modern times, given that...
  4. M

    Help with Framesets Desperately Needed! (Please)

    When you come from a print background, I can certainly see how it feels that way. However, that viewpoint will only hold you back. It's not so much that you have less control over online layouts as you can create layouts that will adapt to the myriad display settings of users. It's marvelous...
  5. M

    Virus Alerts

    If you're worried that malware has compromised your system, you can create a bootable anti-virus rescue disc (a web search will turn up other options) on a clean computer to check your system. As for what security software to run, here are two sites that perform comparisons of many different...
  6. M

    xhtml

    Yes, you can upload XHTML documents (XHTML documents aren't scripts). There's nothing that limits uploads using either FTP or cPanel to certain file types.
  7. M

    MySQL error?

    In addition: Your script might be vulnerable to SQL injection. Instead of the outdated mysql driver, use PDO and prepared statements. If you need a tutorial, try "Writing MySQL Scripts with PHP and PDO". Don't use die if you're outputting HTML. Don't output error messages from the DBMS...
  8. M

    Perl/CGI: Help writing form data to a file

    PHP scripts should run under your account. You can write a one-off script to change the group using chgrp. While you're at it, use chmod to set the set-group-ID flag on Data, which will, by default, give all newly created files in Data the same group as Data; mode 02770 should do it.
  9. M

    Little PHPlot problem

    Indeed. PHP's GD extension usually uses its own statically linked GD library, rather than what's installed system wide. The Perl GD library links to the dynamic system GD library. Both, however, use the system FreeType library. A newer version of PHPlot might offer some advantage, but fixing...
  10. M

    [PHP] Validate E-mail & Domain Checking

    Don't use ereg, it's deprecated. I would say to use preg_match, but in this case you should be using one of the filter functions, specifically filter_var with the FILTER_VALIDATE_EMAIL filter. What's the invalid e-mail address? We need one to test, and it might as well be that one, since it's...
  11. M

    x10hosting as a subdomain & .htaccess

    If by "different server" you mean different computers (and the files aren't on a shared drive), it's not possible. The Apache web server can only serve up. If you mean "different sites, hosted under different accounts", it's not possible with the current set-up as global access is disallowed for...
  12. M

    Gay Marriage?

    The debate is really centered around the legality of same-sex marriage, since we can decide public policy but not people's attitudes or the stance of religions, with two different actions to decide upon: recognizing gay marriage and disallowing gay marriage. Each exists within a different arena...
  13. M

    Question about Caching

    It's not so much that caching requires more resources as it trades space for another resource, such as (processor) time or bandwidth. In storing and reusing the results of (expensive) computations, additional space is used but time can be saved; PHP accelerators are an example of this, as is...
  14. M

    Parse error: syntax error, unexpected T_ELSE

    There are other problems with your code you need to address. Don't use die if you're outputting HTML. Don't use SELECT *; select only the columns you need. This is vulnerable to SQL injection. The safest, easiest way of fixing this is to switch from the outdated mysql driver to PDO and...
  15. M

    css problem

    More specifically, the problem manifests in IE7 standards (tested running IE8 in compatibility mode) and IE6 standards mode, but not in IE7 Quirks nor in IE8 standards mode. It appears to be what one site termed the float-width bug; try the suggestions on that page. Good keywords for a web...
  16. M

    Little PHPlot problem

    The problems lies in the call to ImageTTFText (which PHPlot::ProcessTextTTF is based on). With what's installed on X10, there are misplacements at every angle from 0º to 90º (in the linked image, note the positioning of the parentheses and equals sign at 0º; see attachment for source). If you...
  17. M

    CGI Programming in C

    As per the CGI spec, the CGI process's stdout is returned to the HTTP client, possibly after processing by the web server.
  18. M

    Little PHPlot problem

    Just tested PHPlot 5.0.5 on my test box and it worked, and tested 5.1.2 on X10 and it didn't, so no help there. X10 (rather, Stoli and Chopin) use PHP 5.2.13+Freetype 2.2.1. All servers tested list the GD extension as using GD version 2.0.34 "compatible" (whatever "compatible" means). The next...
  19. M

    Does PHP PDO need injection prevention?

    There is one subtly about prepared statements that makes it not such a stupid question (only prepared statement parameters are invulnerable to injection; the statement itself can still contain injection vectors if any user input is interpolated into the statement itself). However, the question...
  20. M

    CGI Programming in C

    Please delimit code with [code], [html] or [php] tags (as appropriate) to separate it from the rest of the post and format it. This topic has been covered before on these very forums. Read over those now. "Will this work?" is a vague question; if the other threads don't answer your...
Top