Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $iduser=$_SESSION['iduser'];
- $id_tp=$_SESSION['id_tp'];
- $user=$_SESSION['user'];
- $ch = curl_init("http://localhost/php/FamilyCenter/view.php?id_tp=$id_tp&iduser=$iduser"); //take all code from page view.php (you creat page view.php as you want)
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
- $content = curl_exec($ch); // load page view.php and return result
- $file = "$user/$user-$id_tp.html"; // path you want put new file
- file_put_contents($file,$content); // copy result of $content and put it into new file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement