Sunday, December 16, 2012

Run php under Aptana Studio




Aptana is open source development tool for the open web, similar to DreamWeaver.
It supports HTML5, CSS3, JavaScript, Ruby, Rails, PHP and Python.
Aptana can be downloaded from:
http://www.aptana.com/products/studio3
We need to install XAMPP or Apache to run php.
XAMPP for Windows can be downloaded from:
http://www.apachefriends.org/en/xampp-windows.html#641
Start Apache  and MySQL under XAMPP.
Create a directory phptest under
C:\xampp\htdocs\xampp
Start Apatana, set default directory as:
C:\xampp\htdocs\xampp\phptest
File->New->PHP project, typ project name such as test
File->New file, file name test.php, click next, a default file will appear:
<?php
    phpinfo();
?>

Click Run->Run Configuration (the default run not working)
Server, set as base URL
 http://localhost/xampp/phptest/
Start action: use current page
Video: Run php under Aptana Studio tutorial

1 comment: