1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can I excute php code by using the PUT Method?

Discussion in 'PHP & Perl' started by aymoon1987, Aug 15, 2008.

  1. aymoon1987

    aymoon1987 Newbie

    Joined:
    Aug 15, 2008
    Messages:
    4
    Likes Received:
    0
    I can upload html and txt and js files .
    it there any way to upload or escute a php file or any other server side scripts ?
     
  2. bwh48

    bwh48 BANNED BANNED

    Joined:
    Jun 30, 2007
    Messages:
    56
    Likes Received:
    54
    The PUT method is a way to send information ot a HTML form.
    Forms receive data in 1 of 2 ways
    a PUT, or a GET

    If you simply need to run a script on your site then do something like :

    http://www.yoursite.com/some-script.php

    If you need the Javascript to call the script then use the same thing..

    HTML won't run PHP, but if you have access to your .htaccess file you can set it up so the all your HTML files are treated as PHP files and then you can embed PHP into your HTML file and it will work just dandy..

    Hope this helps..
     
  3. eskimo

    eskimo Regular Member

    Joined:
    Dec 1, 2008
    Messages:
    474
    Likes Received:
    178
    I think he is reffering to "put" in dreamweaver, which uploads the shit via FTP?
    If thats the case, yes, you can upload php that way.
    The server you are uploading to will need to have php installed
     
  4. thaorius

    thaorius Junior Member

    Joined:
    Aug 19, 2008
    Messages:
    109
    Likes Received:
    33
    And if you are talking about the HTTP verb PUT, yes, PHP will run when you send a PUT request (And a GET, POST or DELETE one, the verb really doesn't matter).