944,204 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1706
  • PHP RSS
Mar 9th, 2006
0

how php is related to server scripting?

Expand Post »
HI,
i want to know what is server scripting ,and how does php relates to server scripting.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ridhimasatam is offline Offline
7 posts
since Feb 2006
Mar 9th, 2006
0

Re: how php is related to server scripting?

PHP is a server side scripting language for the web. It's a web development language, because it is used to create dynamic websites for the web (such as DaniWeb). It is a scripting language as opposed to a compiled language.

Personally, I'm not entirely sure of the differences between a scripting language and an interpreted language so I don't want to give you false information.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Mar 10th, 2006
0

Re: how php is related to server scripting?

Quote originally posted by ridhimasatam ...
HI,
i want to know what is server scripting ,and how does php relates to server scripting.
csgal is correct, but based on your question, I'm thinking you may need an even higher-level answer? If not, just ignore this post!

When you browse the web, you do so with browser software running on your computer---that is the "client". When your browser displays web pages, it gets that content from a computer on the Internet--that computer is the "server". Thus we talk about the "client/server" architecture.

Programmers who create web pages can choose to write code that will either be processed by the server--before the page is sent to you (the client), or the programmer can choose to write code that will run on the client's computer after the page arrives.

By far, the most popular client-side scripting language is javascript. A programmer may choose to use javascript to produce a dynamic (DHTML) effect on the page. For example, perhaps a mouse-over effect that causes an image to change as you pass the mouse over it.

There are many popular server-side programming languages--PHP being one of them. PHP is the server-side language used to create the Daniweb page you are reading right now.

Are you familiar with HTML? Have you ever written a web page using HTML? If so, you understand that an HTML page is a static source--that is, once you create it, that is always what gets served to the client. A PHP script, on the other hand, uses programming logic to dynamically generate--on the fly at request time--an HTML page according to the client request. The code may connect to a database and query data to use in building the page. It may query third-party services such as RSS news feeds, etc. In the end, the script produces HTML that is sent to the user's browser.

I hope this helps you. Thank you for using Daniweb.
Reputation Points: 36
Solved Threads: 6
Posting Whiz
Troy is offline Offline
354 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How do I install Apache, MySQL, PHP on Linux?
Next Thread in PHP Forum Timeline: what is apache server?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC