Searching for "php"

Q:

PHP allows you to send emails directly from a script.

php allows you to send emails directly from a script

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

The mail() function allows you to send emails directly from a script.


 

Report Error

View Answer Workspace Report Error Discuss

Subject: PHP
Exam Prep: Bank Exams
Job Role: IT Trainer , Project Manager , Software Architect

Q:

All variables in PHP start with which symbol?

A) % B) !
C) $ D) &
 
Answer & Explanation Answer: C) $

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming
Exam Prep: Bank Exams

Q:

The PHP Syntax is most similar to

A) Visual Basic B) VB Script
C) PERL & C D) Java Script
 
Answer & Explanation Answer: C) PERL & C

Explanation:

PHP is similar to the C style syntax in terms of keywords and language syntax.

 

If conditions, for and while loops, and function returns are similar in syntax to languages such as C, C++, C#, Java and Perl.

Report Error

View Answer Report Error Discuss

Q:

What is PHP’s configuration file called ?

Answer

PHP’s configuration file is called php.ini.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

Q:

How to create a basic text file in php?

Answer

$filename = "/home/user/guest/newfile.txt";
$file = fopen( $filename, "w" );
if( $file == false )
{
echo ( "Error in opening new file" );
exit();


}
fwrite( $file, "This is a simple test\n" );
fclose( $file );

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: IT Trainer

Q:

What is the purpose $_PHP_SELF variable?

Answer

The PHP default variable $_PHP_SELF is utilized for the PHP script name and when you click "submit" catch then same PHP script will be called.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: IT Trainer

Q:

What is the difference between _construct() and _destruct() methods in php?

Answer

These two methods are bulid-in methods  in php. with  construct() we can overwride the parent class method. The inverse of the __construct() PHP capacity while making another class, is the __destruct() technique. The __destruct() technique will consequently keep running, after you've completed with the PHP class.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Software Architect

Q:

What is the difference between the functions unlink and unset in PHP?

Answer

The function unlink() is to remove a file, where as unset() is used for destroying a variable that was declared earlier.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP