Tag Archives: php

php string functions

Share Name Description ASCII() Return numeric value of left-most character BIN() Return a string representation of the argument BIT_LENGTH() Return length of argument in bits CHAR_LENGTH() Return number of characters in argument CHAR() Return the character for each integer passed … Continue reading

Posted in php | Tagged , , , , | Leave a comment

file_get_contents vs fread

ShareThe main difference between a complete file read using fread and file_get_contents is that file_get_contents may use mmap (if your OS supports it) to use file memory mapping, which can eliminate a little of the copying and/or allocation of memory … Continue reading

Posted in php | Tagged , , , | Leave a comment

Installing apache 2.2, php 5.2 and mysql 5 in windows vista

ShareHere’s a quick guide for installing apache 2.2, php 5.2 and mysql 5 in windows vista. Download needed files: 1. Apache – msi file 2. PHP – better choose the zip file than the msi installer 3. MYSQL – msi … Continue reading

Posted in apache, mysql, php | Tagged , , , , , | Leave a comment

regex

ShareJust wanted to share regex reference site. You can check it here http://www.grymoire.com/Unix/Regular.html for more details. What is a Regular Expression? A regular expression is a set of characters that specify a pattern. The term “regular” has nothing to do … Continue reading

Posted in regex | Tagged , , , | 1 Comment

reciprocal link checker script

ShareI found this code for reciprocal link checker on http://forums.digitalpoint.com/showthread.php?t=111 maybe you want to give it a shot. gudluck <?php $mydomain = “www.domain.com”; // Set this to your domain $list = file_get_contents(“sites.txt”); $urls = explode (“\n”, $list); ini_set (default_socket_timeout, “5″); … Continue reading

Posted in php | Tagged , , , | Leave a comment