PHP On Need help decoding ZEND php...
by Eineki,
January 06, 2010 14:01
It is not a matter of nice/...
1 2 3 4
<?php function array_to_csv($arraydata, $delimeter=',', $linebreak="\n", $enclosure='"') { ...
1 2 3 4
int max = rand(); // or any init value int min = rand(); // or any init value int tmp = rand(); // or any init value ...
1 2 3 4
<?php
function am_getlatestscores($db, $cat) {
$sql = "SELECT username, score FROM `AMCMS_highscores` JOIN `AMCMS_users` ON `primkey`=`userkey` WHERE `primkey`='$cat' ORDER BY `score` DESC LIMIT 10;";
...
Bash On Unzip large database dump d...
by Eineki,
February 11, 2009 09:03
To me this solution is quit...
1 2
int x, y;
x = x > y? y : x;
C# On Which is more readable? Mat...
by Eineki,
January 03, 2009 09:13
The first refactoring is, t...
1 2 3
#!/bin/bash echo -e "\n I wish you a merry Christmas and an happy new year! \n" exit(0);
Bash Multi language refactor
by Eineki,
December 25, 2008 08:59,
6 refactorings
Can you rewrite this onelin...
1 2 3 4
<?php ob_start(); include_once "include/config.php"; ...
PHP On Login / Registration - be e...
by Eineki,
December 13, 2008 15:57
I don't think you can simpl...
1 2 3 4
/* Lets say we have two numbers: 27 and 145 (just two random values) into two separate variable */ int min = 27; // 00011011 binary 8bit for 27 ...
C On How to find max, min of thr...
by Eineki,
November 20, 2008 00:52
It is quite simple, once yo...
1 2 3 4
int max = rand(); // or any init value int min = rand(); // or any init value int tmp = rand(); // or any init value ...
C On How to find max, min of thr...
by Eineki,
November 18, 2008 23:55
Try this code, it was a kin...
1 2 3 4
<? /* E.g: ...
PHP On remove http from url string
by Eineki,
November 11, 2008 10:49
Hi, you can use preg_replac...
1 2 3 4
<?php function get_next_seat($table_id, $start_seat) { $player_data=$this->admin->get_player_data($table_id); ...
1 2 3 4
<?php function get_next_seat($table_id, $start_seat) { $player_data=$this->admin->get_player_data($table_id); ...





Is my previous post still p...