Search results

  1. M

    Javascript Validation

    You also need to hook the form's submit event. If you're using inline registration, it needs to return the function's result. <form onsubmit="return validate(this);" ... If you're using DOM registration (such as provided by jQuery's event system), you need to call Event.preventDefault in your...
  2. M

    Python troubles

    You only need an AddHandler directive outside of cgi-bin (and scgi-bin, if it's already configured with a ScriptAlias directive). What you're missing is a shebang line. Add: #!/usr/bin/python to the start of the script. Also check that the script has execute permissions, that you upload it in...
  3. M

    Cron job to run once a day is not working.

    That could very well be. However, I believe that rm is installed as a binary rather than a built-in shell command (it certainly isn't a bash built-in), and should thus be accessible (though the full path to the binary might need to be given). find is definitely a binary. I can't check right now...
  4. M

    Cron job to run once a day is not working.

    How, exactly, is it not working? Is nothing deleted? Are some things not deleted? Are you getting any e-mailed output from the command? Also try the command: rm -Rf /home/bhupendr/public_html/temp/*. The -f is to force deletion without asking for user input. Note also the space between the...
  5. M

    SiteReptile Javascript Problem

    The two ad requests that I see have a 400 Bad Request and 403 Forbidden responses. Check that your friend is using the correct client ID, that the ID is registered for the site's domain (even the leading www. might cause problems if it's supposed to be drupaldemo.x10hosting.com) and that the...
  6. M

    PHP error report script - PDO::prepare not working

    If the DB connection fails, how is writeError (which relies on a DB connection) supposed to succeed? Furthermore, the script that defines writeError() depends on dbc.php, so writeError() cannot be defined when you create the DB connection. $location and $dbh are local and undefined. A global...
  7. M

    Suspended and moved to new server

    Read before posting: "Account suspended, user moved to another server" You haven't been suspended for inactivity. Your server name shouldn't change, but you can always check your account panel to find which server hosts your site.
  8. M

    Php - StoredProcedure - Mysql

    cPanel doesn't properly support the EXECUTE permission. The following threads discuss the issue. I can't export neither procedures nor functions from phpmyadmin how to add permissions to EXECUTE PROCEDUREs ? MySQL Stored Procedures access denied to a function! They're not hard to find by...
  9. M

    Parsing PHP in Html Files

    There are numerous threads on this topic: PHP parsing error .htaccess problem Including PHP script in HTML how to use php code in html page? View php files as another filetype? Something Isn't Working In any case, running all HTML files through PHP is wasteful. All you need to do is give PHP...
  10. M

    How does one find out what server they are on?

    If for some reason you can access neither your account panel nor cPanel, you can use dig or nslookup (depending on yours OS) or a dig web interface to look up the IP for your site name and then run a reverse look up using the same tool to get the primary server name for that address.
  11. M

    Javascript mouseoffset problem - Box that is offset stays in the same place

    You're not calling mouseCoords, you're simply referring to it. An interactive debugger would have revealed this in short order. If code isn't doing what you expect, your first step should be to use a debugger. posx and posy aren't defined here. There's no need to declare e as a variable. Since...
  12. M

    my account activity

    Read before posting: "Account suspended, user moved to another server"
  13. M

    Ordenar Cadenas (texto) Alfabeticamente con PHP => Ayudandonos de MySql (tablas temp)

    Re: Ordenar Cadenas (texto) Alfabeticamente con PHP => Ayudandonos de MySql (tablas t Socket programming scarcely varies with platform and language, as it's usually modeled on the Berkeley socket API. See the sockets section of the PHP manual.
  14. M

    unsuspension

    You broke the terms of service, which you had to agree to when signing up. Moreover, the reason for your suspension falls under the zero tolerance policy. Your account cannot be unsuspended; you cannot retrieve anything stored on the server. You must seek hosting elsewhere.
  15. M

    jQuery hover menu - Nothing works

    Take a close look at the selectors and structure. The Dark Horizons menu selects the parent .navigation-tongue ($("#content-navigation .navigation-tongue")): <div id="content-navigation"> <ul> ---><li id="content-navigation-news" class="navigation-tongue"> <a href="/news/">News</a>...
  16. M

    Script error logs?

    Apache might be part of the default install for your distro. You can also use the package manager for you distro to install the various programs. XAMPP for Linux makes things a little easier by installing and letting you start/stop/restart everything at once and by having a useful default...
  17. M

    jQuery hover menu - Nothing works

    Similar isn't the same as same. Compare: $("#content-navigation .navigation-tongue")[...] <div id="content-navigation"> <ul> <li id="content-navigation-news" class="navigation-tongue"> <a href="/news/">News</a> <ol> with: $(".HM_menuItem a")[...] <div id="navi-menu"> <div...
  18. M

    Ordenar Cadenas (texto) Alfabeticamente con PHP => Ayudandonos de MySql (tablas temp)

    Re: Ordenar Cadenas (texto) Alfabeticamente con PHP => Ayudandonos de MySql (tablas t The overhead of using MySQL means it isn't worth using to sort data that isn't already stored in the database, especially as PHP already has sorting functions. Additionally, PHP has scandir(), which returns...
  19. M

    jQuery hover menu - Nothing works

    Firstly, the sample page calls the jquery methods before the elements exist. Use ready() to set up the handlers and hide the elements (you should have caught this one). Second, find() searches descendants. Use next() or nextAll() to get following siblings.
Top