Archive

Posts Tagged ‘PhP’

Download free True Type Fonts (TTF)

September 26th, 2009 1 comment
Download free True Type Fonts (TTF) This font files can be used to display True Type Fonts with php GD graphics ( imagefttext ) indexed TTF folders: www.emc-zurich.ch/.ttf/ - [index download] www.tut-vse.ru/ttf/Fonts/Special/ - [index download] rbthemes.com/fonts/ttf-fossfonts-0.0.3/fonts/ - [index download] www.ibiblio.org/pub/academic/political-science/freeburma/software/fonts/windows/ - [index download] ratanaca.net/download/font/khmer-ttf-fonts/ - [index download] misc.nybergh.net/pub/fonts/terminus/ttf/ - [index download] www.tut-vse.ru/ttf/Fonts/Pict/ - [index download] www.umich.edu/~archive/msdos/windows/fonts/truetype/ - [index download] www.tut-vse.ru/ttf/Fonts/Symbol/ - [index download] ftp.riken.go.jp/archives/tex-archive/fonts/cm/ps-type1/bakoma/ttf/ - [index download] root.cern.ch/viewvc/trunk/fonts/ - ...

Install php mcrypt module – Fedora Core 11

September 6th, 2009 No comments
Install php mcrypt module – Fedora Core 11 The best method is using YUM: [root@server1 /]# yum install php-mcrypt after finish, restart apache/httpd [root@server1 /]# sudo /etc/init.d/httpd restart

Increase PHP’s memory limit

August 16th, 2009 No comments
Increase PHP’s memory limit Three methods for increasing PHP memory limit on your server: in php.ini file memory_limit = 32M to your --------- in your default settings file ini_set('memory_limit', '32M'); --------- in your .htaccess file php_value memory_limit 32M
Categories: PhP, Tech Tags: , , , ,

Check if youtube video is still valid – YouTube API

August 6th, 2009 1 comment
Check if youtube video is still valid – YouTube API fast PHP function to check if youtube video is still valid: <?php function checkYoutubeId($id) { if (!$data = @file_get_contents("http://gdata.youtube.com/feeds/api/videos/".$id)) return false; if ($data == "Video not found") return false; return true; } function checkYoutube($vid) { if (strlen($vid) < 12) { return checkYoutubeId($vid); } $preg1 = '@www.youtube.com\/watch\?v=(.*?)$@'; if ( preg_match($preg1, $vid, ...

XAMPP for Windows – Apache, PHP, Mysql Server on Windows

May 18th, 2009 No comments
XAMPP for Windows – Apache, PHP, Mysql Server on Windows XAMPP for Windows, Free Software: Apache HTTPD + Openss PHP Server MySQL Server phpMyAdmin Script Mercury Mail Transport Syste FileZilla FTP Serve XAMPP CLI Bundle Download links -> XAMPP for Windows

Remove HTML tags from POST and GET – PHP

April 6th, 2009 No comments
Remove HTML tags from POST and GET – PHP How to remove/Strip HTML tags from php $_POST variable: foreach ($_POST as $key => $value) { $_POST[$key] = addslashes(strip_tags($value)); } foreach ($_GET as $key => $value) { $_GET[$key] = addslashes(strip_tags($value)); } strip_tags - tries to return a string with all HTML and PHP tags stripped from a ...

My PHP – PhP.Net mirror

March 22nd, 2009 No comments
My PHP – PhP.Net mirror De multe ori poate ca am nevoie de ceva din manualul de php si nu-mi merge netul asa ca am facut o copie/mirror a site-ului php.net INitial am incercat sa folosesc rsync (pe windows) dar, nu a mers sa iau siteu'l ...

PHP Current Folder – 6 Solution

February 21st, 2009 No comments
PHP Current Folder – 6 Solution using getcwd (Gets the current working directory) $current_directory = getcwd(); using dirname (Returns directory name component of path) $current_directory = dirname(__FILE__); <=== The Fastest or $current_directory = dirname($_SERVER["SCRIPT_FILENAME"]); or $current_directory = dirname( $_SERVER["DOCUMENT_ROOT"].$_SERVER["PHP_SELF"] ); using substr (Return part of a string) and strrpos (Find position of first occurrence ...

Get current AUTO_INCREMENT value – MySQL query

January 29th, 2009 No comments
Get current AUTO_INCREMENT value – MySQL query Solution is simple, use mysql_insert_id() php function. mysql_insert_id() returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE statement. Use this function after you have performed an INSERT statement into a table that contains an AUTO_INCREMENT field, ...

Mcrypt ciphers – List of ciphers supported by the mcrypt

January 26th, 2009 No comments
Mcrypt ciphers – List of ciphers supported by the mcrypt List of ciphers which are currently supported by the mcrypt extension (libmcrypt-2.5.x API). The general rule with the mcrypt-2.2.x API is that you can access the cipher from PHP with MCRYPT_ciphername. With the libmcrypt-2.4.x & libmcrypt-2.5.x API it is possible ...
GoCache - ByREV-Cache v1.0 - live served in : 0.450762 sec (gzip)