can I excute php code by using the PUT Method?

aymoon1987

Newbie
Joined
Aug 15, 2008
Messages
4
Reaction score
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 ?
 
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..
 
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
 
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).
 
Back
Top