PHP and JavaScript are both scripting languages commonly used in web development. The big difference between the two is where they are most often employed. JavaScript is the primary language for execution by the client side, i.e. the browser. PHP, a recursive acronym for PHP: Hypertext Processor, is typically implemented on the server side. As such, it is insulated from the variances in browsers and desktops that has handicapped JavaScript.
Server-side scripts for web pages are also coded in languages like Perl or C, but PHP has gained popularity in the role. One advantage PHP enjoys over alternatives is that it was created for scripting web pages, and thus has features for performing a number of typical web design functions included. Another plus is that PHP was designed to coexist with HTML; the acronym originally meant Personal Home Pages. When used to output text, PHP is embedded within the HTML code, whereas in the case of Perl, the opposite situation usually exists — the HTML would be produced by Perl code. The net effect is that the PHP and HTML solution is cleaner and more readable.
PHP does well in terms of execution time performance. PHP developers have made optimization a priority. As with database improvements, performance gains made on server-side scripts greatly enhance the efficiency of a web site. Unlike languages that compile code in advance and keep binary executables for processing requests, PHP compiles scripts when they are used. To save the cost of having to compile the same code for every request, a code cache is used to reduce the compilation required.
Although either PHP or JavaScript could be used on the opposite side of the web client-server relationship, neither is truly general purpose. Both are best suited to the respective niche where they evolved.
Watch the video related to Php Scripts
Help answer the question about Php Scripts
PHP Scripts/////////////////?Can anyone give a description of the concepts of PHP programming?
About Author
We offer a unique variety of Internet marketing opportunities that can help your business establish a strong online presence. Our web marketing campaigns are built on time-tested and proven techniques that deliver real results. We will strategically market your business toward specific audiences, with content and media created to deliver appropriate messages to niches and specialized interest groups.
You’re really good man. You’ve got excellent talent.
Brilliant Willy, Just Brilliant =D
Nice work, you did pretty good.
PHP is a program langague based on c++ that runs serverside which processes text, and outputs it to the user (browser) (used for creating dynamic websites)
HTML is the code which the browser sees and turns into a website. (Also it's what PHP outputs)
XML is pretty much Extensible Markup Language, it's like a big list of stuff to be simply put. It stores data, and provides an easy way for computers to share dataz. (API) and what not.
JavaScript is the client side script engine which helps manipulate HTML, aswell as perform AJAX queries and other cool things.
JavaScript runs on the client (i.e., in your browser). PHP runs on the server. Which is easier to learn? Probably PHP; it has no predefined objects and events, so there's less to learn. Which is more useful? There's no way to answer that, as PHP and JavaScript serve different purposes.
fastest and best way to do this would be to use the php include function. the server hit from doing this is very minimal and you would never notice the difference between using a include or just simply having the code right in the page. readfile is mainly used for processing files and has a lot more overhead with it than include since include just dumps the file in.
Using javascript is not a good way to do it, especially for navigation content since it relies too much on the browser side and all of its fun variations. if a user doesn't have javascript, there isn't a way to then use php or ssi since php and ssi are processed before the page is displayed to the browser, hence before javascript would have a chance to run.
amazing! Willy teach me how to paint like you!
Perfect.
Php and Perl are server side programming languages. They only run on a server.
The html and javascript are client side programs so you can save the html page to your desktop and run it.
C++ is a programming language you can make .exe files with.
C# is like C++ and is used with .Net which is used to make internet pages.
Java is similar to C++, and it can be used on the web, but it's kind of slow. The yahoo games I think are written in java.
Python is a script language like basic, it's free you can download the python compiler.
You can download the .NET platform on trial I think.
Also, get a book on NTier structure. It shows you how the different tiers work in a web, the front end client side, back end database, the logic tier, etc.
Darkbasic is used for making video games
:O
:O
:O
how is this not a real photo?
To learn them shouldn't take to long. Maybe a couple months. As for mastering, it depends on if you really mean "master" or if you just mean "become fluent". In order to become fluent you just have to use it everyday. Mastering these technologies is an ongoing struggle because they are always evolving and being updated.
1) Differences:
PHP – This is a server-side script. There are hundreds or even thousands of ones just like it, but the big ones are PHP, ASP .NET, JSP, Python and Perl. These kind of languages are meant to run on the server before they are sent to the user's browser. They're most popular purpose is to access a database using SQL and organize the HTML before it gets sent back to the user.
JavaScript – This is a client-side script. That means that it's run on the user's browser. When you see something happen on the screen and the page hasn't refreshed then it's probably done using JavaScript. Unlike the server-side languages mentioned above there's really only one type of real client-side language: JavaScript. There's a few others but no one ever uses them.
CSS – This language doesn't perform any actions, it just basically is responsible for making everything on the webpage look the way you want it. It's the "look and feel"
AJAX – This isn't really a language, it's a technique. The database can only really be accessed through one of the server-side languages like PHP. But in order to run the PHP code the page must refresh. AJAX is a technique that allows you to use JavaScript to make "behind-the-scenes" calls to the PHP code without the page refreshing. For example with Google Maps the javascript makes calls the the server-side language (e.g. PHP) behind the scenes to get the new parts of the map so the page doesn't have to refresh every time you drag the map.
2) They're distinguished from each other the same way that a hammer is distinguished from a wrench. They're all used for something different. See (1) above.
3) If you're new to programming it could take a few years to get really good at it. It also depends on how often you use it. You can kinda relate it to learning Spanish. If you use it everyday then you'll learn it a lot faster than if you just used it every once in awhile.
A really good site to start out with is w3schools.com. They'll teach you all this stuff. It's probably the best one you're going to find.
hm i couldn’t tell the difference between photograph and painting comparing the final resault.
This is sick
woww that’s really relax and beatiful soung .good picture of jhony depp !
Very nice!!
PHP is a server-side script meaning it's all processed before the page loads.
JavaScript is client-side so it can be processed as the user is looking at the page.
Anyone can see your JavaScript code but because PHP is server-side only people with access to your server can see it.
JavaScript is probably easier to learn but it all depends on what you're trying to do.
Hi,
This is a complicated question, and I am sure you will get heated responses from passionate users on both sides. To directly answer your question, the difference betwen ASP.Net, C#, VB, SQL are that it is used on servers running Windows. All the aforementioned products are part of the Microsoft suite. They are all high quality, but the licensing costs add up quickly.
PHP & MySQL are platform independent products. They are also open source so you can develop them without worrying about the associated licensing cost. Although, .Net definitely has a dedicated following, PHP/MySQL is still extremely popular espcially among smaller copmanies, and individual developers.
Finally, CSS, JavaScript, Xhtml are web design tools which you will use regardless of whether you choose PHP or .Net. The last three are all standards created by the w3c organization. At this time, there are no vendor specific replacements for these technolgoies, and almost every web designer knows them.
As far as preferred, it depends on the job you are seeking. I don't think either will be outdated very soon. .Net is newer and Microsoft is pushing insane sums of money to ensure its adoption, but PHP has been around for many years. There are so many applications using PHP that it is unlikely the language will be outdated, especially since it fills a crucial niche.
Just my two cents,
javascript is the programming lang.
java is the program that runs it
as long as the site is the same… you can share cookies!