Eric Bodden Current conditions in Darmstadt: Overcast, -4°C (feels like -9°C)
-4°C

Easy and efficient software verification
  • rss
  • Home
  • Research
    • Efficient Runtime Verification
    • Racer: Effective Race Detection Using AspectJ
    • Aspect-oriented programming and design
    • Visual specification languages
    • A denial-of-service attack on the Java bytecode verifier
    • Publications
    • Presentations
  • Tools
    • RacerAJ (for race detection)
    • An introduction to Soot 2.2.5
    • Aspect-oriented approaches targeting the .NET Framework
  • Teaching
    • COMP 621
    • COMP 520
  • Legacy
    • Bad Sector Recovery on NTFS
    • Arithmetic Coding
    • PHP Scripts
  • About me
  • Photos

PHP Scripts

Here you can find some PHP scripts written by myself.

General note

I found out that some few people use my scripts without including the GPL header. This is illegal! Please – in the name of all open source supporters – stick to the license. Thank you!
For further information please read the GPL FAQ.

robots.txt generator

(Updated version for Apache 2.0.40+ and PHP 4.2.3+. Thanks to Thomas Keitel!)

This script lets you browse through your server’s directory structure. If a robots.txt is found, it is read and the appropriate allowed/disallowed folders are checked/unchecked. Just change the checkers and hit the “update” button to update the robots.txt. You may also delete the file or edit the comment. Changes are always made to “User-agent: *”. Additionally the script warns, if no index-files or htaccess files were found.

Download the PHP script (GPL licensed, PHP 4.2 security conform).

This script is listed at HotScripts.com and Jan’s Script Portal.

Rate Our Script @ HotScripts.com

PHP highlighter

