Warriors, I am using a simple php include template setup for my website.
Simple PHP Template Question...
6
Warriors,
I am using a simple php include template setup for my website.
In my pages I am calling some variables from another php file by using:
and then placing the variables in the page wherever I want them to show using the code:
This all works perfectly however I want to be able to show text in the place of those variables if someone is viewing the page offline. So let's say I am looking at the page on my server and one of the variables is the page title. With php all working fine, the page title is pulled from the variables.php file and displays properly.
Now lets say I am viewing that page offline in an html editor or something similar. Obviously because php is not working, if I preview that page offline, no page title will display. Is there a way I could have a page title display for whenever there is no php value available?
Does that make sense?
I am using a simple php include template setup for my website.
In my pages I am calling some variables from another php file by using:
HTML Code:
<?php include("variables.php"); ?> HTML Code:
<?=$ variable1?> (without the space obviously) Now lets say I am viewing that page offline in an html editor or something similar. Obviously because php is not working, if I preview that page offline, no page title will display. Is there a way I could have a page title display for whenever there is no php value available?
Does that make sense?
- FreeBird85
- lordspace
- [1] reply
- Rovi
- CodeMyConcept
- [1] reply
- Rovi
Next Topics on Trending Feed
-
6