Search results

  1. mattura

    Put My Image In Your Sig And Get Credits

    Doesn't seem worth it - to me!
  2. mattura

    E-mail In PHP

    To reduce the chances of being marked as spam, send lots of (proper) headers! Specifically, X-Mailer and Message-ID: $headers="Message-ID: <".mktime()."@".$_SERVER['SERVER_NAME'].">\r\n"; $headers.="X-Mailer: PHP v".phpversion()."\r\n"; $headers.="Content-Type: text/html...
  3. mattura

    Addition in PHP?

    assuming you get the stats from a database:- //looping through the database on $k: { $total[$k]=$stat0[$k]+$stat1[$k]+$stat2[$k]+$stat3[$k]; //} echo sort($total,SORT_NUMERIC); //sort the totals
  4. mattura

    Game Programming

    I've started heaps of games in a huge range of languages, but few that actually made it to full-on, completed games... It can be very hard if you have good ideas to have the stamina to finish what you started. Sometimes you realise halfway through, that the game would be rubbish, and you have to...
  5. mattura

    What is 'adult material'?

    I'd go by anything that would get an 18 certificate as a film... But from the TOS, you might get away with violence/drugs/gore/language - it's the sex they don't want (well...on the site that is...) Basically it wouldn't do for people looking for porn to be directed to x10, so any way this might...
  6. mattura

    Google's New Favicon

    I'm still getting used to it - didn't like it at first, but its growing on me... I think it looks a bit purple compared to the second 'g' in the logo - not quite the same
  7. mattura

    Does anyone run BOINC?

    Yep! Seti @ home, Einstein @ home but only because they look pretty!
  8. mattura

    What is your favorite online Flash Game

    Exmortis is awesome!
  9. mattura

    [PHP Tut] Make your own CAPTCHA

    I totally disagree, but let's not have this discussion here.
  10. mattura

    [PHP Tut] Make your own CAPTCHA

    Fair enough. Hopefully you have a graceful degradation for non-javascript users... The purpose of a CAPTCHA is to stop bots, so if you still get bots, you can find out why they are getting through, then upgrade/improve the CAPTCHA system. You'd have to have a pretty damn popular site to be...
  11. mattura

    [PHP Tut] Make your own CAPTCHA

    No, I'm still not sure I get your point! They could see the CAPTCHA, but otherwise, they have no way of getting at the $_SESSION['str'] (it is never sent to the client). All they can find is the session id (which is some md5-type string, and IS sent to the client). They can hijack the session...
  12. mattura

    best free html editor

    PHP Editor Yes I know what it's called, but it has great PHP highlighting/code hints, and highlights HTML as well. It has tabs and a file browser, a preview window (though I still use refresh in FF & IE), and has buttons/shortcut keys for inserting the useful HTML elements. If you code in a...
  13. mattura

    Hw to make professional looking websites ??

    Professional: dark on light (text on background) Amateur/'Cool'/etc: light on dark Professional: clear consistent layout, basic HTML friendly, no gimmicks Amateur: unnecessary motion/javascript (eg tickers, timers), overuse of colour (especially text), mouse trails or similar, any kind of...
  14. mattura

    something that would make gamers have a heart attack

    Maybe he plays on his gaming server...
  15. mattura

    Advice on a Project

    Your manager cannot ask an impossible task of you! You must have full access if you are in any kind of technical position. This is a basic requirement! If needs be, the manager can change the passwords after you've finished! Is it a windows or linux server? Are you sure PHP/.net/perl or similar...
  16. mattura

    Server Time-Zone To Local Time-Zone

    Yet another method - place this code at the top of all pages (an include would be a good idea): date_default_timezone_set('GB'); //set British timezone This one replaces calls to date()/mktime() and other timestamps to the local date/time.
  17. mattura

    [PHP Tut] Make your own CAPTCHA

    Session hijacking (http://en.wikipedia.org/wiki/Session_hijacking) is a different issue. If you have security concerns in this area, CAPTCHAs are the least of your worries! Even so, solving the CAPTCHA once does not mean it is solved the next time - every refresh will produce a different CAPTCHA...
  18. mattura

    [PHP Tut] Make your own CAPTCHA

    Well of course you need to store the string. You can either use a session variable: $_SESSION['captcha']=$str; --- if ($_POST['user_entry']==$_SESSION['captcha']) {echo "Correct!";} or you could include the file and use the $str value. Or just paste the above code in with your input form php...
  19. mattura

    [PHP Tut] Make your own CAPTCHA

    I haven't seen a tutorial for this yet, so why not make one myself! First of all, you will need at least the intermediate version of x10's php, so upgrade your account if you haven't already. It also helps to have a reasonable knowledge of php (or you won't be able to customise this code!)...
  20. mattura

    Dynamic images with PHP

    There is another place you might edit the code to imagepng($image) - the little code box on it's own!
Top