What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-25 05:41:04
php get client ip
The simplest way to collect the Client/Visitor IP address using PHP is the REMOTE_ADDR. Pass the 'REMOTE_ADDR' in PHP $_SERVER variable. It will return the IP address of the visitor who is currently viewing the webpage. Get the IP address of the website ... 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-22 04:26:01
php get ip address
The simplest way to collect the Client/Visitor IP address using PHP is the REMOTE_ADDR. Pass the 'REMOTE_ADDR' in PHP $_SERVER variable. It will return the IP address of the visitor who is currently viewing the webpage. Get the IP address of the website ... Add solution -
PHP 2021-09-18 16:16:05
file could not be downloaded: Unable to find the wrap per "https" - did you forget to enable it when you configured PHP? failed to open stream: No such file or directory
solved it in XAMPP by uncommenting ;extension=php_openssl.dll in /apache/bin/php.ini despite phpinfo() telling me /php/php.ini was the loaded ini file. And You just uncomment the extension_dir in php.ini Add solution -
PHP 2021-09-18 09:36:03
php date reference
d - The day of the month (from 01 to 31) D - A textual representation of a day (three letters) j - The day of the month without leading zeros (1 to 31) l (lowercase 'L') - A full textual representation of a day N - The ISO-8601 numeric representation of a... Add solution -
PHP 2021-09-17 22:15:04
array associativo php
<?php /* There are 3 Types of array in php 1. Indexed arrays - Arrays with a numeric index 2. Associative arrays - Arrays with named keys 3. Multidimensional arrays - Arrays containing one or more arrays This is the second one - Associative arrays... Add solution -
PHP 2021-09-17 06:23:05
word edit php
/* * https://stackoverflow.com/a/65703321/13779574 * https://github.com/PHPOffice/PHPWord * I also did this problem in phpword using the following code */ if(!file_exists('file/word.docx')){ $templateProcessor = new \PhpOffice\PhpWord\TemplateProc... Add solution