simple example for running a php web page [message #30180] |
Wed, 20 June 2007 03:23 |
Eclipse User |
|
|
|
Originally posted by: tido8t7.hotmail.com
I just installed the PDT all in one package, and I am looking for a simple
example of how to run a script as a web page. As an aside, the downloads
page doesn't list the needed prerequisites for installing PDT, it just
says that "Runtime package only includes the PDT project build. Required
prerequisites should be already installed." Anyway, I'm of the
understanding that PDT comes with its own internal web server, is this
correct? Should I have my own server downloaded and installed first? I
created a basic script in PHP 4.4.7, and when I try to run as a web page,
I get a "This program cannot display the webpage " error in the internal
web browser. I have configured the default web server with the "publish"
option enabled, with no luck. Any tips would be appreciated!
Thanks
|
|
|
|
Re: simple example for running a php web page [message #30329 is a reply to message #30221] |
Wed, 20 June 2007 13:34 |
Eclipse User |
|
|
|
Originally posted by: tido8t7.hotmail.com
Hi..thanks for the link. It helped, but I still don't know what I'm doing
wrong when I try to run any php file as a web page. I can run as a script,
and the output gets dumped to the console, but I'd like it as a web page.
Do I have to have a debugger installed before I can do a simple run?
Is there a basic how-to doc with something like a simple Hello World
example? I looked in the PDT help with no luck.
Thanks again.
|
|
|
|
Re: simple example for running a php web page [message #30434 is a reply to message #30400] |
Wed, 20 June 2007 17:59 |
Eclipse User |
|
|
|
Originally posted by: tido8t7.hotmail.com
Hi,
Thanks for the link. I'm gathering from this:
"3.4.2 Web Launch
In order to debug web PHP scripts you first need to set up apache or your
web
server to use your workspace (you can point it at the project level as
well) in PHP IDE as the location of your PHP Scripts."
That I need an external web server such as apache or IIS to do any script
execution of any kind. This is the situation I was trying to avoid, so can
someone please confirm this? I was under the impression that this could
be done using the internal web server that comes with PDT. What is the
purpose of the internal server then?
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.05140 seconds