Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php $urltxt=$_REQUEST['urltxt']; $fileName = "sitemap.xml"; $file = fopen($..

Decoded Output download

<?php 
 
 
 
$urltxt=$_REQUEST['urltxt']; 
  $fileName = "sitemap.xml"; 
  $file = fopen($fileName,"a+"); 
  $content="<url> 
    <loc>".$urltxt."</loc> 
    <lastmod>".date('Y-M-D')."</lastmod> 
    <changefreq>hourly</changefreq> 
    <priority>0.8</priority> 
</url>"."
 
"; 
   
  
  fwrite($file,$content); 
  fclose($file); 
  header("location:a.php"); 
?>

Did this file decode correctly?

Original Code

<?php



$urltxt=$_REQUEST['urltxt'];
  $fileName = "sitemap.xml";
  $file = fopen($fileName,"a+");
  $content="<url>
    <loc>".$urltxt."</loc>
    <lastmod>".date('Y-M-D')."</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
</url>"."\n \n";
  
 
  fwrite($file,$content);
  fclose($file);
  header("location:a.php");
?>

Function Calls

date 1
fopen 1

Variables

$file True
$urltxt None
$fileName sitemap.xml

Stats

MD5 875effa48c7c505061cf9742b1a37977
Eval Count 0
Decode Time 93 ms