Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

php file inclusion

Hey,
What i am doing is getting file from folder so that it could execute,
PHP Code

<?php 
$time
=pick('<span class="duration">','</span>',$file);
$banner1 = '<a href="http://go.gl">hi</a>';
$banner2 = '<a href="http://bit.ly [WARNING: potentially infected]">why</a>';
$banners = array($banner1, $banner2);
shuffle($banners);
$homepage = file_get_contents('non.txt');
echo 
''.$homepage.''; 

non.txt
PHP Code

<?php 
<span class="duration">Length '.$time.'</span>'.$banners[0].' 

Instead of executing website shows the non.txt content as
Code
<span class="duration">Length '.$time.'</span>'.$banners[0].'
this but it should execute in the way like
Code
<span class="duration">Length 8 seconds</span><a href="http://bit.ly [WARNING: potentially infected]">why</a>
[/quote]
Try using eval().
http://php.net/manual/en/function.eval.php
You see, Doctor, God didn't kill that little girl. Fate didn't butcher her and destiny didn't feed her to those dogs.
If God saw what any of us did that night he didn't seem to mind. From then on I knew... God doesn't make the world this way.
We do.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by BulgarianFeb 21, 2020 12:33 AM 5 371 Feb 21, 2020 12:33 AM
Last Post: Backbone
[PHP] by Account of the GodsMar 25, 2018 03:09 PM 12 465 Mar 25, 2018 03:09 PM
Last Post: SIM-2223238
[PHP] by FuroremSep 30, 2015 04:00 AM 5 208 Sep 30, 2015 04:00 AM
Last Post: Squito