Search results

  1. M

    Class 'mysqli' not found?

    Escalating automatically closes the thread. You'll get a response from an admin in the support section of the X10 control panel.
  2. M

    Need help about javascript

    @subasis: don't revive dead threads. This one is almost two years old. Don't spam. I see all your posts are promotions for that website. You've been reported.
  3. M

    Parsing error in php.ini when running cron jobs.

    Escalating for an admin to take a look.
  4. M

    Class 'mysqli' not found?

    That is indeed a worrisome error. I'll escalate the other thread so an admin will take notice. If you haven't tried it yet, this is something that might be good to bring to IRC.
  5. M

    CSS Float problem

    Because HTML defines document structure, not presentation. Computers have no intelligence, which doesn't just mean they're stupid: it means they are mindless automatons incapable of understanding. HTML is written for programs, not people, and an author should always write to shkler audience. By...
  6. M

    custome login message for a user

    It's your thread, and less than two weeks between posts, so no worries. Other than it uses the outdated mysql extension? You may think that leaving out the quotes was a simple mistake (which it is) of little consequence, but consider how much time this one little thing cost you. Even if it...
  7. M

    I don't know make rewrite URL sel by .htaccess

    I understand that English isn't your first language (which makes asking for help on a mostly English board difficult), but we can't understand your question. Re-posting the same thing in a new thread isn't going to clarify things.
  8. M

    CSS Float problem

    Note that if the source order of the elements requires placing them left-to-right, then top-to-bottom when laid out (as in the second illustration of floats of varying height, where the 2nd element is the top center), then you're limited to positioning each one by hand, using absolute...
  9. M

    force .html files to be executed as .php

    Possibly; I'd need to look into it. I suspect (given how pervasive "index.*" is as a default directory index) that search spiders would consider the two URLs to be equivalent. If you're really worried, you can have your rewrite rule send an external redirect, forcing the index file name to be...
  10. M

    Class 'mysqli' not found?

    If you're not unafraid of coding and PDO is available, I'd recommend using it instead of mysqli. It's supposed to replace mysqli, and is a little nicer to use, due to some additional features (such as supporting the Traversable interface, prepared statement results don't need to be bound, and it...
  11. M

    force .html files to be executed as .php

    A rewrite would be best, as a quick solution. The Right Way of going about it is to leave off the default index file ("index.html", "index.php") from URLs since it's completely unnecessary, and use clean URLs and leave off the extension for other pages (e.g. "/foo/bar", rather than "/foo/bar.php").
  12. M

    force .html files to be executed as .php

    Note that doing this means all HTML files will be passed through the PHP interpreter, even those with no PHP, which will increase your resource usage. If your "specific reason" for not using an extension of ".php" is that you're concerned about the appearance of URLs (always state your overall...
  13. M

    C++ Algorithm

    @ahafeez: see "How To Ask Questions The Smart Way" and "Writing the Perfect Question" for guidelines on asking for help. "Can anyone help me ..." is a useless query. Also, algorithms are independent of programming language, though you can implement an algorithm in a given language using given...
  14. M

    Class 'mysqli' not found?

    The PHP processor used for cron jobs is the command line PHP processor, which is separate from that used by Apache. It's possible that the cli PHP wasn't built with the mysqli extension. You can run a cron job making use of extension_loaded get_loaded_extensions to check this.
  15. M

    Error 500 - .htaccess help

    @merabi-master: Don't threadjack. Don't revive old threads without good reason. Search first. The register globals feature has been covered many times before.
  16. M

    Creating a Simple CMS [PHP + MySQL ?]

    Database design is a matter of modeling. Ask yourself: what are the properties of the things (e.g. pages, posts, authors/contributors/editors) you are modeling? Express this using the relational model (as you are using an RDB), where to-one properties become columns, and to-many (both...
  17. M

    mysql login

    You rang? Time for the boilerplate: The sample code is vulnerable to SQL injection via $_POST['username'], which is a very serious security risk. To fix this hole, switch from the outdated mysql extension to PDO and use prepared statements. If you need a PDO tutorial, try "Writing MySQL...
  18. M

    SQL help (possible a join)

    ALTER TABLE friends DROP COLUMN id; ALTER TABLE friends ADD PRIMARY KEY (user_id, user2_id); To do it from scratch: CREATE TABLE friends ( user_id INT UNSIGNED, -- Match dfn of users(id); should only be UNSIGNED if users (id) user2_id INT UNSIGNED, -- is unsigned, which it...
  19. M

    Ninja v. Pirate!

    Ninja's WHAT? Don't keep us in suspense, man! And axes and grappling hooks and pistols and muskets and cannons and blunderbusses and grenadoes and ... To be fair, Ninjas had their own variety of weapons, just not any black-powder–based ballistic ones. Pirates were trained sailors, and...
Top