Eric Bodden, Ph.D. Current conditions in Darmstadt: Scattered Clouds, 5°C (feels like 2°C)
5°C

Head of Secure Software Engineering Group at EC SPRIDE
Principal Investigator in Secure Services at CASED
  • rss
  • Home
  • Research
    • Publications
    • Presentations
    • Current research
      • Inter-procedural Data-flow Analysis of Software Product Lines
      • RefaFlex – Safer refactorings for reflective Java programs
      • Join Point Interfaces
      • Stateful Breakpoints
      • MOPBox
      • Closure Joinpoints for AspectJ
      • Proving Security Properties of Services
      • TamiFlex: a tool set for Taming Reflection
    • Past Research
      • Efficient Runtime Verification
      • Racer: Effective Race Detection Using AspectJ
      • Continuation-equivalent states (ICSE 2010)
      • Aspect-oriented programming and design
      • Visual specification languages
      • A denial-of-service attack on the Java bytecode verifier
      • Clara: Compile-time Approximation of Runtime Analyses
    • Hosting a Program Committee meeting with Skype
  • Tools
    • SPLlift – highly efficient product line analysis
    • Heros – Inter-Procedural Data-Flow Analysis
    • Behavior Compliance Control
    • Join Point Interfaces
    • TamiFlex: a tool set for Taming Reflection
    • Closure Joinpoints for AspectJ
    • Clara: Compile-time Approximation of Runtime Analyses
    • RacerAJ (for race detection)
    • An introduction to Soot 2.2.5
    • J-LO, a tool for runtime-checking temporal assertions
    • Aspect-oriented approaches targeting the .NET Framework
  • Teaching
    • Current lectures and thesis topics
    • Past lectures
      • Automated Software Engineering
      • Software-Engineering Project
      • COMP 520
      • COMP 621
  • 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

    Reply
  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…

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

    Should be solved.

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

    Hey

    Still invalid zip file

    Cheers
    R

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

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

    Reply
  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.

    Reply
  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…

    Reply
    • 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

      Reply
  8. 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

    Reply
    • 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.

      Reply

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.

Upcoming Conferences

SC 2013

SOAP 2013

ESEC/FSE 2013

PPPJ 2013

RV 2013

Photos

Categories & Feeds

  • Research
    RSS
    (177)
  • Misc
    RSS
    (99)
  • Montreal
    RSS
    (44)

Collaborations

  • Don Batory, UTA
  • Eric Tanter, Universidad de Chile
  • Friedrich Steimann, Fernuni Hagen
  • Grigore Rosu, UIUC
  • Hans Vangheluwe, McGill University/Universiteit Antwerpen
  • Jacques Klein, SnT Luxembourg
  • Klaus Havelund, NASA JPL
  • Laurie Hendren, McGill University
  • Martin Monperrus, Univ. of Lille
  • Matthew Dwyer, University of Nebraska
  • Oege de Moor, University of Oxford
  • Ondrej Lhotak, University of Waterloo
  • Patrick Lam, University of Waterloo
  • Rahul Purandare
  • Sarfraz Khurshid, UTA
  • Shahar Maoz, RWTH Aachen
  • Tian Zhao, UW Milwaukee
  • Volker Stolz, University of Oslo

Research projects

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

Service

  • AOSD 2006
  • AOSD 2007
  • AOSD 2010
  • AOSD 2011
  • AOSD 2012
  • ATPS 2013
  • ATVA 2008
  • ECOOP 2008 Doctoral Symposium
  • ECOOP 2010
  • ESEC/FSE 2011 New Ideas Track
  • ESEC/FSE 2013
  • FOAL 2010
  • FOAL 2012
  • FOAL 2013
  • ICSE 2010
  • ICSE 2013 (New Ideas)
  • IEEE Transactions on Software Engineering (TSE)
  • International Journal of Image and Graphics
  • ISSTA 2011
  • NFM 2011
  • OOPSLA 2008
  • OOPSLA 2010
  • OOPSLA 2012
  • PEPM 2008
  • PLDI 2006
  • PLDI 2008
  • RAM-SE 2011
  • RV 2007
  • RV 2009
  • RV 2010
  • RV 2011
  • SAC 2012
  • SC 2011
  • SC 2013
  • SEFM 2005
  • SEFM 2008
  • Transactions on Software Engineering and Methodology (TOSEM)
  • VMIL 2008
  • VMIL 2009

Some other people I know

  • Adrian Colyer
  • Bruno Dufour
  • Dan North
  • Daniel Klink
  • Dave Thomas
  • Dean Wampler
  • Eric Tanter
  • Friedrich Steimann
  • Joachim Kneis
  • Klaus Havelund
  • Kristin Lovejoy
  • 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
  • Master Sgt. Eric Bodden

Previous Posts

May 2013
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Tags

Alumni AOP AOSD AspectJ Atlanta Bike Blizzard Bug finding Caro Clara COMP 621 Eclipse FSE Google ISSTA Java LinkedIn Mac McGill Microsoft Montreal NASA Photos Programming Quebec City Race detection Racer Runtime Monitoring Runtime verification RV RWTH Seattle Slides Snow storm Soot Soot Tutorial Static Analysis Strike TamiFlex TA strike Thesis tracematches Typestate Vacation Winter carnival


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