so i wanted to display the image not the image name in my views. i got this in my views <img src="{{$post->image}}" /> what i want is to display t
i'm trying to learn mysqli. i get this error: Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc() in C:\xampp\h
I'm using a WebView to show a web application. All works, except one thing: My login: setcookie("USER_ID", $my_id, time() + 86400); My logout: setcookie("U
I am attempting to download MP3 files to the user computer located in a directory named "songs" on the server. I have been able to run a script which downloads
I'm using laravel-websockets and is working like a charm in my local docker machine but I can't seem to make it work when I deploy it in the AWS EC2 machine. Th
This does not work $sql = 'SELECT * FROM `users` WHERE username LIKE \'%{?}%\' '; Warning: mysqli_stmt::bind_param(): Number of variables doesn't match numbe
Since mcrypt_encrypt is no longer supported in PHP 7.2, I am trying for exact alternate to this function. After reading many SO answers I have found the foll
My log shows a lot of the following messages: order_total was called incorrectly. Order properties should not be accessed directly. This message was added in v
I have a JSON field in a MySQL database that contains values like [1,3,4,7]. I would like to be able to easily supply another array from a PHP variable and det
I'm getting the error: Fatal error: Cannot redeclare class News in application\models\Entities\News.php The two classes are as follow: application/models/News
I know probably this was asked before not sure if was in this form but I did tried some replay from what I found here about this and failed. ok I have this arr
I'm using the package of eleirbag89 http://eleirbag89.github.io/TelegramBotPHP to create my bot on telegram. I'm having some issues on it, it doesn't answer me
I'm trying to test a function in phpspec which calls Laravel's Validator::make function (http://laravel.com/docs/4.2/validation) However, I'm trying to call th
I need get a list of orders in woocommerce passing start date, final date and status. I tryed use some techniques like described by Mike Jolley, and I mixed wi
Carbon is simple PHP API extension for DateTime. I want to know that we can use datetime functions using by installing carbon via composer. which is faster ph
I am using AWS Elasicache(Redis) using PHP & MySQL for different caching purposes that are mentioned below Reducing the load on MySQL Session Handling Datab
Summary I'm trying to let my model controller delete multiple models (selected by an array of IDs) including their selected related models (selected by an arra
When I try to make a request with POST to a script that has this line: $decrypted_data = openssl_decrypt($encrypted_data, 'AES-256-CBC', $key); I get the fol
I've been searching for something like this https://cdn-images-1.medium.com/max/800/1*pLXaOT2WwxRptVxOvuvX8w.png in Telegram to no avail. Anyone out there can p
I'm making a RESTful webservice and I want the items that are posted to the JSON file to have an Id. I've been searching everywhere but couldn't find anything o