Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PHP

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64845
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cool, thanks for the reply



Justin Fox
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic