Category: PHP

0

Catchable fatal error: Argument 1 passed to Illuminate\Container\Container::share() must be an instance of Closure

Catchable fatal error: Argument 1 passed to Illuminate\Container\Container::share() must be an instance of Closure, unknown given, called in /path/vendor/laravel/framework/src/Illuminate/Exception/ExceptionServiceProvider.php on line 67 and defined in /path/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 196   hatasını alıyorsanız ini_set(‘eaccelerator.enable’, 0);...

PHP ile FTP Sunucusundan eski dosyaları otomatik sildirmek 0

PHP ile FTP Sunucusundan eski dosyaları otomatik sildirmek

Bunun için aşağıdaki scripti kullanabilirsiniz ; <?php $host = “backups.mydomain.com”; //Replace with your host $username = “myUsername”; //Replace with your username $password = “myPassword”; //Replace with your password $mode = “passive”; //Leave blank to...

cPanel’de oAuth Kurulumu 0

cPanel’de oAuth Kurulumu

yum install pcre-devel pecl install oauth ya da WHM üzerinden Software -> Module Installers -> PHP Pecl kısmından yükleyebilirsiniz.

Prevent MySQL Injection in PHP 0

Prevent MySQL Injection in PHP

As it is explained everywhere on the web , the general solution to prevent mysql injection attacks in php is to use mysql_real_escape_string function , there are many guides on how to use it...