Search found 4 matches

by calimero_php
Tue Nov 09, 2010 11:47 am
Forum: PHP - Security
Topic: .htaccess help needed
Replies: 0
Views: 1116

.htaccess help needed

Hey, Appology if i missposted - didnt find this topic explicitly directed to other forums. After several hours of banging my head against .htacess type file i am no closer to getting the desired result from my apache server: 1. Only allow people/users to (i think keyword is) read file - aka to preve...
by calimero_php
Mon Oct 25, 2010 4:44 am
Forum: Databases
Topic: Mysql INSERT loop
Replies: 0
Views: 633

Mysql INSERT loop

Hey, i need some help with the following: I have a DATETIME range derived from columns "dv_start" and "dv_end". I want to make a loop in the SQL that keeps adding 15 minutes to "dv_start" while dv_start < dv_end. aka ADDTIME(dv_start, 00:15:00) The results from adding 1...
by calimero_php
Wed Oct 13, 2010 3:46 pm
Forum: Regex
Topic: PHP preg_match() username validation question
Replies: 3
Views: 8043

Re: PHP preg_match() username validation question

If i had your brain hours ago (and understanding of the logic behind reg_exp in php). Yup tested on all versions of input and getting expected output, thank you very much for the code. If this forum had rating system: Solution (aplicability) = 10/10 Explanation = 10/10 :D Now i can work on next modu...
by calimero_php
Wed Oct 13, 2010 10:07 am
Forum: Regex
Topic: PHP preg_match() username validation question
Replies: 3
Views: 8043

PHP preg_match() username validation question

Hey, after quite a bit of time hitting the wall about this pattern, i had to resort to help: Problem: Validate username in the following format: 1) It must start with a letter ^[a-z]{1} 2) It can contain any letter or number - amount from 0 to unlimited 3) It can contain from 0 to 1 dot's ".&qu...