php remove file
if(file_exists($file)) {
unlink($file);
}
php remove file
if(file_exists($file)) {
unlink($file);
}
php regex remove file extension
$withoutExt = preg_replace('/\\.[^.\\s]{3,4}$/', '', $filename);
This matches a dot followed by three or four characters which are not a dot or a space.
remove .php extension
#This code will automatically remove .php extention
#ex: it remmoves www.eample.com/xyz.php to www.example.com/xyz
RewriteEngine on
RewriteBase /
RewriteRule ^(.+)\.php$ /$1 [R,L]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ /$1.php [NC,END]
#Copy and paste the above code in .htaccess file
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us