^

Php

Category about Php

URL Request Handling
[2020-08-26 01:30:46] SEO Friendly URLs with PHP [PHP / URL Request Handling]
ModRewrite needs to be enabled in apache2 by executing: a2enmod rewrite Modify your HTaccess File like this if index.php is your main php File: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?i=$1 [L,QSA] For example, if the user enters the URL yourdomain.ending/wik...
String Operations
[2020-11-07 16:04:34] Check if String exists in String [PHP / String Operations]
Here code to check if a string exists in another string! $string = 'This is a String'; if (strpos($string , 'This') !== false) { echo 'true'; # STRING CONTAINS WORD "This" } else { # String not found inside $string } ...
[2020-11-07 16:02:41] Replace in a String [PHP / String Operations]
Example of replacing a sign in a string (works with more than one sign) $newstring = str_replace("TEXT", "NEW TEXT", $initialstring); ...
Theme
Switch: 206 | Arrive: 295
This Website is using Session Cookies for Site Functionality and AWStats.
Staff may be MiA!