NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Newbie question


Joined: 02 Feb 2009
Posts: 3
Reply with quote
Hello...sorry for the rather lame question but I'm new and looking to get rolling.

I can't seem to connect to my localhost server. If my files are in htdocs, no problem. I can step through code and everything.

If set up a project with an html file that calls a php script, however, and it doesn't work. When I set up the project, I let it run all the tests and it seemed to be OK. But when I try to run the html file and click on the link for the php script, nothing happens.

I'm not sure if I have phpIDE setup up wrong or my localhost server. Any thoughts?
View user's profileFind all posts by cbadSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
But when I try to run the html file and click on the link for the php script, nothing happens.


and nothing is supposed to happen. Nothing but regular php run.
If you want to debug your php script, you need debugger to trigger on the page. In order to do this, you may want either check "Debug Next Page" in the IE debugger toolbar while you're seeing your html page in the browser, or get php script first loaded and then press "Debug" in the toolbar to get it reloaded with debugger.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 02 Feb 2009
Posts: 3
Reply with quote
dmitri wrote:
and nothing is supposed to happen. Nothing but regular php run..

I must have something messed up with my configuration (first time I've set up a local server). I load a page like this:

http://localhost/page.html or http://localhost/page.psp

and it works fine. But any links inside that page of the form:

<a href="link.html"> or <a href="link.psp">

don't work at all. It's not like a 404 error, it just does nothing.

This is true whether it's in the IDE or just in a browser window. Any ideas on what I've got misconfigured?
View user's profileFind all posts by cbadSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
404 means that the file is not found. Either you don't have those link.html and link.psp files at all, or they are in wrong directory, or they are in place and redirect to non-existing page. Check web server logs to see what's happening when you click on the link.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 02 Feb 2009
Posts: 3
Reply with quote
dmitri wrote:
404 means that the file is not found...


I said it was not a 404 error, the links just don't do anything. In fact I changed one link to go to a missing file to try to produce a 404 error. But the links don't go anywhere and they don't produce any errors. They look like links, you hover over them and it shows the target, etc. Just nothing happens.

I know all the files are there and the links are OK, because when I launch them in a browser without going through localhost, the links all work. Of course, the PHP doesn't execute in that case; it just dumps out as HTML.

Like I said, I'm new to setting up a server and to Apache, but I'll see if I can find the server logs and check them out.

Thanks! I know I'm sounding clueless and I appreciate your patience.
View user's profileFind all posts by cbadSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
Just nothing happens.


I said: Check web server logs to see what's happening when you click on the link

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Newbie question
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic