Skip to content

Tag: php

clean url in core PHP

I’ve gone through the multiple threads on clean url,but still I get confuse on it.I want to use clean url strategy in core php website.I changed my .htaccess file for multiple urls.but my following code works only for one page(one url) Question 1. Above code works only for search.php and if I entered ww…

No response from PHP on AJAX request

I am working on a simple signup page using jQuery and PHP using AJAX. Here is the script for making the ajax call: and the PHP script which responds to the call: signup.php: using PDO. dbconnect.php: Problem Neither of the two responses are being returned to the jQuery ajax call. I checked with console.log() …

Laravel findorfail() redirect

I have the following code : if we have an id in the DB table then that will come up with findorfail(), but if we add not existing id to the url like this : http://NewPro.dev/user-profile/24645645456 Then no query can be found and laravel page comes up. How can I redirect to some route if we have no id? Answer

Docker – How to disable PHP ext / modules

I am working on a PHP API and I would like to disable unused php Modules inside my PHP-FPM image, such as “sqlite3, pdo ..”. I am a docker beginner and I would like to know if is there anything similar to docker-php-ext-enable if not what is the best practice for disabling unused php modules. Answ…