Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » simple example for running a php web page
simple example for running a php web page [message #30180] Wed, 20 June 2007 03:23 Go to next message
Eclipse UserFriend
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 #30221 is a reply to message #30180] Wed, 20 June 2007 09:31 Go to previous messageGo to next message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
"natasha" <tido8t7@hotmail.com> schreef in bericht
news:c8478bfd391f883228fe875e1c946863$1@www.eclipse.org...
>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.

If you want to use Zend Debugger, you can find a gentle introduction here
http://www.thierryb.net/pdtwiki/index.php?title=PDT_User_Gui de
Re: simple example for running a php web page [message #30329 is a reply to message #30221] Wed, 20 June 2007 13:34 Go to previous messageGo to next message
Eclipse UserFriend
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 #30400 is a reply to message #30329] Wed, 20 June 2007 17:35 Go to previous messageGo to next message
Igor Kravchyk is currently offline Igor KravchykFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I recommend to use xdebug plugin from here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=169408

download latest "Prebuilt Binary of XDebug Support V0.2.2 for PDT RC3
only" from that page and follow pdf-instructions included.

HTH
Igor.
Re: simple example for running a php web page [message #30434 is a reply to message #30400] Wed, 20 June 2007 17:59 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
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.
>
Previous Topic:v0.2.2 of XDebug support for PDT 0.7rc3
Next Topic:"web static project" configurators
Goto Forum:
  


Current Time: Thu Sep 26 04:59:08 GMT 2024

Powered by FUDForum. Page generated in 0.04248 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top