What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-27 00:21:02
exclude php
In PHP, once a resource is included, it can not be removed or "un-included". This is the very principle of PHP file inclusion. See : http://www.php.net/manual/en/function.include.php The include statement includes and evaluates the specified fi... Add solution -
PHP 2021-09-25 23:42:04
mac os not found php module in httpd.conf
=====> brew info php this will show you all details about the php and you can the the libapache2-mode under details ===================================== now folow the the steps to add config in httpd.conf file now restart the sev... Add solution -
SQL 2021-09-24 21:57:03
nd_pdo_mysql working
MySQL_ND and MySQL PHP extensions are the different sets of drivers. They are provided by the different teams of developers (MySQL and PHP, respectively). The most important is the fact that they are mutually exclusive - you can not select them both si... Add solution -
PHP 2021-09-23 12:45:04
interview php questions
# 27 basics questions for php Interview 1) What is PHP? PHP is a web language based on scripts that allow developers to dynamically create generated web pages. 2) What do the initials of PHP stand for? PHP means PHP: Hypertext Preprocessor. 3) Which pr... Add solution -
PHP 2021-09-23 04:39:05
laravel queue:work freezes
Execute Laravel queues by queue names on command line interface-> // I was using running command 'php artisan queue:work' // which was not running my queued jobs in jobs table. // Then i relaized, it was only working for jobs with queue column ... Add solution -
PHP 2021-09-22 06:57:03
serial number in pdf in html code using php
<?php function fetch_data() { $output = ''; $conn = mysqli_connect("localhost", "root", "", "f1software"); //$site_cd=$_POST['site_cd']; // $sql1 = "SELECT * FROM newsi... Add solution -
PHP 2021-09-21 08:02:02
MySQL integer field is returned as string in PHP
When you select data from a MySQL database using PHP the datatype will always be converted to a string. You can convert it back to an integer using the following code: 1. $id = (int) $row['userid']; 2. For Laravel you can also use cast variable inside... Add solution -
PHP 2021-09-16 10:07:01
how to pass value from one php page to another using session
//There are three method to pass value in php. //By post //By get //By making session variable //These three method are used for different purpose.For example if we want to receive our value on next page then we can use 'post' ($_POST) method as:- $a=$_... Add solution -
PHP 2021-09-15 19:56:03
how to create config file in php
<?php return (object) array( 'host' => 'localhost', 'username' => 'root', 'pass' => 'password', 'database' => 'db' ); ?> This allows you to use the object syntax when you include the php : $configs->host instead o... Add solution