Forum Moderators: coopster
I tried a variety of folders (public_html, themes folder, actual theme folder, etc.), but none made the script work. unless I am (quite possibly) missing something else?
Thanks.
Anyway, the wild guess is if you are using Wordpress blog and trying to put links of a php file in the template files of your current theme then put the php page wherever you want BUT not outside public_html. make a simple script as below
echo realpath("yourphpfile.php");
and put it in the same folder of your php file and browse this page it will show you the exact server location of your php file.. use this URL in your WP template pages to link the php file.