Larry Martell wrote:
Continuing in my effort to port an app from PHP version 5.1.6 to
5.3.3, the app uses this construct all over the place when building
links:
?=$var?
I never could find any documentation for this, but I assumed it was
some conditional thing - use $var if it's defined,
On Wed, Apr 17, 2013 at 5:02 PM, Micky Hulse rgmi...@gmail.com wrote:
On Wed, Apr 17, 2013 at 3:59 PM, Micky Hulse rgmi...@gmail.com wrote:
You might need to turn on the short tag option
in your conf file.
Sorry, ini file, not conf. Been a long day. :D
I guess I should have asked if short
On Thu, Apr 18, 2013 at 8:36 AM, Larry Martell
la...@software-horizons.com wrote:
That was it. Thanks!!
Np. Glad it helped. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Continuing in my effort to port an app from PHP version 5.1.6 to
5.3.3, the app uses this construct all over the place when building
links:
?=$var?
I never could find any documentation for this, but I assumed it was
some conditional thing - use $var if it's defined, otherwise use
nothing. In
It should still work. You might need to turn on the short tag option
in your conf file.
http://stackoverflow.com/a/2185331/922323
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Apr 17, 2013 at 3:59 PM, Micky Hulse rgmi...@gmail.com wrote:
You might need to turn on the short tag option
in your conf file.
Sorry, ini file, not conf. Been a long day. :D
I guess I should have asked if short tags are turned on for your 5.3.3?
--
PHP General Mailing List
: Wednesday, April 17, 2013 3:51 PM
To: PHP General
Subject: [PHP] ?=$var?
Continuing in my effort to port an app from PHP version 5.1.6 to 5.3.3, the
app uses this construct all over the place when building
links:
?=$var?
I never could find any documentation for this, but I assumed
Ah, I see now. Sorry, I must have read the original question wrong.
There's a good thread on stack about short tags:
Are PHP short tags acceptable to use?
http://stackoverflow.com/questions/200640/are-php-short-tags-acceptable-to-use
Which kinda links to the docs:
PHP tags
Dear All,
I was reading the php manual for session_register, and I found the following
line there : -
$_SESSION[$var] = $$var;
Why do I need $$ there ? Can someone explain?
Thank you,
Ashim
Hi Ashim,
These are called Variable Variables. Ideally they should be avoided,
as they introduce unnecessary legibility issues.
This is what it does in a nutshell, it's actually quite simple:
$foo = 'bar';
$bar = 'foobar';
echo $$foo;//This prints foobar
What it does is, take the value of
Hi Ashim,
These are called Variable Variables. Ideally they should be avoided,
as they introduce unnecessary legibility issues.
This is what it does in a nutshell, it's actually quite simple:
$foo = 'bar';
$bar = 'foobar';
echo $$foo;//This prints foobar
What it does is, take the
Just being curious, I have a question.
How many times PHP interpreter will replace this variables? I mean how deep
it will be?
If I use variable variables like
$$a
how long it will be evaluated?
--
Shiplu
∞
2011/3/6 shiplu shiplu@gmail.com
Just being curious, I have a question.
How many times PHP interpreter will replace this variables? I mean how deep
it will be?
If I use variable variables like
At 6:42 PM +0530 3/6/11, Ashim Kapoor wrote:
Dear All,
I was reading the php manual for session_register, and I found the following
line there : -
$_SESSION[$var] = $$var;
Why do I need $$ there ? Can someone explain?
Thank you,
Ashim
Ashim:
You don't need to user session_register().
If $a = 'foo'
and $$a = nothing (i.e. no value assigned to $foo) you will get an error if
you tried to use this to do something else.
On Sun, Mar 6, 2011 at 3:21 PM, tedd tedd.sperl...@gmail.com wrote:
At 6:42 PM +0530 3/6/11, Ashim Kapoor wrote:
Dear All,
I was reading the php manual for
As per my experience so far, there is no such depth limit existing. The only
limit is imposed by the system resources (like script execution time etc.)
but not by PHP.
Cheers
NetEmp
On Sun, Mar 6, 2011 at 8:42 PM, shiplu shiplu@gmail.com wrote:
Just being curious, I have a question.
How
I've got a new OS X box and for some reason ?=$var? doesn't work
like it does on all my other OS X boxes - anyone know a quick reason
why not?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brian Dunning wrote:
I've got a new OS X box and for some reason ?=$var? doesn't work like
it does on all my other OS X boxes - anyone know a quick reason why not?
Check your php.ini for short_open_tags.
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List
On 27/11/06, Brian Dunning [EMAIL PROTECTED] wrote:
I've got a new OS X box and for some reason ?=$var? doesn't work
like it does on all my other OS X boxes - anyone know a quick reason
why not?
Exactly for that reason I don't recommend that you use it. Just use
?php print $var; ? as it's
Dotan Cohen wrote:
On 27/11/06, Brian Dunning [EMAIL PROTECTED] wrote:
I've got a new OS X box and for some reason ?=$var? doesn't work
like it does on all my other OS X boxes - anyone know a quick reason
why not?
Exactly for that reason I don't recommend that you use it. Just use
?php print
On 27/11/06, Chris [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
On 27/11/06, Brian Dunning [EMAIL PROTECTED] wrote:
I've got a new OS X box and for some reason ?=$var? doesn't work
like it does on all my other OS X boxes - anyone know a quick reason
why not?
Exactly for that reason I don't
Dotan Cohen wrote:
On 27/11/06, Chris [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
On 27/11/06, Brian Dunning [EMAIL PROTECTED] wrote:
I've got a new OS X box and for some reason ?=$var? doesn't work
like it does on all my other OS X boxes - anyone know a quick reason
why not?
Exactly for
On 27/11/06, Chris [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
On 27/11/06, Chris [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
On 27/11/06, Brian Dunning [EMAIL PROTECTED] wrote:
I've got a new OS X box and for some reason ?=$var? doesn't work
like it does on all my other OS X boxes -
Hi All
Im trying to store a document template in mysql that has php var names within
it and then find it in the datebase and print it out with the var names
replaced with the var values.
e.g i have this stored
Dear $title $name
we would like to..
I declare the vars $title
This one time, at band camp, bob pilly [EMAIL PROTECTED] wrote:
Hi All
Im trying to store a document template in mysql that has php var names
within it and then find it in the datebase and print it out with the var
names replaced with the var values.
eval()
Kevin
--
Democracy is two
Greetings,
This is a little difficult to explain. So, below is an example I will work
from. Forgive my ignorance here. I am a java developer using php4 and trying
to figure out a particular scenario.
In the following example when I run the myscript.php I pass the $myarr into
the addVal
* Thus wrote Brandon Goodin:
Greetings,
In the following example when I run the myscript.php I pass the $myarr into
the addVal function of the MyClass class. The var_dump in the addVal
function appropriately displays all of the elements of the array a,b,c and
d. However, the var_dump
I have the following:
?php
include('../../../db2.php');
$blat = $tue_5a;
$result = mysql_query(SELECT * FROM classes WHERE c_d_tue='1' AND
c_s_tue_1_hr='5' AND c_s_tue_1_dn='am');
while($row = mysql_fetch_array($result)) {
switch($blat) {
case tue_5a:
$min_1 = $row[29];
break;
}
?
Arthur Pelkey mailto:[EMAIL PROTECTED]
on Friday, February 06, 2004 9:46 AM said:
$blat = $tue_5a;
[snip]
while($row = mysql_fetch_array($result)) {
switch($blat) {
case tue_5a:
$min_1 = $row[29];
break;
}
[snip]
Why can I not refence
Thanks!, my syntax was a bit off, havn't had much sleep, but it kept
slipping by me ;)
Chris W. Parker wrote:
Arthur Pelkey mailto:[EMAIL PROTECTED]
on Friday, February 06, 2004 9:46 AM said:
$blat = $tue_5a;
[snip]
while($row = mysql_fetch_array($result)) {
switch($blat) {
Hi
Does anyone have an idea what is so special about the string /VAR ?
If i create a form that submits to a php file and in the form i put the
string /VAR
anywhere in the text or just /VAR I get an 404 error from apache on an
existing
file. If i take the same form and remove the /VAR string all
Boaz Yahav wrote:
Hi
Does anyone have an idea what is so special about the string /VAR ?
If i create a form that submits to a php file and in the form i put the
string /VAR
anywhere in the text or just /VAR I get an 404 error from apache on an
existing
file. If i take the same form and remove the
, 2004 5:07 PM
To: Boaz Yahav
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] /VAR is driving me crazy
Boaz Yahav wrote:
Hi
Does anyone have an idea what is so special about the string /VAR ?
If i create a form that submits to a php file and in the form i put
the string /VAR anywhere in the text
For some reason this will not work... my $_POST variables check for no
form variables and display a form... if they choose an item from a
select box it queries the database for a field matching the $_post var
and builds a new form creating 8 separate $_post variables to check
for.. so far it
to submit form to frame and pass php var at the same time.
script language=JavaScript!--
function submitform(){
top.admin.document.adminform.submit();
}
//--/script
and...
frameset rows=538,83 cols=*
frame src=admin.php?order=1 name=admin id=admin
frame src=status.php name=status scrolling=auto
Hello I was wondering if someone could help me out.
Trying to submit form to frame and pass php var at the same time.
script language=JavaScript!--
function submitform(){
top.admin.document.adminform.submit();
}
//--/script
and...
frameset rows=538,83 cols=*
frame src=admin.php?order=1 name
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db::getInstancia();
Well, but if I call to
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db::getInstancia();
Well, but if I call to
-Mensaje original-
Asunto: [PHP] var static
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db
Hi,
Friday, August 29, 2003, 3:01:45 AM, you wrote:
AM I want to obtain only one instance of one class. In other to do that, I call
AM to a static method, that creates the instance(if it doesnt exit) or returns
AM the reference of the instance.
AM The call to the static method is the next:
AM
:: DYNAMICAL.BIZ
web development host services
Barcelona - Spain
-Mensaje original-
Asunto: [PHP] var static
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance
Globals!? YUCK :) A better solution IMHO that maintains encapsulation,
is to use a static var in a function:
function getClassVar( $name )
{
return getAndSetClassVar( $name, false );
}
function setClassVar( $name, $value )
{
return getAndSetClassVar( $name, true, $value );
}
function
services
Barcelona - Spain
-Mensaje original-
Asunto: [PHP] var static
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method
] Evaluate PHP var in stored sql statement?
eval takes the string and executes PHP in that string. So,
eval(\$myrow[2] = \$myrow[2]\;);
is equivalent to:
$myrow[2] = $myrow[2];
I'd reccomend you using single quotes and then escape only backslashes
and single quotes within a string
: Maxim Maletsky [EMAIL PROTECTED]
To: Noah [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 24, 2003 11:02 AM
Subject: Re: [PHP] Evaluate PHP var in stored sql statement?
eval takes the string and executes PHP in that string. So,
eval(\$myrow[2] = \$myrow[2
Hm..
Guess I'll find out as I go deeper into PHP
--Noah
- Original Message -
From: Maxim Maletsky [EMAIL PROTECTED]
To: Noah [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, January 25, 2003 9:47 AM
Subject: Re: [PHP] Evaluate PHP var in stored
Hey all.
I need to find out how to get PHP to evaluate a PHP variable stored in our
MySql database.
Currently the variable is being read as a string; i.e. select * from table
where column = $myrow[0] -- instead of evaluating $myrow[0] as a variable.
The SQL statement is retrieved in the first
use eval()
www.php.net/eval
--
Maxim Maletsky
[EMAIL PROTECTED]
CF High [EMAIL PROTECTED] wrote... :
Hey all.
I need to find out how to get PHP to evaluate a PHP variable stored in our
MySql database.
Currently the variable is being read as a string; i.e. select * from table
where
without
quotes?
Thanks for the help...
--Noah
- Original Message -
From: Maxim Maletsky [EMAIL PROTECTED]
To: CF High [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 24, 2003 9:59 AM
Subject: Re: [PHP] Evaluate PHP var in stored sql statement?
use eval()
www.php.net
as php code; i.e. text without
quotes?
Thanks for the help...
--Noah
- Original Message -
From: Maxim Maletsky [EMAIL PROTECTED]
To: CF High [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 24, 2003 9:59 AM
Subject: Re: [PHP] Evaluate PHP var in stored sql
From: Noah [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 24, 2003 4:39 PM
Subject: Re: [PHP] Evaluate PHP var in stored sql statement?
eval(\$myrow[2] = \$myrow[2]\;);
What's the deal with the leading backslash in ' eval(\$myrow[2] '?
It's escaping the $ so you keep
I am building a form that posts to itself.
I have the following to detect the submit button being clicked:
If($_POST[go] == add link)
I am getting a warning that says 'go' is undefined. How do I define
this?
Thanks,
Clint
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
You can just check for
if(isset($_POST['go']))
You don't really care what the value is since it's just a button.
---John Holmes...
- Original Message -
From: Clint Tredway [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 24, 2002 9:33 AM
Subject: [PHP] Var question
is go a variable that is passed via post? I guess yes but you get this
error without submitting yet.
There are three solutions:
1. Change your error reporting level to 55: error_reporting(55). This
will stop warning your undefined variables.
2. Prefix the variable with an at-mark:
Thanks guys..
I am moving away from ColdFusion to PHP and so I still forget about the
isset() function.
-Original Message-
From: 1LT John W. Holmes [mailto:holmes072000;charter.net]
Sent: Thursday, October 24, 2002 8:53 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Var
Hi folks,
Linux, PHP3
I have the following problem:
I have an object, which creates a form, wherein there are selects, which
names accord to values in the database.
But I didn´t get it to have a variable var, I´m sure it´s just a small
thing, but I cannot see it
Any suggestions ?
TIA Oliver
hi.
what is the difference between $var and '$var' ?/
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
: nafiseh saberi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 19, 2001 2:33 AM
Subject: [PHP] $var , '$var'
|
| hi.
| what is the difference between $var and '$var' ?/
| thanks.
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: [EMAIL PROTECTED
4:33 PM
Subject: [PHP] $var , '$var'
hi.
what is the difference between $var and '$var' ?/
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail
Romeo Manzur wrote:
hi, I want to know how could I save a javascript variable on a php
variable???
Thanks...
It depends how the user will get to the php page:
1. Form
If the user is about to submit a form and you want some
Javascript variable from
your page to end up as a php variable
hi, I want to know how could I save a javascript variable on a php
variable???
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL
window.location = 'http://url?yourVar=' + yourVar;
-Original Message-
From: Romeo Manzur [mailto:[EMAIL PROTECTED]]
Sent: 5 iulie 2001 07:56
To: [EMAIL PROTECTED]
Subject: [PHP] javascript var on a php var...
hi, I want to know how could I save a javascript variable on a php
Add an "=" on the end of your url. Viola.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Jeroen Geusebroek"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi Guys,
I have a question about the way PHP handles var/strings.
Let's
ople think I just do it to annoy
them. I just like the way "viola" sounds :)
Plutarck
Should be working on something...
...but forgot what it was.
- Original Message -
From: "Brian Clark" [EMAIL PROTECTED]
To: "Plutarck" [EMAIL PROTECTED]
Sent: Monday, 16. Apri
Note: Yes, I meant string instrument. Any references to YoYo Ma will be
dealt with swiftly and severly.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Plutarck"" [EMAIL PROTECTED] wrote in message
9bfp5e$169$[EMAIL PROTECTED]">news:9bfp5e$169$[EMAIL PROTECTED]...
You can also look at environment variable $QUERY_STRING. For example,
if ($HTTP_SERVER_VARS['QUERY_STRING'] == 'login') {
...do log in procedure
If register_globals is on, all you need is
if ($QUERY_STRING == 'login')
If you might be passing other parameters
At 10:50 AM + 1/29/01, Tim Ward wrote:
-Original Message-
From: Steve Edberg [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2001 22:02
To: Matt; [EMAIL PROTECTED]
Subject: Re: [PHP] VAR and variables
At 3:00 PM -0600 1/25/01, Matt wrote:
I have a question that may seem
67 matches
Mail list logo