i am using wget in php, i want to give a custom name to response file that i receive . here is my wget code .
<?php
exec('wget --header= --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1" --save-cookies 6.txt --keep-session-cookies --post-data="email=myemail@gmail.com&password=pass" http://example.com/login.php 2>&1', $output);
print_r($output); ?>
when i send wget request, i will receive a file named welcome.php, i will like to rename this file to example.php, how we do this in wget? Thanks