-1
6
Hi my question is about PHP variable variables. Basically I want to store courseworks marks of n courseworks into n variables, such as cw1 and cw2 etc. Using variable variables how can I come with cw1, cw2 etc. ...
2009-02-13
43
2
Is it possible to dump all global variables in a PHP script? Say this is my code: <?php $foo = 1; $bar = "2"; include("blah.php"); dumpall(); // displays $foo, $bar and all variables created by blah.php Also, is it possible to dump all defi...
0
2
Yesterday I learn many thing from you, especially from Marc and my problem was solved ( session variables lost between pages or use same variables ). But now I continue asking: I don't want to use Session ID(session.use_trans_sid = 1) between p...
2011-01-04
0
3
I need to pass a lot of variables to a PHP class from a database and can't figure out the correct syntax. This is the class's variable format: $this->SetX('X','Y',15); I have tried these but none work: $var = 'SetX'; $this->{$var} = ar...
2011-03-04
1
1
This questions is about lists of data in a back-office, with variables like order, # of page, filter, etc.. I used to pass this variables between pages by GET, but I had many troubles and changed to storing this variables in session. I don't mi...
2011-05-29
2
3
file name myServices.php <?php $gender = 'MALE'; ?> in another file lets say file.php include "myServices.php" $name = 'SAM'; $age = '23'; ?> <!--after some more HTML code--> <?php $gender = 'F...
2010-08-18
0
3
Can I set variables inside if-construct? In general, where is it allowed to set variables? function set_login_session ( $passhash ) { $_SESSION['login']['logged_in'] = 1; if ( ERROR ) return false; } // Does it set the Session variable...
2009-09-04
8
6
Is there a way to make all variables global? ...
3
3
Possible Duplicate:What's an actual use of variable variables? OK, this question may look a little bit point-whoreish, but I'd really like to know: when are variable variables useful? I haved programmed in PHP for several years, but I've...
2010-08-27
1
3
I have a .php script with 2 variables. $company and $user. During this .php script I require_once "/var/www/etc/etc/etc/etc/" The .php file that I require_once, the variables from the previous .php script dont' transfer over. I can't figure ou...