Create php files

view full story

http://www.linuxquestions.org – Hi, i want create a phpfile from script. i tried 2 ways, but both give the error, permission denied way one: cat > /var/www/phpinfo.php << "EOF" <?php phpinfo(); ?> EOF (also if i did:) sudo cat > /var/www/phpinfo.php << "EOF" <?php phpinfo(); ?> EOF the second way: echo '<?php phpinfo(); ?>' > /var/www/phpinfo.php sudo echo '<?php phpinfo(); ?>' > /var/www/phpinfo.php greetz Mark (HowTos)