What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-01 13:11:40
update php version wamp windows
For someone who need to update the PHP version in WAMP, I can recommend this http://wampserver.aviatechno.net/ I had a problems with updating too, but on this website are Wampserver addons like new php version (php 7.1.4 etc.) And you don't have to manua... Add solution -
PHP 2022-02-01 06:30:41
warning: require(/var/www/html/public/../vendor/autoload.php): failed to open stream: no such file or directory in /var/www/html/public/index.php on line 24
What you're missing is running composer install, which will import your packages and create the vendor folder, along with the autoload script. Make sure your relative path is correct. For example the example scripts in PHPMailer are in examples/, below t... Add solution -
PHP 2021-11-20 05:23:10
create config value 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 -
PHP 2021-11-18 08:12:21
php showing code in browser
If your PHP code is being displayed in the browser, it means that your server has not been setup to serve PHP scripts. You can use something like XAMPP. If you do, activate 'Apache' and 'MySQL' After you do that, go into the download directory and go in... Add solution -
PHP 2021-11-13 18:20:25
Array and string offset access syntax with curly braces is deprecated in tcpdf.php
//Let's say you have something like this in your code: $str = "test"; echo($str{0}); //since PHP 7.4 curly braces method to get individual characters inside a string has been deprecated, so change the above syntax into this: $str = "test&q... Add solution -
PHP 2021-11-10 22:07:08
wamp php version update
For someone who need to update the PHP version in WAMP, I can recommend this http://wampserver.aviatechno.net/ I had a problems with updating too, but on this website are Wampserver addons like new php version (php 7.1.4 etc.) And you don't have to manua... Add solution -
PHP 2021-11-09 14:40:13
php date timestamp now
//Get current date time in PHP // Simply: $date = date('Y-m-d H:i:s'); // Or: $date = date('Y/m/d H:i:s'); // This would return the date in the following formats respectively: $date = '2012-03-06 17:33:07'; // Or $date = '2012/03/06 17:33:07'; /** *... Add solution -
PHP 2021-11-08 03:20:09
cache for php website
Here, if you want to control it through HTML: do like below Option 1: <meta http-equiv="expires" content="Sun, 01 Jan 2014 00:00:00 GMT"/> <meta http-equiv="pragma" content="no-cache" /> And if you w... Add solution
Best helpers
Ranking is empty