aspose file tools*
The moose likes PHP and the fly likes Really dumb, elementary question about viewing PHP. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "Really dumb, elementary question about viewing PHP." Watch "Really dumb, elementary question about viewing PHP." New topic
Author

Really dumb, elementary question about viewing PHP.

Marjorie Gyles
Ranch Hand

Joined: Nov 03, 2012
Posts: 42

Okay, call me stupid, but how do you even show PHP? I have tried the following code, lifted from W3Schools, and I see nothing. What am I doing wrong?




Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61615
    
  67

What are you using for a PHP server?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Marjorie Gyles
Ranch Hand

Joined: Nov 03, 2012
Posts: 42

Nothing that I know of. Darn. I guess that means I have to download it and install it, right? The things I do for school amaze me. I just want to write the web page and see it in a browser. How about WebMatrix? Does that work?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61615
    
  67

A server is needed to process the PHP and turn it into HTML that is sent to the browser.

The Apache Web Server is probably your best bet.
Marjorie Gyles
Ranch Hand

Joined: Nov 03, 2012
Posts: 42

Thank you, Bear. Apparently, I was focused on my php program lab when the grad student explained that to the guys on the other side of the room. We have an apache server I'm supposed to upload the file onto, then look at it through a browser. Thank you for taking the time to answer my question. I know it was a dumb one, but I have an assignment due Monday and I haven't even gotten started on it due to this hiccup. Thanks for not deleting my question like another site I know of does if they don't feel like answering the question. Thanks again and have a great night.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61615
    
  67

So-called "dumb" questions are what we live for! Glad to be of help.

Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

Besides Apache Web Server, you'll also need a PHP processor and to configure Apache Web Server to use it. The PHP installer for Windows should do that configuration for you during installation provided Apache Web Server is already installed: http://windows.php.net/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Really dumb, elementary question about viewing PHP.