A website I develop currently have a section that allows users to name things, but I don't want they give any names to anything. So I restrict words which they could use. My current code look like this:
$given_name = trim($_POST['given_name']);
$reserve = array(
.......
"demo" => "demo",
"Demo" => "Demo",
"example" => "example",
"Example" => "Example",
.......
);
if (in_array($given_name,$reserve)) {
die(msg(0,"[...
Code (markup):
Is PHP variable value case sensitive
from PHP http://ift.tt/1I6fsnR
via
IFTTT
Related Post
Creating hashtags only, nothing elseI am using this preg_replace to create hashtags twitter style:
$text = preg_replace('/(^|\s)#(\
PHP scripts to compress HTML,CSS,JSHi guys, is anybody here has PHP scripts that compress CSS, HTML and JS ?
from PHP http://ift.tt/1
Move Blog to Fresh DomainI want to move a Wordpress Blog to a fresh Domain Name and not just redirect with .htacces
Means p
Read and Sort before to save recordsHi everyone!!
I have this:
if(file_exists("filename.csv")) {
$registro = fopen("filename.csv
Trying to install script - help with install directionsI'm trying to install this on an html page. The ReadMe instructions are short, but beyond my skill
Strip or preg_replace .zip, .exe, .rar, .rpm, .xz, etc. etc.I'd like to have a strip function (or preg_replace) that strips all extensions that can be unzipped
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon