undefined function imagecreatefromjpeg()

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

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

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

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

Setting path for PHP CLI

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. …