User Profile

Collapse

Profile Sidebar

Collapse
tj111
tj111
Last Activity: Jul 17 '08, 04:48 PM
Joined: Aug 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Step 1: Download WampServer
    Step 2: Install WampServer
    Step 3: Run WampServer
    Step 4: You might have to click the toolbar icon and click "start all services", but this usually happens automatically.

    Easy as that.
    See more | Go to post

    Leave a comment:


  • [code=javascript]
    document.getEle mentById('input _id_here').styl e.backgroundCol or = "red";
    //dunno why its putting the space in "background "
    [/code]
    See more | Go to post

    Leave a comment:


  • tj111
    replied to Help: SMTP authenticated server
    in PHP
    You have to install the PEARmail plugin for PHP. It allows emails to be sent by servers that require authentication.
    See more | Go to post

    Leave a comment:


  • Sorry about that, no harm intended, was just feeling to lazy to rewrite it myself lol.

    Here are the test results that I ran locally, which as an above poster mentioned probably aren't 100% accurate in a live environment, but is good for comparing overhead. Also, note that on longer strings, regular expressions seem to be more efficient than string functions (after ~5000 characters).
    [php]
    <?php
    $STR =...
    See more | Go to post

    Leave a comment:


  • Don't use regular expressions unless you need them. Regular expression take longer to run and use up more memory. I just replied to a convo about this earlier today, you can see my test results <LINK REMOVED>
    See more | Go to post
    Last edited by ak1dnar; Nov 6 '07, 05:05 AM. Reason: Posting other Forums Links against site rules

    Leave a comment:


  • If you understand PHP and Javascript, its very easy to do. Here's a nice little tutorial you can look at to get started. Heres one thats a little mroe database specifics. I'm not sold on alot of the methods they use their, but it'll help you get the idea.
    See more | Go to post

    Leave a comment:


  • tj111
    replied to URL rewriting question
    What you have now is just to prevent hotlinking to pictures hosted on your site. How do you want the URL to look after rewriting?
    See more | Go to post

    Leave a comment:


  • tj111
    started a topic mod_rewrite help

    mod_rewrite help

    I'm fairly new when it comes to Apache, but regular expressions aren't really an issue for me. I'm designing a new website for one of the companies I'm employed by. I test it and run it locally, and when it is all done it will be uploaded to our vps , so I have been using website root based absolute links for everything.

    However now my boss wants the ability to access it over the intranet, and my intranet account is the standard...
    See more | Go to post

  • tj111
    replied to Works in IE, but not in FireFox
    I only had to read two lines of code to see the (potential) problem. "document.a ll" is only supported by IE, you have to use getElementById (or others) for any other browser. I didn't ready any further, so I don't know if theres more.
    See more | Go to post

    Leave a comment:


  • tj111
    replied to Validating an email address
    Yeah the logic makes it so much easier to write and understand regular expressions. Before I read that guide I knew how to write RegExp functions and such, but spent alot of time trying to figure out why certain things got through that shouldn't of and vice versa (and restraining myself from smashing my computer). Once you understand the methodology behind it, regular expressions become easy and very useful.
    See more | Go to post

    Leave a comment:


  • tj111
    replied to Validating an email address
    Use regular expressions for checking user input. They seem complicated at first, but once you understand the methods behind it, it makes alot of sense. If your new to regular expressions, give this (Regular Expressions Tutorial) a read, it really helps you understand them. Here's my email address verification script.

    [code=javascript]
    function isEmail (email) {
    var re =/^[A-Za-z0-9]+[\w.-]*?[A-Za-z0-9]+@[A-Za-z0-9]+[\w.-]*?\.[A-Za-z0-9]{2,5}$/;...
    See more | Go to post

    Leave a comment:


  • Element has no Properties (but will alert() properties)

    I am using the getElementsByTa gName("SPAN") to create an array of all the spans on a contact form. I am setting it up so that when the form fails validation, the span will display error text directly next to the input field to minimize confusion. I've been having problems, however, getting the span to function properly. I can get it to "alert" the span and its array key fine, however when I attempt to add content to it, I get...
    See more | Go to post
No activity results to display
Show More
Working...