Ans: By looking at the output of the phpinfo() function.
Q If you are writing your PHP scripts using windows notepad, you will need to ensure that your files are saved with the .php extension.But notepad adds a .txt extension to files automatically, Now how can we prevent this ?
Ans: We have to choose one of the following steps to prevent it-
(i) When you save the file and are prompted to provide a name for the file,
place the filename in quotes (i.e. “hello.php”).
(ii) you can click on the ‘Text Documents’dialog box and change the setting to “All Files”.
You can then enter your filename without quotes.
Q What do you mean by Text Editors? And list the some PHP editors ?
Ans: There are many text editors and Integrated Development Environments you can use to create, edit and manage PHP files.
Q How can we remove a linefeed ?
Ans: A linefeed that follows immediately after a closing ?> will be removed by PHP.
Q What do you mean by linefeed ?
Ans: Line feeds have little meaning in HTML, however it is still a good idea to make Your HTML look nice.
Q how can we jump in and out of PHP mode in an HTML file ?
Ans: Using Starting (< ?) and closing (? >) tag we can jump in and out of PHP mode in a HTML file.
Q How can we start and close a PHP tag ?
Ans: To start PHP tag- <?
To close a php tag- ?>
Q How can we access the above file if we developing locallay ?
Ans:http://localhost/hello.php.
Q How can we create a PHP enabled Page ?
Ans: Firstly-
Create a file named hello.php and put it in your web server’s root
Directory (DOCUMENT-ROOT).
Example:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo ’<p>Hello World</p>’; ?>
</body>
</html>
Q Which type of files handled by PHP ?
Ans: .php are handled by the PHP.
Q How can be parsing and accessing XML documents using PHP ?
Ans: PHP has extremely useful text processing features-
(i) from the POSIX Extended regular is expressions to parsing XML
Documents PHP 4 supports the SAX and DOM standards.
(ii) you can also use the XSLT extension to transform XML documents.
Q How can you access the remote objects in PHP ?
Ans: we can access objects by using CORBA extension.
Q Can you define Interconnection in PHP ?
Ans: PHP has support for instantiation of Java objects and using them transparently-
As PHP objects .You can also use our CORBA extension to access remote Objects.
Q Write the name of some databases that are currently supported to PHP ?
Ans: (i) MYSQL
(ii) Direct MS-SQL
(iii)Sybase
(iv) ODBC
(v) oracle(OC 17 and OC 18)
(vi) mSQL
(vii)FrontBase
Q what are the PHP abilities ?
Ans: (i) Outputting images
(ii) Pdf files
(iii) And even Flash movies( using generated on the fly)
(iv) You can also output any text, such as XHTML an any other XML file
(v) PHP can autogenerate these files and save them in the file system
(vi)instead of printing it(these files) coupons out,forming a server side cache for your
your dynamic content.
QWrite name of the web servers to which PHP supports ?
Ans: (i) Apache
(ii) MicroSoft Internet Information Server
(iii) personal web server
(iv)Netscape
Q write the name of some operating systems of Php on which PHP can be used ?
Ans: Following are the operating systems on which PHP can be used-
(i)Linux
(ii)Many Unix variants( including HP-UX, Solaris and open BSD)
(iii)MicroSoft Windows
(iv)Mac OS
Q What is command line Sripting ?
Ans: In this You can make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way.
Q What is server side scripting ?
Ans: you need three things to make this work.The PHP parser (CGI or server module), a web server. You need to run the web server,with a connected PHP installation.
Q What are the main areas in which PHP script is used ?
Ans:There are three mainareas in which PHP is used-
(i)Server side side scripting
(ii)Command line Scripting
(iii)Writing Desktop Applications
