For those of us who want to access Amazon Web Services Glacier from various environments and with a variety of programming languages I have developed an open-source (Apache 2 license) java command line app which operates AWS Glacier Vaults and Archives. The app is mostly based on AWS Java SDK samples from AWS documentation, e.g. http://docs.amazonwebservices.com/amazonglacier/latest/dev/creating-vaults-sdk-java.html
This project is hosted with Google Code: http://code.google.com/p/aws-glacier-app/
How to use the app: http://code.google.com/p/aws-glacier-app/wiki/Usage
And the ZIP with all the JARs is here: http://code.google.com/p/aws-glacier-app/downloads/list
Showing posts with label php. Show all posts
Showing posts with label php. Show all posts
Sunday, October 07, 2012
Sunday, March 01, 2009
Configuring Xdebug with XAMPP for NetBeans and Eclipse, Windows 7 and Win XP
UPDATE: Since XAMPP 1.7.2 + PHP 5.3 the things get much easier. Here is the quote from NetBeans web site, and it works! With this XAMPP version the only php.ini is located in \php
============ For old XAMP 1.7.0 ==================================
Installing NetBeans was easy. The more difficult part was configuring and making the PHP debugger work.
I have XAMPP installation on my Win XP and NetBeans uses Xdebug (http://www.xdebug.org), so I assumed it will be quite easy to configure all the stuff. Well, it was not that easy just because there is a missing link in NetBeans docs speaking about Xdebug config with XAMPP.
For XAMPP you should work with [xamp-dir]/php/php.ini. In fact there is another php.ini in/apache/bin - do not worry aboput it, it is just a shortcut to the first one.
First, make sure that anything in Zend section in your php.ini is commented out:
[Zend]
;zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "C:\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:
Next, (IMPORTANT!) find the line
extension=php_xdebug.dll
and comment it out, so it becomes to be
;extension=php_xdebug.dll
That's seems strange and illogical, but trust me you must do it to get the things work. This is missed from most posts / threads RE Xdebug / Xampp, only few of them mention it.
Next, edit Xdebug section of your php.ini to look like:
XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_portjavascript:void(0)=9000
xdebug.remote_mode=req
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
Now, restart Apache and point your browser to a PHP file with phpinfo().
You should see that xdebug appears twice in your phpinfo():
- once near the Zend Engine 2 logo, with text similar to
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans
- and the second time much lower at that page, with the tables showing something like:
xdebug
xdebug support enabled
Version 2.0.4
Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $
GDB - GNU Debugger protocol $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $
If you do not see either of this appearances your configuration is incorrect!
Also, if you see the table with "Xdebug support" text, but there is a text saying "XDEBUG IS NOT INSTALLED AS ZEND EXTENSION" your configuration should be fixed.
Now, if you are done with that, go to Xdebug web and pick one of the latest Xdebug dlls. Put it in your [xampp-dir]/php/ext folder and change in php.ini the line
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
to point to the new dll, i.e.
zend_extension_ts="C:\xampp\php\ext\php_xdebug-2.0.4-5.2.8.dll"
"_ts" means thread safe, so you need a thread-safe dll version from Xdebug web.
Note that NOT all thread safe version found there will work with XAMPP. I am not sure why, but from the latest release only php_xdebug-2.0.4-5.2.8.dll works as it is expected, others e.g. php_xdebug-2.0.3-5.3.0.dll or php_xdebug-2.0.4-5.3.0-vc9.dll just does not worked for me, showing "XDEBUG IS NOT INSTALLED AS ZEND EXTENSION" or just disappearing from the phpinfo() at all.
Now save php.ini, restart Apache and verify that you see Xdebug info in two locations in phpinfo(), like it is explained above. If you got it working, both NetBeans and Eclipse PDT will be able to work with Xdebug now
Xdebug on XAMPP 1.7.2 (PHP 5.3)
- Locate and open XAMPP_HOME\php\php.ini for editing. This is the only php.ini file in XAMPP 1.7.2.
- Find and uncomment the line zend_extension = "XAMPP_HOME\php\ext\php_xdebug.dll".
- Find and uncomment the line xdebug.remote_host=localhost. Change the value of the setting from localhost to 127.0.0.1.
- Find and uncomment the line xdebug.remote_enable = 0. Change 0 to 1.
- Find and uncomment the line xdebug.remote_handler = "dbgp".
- Find and uncomment the line xdebug.remote_port = 9000.
- Save php.ini.
- Restart the Apache server.
============ For old XAMP 1.7.0 ==================================
Installing NetBeans was easy. The more difficult part was configuring and making the PHP debugger work.
I have XAMPP installation on my Win XP and NetBeans uses Xdebug (http://www.xdebug.org), so I assumed it will be quite easy to configure all the stuff. Well, it was not that easy just because there is a missing link in NetBeans docs speaking about Xdebug config with XAMPP.
For XAMPP you should work with [xamp-dir]/php/php.ini. In fact there is another php.ini in
First, make sure that anything in Zend section in your php.ini is commented out:
[Zend]
;zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "C:\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:
Next, (IMPORTANT!) find the line
extension=php_xdebug.dll
and comment it out, so it becomes to be
;extension=php_xdebug.dll
That's seems strange and illogical, but trust me you must do it to get the things work. This is missed from most posts / threads RE Xdebug / Xampp, only few of them mention it.
Next, edit Xdebug section of your php.ini to look like:
XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_portjavascript:void(0)=9000
xdebug.remote_mode=req
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
Now, restart Apache and point your browser to a PHP file with phpinfo().
You should see that xdebug appears twice in your phpinfo():
- once near the Zend Engine 2 logo, with text similar to
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans
- and the second time much lower at that page, with the tables showing something like:
xdebug
xdebug support enabled
Version 2.0.4
Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $
GDB - GNU Debugger protocol $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $
If you do not see either of this appearances your configuration is incorrect!
Also, if you see the table with "Xdebug support" text, but there is a text saying "XDEBUG IS NOT INSTALLED AS ZEND EXTENSION" your configuration should be fixed.
Now, if you are done with that, go to Xdebug web and pick one of the latest Xdebug dlls. Put it in your [xampp-dir]/php/ext folder and change in php.ini the line
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
to point to the new dll, i.e.
zend_extension_ts="C:\xampp\php\ext\php_xdebug-2.0.4-5.2.8.dll"
"_ts" means thread safe, so you need a thread-safe dll version from Xdebug web.
Note that NOT all thread safe version found there will work with XAMPP. I am not sure why, but from the latest release only php_xdebug-2.0.4-5.2.8.dll works as it is expected, others e.g. php_xdebug-2.0.3-5.3.0.dll or php_xdebug-2.0.4-5.3.0-vc9.dll just does not worked for me, showing "XDEBUG IS NOT INSTALLED AS ZEND EXTENSION" or just disappearing from the phpinfo() at all.
Now save php.ini, restart Apache and verify that you see Xdebug info in two locations in phpinfo(), like it is explained above. If you got it working, both NetBeans and Eclipse PDT will be able to work with Xdebug now
Thursday, February 26, 2009
Adding new file extension to NetBeans 6.5
If all you need is just add a new file Extension and associate it with a certain type of the file (e.g. PHP or C++), go to Tools->Options->Miscellaneous->Files
and add a new extension there, then select the appropriate type.
It's took me sometime to find out where this simple thing is hidden in NetBeans.
and add a new extension there, then select the appropriate type.
It's took me sometime to find out where this simple thing is hidden in NetBeans.

Labels:
c++,
file extension,
java bundler,
netbeans,
php,
ruby
Wednesday, August 06, 2008
Installation of Eclipse 3.4 with PHP on Windows
Here is the only correct instruction what to do to get it working
http://wiki.eclipse.org/PDT/Installation
- follow it and you will do it in a matter of minutes; otherwise it can take hours browsing through various unreliable source. I just did it, so I know it exactly.
Just in case if this URL is gone, these are the required steps:
1. ensure you have working Java
2. Download & install Eclipse 3.4
3. Get Download the latest DLTK Core Frameworks 1.0 Integration build, eg. dltk-core-*-incubation.zip. Unpack the zip somewhere, e..g. "C:\TEMP\ZIPs"
4. Download the latest PDT 2.0 build. Select the latest nightly build there. Unpack the zip somewhere. (the same root directory is just fine)
5. Start Eclipse and go to
http://wiki.eclipse.org/PDT/Installation
- follow it and you will do it in a matter of minutes; otherwise it can take hours browsing through various unreliable source. I just did it, so I know it exactly.
Just in case if this URL is gone, these are the required steps:
1. ensure you have working Java
2. Download & install Eclipse 3.4
3. Get Download the latest DLTK Core Frameworks 1.0 Integration build, eg. dltk-core-*-incubation.zip. Unpack the zip somewhere, e..g. "C:\TEMP\ZIPs"
4. Download the latest PDT 2.0 build. Select the latest nightly build there. Unpack the zip somewhere. (the same root directory is just fine)
5. Start Eclipse and go to
Help > Software Updates > Add Site > Local Site >(refer to step 3 above)
Help > Software Updates > Add Site > Local Site >(refer to step 3 above)
Press "Refresh"
Select the Dynamic Languages Toolkit - Core Frameworks Feature
Select the PDT Feature
Install...
- done!
Tuesday, November 06, 2007
CURL configuratiion on WinXP and XAMPP
In order to configure CURL on Win/XAMPP it is enough to uncomment just one line in php.ini which points to curl dll. It is also recommended to verify the extension path.
There are multiple php.ini with XAMPP1
Run phpinfo() to see which one is loaded. In my case it was "C:\xampp\apache\bin\php.ini" - there the change should be done.
Restart Apache when you have saved the php.ini changes. In some cases you might need to reboot to get Apache running again.
There are multiple php.ini with XAMPP1
Run phpinfo() to see which one is loaded. In my case it was "C:\xampp\apache\bin\php.ini" - there the change should be done.
Restart Apache when you have saved the php.ini changes. In some cases you might need to reboot to get Apache running again.
Subscribe to:
Posts (Atom)