dd Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
Accounting Faqs_Questions_And_Answers Action Script Faqs_Questions_And_Answers AJAX Faqs_Questions_And_Answers Antivirus Faqs_Questions_And_Answers C Faqs_Questions_And_Answers C++ Faqs_Questions_And_Answers CAD Faqs_Questions_And_Answers CAM Faqs_Questions_And_Answers Data Stage Faqs_Questions_And_Answers Data Base Faqs_Questions_And_Answers Data Warehousing Faqs_Questions_And_Answers Desktop Publishing
Data Structures Faqs_Questions_And_Answers Freeware Faqs_Questions_And_Answers Graphics Faqs_Questions_And_Answers Hacking Faqs_Questions_And_Answers Internet Faqs_Questions_And_Answers Intranet Faqs_Questions_And_Answers JAVA Faqs_Questions_And_Answers J2EE Faqs_Questions_And_Answers Lotus Notes Faqs_Questions_And_Answers MainFrames Faqs_Questions_And_Answers Marketing Faqs_Questions_And_Answers Multimedia
MIS Faqs_Questions_And_Answers MySql Faqs_Questions_And_Answers .NET Faqs_Questions_And_Answers Open Source Faqs_Questions_And_Answers Operating Systems Faqs_Questions_And_Answers Oracle Apps Faqs_Questions_And_Answers Oracle9i Faqs_Questions_And_Answers OOPS Faqs_Questions_And_Answers Pl/SQL Faqs_Questions_And_Answers People Soft Faqs_Questions_And_Answers PHP
Sql Server Faqs_Questions_And_Answers SAP Faqs_Questions_And_Answers SAS Faqs_Questions_And_Answers Siebel Faqs_Questions_And_Answers Security Faqs_Questions_And_Answers Springs Faqs_Questions_And_Answers Shell Scripting Faqs_Questions_And_Answers Perl Scripting Faqs_Questions_And_Answers Testing Tools Faqs_Questions_And_Answers Web Sphere Faqs_Questions_And_Answers XML
PHP Faqs

PHP Faqs

1 What is PHP?
Ans:

PHP stands for:Hyper Text Preprocessor.
PHP is a server-side scripting language,like ASP. PHP scripts are executedon the server. PHP supportsmany.databases(MySQL,Informix,Oracle,Sybase,Solid,PostgreSQL,GenericODBC,etc.
PHP is an open source software (OSS).

 
2 What is a PHP File?
Ans:

PHP files may contain text, HTML tags and scripts.
PHP files are returned to the browser as plain HTML. 
PHP files have a file extension of ".php", ".php3", or ".phtml".

 
3 What is MySQL?
Ans:

MySQL is a database server. MySQL is ideal for both small and large applications.
MySQL supports standard SQL.
MySQL compiles on a number of platforms.
MySQL is free to download and use.

 
4 Why PHP?
Ans:

PHP runs on different platforms (Windows, Linux, Unix, etc.).
PHP is compatible with almost all servers used today (Apache, IIS, etc.).
PHP is FREE to download from the official PHP resource: www.php.net.
PHP is easy to learn and runs efficiently on the server side.

 
5 Where to Start?
Ans:

Install an Apache server on a Windows or Linux machine. Install PHP on a Windows or Linux machine. Install MySQL on a Windows or Linux machine.

 
6 What does PHP stand for?
Ans: PHP stands for: Hypertext Preprocessor. This confuses many people because the first word of the acronym is the acronym. This type of acronym is called a recursive acronym.
 
7 How does PHP compare to ASP?
Ans:

Microsoft's Active Server Pages (ASP) comes with VBScript and JScript scripting languages, but you can also install scripting engines for Perl, REXX, and Python, whereas PHP will only ever be PHP. The most commonly used flavour of ASP is that written in VBScript. VBScript is a subset of Visual Basic, a standalone compiled language. This very fact makes ASP marketable to VB programmers wishing to build applications for the Internet. However, as a script language VBScript could never compete with its big brother, Visual Basic, only supplement it. In making this point, VBScript is not solely a glue to hold Visual Basic together with an Internet front-end, but that's really what it does best.

ASP can prove to be very memory hungry beasts and regular calls on system objects, such as Active Data Objects (ADO) for working with databases can make for slow applications on heavily loaded machines. VBScript lacks many important features, which can be added through Component Object Model (COM) objects. An example of this, is when trying to send e-mail using VBScript, although the objects are available, they can be costly and more time consuming than the PHP equivalent (mail function). PHP can also be 'added to' with additional functionality being quite platform dependant. COM functions are supported by the Windows version of PHP and many libraries are available for *nix versions.

VBScript interpreters are available for various Unix based systems and Windows. However, finding a COM object that will send e-mail on a Unix system is nearly impossible and very expensive. This leads to the conclusion that ASP is only really at home in a Microsoft environment. It has its fair share of security flaws, but when used by professional VB programmers, I have seen ASP provide some immensely powerful interfaces. PHP on the other hand can be seen to provide the best results in the form of stability and speed on Unix based systems.

PHP is Open Source software, which is great as it means that code, manual, updates and support are all free. Although the ASP script engine comes included with IIS and PWS and minimal support is available free, running Microsoft operating systems at a commercial level is always going to be costly.

A lack of high profile sites using PHP makes it a bit harder to prove it's robustness and gain acceptance from non-programming colleagues (e.g. management), but for a programmer the portability and stability of PHP is beneficial.

 
8 What is caching?
Ans:

"Meta tags are easy to use, but aren't very effective. That's because they're usually only honored by browser caches (which actually read the HTML), not proxy caches (which almost never read the HTML in the document)."
If a page is changed "nearly every day", it will hardly be a problem in practical terms. And in any case, it's something to be handled at the server level, by making the server send some useful expiration information, using whatever needs to be done on a specific server. Telling that a page expired twenty years ago is hardly a good idea if you can expect its lifetime to be a day or more, or at least several hours. Defeating proxy caching brutally wouldn't be a good idea (and meta tags won't do that, so the errors in a sense cancel out each other, so to say This has to be at the beginning of the file, with nothing before (e.g. no blank). This is a brute force variation, some adjustments are useful. (Server supporting PHP is recommended)Meta-tags wont work with proxies. Proxies don't work on the 'HTML-layer' but HTTP. Things depend on proxy settings also."The Pragma header is generally ineffective because its meaning is not standardized and few caches honor it. Using <meta http-equiv=...> elements in HTML documents is also generally ineffective; some browsers may honor such markup, but other caches ignore it completely." - Web Design Group That's because the no-cache pragma is supposed to be part of a HTTP *request*. And *this* has been standardized since way back.

 
9 What is CGI?
Ans: CGI: Common gateway interface Allows a web server to actually run a program and return the output as the "web page". Very flexible and very useful, especially when combined with Perl or mod_perl, but can be used with C, bash, Python or a number of other languages. (anything the server can run). CGI is an older technology, and has since been superceded by the following technologies:

mod-perl.
PHP.
JSP and servlets.
Server side.
Javascript.
NSAPI and IISAPI.
ASP.
J2EE Web Services.
.net web services.
Although superceeded, CGI is still widely available and used,essentially.because of its ease of setup and the flexibility on which programming language is used.
 
10 What is the relation between the versions?
Ans:

PHP/FI 2.0 is an early and no longer supported version of PHP. PHP 3 is the successor to PHP/FI 2.0 and is a lot nicer. PHP 4 is the current generation of PHP, which uses the Zend engine under the hood. PHP 5 uses the Zend engine 2 which, among other things, offers many additional OOP features.

Page :     1 | 2 | 3
Top