What do you want to save?
Add Code snippet
New code examples
-
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 -
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-14 22:01:03
atom emmet php
// To use Emmet in PHP files, open Atom's keymap.cson file. // (⌘+SHIFT+P then enter “open keymap”) // Copy the code below, paste at the end of the file, and save. 'atom-text-editor[data-grammar="text html php"]:not([mini])': 'tab... Add solution -
PHP 2021-09-14 07:51:02
php confirm box
If you want to do this only in PHP, you will need to add "steps" in your script, like: step1 (show form) -> step2 (ask validation) -> step3 (validate) To do so, you can use sessions to keep form content, and GET parameter to track the ste... Add solution -
Other 2021-09-13 15:03:02
ussd
// Vist https://www.aat.co.za/always-active-mobile/ussd/ AAT specializes with ussd and I have worked with them in the past Offer really great support and their API is easy to use. Works very well in prod. https://github.com/azandazama/MenuPlus is a PHP li... Add solution -
PHP 2021-09-13 07:59:01
php get user 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