aspose file tools*
The moose likes General Computing and the fly likes PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "PHP" Watch "PHP" New topic
Author

PHP

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I'm having a little trouble understanding the whole concept of PHP.
I know that it's used in "server-sided" programming, but does it have
to be on a server?

what I'm saying is, do you have to have your html page on a server that
can recognize PHP, or can i.e execute it.

I know a lot of code in php and how to use it, the problem is i dont know how to get i.e to execute my php script. Like I'll have some script in the html page but nothing will happen. Do I need to put the script in a file:
file.php, and just call it throught the form action="" or what?

I have a book, but it doesn't really go into to much detail about what you need to run php script, just the syntax and other stuff like that.

Thanks A Lot,

Justin Fox


You down with OOP? Yeah you know me!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Yes, the file must be on a server running a php-aware web server. Apache, for example, has a plugin to interpret php.

The server interprets the php in order to send the resulting HTML page to the browser. Without the server to interpret the php, the file is delivered to the browser as is.
[ October 24, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
cool, thanks for the reply



Justin Fox
 
wood burning stoves
 
subject: PHP