NameSilo

Need some help with PHP

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

commes

Established Member
Impact
11
Ok, I just started a website, but already its getting to be a pain to update all of the headers.so what i want to do is create a file and then get php to open it up on the page, but it isnt working for me, i know im using the right code to recall it but im not sure how the file that i want to be recalled should be.like can it be an html file?All help is appreciated thanks, and if you need to see the code for the header for some reason ill be happy to show it to you.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
The file your calling can be anything, I usually just keep everything .php to make it easier for me to remember extentions.

PHP:
 <? include ("file.php") ; ?>

I know you said you were using the right code, but just put that there in case others wanted to see how to include a file
 
0
Close
can some one please help me?
 
0
Close
uhhhhh, pretty sure Brian already took care of that.
 
0
Close
Yeah Brain is right. Do what he said.
 
0
Close
commes said:
can some one please help me?
Brian said:
The file your calling can be anything, I usually just keep everything .php to make it easier for me to remember extentions.

PHP:
 <? include ("file.php") ; ?>

I know you said you were using the right code, but just put that there in case others wanted to see how to include a file
That is the code for PHP, but not all servers have PHP (unfortunately)
commes said:
All help is appreciated thanks, and if you need to see the code for the header for some reason ill be happy to show it to you.
Please do post the code, as if it is not PHP, we could make alternative suggestions other than Brian's.

-Steve
 
0
Close
i found out what the problem was, and what brian had was already in my code.what the problem was is that the page i put that code on, i didnt save as .php
 
0
Close
commes said:
i found out what the problem was, and what brian had was already in my code.what the problem was is that the page i put that code on, i didnt save as .php
That would always do the trick ;)

I hate those darn semi-colons:p

-Steve
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

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