Hello
Is there an easy way to capture ALL(or most) site errors
I'm running a site which uses apache, php5 and mysql
I'm wanting to be automatically notified via email when the following occurs on the site:
- php errors
- mysql errors
- 404 errors
- any other unexpected site behavior
would the .htaccess file come into play or just some code pasted in a...
User Profile
Collapse
-
Automatic notification of site errors
-
Ahh cool, thanks guys the code you provided works perfectly -
thanks so much for your post. the code you provided is much better than what i stated with but is it possible to exclude the words WITHIN the nickname.
i'm wanting to have a list of words that people can't use WITHIN a nickname. words like 'anonymous', 'admin', 'xxx', 'yyy'
eg. if your website is called 'BlueSky.com' you wouldn't want someone to register a nickname like 'BlueSkyAdmin' or 'BlueSkyStaff'.
...Leave a comment:
-
php regex for nickname input
Hello can someone please help improve the regex I have:
/^[^\s].*[^\s]$/
It's intended to be used for a nickname field with the following criteria:
> no spaces
> exclude the following words(substring ) within the nickname: 'anonymous', 'xxx', 'yyy'
> just allow letters, numbers, hyphens and underscores eg. exclude characters such as @, #, !, ~, %, ^, *, (, ), =,... -
SOLVED: For future googlers who are racking their brain for a solution(as i was) here's the code....
...Code:function createDynamicDropdown(dropDown1, dropDown2, dropDown3) { /* dropdown1 = lists all the countries dropdown2 = this drop down is not used by users. Think of it as just a struture that holds ALL the cities for ALL countries from dropdown1. dropdown3 = is a dynamically generated dropdownLeave a comment:
-
My javascript knowledge is rather basic. I've just plowed though a few javascript references in the last week and just started creating my first scripts this weekend.
To provide more info here is a bit more of an example to what i posted earlier
(ps. I've used countries and cites as a substitute for what my actual dropdowns are for my app)
DROPDOWN 1:
...Code:<select name="countries" id="countries">
Leave a comment:
-
-
I have a similar problem i'm trying to solve
I doubt if its possible but could you somehow use javascript to add/remove html comments to the option tags that are not needed. (I wish we could use css display:none!!)
eg
...Code:<select> <option>value1</option> <!-- <option>value2</option> --> <option>value3</option> <option>value4</option>Leave a comment:
No activity results to display
Show More
Leave a comment: