Hi everyone, Is there a way to cache BLOB types temporarily in Laravel ? Scenario: I’m gonna cache some data MEDIUMBLOB with the size of 2048KB temporarily. These data are actually parts of a large single file 16MB. After caching all parts, they will be combined together into a single file, then will be…
PHP populate array inside a function
i have a small problem with my php code. i’ve created a class for Clients, to return me a list with all clients. The problem is when i call the function from outsite, it dont show me the clietsList. and the result is like that, but without clietslist Where im doing wrong? Thanks for your answer. i want …
how to increment the values of keys in associative array as string
I have a condition to increment the array keys in such a way that each array key is to get increment. Only this part should get updated with the incremented number “LV001_LV002” to “LV099_LV100”.(But not only up to 100 it get increment above 100 also). i have developed the below struct…
PHP Laravel : $request->hasFile() is not working
I have a form where i get the title,content … and an image. When i dd($requests->all());, It returns the following which is correct. Here is my code for image processing: But the img DB table field gets null. The if($request->hasFile(‘imagePost’)) is not getting the field. What have i …
how to get data from another form
I have three forms which are homeUser.php, application.php, and payment.php. in homeUser.php I have this information with form details. So in form application.php, I can retrieve the id by using the code However, I want to use the numApplicant and location in the third form also. how should I call it in the t…
can JS automatically assign keys like PHP?
in PHP, keys can automatically be assigned without requiring a name or variable: $myObject = [‘someCrap’ =>[]]; for($i=0;$i<=10;$i++) { $myObject['someCrap'][] = 90 * $i; }; var_dump($myObject)…
CSS Styling in PHP echo
I am very new to using PHP and I am unsure how to style this table. I created a class but I am not sure if I make the changes in a separate CSS file because this did not work for me. Do I use style tags? How can I do this? Answer Just make sure the css file is
Changing some words in a string for highlight (PHP)
I can run JS Code smoothly but unfortunately, I could not do the same in PHP. I want to change some terms in the text for highlight. How can I do that? var words = ‘word1#word2#word3’; var …
How to write file to desktop in laravel?
I am trying to write a backup for my database, I want If a button is clicked the application will export the database to the desktop. The app exports the file on my database directory if I use laravel database directory path but if I change the path to desktop location nothing appears on the desktop. It will …
What is the best way to generate an URL that expires in 3 days? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year. Improve this question Hello to all of you developers, I wanted to make a web page in php that…