Search results

  1. marshian

    Center Picture using CSS

    Well it all depends on your browser! If you use an image <img style="margin-right: auto; margin-left: auto;" /> in firefox, it's centered in the parent element. If you use exactly the same code in internet explorer 7, nothing happens... If you use <div style="text-align: center;"> <img />...
  2. marshian

    Downloadable Graphic Cards?

    Omg, so that's why they're complaining about the internet infanstructures! Ö You can download hardware these days! No wonder the lines are jammed... (PS: you can't download a graphics card, it's hardware...)
  3. marshian

    Automatic forum login

    No I did understand you, but I'm saying you need a unique securitytoken to login...
  4. marshian

    How to manually insert your error pages

    Create a .htaccess document ErrorDocument 404 403.php (Syntax: ErrorDocument errorcode url) - Marshian
  5. marshian

    how do i do this?

    Very easy, something like this: <img src="source" style="width: 100%; height: 100%;" />
  6. marshian

    Automatic forum login

    If you stip all unimportant things off the loginform, you get this: <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)"> <input type="text" class="bginput" style="font-size: 11px" name="vb_login_username"...
  7. marshian

    Help Customizing Captchas

    Well, first of all, you should put all elements in the same <form>. Second, that's a very poor solution in your main captcha script, I recommend changing it to this: <?php session_start(); define('CAPYAINC','/home/user/public_html/domain/anti spam/'); // the directory where the fonts and bg...
  8. marshian

    auto-direct?

    Standard you get the index-file of a directory, but in this case the index-file is missing, so you get the directory index (not index-file). (You can turn index-listening off in your cPanel.) As driveflexfuel said, the easiest way to solve this is rename "Hom.html" to "index.html", but there's a...
  9. marshian

    W3C CSS Validation Help - 2 Errors

    Line 359 ends with "llm", which should be removed. Line 456 ends with "*/ */", remove the second "*/".
  10. marshian

    Help Customizing Captchas

    You say your code works fine, is your problem solved? Or do you still have a problem "How do I integrate my captcha here?" ? (And if so, what is it?)
  11. marshian

    x10 Hosting Ad code + Adsense too

    http://www.openwebdesign.org/design/2876/MultiFlex21/ works on FF3, but there's a problem with one of your links in the menu (see attached image)
  12. marshian

    Help Customizing Captchas

    There's this line of code: $_SESSION['askapache_captcha'] = md5($capya_string); Which stores the md5 of the captcha-string to $_SESSION['askapache_captcha'] (btw, weird name, and why md5 it? it's stored server-side, the user is unable to view it, unless he hacks the server, which is worse than...
  13. marshian

    PHP security

    x10 has a lot of settings to protect us from malicious users, but as VPmase said, the most important thing is to NEVER THRUST THE USER. Whatever you need as imput, check it. The function everybody likes: preg_match().
  14. marshian

    Cron / Perl problems

    I 'think' this is what your code should look like: #!/usr/bin/perl # PERL MODULE WE WILL BE USING my $homedir = (getpwuid($>))[7]; my $n_inc = scalar @INC; for (my $i = 0; $i < $n_inc; $i++ ) { if (-d $homedir . '/perl' . $INC[$i]) { unshift(@INC,$homedir . '/perl' . $INC[$i])...
  15. marshian

    difference between max_connection and max_user_connection

    I'm guessing: max_connection: maximum amount of connections to the server max_user_connection: maximum amount of connections one user can make to the server
  16. marshian

    Cron / Perl problems

    You can't lengthen the execution time, and I was about to give you php code to change the internal pointer, but that probably won't work in PERL xD. PHP has mysql_data_seek(), but I've got no idea about PERL... Google says: $query->dataseek($row_number); Maybe this will work...
  17. marshian

    Cron / Perl problems

    If the script has not changed and worked before, I'm guessing the script just timed out (there's a max. execution time). This would certainly be the case for not getting to the end of the table. The part where you say it skips over people is a little harder, but are you sure it has skipped them...
  18. marshian

    What's wrong with this?

    Hmm, I've found exactly the same line of code on another site, and it should work there, and also according to you the function outputs the correct result, so I suggest you try to cast it to an integer and see if it helps. function getBandWidth($total) { $cpanel = new cPanel('******', '****'...
  19. marshian

    php mail

    There's two kinds of buttons on a <form> element: <input type="button" /> and <input type="submit" />. The first one is often used to trigger client-side scripts and such, while the submit is used to submit the form. (obviously) For example a form <form action="page.php" method="post"> <input...
  20. marshian

    Only for advanced MySQL Users

    Well, I use Notepad++ as my editor for most languages, it implements syntax-highlighting features for a lot of languages (and if you want to, you could make more). Just go to www.php.net if you need function names/syntaxes etc.
Top