|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP variables
Are there any good tutorials or articles detailing how to set up variables?
What i`d like to learn is how to set the variables on a variable.php page then know how to call the values to other pages once they are set(what page extentions can this be executed on? php only?) Isn`t this one way variables are used or do i misunderstand? Thanks in advance for any direction you may have. |
|
#2
|
|||
|
|||
|
If I am understanding what you are looking for correctly, all you need to do is create your "variable.php" page and include it into the pages you want to use the values in. This is often done for "config.php" pages.
Be sure to begin your page with the "<?PHP" tage and end it with "?>". Include it using the "include 'variable.php';" command. You may also want to consider naming the file "variable.inc.php", as that will serve as a reminder to you in the future that the file is one that is included in others. If you'd like more information or anything, you should probably consider posting to the PHP forum specifically with the questions you have. |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > PHP variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|