Search results

  1. W

    Help with PhpBB warnings

    Show us the code at and around line 6 in that file, please. From viewing the code given on the page that TechAsh provided, it shouldn't be throwing that error. Perhaps you modified it inadvertently.
  2. W

    How to identify Combobox control (HTML)

    If the call is in the onsubmit event of your form element, it should be Validate(this). That is, <form onsubmit="Validate(this);"> Also, you can use theform.elements instead of document.getElementById('theform').elements if the form object is being passed correctly.
  3. W

    How to identify Combobox control (HTML)

    You're using a single = instead of a double. So you need to change if(elem[i].type="select-one" && elem[i].value="") to if(elem[i].type=="select-one" && elem[i].value=="")
  4. W

    CGI eMail problems

    Are you sure that aj-web-design.com is pointing to your x10 account? http://ansunlimitedllc.x10hosting.com/cgi-bin/cgiemail works fine, but http://www.aj-web-design.com/cgi-bin/cgiemail doesn't.
  5. W

    CGI eMail problems

    Are you sure you installed cgiemail on your site? When I go here: http://www.aj-web-design.com/cgi-bin/cgiemail it comes up with a 404. That shouldn't be happening if cgiemail is installed.
  6. W

    CGI eMail problems

    I've never used cgiemail, but I believe that you first need to move your email text file out of the cgi-bin directory to avoid that 500 error. As for the action of the form, it depends on where you put that file. For example, if you put it in a directory like 'public_html/email/' I think the...
  7. W

    java and the time

    This is just gonna make it more confusing, but I'm seeing no difference between using endtime-starttime and timediff in my own tests. Both seem to calculate the execution time exactly the same(as would be expected). Furthermore, I've used almost the exact same code myself in many other...
  8. W

    Need help with PHP script for ping monitoring for different location.

    In order to ping from different locations, you need to own or have authorized access to servers at those locations. As you can see from watchmouse.com here: http://www.watchmouse.com/en/worldwide.php they have servers at each of the locations they ping from. As for just-ping.com, I would think...
  9. W

    How do I take my site offline?

    If the changes are superficial, i.e. you're not making important bug fixes or anything like that, then it's better to do it as rlodge suggested so that visitors can go on using your site. For bug fixes however, then it would be better to do something like kllctcat said. Although you'll need to...
  10. W

    php loop within switch ??

    If all files in the folder are accessible, which is what I believe since you have no conditions for excluding files in your loop, then it's probably better to just do something like this: <?php $path = 'html/'; $view = str_replace(array('\\', '/'), '', $_GET['view']); include $path . ($view...
  11. W

    storing ip address of visitors

    I assumed that he took that code out of context since he said there was a db connection. However, you may be right seeing as how that code *should* work if there is a connection and the tables are correct as he claims.
  12. W

    Autodownload in PHP?

    Better to give someone only what they ask for and let them apply it as they see fit ;-)
  13. W

    How To Update Mysql If the scenario is this..

    If you've made a registration page, this shouldn't be too hard. A user cp is similar to a registration page in functionality except that it uses an update query instead of an insert. You should have variables getting and validating POST data, and then just update the db with the new information.
  14. W

    storing ip address of visitors

    Getting visitors' IP's and storing them in the db is certainly something even Basic level allows. I'm not too sure what the problem is here. Have you tried getting an error from mysql_error()?
  15. W

    Autodownload in PHP?

    $file = 'path/to/file/name.ext'; header("Content-Length: " . filesize($file)); header("Content-Disposition: attachment; filename=$file"); readfile($file); That should open a download dialog box as soon as it's executed.
  16. W

    Online shop help/ Registerd globals

    Just delete the right curly brace that's on that line.
  17. W

    Word Wrap in html tales ??

    The best you could do with the css is 'overflow: scroll;' I believe. However, if you don't mind using php or if the text is already coming from php, then I would recommend using the wordwrap() function.
  18. W

    PHP and XML parsing

    Rank is being set, but the next time contents() is called you reset $story_array[$counter] to a new xml_story object when setting the rate. So you need to modify the contents() function to this: function contents($parser, $data){ global $current_tag, $xml_rank_key, $xml_rate_key...
  19. W

    Process PHP from a MySQL array

    I'm a little confused, sorry. Is that the code that's stored in the db or is that in the file? If it's stored in the db, what's wrong with putting it in the file? And if it's stored in the file, where's the code that comes from the db?
  20. W

    Process PHP from a MySQL array

    Executing code from a string already goes against good programming practice. But to store what should be its own file in a string and execute it is just insane. I strongly recommend against this. What exactly is it that the code which would be eval()'d is supposed to do? If you meant to apply...
Top