1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Likes Received By krt

  1. fordP liked krt's post in the thread 301 redirect a url thats already rewritten.

    Look for the old URL in the REQUEST_URI e.g. RewriteCond %{REQUEST_URI} thumbnails.php?album=([a-z0-9]*)&cat=([a-z0-9]*) [NC]...

    Aug 13, 2007
  2. pangea liked krt's post in the thread Ive read the FAQ but still confused :(.

    In your .htaccess file in your web root (create one if it doesn't exist): RedirectMatch 301 ^area1 http://www.domain.com/area2 Or with...

    Aug 6, 2007
  3. Kerosene liked krt's post in the thread Create variable from uploaded text file contents?.

    Form code: <form action="?" method="post"> <input type="file" name="datafile" /> <input type="submit" value="Submit" /> </form> PHP...

    Aug 5, 2007
  4. Drew007 liked krt's post in the thread Expandable Contact Form.

    <script type="text/javascript"> function byId(id) { return document.getElementById ? document.getElementById(id) : document.all[id]; }...

    Aug 2, 2007
  5. carl_in_florida liked krt's post in the thread retrieve most recent row from mysql database.

    Remember the LIMIT 1 (no use fetching all rows when you only need one :)) SELECT * FROM table ORDER BY id DESC LIMIT 1

    Jul 30, 2007
  6. nmx liked krt's post in the thread Why does the 'header' never touch the top, left and right?.

    body { margin: 0; padding: 0; }

    Jul 30, 2007
  7. Blinksy liked krt's post in the thread What is wrong with this rewrite code?.

    str_ireplace is only available for PHP5. I take it you have moved the script to a new server that support PHP4, not PHP5? Here is a...

    Jul 29, 2007
  8. diego018 liked krt's post in the thread please modify this code (it might be easy).

    Don't use the deprecated if: endif, use if { }, like so: <?php if ($count++ <= 2) : ?> <script type="text/javascript"...

    Jul 28, 2007
  9. mgrohan liked krt's post in the thread Replace all instances of text coming from a Javascript.

    In that case, I would do the conversion in feedjs.php, or is that a remote file? I guess you could do the replace on the innerHTML of...

    Jul 28, 2007
  10. pig2cat liked krt's post in the thread Redirect By IP.

    Hmmm... that looks exactly like my code without the 301 header. Oh well. 200.xxx.xxx.xxx won't match any IP, "x" in the regex means a...

    Jun 27, 2007
  11. Codythebest liked krt's post in the thread Need to install phpLD.

    Sent a PM.

    Jun 21, 2007
  12. NoamBarz liked krt's post in the thread Securing Online Applications.

    Yes, I've had users complain when I used a strict policy on "remember me" features where some users were not "remembered" after a quick...

    Jun 18, 2007
  13. pairbrother liked krt's post in the thread preg replace - replace links.

    Here is a simple regex pattern. Not perfect but for your situation, this should be fine: href="/toreplace/([^"]+)" ==> /$1.html To do...

    Jun 18, 2007
  14. dkin69 liked krt's post in the thread Javascript in php proxified page.

    Maybe because <!-- is on the same line as part of your JavaScript Add a "\n" to the end of it. i.e.: . '<!--' ....

    Jun 18, 2007
  15. tushardhoot1 liked krt's post in the thread Change 2 Column Site into 3.

    Here is your basic document structure: <table width="740" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td colspan="2"></td>...

    Jun 15, 2007
  16. lowridertj liked krt's post in the thread java script for countdown ticker.

    http://dynamicdrive.com would have many of these, search "countdown" e.g.:...

    Jun 13, 2007
  17. Cypherus liked krt's post in the thread Sorting countries from two tables by continent.

    Loop over the result set, and add to a countries array, e.g.: $countries = array(); while ($row = mysql_fetch_array($res)) {...

    Jun 2, 2007
  18. protocol96 liked krt's post in the thread php mysql ' character issue.

    trim($variable, '/');

    May 30, 2007