Read WebProNews
With Friends!

HTACCESS Wrappers with PHP

Get the WebProNews Newsletter!
Top Rated White Papers and Resources
There are 11 Comments. Add Yours.
  1. Jvnc

    Hi.. I tried to use your watermark script but when I upload the fies wrappe.pp, htacess and the watermark.png…

    All of the photos on the imagesa are suddely cannot be access anymore. They just displayed as box with X denoting that it’s not accessible

    It only happens everytime the htaccess is in folder… whenever delete it the images canbe viewed agai but there is no watermark

    Plese help me on this…

    My emal is j1concept@gmail.c

    best regards,

  2. Guest

    used for hosting services? hehe..

    your code can without problem be overriden by a custom .htaccess made by the user.. even if you have in root, they can do an override……….. -_-

  3. This can work but there can be problem with this code on php files that are on an include() function like on most cms systems right?

    But this is very helpful on most sites that are using html.

    Good code!

     

    Thanks for sharing..

  4. Hbadami

     This doesnt work in Apache Web server v 2.2.8 PHP / 5.2.5. Any reasons?

  5. Guest

    The script does work but.. you need to do the following:

    1) The ‘wrapper.php’ script is missing the PHP end tag parser. In other words add the following to the end of the script:

    ?>

    2) The .htaccess file requires the full webserver parth to the wrapper directory. In other words if the wrapper is located in http://example.com/test/ then the line:

    Action watermarked /watermark/wrapper.php

    should be:

    Action watermarked /test/wrapper.php

    3) Also comment out the first line in wrapper.php:

    phpinfo(); die()

     

    Brian

     

  6. Guest

    doesn’t work!!!!!!!!!!!!!!!!!!!!!!!!!!

  7. Your watermark works perfectly. Thanks for the script!

  8. Hi can i write a wapper class to integrate ADO.NET with php , i want to do some work in ADO.net and than want show the output in php is it possible…? Please revert me very soon its very very urgent

    Thanks in advance

What do you think? Respond.

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>