This PHP function lets you easily highlight e.g. search results on a specific website. Just pass the words to highlight, the path of the page (server path) and the color to highlight with. The extraordinary property about this function is that it manages not to perform replacements inside HTML tags (which could also include the word to highlight.

Download the PHP script (GPL licensed, PHP 4.2 security conform).

New: Version 1.1 also support highlighting in multiple colors for different search terms. Thanks to Richard Danby.

This script is also listed at HotScripts.com and Jan’s Script Portal.

Rate Our Script @ HotScripts.com
Comments rss
Comments rss
Trackback
Trackback

10 Responses to “PHP Scripts”

  1. Peter says:
    December 11, 2007 at 2:11 pm

    Sorry, no file in php_highlighter.zip!!!!

    Peter

  2. eric says:
    December 11, 2007 at 2:54 pm

    Hmm, this is odd. Seems like the archives got broken somehow. I will see if I can find a backup somewhere…

  3. eric says:
    April 29, 2008 at 7:53 pm

    Should be solved.

  4. runishe says:
    June 7, 2008 at 5:50 pm

    Hey

    Still invalid zip file

    Cheers
    R

  5. eric says:
    June 9, 2008 at 1:54 pm

    This should definitely work now. I “recovered” the original zip files.

  6. Free-PHP-Scripts.org says:
    October 26, 2008 at 11:29 pm

    It’s a bad to release your scripts with the <? tag. Not all host have PHP short tags enabled.

  7. Jamie Bicknell says:
    January 26, 2009 at 5:44 pm

    Hey Dude, your script for the highlight seems to fail, quite badly.

    For example, I;ve used your example:

    $keywords = explode(” “,”a l”);
    $html_text=’Lets see if this little test does what I expect this to do.’;

    Firstly it doesnt highlight al the “l”’s

    What happens is that the script finds the first letter, which is uppercase and then wont find any lowercase ones…

  8. eric says:
    January 26, 2009 at 5:46 pm

    Hi. Thanks for your feedback. I have not looked at the script for year but I never had any complains. If you know how to fix the problem then I would appreciate if you could send me an updated version. Cheers

  9. Cecilia says:
    March 31, 2009 at 8:59 pm

    Hi Eric

    I have used your script in my search results page, I made some modifications in order to accommodate three different query strings and it is working fine. The only problem I encountered is that for example, I search for the word (last name) “perez” it will highlight “perez” correctly but not “pérez”

    Is there a way I can highlight both instances?

    Thanks

    Cecilia M

  10. eric says:
    April 1, 2009 at 9:16 am

    Hi Cecilia. Good question. Right now the script compares based on string equality. Since both strings are similar but not equal, “pérez” will not be highlighted. I am not sure how to support such synonyms. But anyway, currently the script does not support these, to answer your question.

Leave a Reply

Click here to cancel reply.

Welcome

Welcome to my website. Interested in my research? Click here for details or jump directly to my publications.

Pages

  • Research
    • Efficient Runtime Verification
    • Racer: Effective Race Detection Using AspectJ
    • Aspect-oriented programming and design
    • Visual specification languages
    • A denial-of-service attack on the Java bytecode verifier
    • Publications
    • Presentations
  • Teaching
    • COMP 520
    • COMP 621
  • Tools
    • RacerAJ (for race detection)
    • An introduction to Soot 2.2.5
    • Aspect-oriented approaches targeting the .NET Framework
  • Legacy
    • Arithmetic Coding
    • Bad Sector Recovery on NTFS
    • PHP Scripts
  • About me

Categories & Feeds

  • Misc RSS Feed Icon (89)
  • Montreal Blog RSS Feed Icon (44)
  • Research Blog RSS Feed Icon (66)
  • Comments (RSS) RSS Feed Icon

Kitchensink

  • Conferences
  • HeroECS – the 2009 ECS Robotics Team
  • My first patent: Method and system for performance profiling of software (pending)
  • Photos

Research projects

  • AspectBench Compiler (abc)
  • J-LO
  • Soot
  • Stratified aspects

Service

  • AOSD 2006
  • AOSD 2007
  • AOSD 2010
  • Association of Alumni, Friends, and Supporters of the RWTH Aachen University in North America
  • ATVA 2008
  • ECOOP 2008 Doctoral Symposium
  • ECOOP 2010
  • FOAL 2010
  • IEEE Transactions on Software Engineering (TSE)
  • International Journal of Image and Graphics
  • OOPSLA 2008
  • PEPM 2008
  • PLDI 2006
  • PLDI 2008
  • RV 2007
  • RV 2009
  • RV 2010
  • SEFM 2005
  • SEFM 2008
  • Transactions on Software Engineering and Methodology (TOSEM)
  • VMIL 2008
  • VMIL 2009

Some of my colleagues

  • Gregory Prokopski
  • Laurie Hendren
  • Nomair Naeem
  • Ondrej Lhotak
  • Patrick Lam
  • Programming Tools Group
  • Sable lab

Some other people I know

  • Adrian Colyer
  • Bruno Dufour
  • Dan North
  • Daniel Klink
  • Dave Thomas
  • Dean Wampler
  • Friedrich Steimann
  • Joachim Kneis
  • Klaus Havelund
  • Liz Keogh
  • Malte Clasen
  • Markus Schorn
  • Pascal Costanza
  • Patricia Jablonski
  • Philip Mayer
  • Ron Bodkin
  • Sven Wittig
  • Wiebke Berg

Some people not to confuse me with

  • Eric B. the terrorist
  • Eric Bodden the basketball player
  • Eric Bodden the chef who sunk
  • Eric Christopher Bodden
  • Noel R. Lopez alias Eric Bodden

Previous posts

February 2010
M T W T F S S
« Jan    
1234567
891011121314
15161718192021
22232425262728

Tags

Alumni AspectJ Atlanta Blizzard Bug finding Clara COMP 621 Eclipse Flight FSE Google ISSTA Java LinkedIn Mac McGill Microsoft Montreal Blog OOPSLA Oxford Photos Politics Programming Quebec City Race detection Racer Random ranting Runtime verification RWTH Seattle Ski trip Snow Snow storm Soot Soot Tutorial Static Analysis Strike TA strike Thesis tracematches Typestate Vacation Website Winter carnival Wordpress


rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox