Results 1 to 3 of 3
Thread: Loading variables in php
-
09-19-2011, 06:20 AM #1
Junior
- Join Date
- Mar 2011
- Posts
- 196
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
Loading variables in php
Hey guys I was wondering if someone could help me, I want to use a variable for my template so I only have to change it one time. So basically what I wanta do is have a variable saved on a seperate file but I dont know how to load this. I have spent quite a while searching for this and couldent find an answer, your help would be greatly apreciated!
-
09-29-2011, 06:41 PM #2
Freshman
- Join Date
- Sep 2011
- Posts
- 2
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
include_once or require_once would work
-
03-20-2012, 08:18 AM #3
Sophomore
- Join Date
- Mar 2012
- Posts
- 144
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
simple you can used include_once in php like <?php include_once("filename"); ?>
Similar Threads
-
Maintaining Session Variables
By kapsystem in forum Web Development - Programming & CodingReplies: 6Last Post: 07-12-2011, 07:29 AM -
Maintaining Session Variables
By kapsystem in forum Computer and TechReplies: 0Last Post: 06-27-2011, 05:15 AM -
what are search engine variables?
By ovaismirza22 in forum Search EnginesReplies: 1Last Post: 04-02-2010, 07:41 AM -
Nested ## variables
By Abina in forum ColdFusionReplies: 1Last Post: 01-31-2010, 11:11 AM -
Variables in php
By krates98 in forum PHPReplies: 5Last Post: 12-26-2009, 04:14 AM


Reply With Quote

