Learning On Demand Learning anything from anywhere

Archive for the ‘PHP’ Category

Downgrade php version from 5.3 to 5.2 on Ubuntu 10.10 x86

12.15.2010 · Posted in Linux, PHP

New Server has come and again I must downgrade php version to 5.2 due to some problem on web application. I use same method I use for Ubuntu 10.04 for Ubuntu 10.10 x86. Let start Download required files for PHP 5.2 from Ubuntu Karmic repository #cd /etc/apt/sources.list.d #wget http://randyfay.com/sites/default/files/karmic_0.list # cd /etc/apt/preferences.d/ #wget http://randyfay.com/sites/default/files/php_1. # ...

Downgrade php version from 5.3 to 5.2 on Ubuntu 10.04 i386

12.10.2010 · Posted in Linux, PHP

I have chance to install new server with standard requirement. SSH, Bind9 and LAMP. All process is smooth using i386 version of Ubuntu 10.04 but my friend complain about his web application not work well and after little investigation it looks like due to PHP version. Quick search on Google lead me to RandyFay post ...

Howto install Aptana studio with php support

08.27.2009 · Posted in PHP, Software

I’m old fashion student who use phpcoder as tool for coding php until my friend suggest aptana editor with php support. When everything configured properly I’ll have php interpreter for immediate debug purpose and I think it’s suitable for new php user I decide to give this software a try and here it goes. Install ...

Get Alexa Rank with Php to Update DO Follow Blog List

09.13.2008 · Posted in PHP

Maintain list of do follow blog isn’t easy specially when you need to keep it up to date. Recent alexa update make me think. How to update the list with minimal effort After googling for alexa rank script finally I found interesting php class written by David Walsh. Combine his class with existing do follow ...

How to transfer haloscan comment into wordpress self hosting

09.10.2008 · Posted in Blog, PHP

My wife like blogspot a lot until slowly she found more feature offered by wordpress, one of them is ‘future posting’ . After think alot she decide to move from blogspot to wordpress self hosting. The problem came when I must deal with haloscan, luckly I found 2 resources that help me to import haloscan ...

undefined function imagecreatefromjpeg()

08.02.2008 · Posted in PHP, Unix

Call to undefined function imagecreatefromjpeg() in /home/materi/prog/cms_study/admin/pageuploadadd.php on line 88   Yes, that message show up when my friend try to access web based application. I think thats my fault Doing preliminary check : edp# pkg_info | grep php5-gd edit /etc/make.conf PERL_VER=5.8.8 PERL_VERSION=5.8.8 WITHOUT_X11=yes save. edp# whereis php5-gd php5-gd: /usr/ports/graphics/php5-gd edp# cd /usr/ports/graphics/php5-gd && make ...

change wordpress password manually

05.21.2008 · Posted in Blog, PHP

Reset wordpress password using provided link not work, sadly no phpmyadmin available Fortunately I have shell access which is enough, using built in md5 function to generate and update the password, here’s the steps: 1. Creating md5 - Using shell Just type : md5 -s your chosen password - Make php script with this content ...

$this and php

05.20.2008 · Posted in PHP

Little mistake on naming variable make me confuse for almost an hour. $this yes, $this is built-in variable that often use in OOP. By using $this, we refer to self referencing variable. More in php.net manual <?php class A { function foo() { if (isset($this)) { echo '$this is defined ('; echo get_class($this); echo ")\n"; } else { echo "\$this is not defined.\n"; } } ...

Install PHP6, easy install in windows

05.17.2008 · Posted in PHP

PHP6, I thought I already have latest one. 5.2.6 but I’m wrong Quick way to try PHP6 is by installing Appserv 2.6.0, click here to download php 6.0.0-dev Installation process is the same as other appserv series : 1. Double click installer php6 downloadphp 6 download windowsinstall php 6how to install php 6download php 6 ...

Setting path for PHP CLI

05.11.2008 · Posted in PHP

What is that for? my friend asked my a question after lunch. Well, install php using file from php.net don’t automatically set environment path for php location. As result we must type full location of php.exe each time we must execute php from command line. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. ...

Reset Cacti Password, step by step

04.13.2008 · Posted in Linux, PHP, Unix

My other staff  ask me password for username admin. Yes, its administrator level in cacti. After hardy trying to remember I gave up, I decide to reset it to other value but how? I try to find out using database approach : Here’s my steps : 1. Checking for cacti location and see db setting. ...