ok, here's the steps i took. Is this how it's supposed to be done Cyber?
Installed the latest wamp at c:\wamp.
Document root is C:\wamp\www
Installation of Zend Studio (5.2)
------------------------------------------
Select to install: Zend Development Environment, PHP Manual, Zend IE Toolbar, Zend Platform
Installed at C:\Program Files\Zend\ZendStudio-5.2.0
Product Icons created in new program group
php, php3, inc and tpl file extensions associated with ZS
Default php setting: php4
[...begins to install ZS...]
Downloads Zend Platform (2.2.2)
Installation of Zend Platform (2.2.2)
--------------------------------------------------
Choice:
+Zend Platform for Windows
+Zend Platform for Zend Studio - Remote Debugging Support
->Zend Platform for Windows selected
Choice:
+Express
+Custom
->Custom selected
Destination folder for Zend Platform:
"C:\program files\zend\ZendPlatform-2.2.2"
Choice: Select web server for Zend Platform to be Installed on:
+Apache 2x
+Apache 1x
+IIS
+Install Apache 2x for me
->Apache2x selected
Choose root folder of web server:
"C:\wamp\Apache2"
[Asked to turn off apache]
Choose web servers document root:
"C:\wamp\www"
[asked again to turn off server]
[asked to turn on server]
Confirm URL that corresponds to c:\wamp\www
url: "[
127.0.0.1"];
Notice: Installation detected the URL you entered doesn't correspond to IP of computer. Are you sure you want to continue?
->clicked Yes
Choose location to install Zend Platform GUI under document root c:\wamp\www
GUI: "ZendPlatform" [i think this is the directory name]
Choose PHP version you wish Zend Platform to use:
+use existing php (install detected: 4.4.2 as apache module)
+install zend core (php5)
->Use existing PHP selected
[Asked to stop server]
[installs]
Please enter path for cache storage directory:
C:\Program Files\Zend\ZendPlatform-2.2.2\tmp\cache
Please enter path to Java binary:
C:\Program Files\Java\j2re1.4.2_03\bin\java.exe
[asked to stop server]
[asked to start server]
Installation detected the URL doesn't correspond to IP of computer. Wish to continue?
->Yes
[password defined]
[configures]
[asked to stop server]
[asked to start server]
[asked to stop server again]
[asked to start server]
[asked to restart computer]
->zend studio installation complete.
Configure Zend Studio
--------------------------------------------------
tools->preferences->debug tab
Debug mode: Server
Debug Server URL: [
localhost]
client IP: 127.0.0.1
debug->debug URL
open browser at : [
localhost]
check Debug all Pages
The source file to be used:
local copy
click OK - it seems to work ok, opens up an external IE page, and pauses on first line of execution
------------------------------------------------
I then tested how dependant on wamp it was, by having a file with simply phpInfo() and running that. First i had wamp on php4.4.4, and the phpInfo reflected this. Then, from wamp, i changed to php5.1.2, then again run the same script. The phpInfo() showed php5 ! It seems to be working!!!
So within ZA, i start a new project, called "Discovery", save the project file in C:\Documents And Settings\User\ZDE\ZDEProjects\Discovery. I already have a project created in wamp called Disovery (also defined in virtual host as dev.discovery.com). The project is at c:\wamp\www\discovery with document root being c:\wamp\www\discovery\www. Within this document root, i created one file called index.php, and another called index2.php with the following code in them:
index.php
-----------------
<?php
session_start();
$_SESSION['var'] = "booga";
echo '<a href = "index2.php">link</a>';
?>
index2.php
-----------------
<?php
session_start();
echo $_SESSION['var'];
?>
So now if i run the project by clicking Tools -> Debug URL, it opens an IE window, and sets focus on the first line of my code in index.php, and i can step through it and watch it generate the values. Clicking the link will show index2.php with the value "booga" in it!
That appears to be fine!
However, when the second page is displayed, the URL is [
localhost]. And this is what i mean by configuring it use wamps's apache virtual hosts - isn't there any way to run the project through the virtual hosts? So that in the above example, the initial url *should* be [
dev.discovery.com] (for index.php) then [
dev.discovery.com] (for second page, index2.php), the same way it would run if i were to simply click run->[prompt] "[
dev.discovery.com"];?
Phew. Thanks for reading this far, any help or advice with the above would be greatly appreciated and i hope a reference for someone else in the future.
Post Edited (10-24-06 19:50)