|
Server IP : 10.128.40.6 / Your IP : 216.73.217.20 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/mcg/pages/python/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment; Filename=clientProject.doc");
// echo file_get_contents("annexe_cdi.html");
if(!empty(file_get_contents ( "annexe/annexe_cdi.html" )))
{
$line_1 = "test" ;
$line_2 = "test 2 " ;
$line_3 = "mecredi" ;
$line_4 = "jeudi" ;
$line_5 = "vendredi" ;
$line_6 = "Samedi" ;
$line_7 = "dimanche" ;
$line_8 = "sam";
$line_9 = "lundi_2" ;
// echo file_get_contents("annexe_cdi.html");
$content = file_get_contents ( "annexe/annexe_cdi.html" );
$content = str_replace ( '$line_1' , $line_1 , $content );
$content = str_replace ( '$line_2' , $line_2 , $content );
$content = str_replace ( '$line_3' , $line_3 , $content );
$content = str_replace ( '$line_4' , $line_4 , $content );
$content = str_replace ( '$line_5' , $line_5 , $content );
$content = str_replace ( '$line_6' , $line_6 , $content );
$content = str_replace ( '$line_7' , $line_7 , $content );
$content = str_replace ( '$line_8' , $line_8 , $content );
$content = str_replace ( '$line_9' , $line_9 , $content );
echo $content;
}
?>