php in wordpress

Hi, I’m working on a wordpress website. I’m trying to create a new php file from a php file using “touch()”. but the code is not working properly, since no new file is created after executing that php program. I don’t get any errors. But its not working.
touch function code which i included in my program is

<?php touch("test.txt"); ?>

I need a help please say me where i’v to include that touch function. Either in head of html tag or in within body or where…???
my sample code is…

<?php /* Template Name: impdates Page Template */ ?> ..

You can add it wherever you want to add it, below I added it on top.

Template Name: impdates Page Template


.. [/php]

Thank u :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service