Search results

  1. M

    mod_rewrite problems

    My research tells me running a Habbo retro breaks international copyright law (though possessing the code itself doesn't), which is why the PHPRetro project is no longer available on Google Code. If you had successfully installed PHPRetro, your account would have been suspended under the zero...
  2. M

    Help with domain mod_rewrite

    You can't, because that requires setting up a virtual host, and you don't have access to those settings. Instead, you can set up a subdomain in cPanel to map a host name to a directory. If you want this to be visible to visitors (i.e. a redirect), you can create an .htaccess file in the...
  3. M

    Database help

    You should state the problem in your post rather than directing people to the site. Always describe what you expect to happen and what actually happens, including any error messages. Without the former, we can't tell what's wrong. You should include a link to the specific page (not site) that...
  4. M

    PHP Problem. only page id links

    Don't use die when outputting HTML. You'll get invalid HTML. Outputting database error messages to non-admin users discloses too much information. Instead, log the MySQL error message. For some errors (such as those related to missing or invalid values), output your own error message to the...
  5. M

    uploader programming help

    PHP is strictly server-side. It doesn't upload files, it only receives uploaded files. See "Handling file uploads" in the PHP manual for more information on the server side of things. Note that file hosting is against the Terms of Service. Depending on the purpose for the uploaded files, you...
  6. M

    Having error issues ( php help )

    Don't cop an attitude. This is volunteer support and a forum for general programming issues. You were asking about a 3rd party script that perhaps no-one else uses. Nobody here has an obligation to support anything, let alone products that X10 has nothing to do with. I'm glad you found a...
  7. M

    Javascript dividing by 100 giving long decimal numbers

    It's not a JS error, it's a consequence of floating point representation. For the same reason that the decimal expansion of 1/3 doesn't have a finite representation in base 10, numbers such as 1/5 don't have a finite representation in base 2 (which would be 0.00110011...₂). It's just that JS is...
  8. M

    mod_rewrite help please? :D

    That's not enough information. What determines the mapping between category numbers and names? Is that information stored in a database, a script or somewhere else?
  9. M

    Changing timezones.

    There's only one php.ini per host, so it can't be edited for the needs of just one user. Use date_default_timezone_set. in your initialization script.
  10. M

    Parse error: syntax error, unexpected T_VARIABLE

    Please use [php], [html] or [code] tags (as appropriate) to separate and format code. It will be a particular help here, as the code colorizing will highlight the error. The mysql extension is outdated and being deprecated. Switch to mysqli or PDO. Both support prepared statements, which let...
  11. M

    PHP script stopped running on x10hosting

    No sample code, no error message... You're not giving us much to go on. When looking at the output of http://caching.x10.mx/country.php (which I assume is the script you're referring to), I see a couple of issues. One is it includes PHP code in the output, code that uses short tags. Don't use...
  12. M

    Php Script Help!

    @sonicx.forums65: suppressing warnings only works in the short term. Long term, calls to the POSIX regex functions need to be replaced with PCRE. See "PHP 5.3 Help" for more. Not that it matters much to the OP, since his site breaks X10's terms of service. Others with the same issue, however...
  13. M

    Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype

    Most likely, the other host had output buffering enabled. As for the double post, I thought it might be unintentional. vBulletin has the occasional hiccup. I appreciate that you know not to double post.
  14. M

    Php Script Help!

    Rather than asking for help every time you get a warning about the deprecated POSIX regex functions, read the PHP manual page on the differences between POSIX and PCRE regexes and learn to do the conversion yourself. It's not hard at all.
  15. M

    x10hosting Pumpkin Decorating Competition!

    I love that one, both the comic and cartoon (though the comic slightly more–it has better pacing). "Pancakes" has a special place in my heart.
  16. M

    Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype

    You're outputting the start of the body before printing the Content-type header. Headers must be printed first. Read up on HTTP for the reason why.
  17. M

    Mysql Error

    Start with X10 MySQL information.
  18. M

    x10hosting Pumpkin Decorating Competition!

    @footballfun230, looks like a Mike Mignola character. Just for the sharin', not for the winnin': Images link to album, where you can see the sides. When's the costume contest?
  19. M

    a script that connects to database

    Samples should be minimized to reduce extraneous information. 279.2 KiB is far too much to have to wade through for a single table. Administrating a room implies a relationship: a room has an administrator, a user can administrate a room. Lucky you're dealing with a relational database. Since...
  20. M

    Log in Script HELP

    Have you searched these forums? There are a number of threads on the topic, if you're set on developing it yourself. However, you're better off finding an existing package. Authentication–indeed, anything security related–is fraught with difficulties. You should only develop your own solution...
Top