• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

PHP

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
cool, thanks for the reply



Justin Fox
 
pie. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic