Nano's Blog

09/22/2009

Configuring PHP Development Environment in Windows

Filed under: programming — Tags: , , — nano @ 10:05

Installed Packages

xampp-win32-1.7.1-installer.exe            Path: D:\xampp\…

netbeans-6.7-ml-php-windows.exe         Path: C:\Program Files\NetBeans 6.7\…

php_xdebug-2.0.5-5.2.dll                            Path: D:\xampp\php\ext\…

 

Php.ini Configuration

[Zend]

;zend_extension_ts = “D:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll”

;zend_extension_manager.optimizer_ts = “D:\xampp\php\zendOptimizer\lib\Optimizer”

;zend_optimizer.enable_loader = 0

;zend_optimizer.optimization_level=15

;zend_optimizer.license_path =

; Local Variables:

; tab-width: 4

; End:

+++++++++++++++++++++++++++++++++++++++
If XAMPP1.7.3 instead of XAMPP1.7.1 or 1.7.2
We can’t find [Zend] in php.ini file.
We can only found the line below:

;zend_extension = “C:\xampp\php\ext\php_xdebug.dll”

We should remove ‘;’ from the top line.

zend_extension = “C:\xampp\php\ext\php_xdebug.dll”

 +++++++++++++++++++++++++++++++++++++++

[XDebug]

;; Only Zend OR (!) XDebug

zend_extension_ts=”D:\xampp\php\ext\php_xdebug-2.0.5-5.2.dll”

xdebug.remote_enable=1

xdebug.remote_host=127.0.0.1
or
xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

xdebug.profiler_enable=1

xdebug.profiler_output_dir=”D:\xampp\tmp”

+++++++++++++++++++++++++++++++++++++++
If XAMPP1.7.3 instead of XAMPP1.7.1 or 1.7.2
We can find a little different in php.ini file.
We can’t find the line below in php.ini file:
zend_extension_ts=”D:\xampp\php\ext\php_xdebug-2.0.5-5.2.dll”

BTW, we still can find the top ‘xdebug’ lines by each block. Then enabled each of these lines.
such as:

; xdebug.remote_enable
; Type: boolean, Default value: 0
; This switch controls whether Xdebug should try to contact a debug client which is listening on the
; host and port as set with the settings xdebug.remote_host and xdebug.remote_port. If a connection
; can not be established the script will just continue as if this setting was Off.
xdebug.remote_enable = 1

; xdebug.remote_handler
; Type: string, Default value: dbgp
; Can be either ‘php3′ which selects the old PHP 3 style debugger output, ‘gdb’ which enables the GDB
; like debugger interface or ‘dbgp’ – the brand new debugger protocol. The DBGp protocol is more
; widely supported by clients. See more information in the introduction for Remote Debugging.
xdebug.remote_handler = “dbgp”

; xdebug.remote_host
; Type: string, Default value: localhost
; Selects the host where the debug client is running, you can either use a host name or an IP
; address.
xdebug.remote_host = “localhost”

etc…
+++++++++++++++++++++++++++++++++++++++
 

Reference:

Configuring PHP Development Environment in Windows

http://www.netbeans.org/kb/docs/php/configure-php-environment-windows.html

Set Netbeans user Interface language

Filed under: collections — nano @ 10:04

 

Netbeans automatically uses the Windows system default language as the default user interface language. I believe that it means to be a nice feature for localization. But I personally find it uncomfortable because I have been used with English interface.

After I did some Google search, I learned a few tips to set the Netbeans UI language.

1. Temporary Solution

Add “–locale en:US” at the end of Netbeans startup command. 

“C:\Program Files\NetBeans 6.0.1\bin\netbeans.exe”  –locale en:US 

2. Permanent Solution

Go to Netbeans installation directory, for example,

C:\Program Files\NetBeans 6.0.1\etc

Open “netbeans.conf” and find netbeans default option line

netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true”

Add “-J-Duser.language=en -J-Duser.region=US” to the end of this line

netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Duser.language=en -J-Duser.region=US”

 

It would be nice that there is an option to allow me choose the user interface language in the next Netbeans release.

Race Registration Online Page

Filed under: programming — nano @ 09:59

for Duathlon Shanghai 2009 need.

 

Version.  Alpha

Link: http://www.ironmanchina.net/active/index.php/form/

Basic functions.

Race registration information submit for user. – done

Dashboard registration result view for admin. – done

Registration Result exprot to CSV file. – done

More features.

CRED the DB table at the dashboard for admin user. – pending

Online payment gateway integration – pending

Online registration stastic & chart view for guest – pending.

Search registration information (including submite and assigned raceNumber, Registration Status, Payment Confirmation. etc.)via email or passportID from Main website. – pending

Powered by WordPress