Results 1 to 3 of 3
  1. #1
    bgjyd834 is offline Junior
    Join Date
    Mar 2011
    Posts
    196
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default 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!

  2. #2
    tnhomestead is offline Freshman
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    include_once or require_once would work

  3. #3
    jassmee is offline Sophomore
    Join Date
    Mar 2012
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    simple you can used include_once in php like <?php include_once("filename"); ?>

Similar Threads

  1. Maintaining Session Variables
    By kapsystem in forum Web Development - Programming & Coding
    Replies: 6
    Last Post: 07-12-2011, 07:29 AM
  2. Maintaining Session Variables
    By kapsystem in forum Computer and Tech
    Replies: 0
    Last Post: 06-27-2011, 05:15 AM
  3. what are search engine variables?
    By ovaismirza22 in forum Search Engines
    Replies: 1
    Last Post: 04-02-2010, 07:41 AM
  4. Nested ## variables
    By Abina in forum ColdFusion
    Replies: 1
    Last Post: 01-31-2010, 11:11 AM
  5. Variables in php
    By krates98 in forum PHP
    Replies: 5
    Last Post: 12-26-2009, 04:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS