Jump to content
xisto Community

dogtag

Members
  • Content Count

    24
  • Joined

  • Last visited

  1. Notice from jlhaslip: copied from http://forums.xisto.com/no_longer_exists/ united had been very lucky becuase other teams didnot pay much attention to them and took them easily. for example when playing any of the bottom half teams like sheffiled and watford middlesbrough. when against Chelsea they used to play their best team and give 200% because they were playing champions and their is nothing like playing champions and trying to beat them. but when playing against manu they use to put their 2nd string side saying its just manu, we can beat them with our reserves and will make them an easy match for them. but still they won congratulations to them they won because they did not had an injury crises like chelsea. when anyone involved in our defence was injured and we have to play Essien and diarra and gerimy most of the time in defence and even Essien along with Mekelele as centerhalfs for two mathces. not to mention carrer ending injuries to our goalkeepers who still some how came back to play. correction=Ferguson said: "They're all good. It was a big job to win this title with Chelsea always at your coat tail" Notice from jlhaslip: Merged double posting.
  2. and we will beat manu in those tournaments.as manu lost as well so i think liverpool will also lost to ac milan who are better then liverpol.and liverpool's victory was nothing more then luck because they were not able to beat an injury hit Chelsea in 210 minutes +injury time (which can be about 20m).And you have to praise Jose because he took Chelsea to the brink of quadrouble in a season when all of defence players got injuries. and pretty nasty injuries as well. like the one suffered to Chec and Carlo.and some one tellling me about wining who's team never won preimier league or "micky cup". and only reason they qualify for champions leaqgue. becuase uefa allows 4th positions team aswell in the tournament of champions.
  3. After a great team play in 20-20 amtch Asia11 won against Africa XI by 6 wickets. with great captaincy by 25 old Shoaib Malik also a factor. it was a match Involving alot of young players from both sides.In first ODI Asia XI also defeated Africa XI by 34 runs. with again great innings from Thier Captain. Skipper Mahela Jayawardene scroed 65 while Pakistan's Mohammad Yousuf was innings top scorer with 66.asia scored 317. Yousuf also became the third Pakistani batsman to complete 8,000 runs in one-day internationals during his 74-ball knock after the retired duo of Inzamam-ul-Haq and Saeed Anwar.In return Shaun Pollock smashed a maiden one-day century.The South African scored a robust 130 as his team were restricted to 283 while chasing a stiff 318-run target under lights to concede a 1-0 lead in the three-match series.Asian pacemen Asif (3-57) and Zaheer Khan (2-43) then raised hopes of an easy victory when they shared five early wickets in their lively opening spells to put Africa under pressure.Africa were wobbling at 31-5 before all-rounder Pollock led the recovery with a brilliant innings under pressure. He struck one six and 19 fours in his 110-ball knock. but his man of the match performance was not enough for Africa XI to win.Asia did a clean sweap. they won the 2nd match by 33 some runs and 3rd (& last) match by 13 runs.i will post the details a bit later.
  4. Here you can discuss about Rugby 2007 worldcup. Notice from jlhaslip: Quote tags are required for long lists in posts which are cut and pasted for more than 30% of the posting
  5. French open is going on and i don't know whats up with it. because there is a fault in cable line and i havn't watched the tv and opened its website.but what do you think about it.another Nadal v/s Fedrer final?
  6. i completed the game too, i have a good save of it.i can upload it in here if you want.
  7. dogtag

    Session2

    i means session of my classroom my friend, not a PHP SESSION
  8. dogtag

    Sudoku Solver

    hihere is an advance code for solving very hard sudokuSjust use it and don't look it's source sudoku_2007_04_14.tar.gz
  9. Hi this would be very useful for WEB Programmers if you have a cpanel host, you know that you cannot create MySql DBs and you should do it just by CPanel. by this code you can do it in your programs: <?php// cPanel username$cpanel_user = "user";// cPanel password$cpanel_password = "password";// cPanel host$cpanel_host = "host";// cPanel theme/skin, usually "x"$cpanel_skin = "x";// Path to cURL on your server$curl_path = "/usr/bin/curl";///////////////////////////////////////* Code below should not be changed *///////////////////////////////////////if(isset($_GET['db']) && !empty($_GET['db'])) { // escape db name $db_name = escapeshellarg($_GET['db']); // will return empty string on success, error message on error $result = exec("$curl_path 'http://$cpanel_user:$cpanel_password@$cpanel_host:2082/frontend/$cpanel_skin/sql/adddb.html?db=$db_name'"); // output result echo $result;}else { echo "Usage: cpanel_create_db.php?db=databasename";}?> just replace change these values:
  10. dogtag

    Implus

    Look at it, i found the best messenger for JAVA supported mobilesDL & enjoy IMPlus.zip
  11. dogtag

    Session2

    in php we can save our strings in a place, i means: <?php$a = "hello world";?> it means that we have a place to save hello world and use it in other places. now we can have: <?phpprint $a;?> it will show us hello world ask me if you have any questions
  12. Here is the yahoo messengerDL it
  13. dogtag

    Php From 1st

    Hi, i think that you want me to teach PHP from first (basic): php starts with a <?php and ends with a ?> the first function that you should know is PRINT: here is a sample : <?phpprint "hello world!";?> you can use ECHO instead of PRINT <?phpecho "hello world!";?> OK, it was the first session. we will be more advenced in next session
  14. dogtag

    Unzipper

    and my 7th code: you can unzip, zip files by that on your server: <?class dZip{ var $filename; var $overwrite; var $zipSignature = "\x50\x4b\x03\x04"; // local file header signature var $dirSignature = "\x50\x4b\x01\x02"; // central dir header signature var $dirSignatureE= "\x50\x4b\x05\x06"; // end of central dir signature var $files_count = 0; var $fh; Function dZip($filename, $overwrite=true){ $this->filename = $filename; $this->overwrite = $overwrite; } Function addDir($dirname, $fileComments=''){ if(substr($dirname, -1) != '/') $dirname .= '/'; $this->addFile(false, $dirname, $fileComments); } Function addFile($filename, $cfilename, $fileComments='', $data=false){ if(!($fh = &$this->fh)) $fh = fopen($this->filename, $this->overwrite?'wb':'a+b'); // $filename can be a local file OR the data wich will be compressed if(substr($cfilename, -1)=='/'){ $details['uncsize'] = 0; $data = ''; } elseif(file_exists($filename)){ $details['uncsize'] = filesize($filename); $data = file_get_contents($filename); } elseif($filename){ echo "<b>Cannot add $filename. File not found</b><br>"; return false; } else{ $details['uncsize'] = strlen($filename); // DATA is given.. use it! :| } // if data to compress is too small, just store it if($details['uncsize'] < 256){ $details['comsize'] = $details['uncsize']; $details['vneeded'] = 10; $details['cmethod'] = 0; $zdata = &$data; } else{ // otherwise, compress it $zdata = gzcompress($data); $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2); // fix crc bug (thanks to Eric Mueller) $details['comsize'] = strlen($zdata); $details['vneeded'] = 10; $details['cmethod'] = 8; } $details['bitflag'] = 0; $details['crc_32'] = crc32($data); // Convert date and time to DOS Format, and set then $lastmod_timeS = str_pad(decbin(date('s')>=32?date('s')-32:date('s')), 5, '0', STR_PAD_LEFT); $lastmod_timeM = str_pad(decbin(date('i')), 6, '0', STR_PAD_LEFT); $lastmod_timeH = str_pad(decbin(date('H')), 5, '0', STR_PAD_LEFT); $lastmod_dateD = str_pad(decbin(date('d')), 5, '0', STR_PAD_LEFT); $lastmod_dateM = str_pad(decbin(date('m')), 4, '0', STR_PAD_LEFT); $lastmod_dateY = str_pad(decbin(date('Y')-1980), 7, '0', STR_PAD_LEFT); # echo "ModTime: $lastmod_timeS-$lastmod_timeM-$lastmod_timeH (".date("s H H").")\n"; # echo "ModDate: $lastmod_dateD-$lastmod_dateM-$lastmod_dateY (".date("d m Y").")\n"; $details['modtime'] = bindec("$lastmod_timeH$lastmod_timeM$lastmod_timeS"); $details['moddate'] = bindec("$lastmod_dateY$lastmod_dateM$lastmod_dateD"); $details['offset'] = ftell($fh); fwrite($fh, $this->zipSignature); fwrite($fh, pack('s', $details['vneeded'])); // version_needed fwrite($fh, pack('s', $details['bitflag'])); // general_bit_flag fwrite($fh, pack('s', $details['cmethod'])); // compression_method fwrite($fh, pack('s', $details['modtime'])); // lastmod_time fwrite($fh, pack('s', $details['moddate'])); // lastmod_date fwrite($fh, pack('V', $details['crc_32'])); // crc-32 fwrite($fh, pack('I', $details['comsize'])); // compressed_size fwrite($fh, pack('I', $details['uncsize'])); // uncompressed_size fwrite($fh, pack('s', strlen($cfilename))); // file_name_length fwrite($fh, pack('s', 0)); // extra_field_length fwrite($fh, $cfilename); // file_name // ignoring extra_field fwrite($fh, $zdata); // Append it to central dir $details['external_attributes'] = (substr($cfilename, -1)=='/'&&!$zdata)?16:32; // Directory or file name $details['comments'] = $fileComments; $this->appendCentralDir($cfilename, $details); $this->files_count++; } Function setExtra($filename, $property, $value){ $this->centraldirs[$filename][$property] = $value; } Function save($zipComments=''){ if(!($fh = &$this->fh)) $fh = fopen($this->filename, $this->overwrite?'w':'a+'); $cdrec = ""; foreach($this->centraldirs as $filename=>$cd){ $cdrec .= $this->dirSignature; $cdrec .= "\x0\x0"; // version made by $cdrec .= pack('v', $cd['vneeded']); // version needed to extract $cdrec .= "\x0\x0"; // general bit flag $cdrec .= pack('v', $cd['cmethod']); // compression method $cdrec .= pack('v', $cd['modtime']); // lastmod time $cdrec .= pack('v', $cd['moddate']); // lastmod date $cdrec .= pack('V', $cd['crc_32']); // crc32 $cdrec .= pack('V', $cd['comsize']); // compressed filesize $cdrec .= pack('V', $cd['uncsize']); // uncompressed filesize $cdrec .= pack('v', strlen($filename)); // file comment length $cdrec .= pack('v', 0); // extra field length $cdrec .= pack('v', strlen($cd['comments'])); // file comment length $cdrec .= pack('v', 0); // disk number start $cdrec .= pack('v', 0); // internal file attributes $cdrec .= pack('V', $cd['external_attributes']); // internal file attributes $cdrec .= pack('V', $cd['offset']); // relative offset of local header $cdrec .= $filename; $cdrec .= $cd['comments']; } $before_cd = ftell($fh); fwrite($fh, $cdrec); // end of central dir fwrite($fh, $this->dirSignatureE); fwrite($fh, pack('v', 0)); // number of this disk fwrite($fh, pack('v', 0)); // number of the disk with the start of the central directory fwrite($fh, pack('v', $this->files_count)); // total # of entries "on this disk" fwrite($fh, pack('v', $this->files_count)); // total # of entries overall fwrite($fh, pack('V', strlen($cdrec))); // size of central dir fwrite($fh, pack('V', $before_cd)); // offset to start of central dir fwrite($fh, pack('v', strlen($zipComments))); // .zip file comment length fwrite($fh, $zipComments); fclose($fh); } // Private Function appendCentralDir($filename,$properties){ $this->centraldirs[$filename] = $properties; }}$newzip->addFile('dUnzip2.inc.php', 'class dUnzip2/dUnzip2.inc.php');$newzip->addFile('documentation.txt','class dUnzip2/documentation.txt');$newzip->addFile('dZip.inc.php', 'class dZip/dZip.inc.php');$newzip->addFile('sample.php', 'sample.php');# // Save the new file$newzip->save();?>
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.