virtualadz Posted January 18, 2007 Share Posted January 18, 2007 HiI was wondering whether there will be any risk in using PHP pages. What i wanna do is that just make the site in PHP for including header and footer (through include command), so there's no need to edit all the pages. Will there be any threat.Supose i have index.php and then footer.php and header.php and no other php filessssss. When using PHP is there any need to add other special code for protection or just simple HTML would do. There would be no dynamic things just want to use PHP for header n footer.Any threat ?Thankss Link to comment Share on other sites More sharing options...
www.mihalism.com Posted January 18, 2007 Share Posted January 18, 2007 http://www.php.net/manual/en/security.php Link to comment Share on other sites More sharing options...
virtualadz Posted January 18, 2007 Author Share Posted January 18, 2007 Hi thanks for your answer. I was just looking for a practical answer. Read it but I m more than a newbie to it.So What i have done is made a php file as index.php and then included header through <?php require('header.php'); ?>The rest is every bit HTML, nothing to be related to database or any advanced functions. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 18, 2007 Share Posted January 18, 2007 There is no threat in using PHP like that. Link to comment Share on other sites More sharing options...
virtualadz Posted January 18, 2007 Author Share Posted January 18, 2007 Just wanted to know that. Thanks Link to comment Share on other sites More sharing options...
jlhaslip Posted January 18, 2007 Share Posted January 18, 2007 The greatest risk is when you ask for and accept "user input". Their input should be "cleaned" using strip_tags, strip_slashes, etc before you use the data, especially into or out of a database. Link to comment Share on other sites More sharing options...
virtualadz Posted January 18, 2007 Author Share Posted January 18, 2007 yeah that's right, taking user input means inviting hackers too. But i dont have anything to do with database. Just want to use the PHP for header n footer and some other functions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now