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.
|
|
|
Re: simple example for running a php web page [message #30468 is a reply to message #30434] |
Thu, 21 June 2007 07:23  |
Eclipse User |
|
|
|
you don't need a web server to execute php scripts, but if you need the
output of your php script to be sent to a web browser, then you will need
a web server, otherwise you can just execute the script and you get the
output into the console.
Looking at PDT 0.7rc3, I don't see any internal web server so this is why
documentation suggests you use apache or some other external web server. I haven't
looked at the latest PDT M1 version which is now using WTP 2.0 as a pre-req
which may include some sort of internal web server. If this is the case
then probably no-one has looked into this yet. Maybe you could do this and
provide some feedback ?
Dave Kelsey
natasha wrote:
> 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.03350 seconds