1. Hello Guest. You have limited privileges and you can't "SEARCH" the forums. Please "Log In" or "Sign Up" for additional functionality. Click HERE to proceed.

you can't seriously put php inline can you???

Discussion in 'Test Zone' started by woot, Feb 27, 2006.

  1. woot

    woot Active Member

    Messages:
    1,244
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    <a href="http://maps.google.com/maps?q=44.777479+-
    TESTING

    PHP:

    echo " 1 - 2 - 3";

     
  2. woot

    woot Active Member

    Messages:
    1,244
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    <a href="http://maps.google.com/maps?q=44.777479+-
    phew - that's good... that option scared the hell out of me... I was going to make a very very dynamic php signature... :D

    Woot.
     
  3. jdrich48

    jdrich48 Member

    Messages:
    692
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Smithfield, North Carolina
    whats php?
     
  4. SnoSheriff

    SnoSheriff Site Owner Staff Member Administrator

    Messages:
    20,738
    Likes Received:
    99
    Trophy Points:
    48
    Location:
    MB, CAN
    PHP is a programming language. This site is written using PHP.
     
  5. woot

    woot Active Member

    Messages:
    1,244
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    <a href="http://maps.google.com/maps?q=44.777479+-
    pre-hypertext processor?

    It is a script language that runs on the server side - most of the time people use it to create dynamic web content... this forum probably uses php to get the posts from a database and write html to present it - this output gets sent to you as html. I've used php for creating images before too - rider location maps for example.

    The key point is that it runs on the server side - unlike java script that runs on the client side.

    That is why it blew my mind that it could be put inline with a post - if some one was nasty they could do some very bad things with that hole... for example because it runs as the root user (or apache user) it has the same privaleges as that user - so I could write a script that accessed/deleted files that normally I couldn't...

    short answer? a web programming language ;)

    woot.
     
  6. SnoSheriff

    SnoSheriff Site Owner Staff Member Administrator

    Messages:
    20,738
    Likes Received:
    99
    Trophy Points:
    48
    Location:
    MB, CAN
    Hmmm... I will investigate further...
     
  7. woot

    woot Active Member

    Messages:
    1,244
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    <a href="http://maps.google.com/maps?q=44.777479+-
    no - it's fine - it's safe

    I saw the php version of the code - it just formats the text to look pretty in php... it's not actually executed so it is safe.

    If it wasn't safe I'd have pm'ed you immediately :) I just saw it and had to test it - in the right hands it could have been neat - but certainly dangerous. There is a reason that it isn't possible to do - :)

    Cheers,
    woot.
     

Share This Page