A Blog about technology, linux, peer2peer, cool new downloads and software development.
Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Sunday, May 16, 2010

how to compile php 5.2 on centos 4

- references :
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
http://mypetprogrammer.wordpress.com/2007/10/06/upgrading-php-from-439-to-52-on-cent-os4/
http://www.jasonlitka.com/2006/11/30/upgrading-php-520-rhel-centos/
http://www.jasonlitka.com/media/SRPMS/


rpm -i http://www.jasonlitka.com/media/SRPMS/pcre-7.8-1.jason.1.src.rpm
wget http://www.jasonlitka.com/media/SRPMS/php-5.2.11-jason.1.src.rpm
wget http://www.jasonlitka.com/media/SRPMS/php-pear-1.7.2-2.jason.1.src.rpm
rpm -i php-pear-1.7.2-2.jason.1.src.rpm
rpm -i http://www.jasonlitka.com/media/SRPMS/pcre-7.8-1.jason.1.src.rpm

cd /usr/src/redhat/SPECS/
rpmbuild -bb pcre.spec
rpm -Uvh ../RPMS/i386/pcre-7.8-1.jason.1.i386.rpm
mv -v ../RPMS/i386/* /tmp

rpmbuild -bb php.spec
rpm -Uvh --nodeps ../RPMS/i386/*.rpm
mv -v ../RPMS/i386/* /tmp

rpmbuild -bb php-pear.spec
rpm -Uvh --nodeps ../RPMS/noarch/*.rpm
mv -v ../RPMS/noarch/* /tmp

ldconfig -v
php -v
/etc/init.d/httpd restart

Sunday, April 4, 2010

php - how to log errors to a log file in the current directory

$ vim debug.php


$ touch error_log.log
$ chmod a+rw error_log.log

[browse to the debug.php page and then cat the log file]

Friday, December 11, 2009

how to install eclipse with sftp on ubuntu linux


option 1: Aptana Studio
http://www.aptana.org/

option 2: Eclipse Pulse
http://www.poweredbypulse.com/

option 3: how to install sftp on any eclipse
help->install new
[wait for the catalog to update
select : -- Alla Avaliable Sites --
search : target managment


help->install new
[wait for the catalog to update
select : -- Alla Avaliable Sites --
search : remote system


Monday, May 11, 2009

add scp support to eclipse (& remote editing)


Download the latest release of : Target Management project, RSE downloads
from : http://download.eclipse.org/dsdp/tm/downloads/index.php
stop eclipse
and unzip into the eclipse directory.
start eclipse
goto Window->Show view->type "Remote Systems"
{right click} New -> Connection

Thursday, May 8, 2008

Best free editor(s) for remote PHP developments

The only editors that i found which has the ability to open remote files via sftp and also have completion for smarty are:
1. Komodo Edit - FREE
2. UlrtaEdit + the Smarty plugin ftom the extras page