Facebook
Categories
- Apache (7)
- asp (3)
- business (2)
- Cpanel Server (37)
- Database (5)
- dedicated server (3)
- DNS (4)
- errors (1)
- Exim (2)
- ffmpeg (1)
- file sharing (10)
- firefox (1)
- flash (1)
- free stuff (1)
- FreeBSD Server (16)
- Funny (3)
- general (12)
- Git (5)
- hosted scripts (1)
- image hosting (3)
- Installation (4)
- large sites (9)
- Linux (55)
- CentOS (3)
- Debian Linux (1)
- Linux Desktop (1)
- ubuntu (10)
- Mail Server (3)
- Qmail Server (2)
- Monotize (3)
- myspace clone (1)
- mysql (6)
- OpenVZ (7)
- PHP (16)
- PHP Tutorial (1)
- symfony (2)
- zend framework (1)
- Plesk (1)
- Programming (3)
- perl (1)
- Ruby On Rails (1)
- search engine (2)
- security (2)
- Server (5)
- social networking (1)
- Uncategorized (198)
- unmetered servers (6)
- Video (13)
- Video Sharing (21)
- Video Sharing Scripts (6)
- Web (77)
- Web Hosting (2)
- Windows (44)
- iis (1)
- Windows Server Administration (2)
- YouTube (17)
- youtube clone (21)
- yui (2)
Category Archives: PHP
PHP Errors to File
To log all PHP Errors to log file, edit php.ini file, add error_log = /var/log/php-errors.log To turn off displaying errors to browser, change value of display_errors to Off display_errors = Off
Develop Java Project in ZendStudio
I recently started doing some small java projects. I have installed Eclipse/intelliJ. I prefer Eclipse as it compile program on saving. Since my project contains many independent programs i like this feature. I am already using ZendStudio 8. This is … Continue reading
Installing ioncube loader on CentOS
Download latest Ioncube loader for your OS from http://www.ioncube.com/loaders.php For CentOS 64 bit cd /usr/local/src wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar zxvf ioncube_loaders_lin_x86-64.tar.gz cd ioncube mkdir /usr/local/ioncube cp ioncube_loader_lin_5.2.so /usr/local/ioncube I coped ioncube_loader_lin_5.2.so as PHP version installed on the server was PHP 5.2 … Continue reading
Posted in PHP
Tagged install ioncube, ioncube loader, ioncube loader centos, php ioncube, php ioncube loader
Leave a comment
PHP function to find file extension
To find file extension with PHP, use pathinfo function [code lang="php"] <?php $video = 'hostonnet.avi'; $info = pathinfo($video); echo '<pre>'; print_r($info); // File extension echo $info['extension'] . "<br>"; // avi // File Name with out extension echo $info['filename'] . "<br>"; … Continue reading
Symfony 2 Migration to Git
Symfony is a PHP RAD framework like Zend Framework, CakePHP, etc… They have been using subversion for version control. Today while checking language section of github.com, i found Symfony version 2 is using git for source control. See the announcement … Continue reading
PHP Tutorial Day 1
To run PHP programs you need a web server installed on your computer. For windows, it is better install Zend Server Community edition. Once you installed, you can start creating php programs. You need to upload Programs to DocumentRoot of … Continue reading
Posted in PHP Tutorial
Leave a comment
Can’t connect to local MySQL server through socket
While running symfony jobeet tutorial, i got following error fwh@pc11-desktop:~/web/jobeet$ php symfony doctrine:build-sql >> doctrine generating sql for models While exporting model class ‘JobeetAffiliate’ to SQL: PDO Connection Error: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ … Continue reading
Zend Framework error MySQL server through socket /tmp/mysql.sock
On a new apache/mysql installation, i got following error when connecting to mysql database in zend framework. An error occurred Application error Exception information: Message: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) This is because … Continue reading
registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0
On a new Zend Framework project created with Zend Studio, accessing the public folder, git following error Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /usr/local/zend/share/ZendFramework/library/Zend/Loader.php on line 207 This was … Continue reading
