Skip to content

IT Notes

IT Notes

  • Home
  • Privacy Policy
  • Sample Page
PHP Interview Questions

What is the function mysql_pconnect() useful for?

mysql_pconnect() ensure a persistent connection to the database, it means that the connection does not close when the PHP script ends. This function is not supported in PHP 7.0 and above

PHP Interview Questions

How can we connect to a MySQL database from a PHP script?

 To connect to a MySQL database, we must use mysqli_connect() function as follows: <!--?php $database = mysqli_connect("HOST", "USER_NAME", "PASSWORD"); mysqli_select_db($database,"DATABASE_NAME"); ?-->

PHP Interview Questions

What is the function file_get_contents() useful for?

file_get_contents() lets reading a file and storing it in a string variable.

PHP Interview Questions

What should we do to be able to export data into an Excel file?

The most common and used way is to get data into a format supported by Excel. For example, it is possible to write a .csv file, to choose for example…

PHP Interview Questions

What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?

This is a PHP syntax error expressing that a mistake at the line x stops parsing and executing the program.

PHP Interview Questions

How is it possible to set an infinite execution time for PHP script?

The set_time_limit(0) added at the beginning of a script sets to infinite the time of execution to not have the PHP error ‘maximum execution time exceeded.’ It is also possible…

PHP Interview Questions

How can we display information of a variable and readable by a human with PHP?

we use print_r().

PHP Interview Questions

What is the main difference between require() and require_once()?

require(), and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it.

PHP Interview Questions

How failures in execution are handled with include() and require() functions?

If the function require() cannot access the file then it ends with a fatal error. However, the include() function gives a warning, and the PHP script continues to execute.

PHP Interview Questions

What are the functions to be used to get the image’s properties (size, width, and height)?

The functions are getimagesize() for size, imagesx() for width and imagesy() for height.

Posts navigation

1 … 88 89 90 … 100

« Previous Page — Next Page »

Recent Posts

  • What is php artisan tinker?
  • What is the use of php artisan make:command?
  • What is Laravel Envoy?
  • What is Broadcasting in Laravel?
  • What is Laravel Echo?

Recent Comments

No comments to show.

Archives

  • July 2025
  • June 2025
  • November 2024
  • August 2024
  • July 2024
  • April 2024
  • September 2023
  • May 2023

Categories

  • Android Interview Questions
  • Angular JS interview Questions
  • C Programming
  • C Programs
  • C++ Programming
  • Codeigniter Interview Questions
  • Computer Network
  • CSS Interview Questions
  • HTML Interview Questions
  • Java
  • Java Interview Questions
  • Javascript Interview Questions
  • jQuery interview Questions
  • Laravel Interview Questions
  • Mobile Application Development
  • MySQL Interview Questions
  • PHP
  • PHP Interview Questions
  • Python
  • Python Interview Questions
  • React JS Interview Questions
  • Software Engineering
  • System Analysis and Design (SAAD)
  • Uncategorized
  • Vtiger CRM

You Missed

Laravel Interview Questions

What is php artisan tinker?

Laravel Interview Questions

What is the use of php artisan make:command?

Laravel Interview Questions

What is Laravel Envoy?

Laravel Interview Questions

What is Broadcasting in Laravel?

IT Notes

Copyright © All rights reserved | Blogus by Themeansar.