i just want to add a php file into my site say www.mysite.com/some.php. I dont want to create any page using that php file as page template. All i want is to add a php file which as some php codes in it and redirects to my another page after successful access. I know it is possible and seen in many sites that they use it. How should I to do this???? any solution or at least an hint will help me.
I think you're just looking for a basic php include:
Just make sure the path is correct. I've used this before no problem, php will interpret your included file as if it were part of the file including it.
... after reading your question again you may be asking for something even simpler, just link to your file from another page to access any resource, including php files, on your site.
|show 4 more comments|
if that file is in your theme folder then :
or if its in wordpress folder root :