NameSilo

"Include" code/Php?

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

malcolm321

Established Member
Impact
2
I want to be able to control my navigation bar from a seperate file so I can update it whenever I want without having to change every page. I remember there used to be a "include.php" or something along those lines that I used to use, where I would just upload the file of the nav bar and then type in "<include file.php>". Also I'd like to be able to do the same with Adsense so that I don't always have to be going and getting the code, I could just upload it once for each ad type and then do an "include". Does anyone know how to do this?

Derek
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Here you go:

PHP:
<?php
include '--the link--';
?>
 
0
Close
0
Close
thanks to both

Derek
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back