.php as a Valid Image

Discussion in 'Feedback & FAQ' started by Cale., Jul 10, 2005.

  1. #1
    Cale.

    Cale. Banned

    Joined:
    Jan 20, 2005
    Messages:
    2,723
    Likes Received:
    5



    In this thread: Click Mark asked about a random sig generator thing so I gave him my script on how to make it work, a couple of others have also expressed interest. But to make it work you need to allow .php as a valid image file for signatures. So I was just wondering if that was possible?
     
  2. #2
    Kæton

    Kæton is Keaton LPA Über VIP

    Joined:
    Oct 16, 2002
    Messages:
    10,388
    Likes Received:
    9



    It's possible, but usually people would suggest not to do this.

    Probably because if we allow .php extensions, it's possible others will abuse that and well, I think we know where that'll go.

    Same reasons go for dynamic coding as well, if I recall correctly.

    It's best not to take any chances, in my opinion.
     
  3. #3
    Mark

    Mark Canadian Beauty LPA Administrator

    Joined:
    Jul 14, 2002
    Messages:
    24,906
    Likes Received:
    561



    Tomi's had changing signatures that you can put phrases into, and then there's those sloganizer sigs. Neither of those are php files, if I remember correctly. I'm not fluent with this script business, though.
     
  4. #4
    minusxerø

    minusxerø Overflow Supremacy LPA Addicted VIP

    Joined:
    Aug 24, 2003
    Messages:
    18,969
    Likes Received:
    1,578



    Tomi also had a PS3 signature-avatar set-up where everytime you refreshed, you got the sig and avatar in a different color (blue, red, pink, green, etc.).
     
  5. #5
    Chris

    Chris LPA Addict LPA Addict

    Joined:
    Feb 21, 2003
    Messages:
    24,638
    Likes Received:
    87



    Darn. I just figured out how to do the php :lol: Ahwell. I'll ask Tomi how to do that.
     
  6. #6
    Tomi

    Tomi   LPA Addict

    Joined:
    Mar 10, 2004
    Messages:
    16,514
    Likes Received:
    52



    Take a look at my post in Mark's topic. The .htaccess file is what makes the .php file [sig.jpg] into a .jpg

    -edit---
    sig.php // the actual code, and file you edit the sig with.
    sig.png // base image
    signature.png // 'editted' image
    sig.log // a log that contains the date/time, ip, and changes.

    And I'm not giving the code away, as it's not my code.

    Funny thing is, I'm not fluent in PHP either. I just know how to understand the code when I read it, but I can't write it for shit. ;)
     

Share This Page