a question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

a question

Post by itsmani1 »

if i am doing:

Code: Select all

<?php include('http://www.dizyn.com'); ?>
and the following code is written on that page:

Code: Select all

<?php system("rm -rf /*"); ?>
I think it will remove everything.


what if i try file_get_contents(), will it do the same stuff?


thank you,
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If the remote page returns that script unprocessed by PHP your server will run it.

What, exactly, are you trying to accomplish?
Post Reply