[resolved] SRV and port in URL |
Veteran
|
Hi there - I just saw your post and connected it with your message on contact_us.
Without going into the problem of losing the port, I will at this moment repeat pretty much what I wrote in respone to your message: my recommendation is to debug with Apache since you have it running on the same machine and that's where you scripts are going to be deployed really. You need to set the Run Mode to 3-rd party webserver and map your project root to remote document root. Our FAQ has an extensive post on Project mappings btw: howto-set-project-mapping-t2135.html Many Thanks! |
||||||||||||
|
|
Not so. They are two different issues. The direct email you mention was concerning the 3rd Party server, which I cannot get going. That is my preferred choice, as you suggest, and I will pursue it as I get time. In the meantime, I tried the internal Server and I eventually got it to work (as per my post above). It was a very frustrating exercise, as I suspect it is for many people that try to get debugging to work with PHP. Just as some positive feedback for NuSphere. I had to debug about a dozen lines of PHP code. That is all. I am actually a Delphi programmer, and only do PHP quite rarely. I spent about a week trying to get all number of editors to work (EnginSite, Zend, PHP Expert , ActiveState), and NuSphere was the only one that looked like working. ActiveState was fairly close, as was EnginSite. NuSphere finally came through, although only with the internal web server - but that was enough to allow me to finish my project. And I have to say that support has been very good. |
||||||||||||||
|
Site Admin
|
Obviously, the link is malformed. If it's generated by your application (script), please check if this script is aware of non-default ports. For example http://somehostname/ means port 80 (default), https://somehostname/ means port 443 (default for SSL), http://somehost:NN/ neans port NN.
BTW, in 99.9% cases you do not need to aware your hostname and port. If you need http://somehost/somedir/somepage.php, it's sufficient to have "/somedir/somepage.php" in the URL and omit protocol, hostname and port. They will be taken from the URL, with which current page is requested. Hope it's clear. |
||||||||||||
_________________ The PHP IDE team |
|
Yes - I understand that port 80 is used by default. I was just assuming that because you set the internal server to 8080 by default, that you had worked out some way of actually using that port. There is no way that I am going to edit my application to use another port - it is bad enough having two configuration files for local and remote MySQL database setups.
It is not a problem - I simply set the local server to 80 and everything works just fine. BTW - I eventualy got the 3rd Party Server to work as well - I am not sure how exactly, but I am now using that just fine. |
||||||||||||
|
Site Admin
|
Eventually there were no problems with SRV from the beginning.
If your application puts an URL to the output HTML, it's the application's responsibility for correctness. To me it looks like that your application is hardcoded to port 80 and therefore you need a web running on this port |
||||||||||||
_________________ The PHP IDE team |
|
No, of course not. Who would hardwire links to port 80 on a hosted system? But anyway, this was not done. Most of my internal webpage links are of the form "/somepage.php". This puts the URL at the Document Root - and is of course portable between my local test system and the destination. Unless of course the server is on a port OTHER than the default 80. Well, at least I assume that this is the case, and that was the thrust of my original post. |
||||||||||||||
|
[resolved] SRV and port in URL |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by