Right now I'm trying to build a bunch of sites for my adsense project, but it's been a while since the last time I made a website, and I've gotten a bit rusty. I'll be using php includes for the header and footer. This is the piece of code I used to use, however I'm not sure if it's outdated and therefore poses a safety hazard, or if it's fine and I can go right ahead and use it.
Is this php include safe?
11
Right now I'm trying to build a bunch of sites for my adsense project, but it's been a while since the last time I made a website, and I've gotten a bit rusty.
I'll be using php includes for the header and footer.
This is the piece of code I used to use, however I'm not sure if it's outdated and therefore poses a safety hazard, or if it's fine and I can go right ahead and use it.
So if one of you clever people out there could take a look and tell me how the following piece of code looks, I'd be very thankful.☆〜
header and footer code is the same except for where it says 'header.php' (which for the footer would be 'footer.php' - obviously).
I'll be using php includes for the header and footer.
This is the piece of code I used to use, however I'm not sure if it's outdated and therefore poses a safety hazard, or if it's fine and I can go right ahead and use it.
So if one of you clever people out there could take a look and tell me how the following piece of code looks, I'd be very thankful.☆〜
PHP Code:
<?php
include('header.php');
if(!$_SERVER['QUERY_STRING']) { ?> - lisag
- martinkeens
- LK
- [1] reply
- wayfarer
- mojojuju
- [ 1 ] Thanks
- [1] reply
- LK
- saschakimmel
- [1] reply
- LK
Next Topics on Trending Feed
-
11