Categories
Web Programming

easyPHP: Unable to load PHP extension php_intl.dll

easyphp_logoProblem:
After enable the  intl extension in php.ini. There are two errors happen :
– eds-httpd.exe – System error: The program can’t start because icuuc51.dll is missing from your computer. Try reinstalling the program to fix this problem. (Figure 1)
easyphp1

– PHP Startup: Unable to load dynamic library ‘C:\PROGRA~2\EASYPH~1.1VC\\binaries\php\php_runningversion\ext\php_intl.dll’ – The specified module could not be found. (Figure 2)

easyphp2

Solution:

  1. Copy all the files that starts with icu* (basically it contains 8 files, it is depends on your OS) from “C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\binaries\php\php_runningversion\” (location might be different):
    icudt.dll
    icuin.dll
    icuio.dll
    icule.dll
    iculx.dll
    icutest.dll
    icutu.dll
    icuuc.dlleasyphp4
  2. And then paste the files to “C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\binaries\apache\bin\” (location might be different).easyphp3
  3.  Restart easyPHP.

 

Tested : easyPHP Version 14.1 @ Windows 8

Categories
SugarCRM Web Programming

How to get full name of user by using user id in SugarCRM

It is very simple :

$myUser = new User();
$myUser->retrieve("YOUR-USER-ID");
$myUser->full_name;
Categories
Web Programming

EasyPHP: Apache Cannot Be Run. Another Web Server Is Using The Web Port Or Port Is Blocked By Firewall

easyphp_logoProblem:
When I start EasyPHP: “Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall”…

Solution:
1. By default the Apache port is set to 127.0.0.1:80, so make sure other applications  like IIS, Skype, Yahoo! messenger and etc applications are not using the same port (port 80).

2. If the port already used by other application, change the port to 8080. How? Please read more from this post.

3. If the problem still exists, then try this: Press “Ctrl+E” and there is a pop-up window or go to Configuration>EasyPHP:
easyphp_portbeenused

4. Uncheck the “Check Server’s TCP port before starting” and press “Apply”. Then Restart EasyPHP again.

Categories
Web Programming Windows

EasyPHP: How to change Apache server port number?

easyphp_logoProblem:
By default the Apache server port is set to 80, same as IIS server. If I want to change the default port to the port that I want.

Solution:
1. Double click on the EasyPHP icon at the system tray (the icon appears beside the clock). A popup window will appear, click once on the “e” button that appear on the left hand side> Configuaration > Apache.

easyphp_changeport

2. It will open a file called httpd.conf:

– Find the line “Listen 127.0.0.1:80” and change to “Listen 127.0.0.1:8080“,

(Optional) Find the line “ServerName localhost:80” and change to “ServerName localhost:8080

Categories
Web Programming

align=”absmiddle” or align=”absbottom” not validate in W3C Markup Validator

Normally we will use align=”absmiddle” to make an image align in the middle between a HTML element/object, e.g:

<input name=”text1″ type=”text” maxlength=”17″><img src=”button_ok.gif'” alt=”OK” style=”margin-bottom:1px;” align=”absmiddle>
or
<img src=”images/icon_diamond.gif” alt=”” align=”absbottom>

You will get error when you try to validate your page with W3C Markup Validator (http://validator.w3.org/check).

How to solve?

Use this:

<img style=”vertical-align:bottom” src=”images/icon_diamond.gif” alt=”” >

Same as:

<img style=”vertical-align:middle” src=”images/icon_diamond.gif” alt=”” >

Categories
.NET How to : Microsoft Web Programming Windows

How to : Run classic ASP/ASP.NET on IIS 7

logo_dotNET

After installed IIS7, some people might find that classic ASP or even ASP.NET are not be able to run on the new IIS. Example test, http://localhost/test.asp or http://localhost/test.aspx

By default, the IIS is not configured for classic ASP (crab!), but do not worry, you just have to follow the simple 2 steps:

1) Go to Control Panel > Programs and Features > click Turn Windows features on and off

2) Navigate down the tree of features and make sure ASP is checked(checked ASP.NET if you want to run ASP.NET too). It should be under Internet Information Services (IIS) Manager > World Wide Web Services > Application Development Features. Press OK when done.

step1step2

p/s: There are many reasons to cause the classic ASP & ASP.net are not running well in local PC. Normally this solution is apply to those who installed the new IIS.