I'm using FOSUser Bundle to login. Now if user is already loggedin, how can I redirect user to homepage ('/'), if user visit to /login url. I have copied Secur
I want to get a csrf token from another web's form. I've tried to get that token with cUrl. I guess that was success, but I think the real problem is that anoth
What is the proper way to handle error on duplicate entries for PHP/MySQL? The code below is not working even tho the code 1062 is the right code for duplicate
I have some promblem with CI when i use $this->session->set_userdata Controller public function check_login() { $email = $this->input->pos
I have an application that is developed in visual fox pro in which I have an encryption method that I want to transfer to php code, the code is as follows: FUNC
For saving the days of week in a database, I've the existing code : if (isset($_POST['day7'])){$dayOfWeek = 1;} else { $dayOfWeek = ''; } if (isset($_POST['day1
I have upgrade Symfony 3.4 to 4.4. The only Deprecation warning left is this: php.INFO: User Deprecated: The "Symfony\Component\Debug\DebugClassLoader" class i
I need to export HTML table with data from database to xlsx file as easily as possible. I've tried PHPExcel and some JS plugins, but unsuccessfully. Is there
I have a function in a functions.php file which updates a download count in a MySQL database via php. I cannot fathom out why it isn't working. Below is the cod
I am trying to display a default image if user do not have profile image but I am not getting what to do next so.. can any write further code as I tried this co
I'm using the .htaccess mobile redirect below which I found on an older post here. It works great, but I need to exclude several directories from the redirect r
I am trying to create a drop down list box in woocommerce but have it populated with data from the database. I have the majority of the code working but the po
When I worked on laravel local development server php artisan storage:link works fine for me. But when I transfer my site to production server then I saw my pub
I have created a form which is having a lot of fields and user can create an unlimited field in it. If a user spends more time on it CSRF token get expires and
I am trying to build a docker image for php, which can handle database dumping in my mysql container. The problem is that it seems to install the mariadb versio
I wondered if it was possible to read a csv file written like this in symfony using League csv or something else. water_level,2,456,345 wind_speed,2
I have performed a fresh install of Laravel Jetstream. Upon completing all the steps outlined in the Jetstream (Inertia) set up process, the project starts up f
I am trying to get Json Data from a https url. I have tested and working code to do just this for http but I am yet to find a working version
I have an enum: enum Type: int { case OFFENSIVE = 1; case SPAM = 2; case IRRELEVANT = 3; } I understand I can get all types and their values with T
As in https://www.w3schools.com/php/func_string_substr_replace.asp <?php echo substr_replace("Hello","world",0); ?> where is the needle