|How to enable debugging of very simple php page
|Page 1 of 1|
|Author:||raca [ Tue Jun 16, 2009 10:00 am ]|
|Post subject:||How to enable debugging of very simple php page|
How to enable debugging of very simple php page?
I read all topics regarding starting a debugging a page.
I have www.mybusiness.com mapped to 127.0.0.1 in my hosts file.
I have Windows Vista OS. I am new to php development. I come from asp, asp.net and IIS world.
I managed to install Apache 2.2 and to create 2 websites that run on different port on my machine with 1 static IP address
that I pay for through my ISP.
I am trying to debug a very simple php script helloworld.php that runs OK as http://www.mybusiness.com:2091/helloworld.php
$hello = "Hello world, I love evil kittens!";
There is no way I can Step Into (the button is disabled) or when I try to debug a page using either F5 or F8, IE 8 opens the page with no
Please help. I am using Codelobster 3.1.3 trial.
My second question is:
Can I use Smarty feature to work with x-cart php application? Will it be useful for designing pages including *.tpl files.
I checked my php.ini for the presence of debugger extensions.
My preferences for debugger settings sections are:
Virtual folder: E:\WebSites\PHP\X-Cart Pro v4.1.9\
Virtual host URL: http://www.mybusiness.com:2091/
Path to php ini: C:\php\
Web Server: Apache2.2
Php version: 5.2.9
This is partial listing of my Httpd.conf file:
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
Allow from all
Allow from all
DocumentRoot "D:/WebSites/PHP/X-Cart Pro v4.1.9"
|Author:||Admin [ Tue Jun 16, 2009 3:27 pm ]|
1) You should set
virtual folder D:/WebSites/PHP/X-Cart Pro v4.1.9
for www.mybusiness.com:2091 host
virtual folder D:/WebSites/PHP/xcart
Path to php.ini file you may see by the following command:
We suggest you to create several projects with this different preferences.
Also, how have you installed PHP?
2) Please, send us the sample of x-cart php application.
We will check our debugger with it.
|Author:||raca [ Tue Jun 16, 2009 11:50 pm ]|
1. Actually I made a mistake when I entered E:\ instead of D:\ in my post.
I believe my settings are correct.
I installed PHP by running php-5.2.9-2-nts-win32-installer.msi installer package. Basically I can run PHP applications with either IIS7 on Vista and Apache 2.2 (I run websites on different ports)
I followed this instructions to run PHP on Apache:
http://www.thesitewizard.com/php/instal ... dows.shtml
I used option b: b.Running PHP 5 as a CGI Binary
I will send my phpinfo settings in a separate email.
|Author:||Admin [ Wed Jun 17, 2009 5:33 pm ]|
You use Non-thread-safe PHP version.
But now we support only Thread-safe.
We should do a research for supporting it.
|Author:||raca [ Sat Jun 20, 2009 1:53 am ]|
Should I then use:
PHP 5.2.10 installer (php-5.2.10-win32-installer.msi) or php-5.2.10-Win32.zip instead of
PHP 5.2.10 Non-thread-safe installer (php-5.2.9-2-nts-win32-installer.msi)
(which I think I used when installing PHP). Should I still used method
Should I run PHP as Apache Module (option a) or as a CGI Binary (option b in above link)?
Can I have both version of PHP running on Apache (thread safe and non-thread safe versions)?
Do you have some instrustions on properly installing PHP and Apache to enable PHP debugging with Codelobster IDE.
|Author:||Admin [ Mon Jun 22, 2009 1:19 pm ]|
1) Yes, you should use
PHP 5.2.10 installer (php-5.2.10-win32-installer.msi) or php-5.2.10-Win32.zip
2) It doesn't matter what option you select: Apache Module or as a CGI Binary.
3) Sure, you may install both versions, but you need to write PHP for using in your Apache server, and it means that it can use only one version.
4) Unfortunately, now we have no good documentation.
You may search our forum or send your questions to support directly by email.
|Page 1 of 1||All times are UTC|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group