Is there a facility to set tab stops at other than the default 8 characters? I have some sources in my project that were created in an editor where tab stops were pretty obviously set at 4 characters. This gives much tidier indentation. With tab stops set at 8, the indentation of these files is all over the place.
I am sure I was able to set tab stops in Dev-PHP before, but now after a recent re-install I can't see how.
Sorry - I found it!! It's on the General Options / General settings screen. I did not click on this before, as I thought it was just a heading for the four entries below it (Syntax/Extra/Externals/File extensions) and didn't realise it was a page in its own right.
One point though: when I click on OK, a random error dialog is generated: "Could not bind socket. Address and port are already in use", but the setting is OK.
This is a fresh install of Dev-PHP version 18.104.22.1685 on Windows 7 64-bit. If it's relevant, my PHP version is 5.2.17.
The only Dev-PHP settings I have changed are to add .inc as a PHP extension for highlighting, and to change the tab stops to 4. Apart from that it's as it comes out of the box installed from devphp2_nsis.exe.
Just noticed the following in the status line at the bottom, which may be helpful:
A9907 : Exception EIdCouldNotBindSocket in acActivateExecute. Error is: "Could not bind socket. Address and port are already in use."
Thanks again about the A9907 keyword.
Well, this error is trapped when we're trying to start / restart our internal http server. By default it is listening to http://localhost:8887/
Could another process be already listening to this port (or to the port declared in Options / Project / Web / Port)?
Windows7 "Resource Monitor" tab "Network" frame "Listening Ports", could help to know (and even kill) this process.
Click Start, right-click Computer, and click Manage.
In the Microsoft Management Console navigation tree, click Performance, on the right pane click "Open Resource Monitor"
Hmm. Nothing on port 8887, but I am running an Apache server on localhost:80 on this system which may be causing the error (I have Apache/MySQL/PHP). The error is not causing me a problem, but that might be the cause.
Aha! I just looked at that Options page, and the port is set to 80, therefore a definite clash. I wonder why it didn't have your default of 8887, as I didn't change anything.
I changed the port number to 8887, and the error has gone away, The status bar message now says "I9913 : Listening for HTTP connections on 127.0.0.1:8887.
So it seems your installation default is not set up correctly, or else it got changed somehow.
> I changed the port number to 8887, and the error has gone away
> it seems your installation default is not set up correctly
Maybe… Unless you didn't check the "Force" install option (unchecked by default in order to preserve existing settings)
Thanks for your report,
> Thanks for your report,
Just happy to help with this great product, and good to have such an active developer. The tab stops thing was going to be a bit of a show stopper - glad it was just me being stupid!
The install probably found the existing Apache settings somehow. This was a clean install on a fresh installation of Windows 7 on a new disk, so no old Dev-PHP settings left behind.
> a clean install on a fresh installation of Windows 7 on a new disk
Weird. So I looked at the code of the installer, then at the code of Dev-PHP…
My fault. Nothing to do with install.
The port number is set into each project file (something like "project.prd"). It's no longer a global setting.
Sorry about that,
Yes that would explain it. Obviously local settings have to be in project.prd, and that was restored with my other files from the old system backup. I must have changed the port number at some point.
Looking at the file, I can see certain other things have changed, like paths to cgi etc., which I get will around to fixing when I need the other features.