0
Q:

What is the difference between mysql_connect and mysql_pconnect? 

Answer:



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

10 5684
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

6 4267
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

1 4428
Q:

What's the difference between Session and Cookie?

Answer

The principle distinction amongst sessions and cookies is that sessions are put away on the server, and cookies are put away on the client's PCs in the content record position. Cookies can not hold various variables,But Session can hold numerous variables.We can set expiry for a cookie,The session just stays dynamic the length of the program is open.Users don't have admittance to the information you put away in Session,Since it is put away in the server. Session is mostly utilized for login/logout reason while cookies utilizing for client movement following.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Database Administration

1 3821
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

2 6136
Q:

What's the difference between GET() and POST() method?

Answer

We can send 1024 bytes utilizing GET() yet POST() can exchange extensive measure of information and POST is the protected strategy than GET technique .

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Database Administration

1 3939
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

1 3665
Q:

What is the difference between Notify URL and Return URL?

Answer

Notify URL and Return URL is used in Paypal Payment Gateway integration. Notify URL is used by PayPal to post information about the transaction. Return URL is used by the browser; A url where the user needs to be redirected on completion of the payment process.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

2 4110