User Profile

Collapse

Profile Sidebar

Collapse
firstposter
firstposter
Last Activity: Sep 12 '09, 01:29 PM
Joined: Aug 30 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • firstposter
    started a topic Automatic notification of site errors

    Automatic notification of site errors

    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...
    See more | Go to post

  • firstposter
    replied to php regex for nickname input
    in PHP
    Ahh cool, thanks guys the code you provided works perfectly
    See more | Go to post

    Leave a comment:


  • firstposter
    replied to php regex for nickname input
    in PHP
    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'.

    ...
    See more | Go to post

    Leave a comment:


  • firstposter
    started a topic php regex for nickname input
    in PHP

    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 @, #, !, ~, %, ^, *, (, ), =,...
    See more | Go to post

  • firstposter
    replied to How to Hide the Options in select
    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 dropdown
    ...
    See more | Go to post
    Last edited by acoder; Sep 8 '09, 11:26 AM. Reason: Added [code] tags

    Leave a comment:


  • firstposter
    replied to How to Hide the Options in select
    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">
    ...
    See more | Go to post
    Last edited by gits; Aug 30 '09, 01:22 PM. Reason: added code tags

    Leave a comment:


  • firstposter
    replied to How to Hide the Options in select
    yep that's right



    ---------------------
    See more | Go to post

    Leave a comment:


  • firstposter
    replied to How to Hide the Options in select
    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>
    ...
    See more | Go to post
    Last edited by gits; Aug 30 '09, 10:52 AM. Reason: added code tags

    Leave a comment:

No activity results to display
Show More
Working...