NameSilo

I need some code explanation

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

paaaaaaaaaa

Established Member
Impact
6
Hi I need an explaination to this part of code.

I have a piece of html code that looks like this
src="{images}/animage.jpg"
it seems to call a php function to find out the directory of where the images are. This is clearly so that you can include this page on any level directory without losing images.

I couldn't find a fucntion but I found something like

$content {images}="the/directory/"

Can anybody explain how this works.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Try replacing "the/directory" with the directory where you have your images.
 
0
Close
Yes I know this. Im looking for an explaination. Ive never seen this style of coding before.
 
0
Close
Seems to be a template system where php script read the html file and replace variables with the values..
 
0
Close
yes as dgaussin suggests it certainly looke like a template system
 
0
Close
Any documentation on this or tutorials?
 
0
Close
Any documentation on this or tutorials?
 
0
Close
It really depends script you're using and which template system it uses.
 
0
Close
Hmmm ok. So I’m guessing what is going on here is the html gets read through on the server side and replaces these "tags" with some new code which is decided by some php variables. Is this right? I want to know how I would could do this?

I found this. Pretty much the same thing?
 
0
Close
Exactly, you're right. Myself I use Smarty at http://smarty.php.net/ but there's a lot of template systems.
 
0
Close
Yeah I just found smarty. I also found this script. I think I will use the latter method.

Cheers for the help.
 
0
Close
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