Apologies if I'm asking obvious questions or not making sense, I'm not 100% when it comes to Linux and how my Apache server machine and my Windows XP machine connect across the office network. I can't find anyone trying to do the same thing in the forums to get the debugger to run any scripts
I've installed Dev-PHP 2.3.2 on my windows xp machine. I run an apache server in the office with xdebug configured on. I use samba to connect to my local apache server and I have a drive mapped to the apache server, which is how I access the files to develop. I then run them from the apache server across the office network
When I set up Dev-PHP I have the PHP Parsers configured to php-cgi.exe * php.ini on my XP machine and the Local Root Folder is the Drive I have mapped from the server.
As the external web server I have that set to the internal domain I use to run my scripts in my web browser eg http://snt.beavis/website (where beavis is the name of the server and snt is area that I have access to)
So to try and get things going, I open the index.php from my mapped drive in the editor window, then click Activate in the Debugger Toolbar (nothing runs) or Run PHP Script under Run in the menu (nothing happens)
So to summarise: basically what i want to do is step my way through a PHP system that was written by an ex employee using Code Igniter so I can see how it all fits together...it's on the server and I'm working from my XP machine
Can anybody tell me what I'm doing wrong?
Thanks in advance from a newbie!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1. I don't think it's a good idea to work directly on I:
You should work from a local drive and use (s)ftp to get/put files from/to snt:/samba/website
But, it will work - although there are some issues to monitor changes from files on a network
Anyway, the recommended architecture is described here:
see: http://sourceforge.net/apps/mediawiki/devphp/index.php?title=Dev-PHP2.ug:advanced
2.2 Then we must understand which CPU executes which code
If you run <F5> the I:\index.php
The local.PHP will exec a remote file. This works, but...
the parameters, there, are relative to Linux:snt
This means that something like 'localhost' or '127.0.0.1' will now refer to (Win-XP) and not to (Linux snt:)
For example, a remote database (Linux:snt) is declared as local on the Linux system
but doesn't exist on the local (Win-XP) system ;
something like "include '/software/adodb/adodb.php';" will certainly not work on the MS-windows system.
And so on, and so forth.
Best regards,
Pierre.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Apologies if I'm asking obvious questions or not making sense, I'm not 100% when it comes to Linux and how my Apache server machine and my Windows XP machine connect across the office network. I can't find anyone trying to do the same thing in the forums to get the debugger to run any scripts
I've installed Dev-PHP 2.3.2 on my windows xp machine. I run an apache server in the office with xdebug configured on. I use samba to connect to my local apache server and I have a drive mapped to the apache server, which is how I access the files to develop. I then run them from the apache server across the office network
When I set up Dev-PHP I have the PHP Parsers configured to php-cgi.exe * php.ini on my XP machine and the Local Root Folder is the Drive I have mapped from the server.
As the external web server I have that set to the internal domain I use to run my scripts in my web browser eg http://snt.beavis/website (where beavis is the name of the server and snt is area that I have access to)
So to try and get things going, I open the index.php from my mapped drive in the editor window, then click Activate in the Debugger Toolbar (nothing runs) or Run PHP Script under Run in the menu (nothing happens)
So to summarise: basically what i want to do is step my way through a PHP system that was written by an ex employee using Code Igniter so I can see how it all fits together...it's on the server and I'm working from my XP machine
Can anybody tell me what I'm doing wrong?
Thanks in advance from a newbie!
Hello,
I've found your post only now (from time to time, sourceforge doesn't forward the posts).
Sorry for the late reply.
I'm not sure to understand your architecture (Ascii Art):
(Linux snt:)
----------
| Apache | -> docroot= /samba/website -> (I:\)
+--------+
| PHP |
+--------+
| Xdebug |
----------
(Win-XP)
-------------
| Dev-PHP | -> I:\
+-----------+
| local.PHP |
+-----------+
1. I don't think it's a good idea to work directly on I:
You should work from a local drive and use (s)ftp to get/put files from/to snt:/samba/website
But, it will work - although there are some issues to monitor changes from files on a network
Anyway, the recommended architecture is described here:
see: http://sourceforge.net/apps/mediawiki/devphp/index.php?title=Dev-PHP2.ug:advanced
2. Can anybody tell me what I'm doing wrong?
2.1 First, did you run a "simple" phpinfo ?
For example c:\a.php containing "<?php phpinfo(); ?>"
Our User's Guide gives some advices here:
see http://sourceforge.net/apps/mediawiki/devphp/index.php?title=Dev-PHP2.ug:web
2.2 Then we must understand which CPU executes which code
If you run <F5> the I:\index.php
The local.PHP will exec a remote file. This works, but...
the parameters, there, are relative to Linux:snt
This means that something like 'localhost' or '127.0.0.1' will now refer to (Win-XP) and not to (Linux snt:)
For example, a remote database (Linux:snt) is declared as local on the Linux system
but doesn't exist on the local (Win-XP) system ;
something like "include '/software/adodb/adodb.php';" will certainly not work on the MS-windows system.
And so on, and so forth.
Best regards,
Pierre.