The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
eval();
I have a variable
PHP Code:
PHP Code:
Parse error: parse error in /usr/local/web/modules/mod_http.inc(7) : eval()'d code on line 1 can anyone help me with this one? |
#2
|
||||
|
||||
$myvar = 'http://my.host.com/script.php?var=$content[var]&var2=$content[somethingelse]';
eval ("\$url = \"$myvar\";"); |
#3
|
||||
|
||||
Thx.
I wish I could get it working referencing array elements like $var['lala'] instead of just $var[lala] (which is deprecated) Since this is code that will leave my hands and end up at a fair few of our customers servers, I'd preffer to do it 'right' first time off... |
#4
|
||||
|
||||
Don't worry about using $array[index] inside strings, it's not deprecated. It's only when you are using the variables as "stand alone", i.e [minicode]$array['index'] == 'foo'[/minicode].
|
#5
|
||||
|
||||
m'kay
Thanx again |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|