the value contained in the variable named $X.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to the browser were it not
for the ob functions. http://www.php.net/manual/en/function.sprintf.php
[TK]
-Original Message-
From: Brian Petro [mailto:[EMAIL PROTECTED]]
Sent: Friday, 1 March 2002 6:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to: variable = php parsed file include
is still
useful if you need to do some substitutions BEFORE the php parse e.g. your own
templating etc.
George
-Original Message-
From: Brian Petro [mailto:[EMAIL PROTECTED]]
Sent: Friday, 1 March 2002 6:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to: variable = php parsed file
Thomas Brodkorb wrote:
Hi folks,
small problem with globals:
I would like to set a variable global called Language
This seems to be not a really problem, but it is
Indexphp:
?php {
session_start();
if (!session_is_registered('Language')) {
session_register('Language');
I've got a site that I've used php to include the navigation bar as a
separate file Within that nav-bar is a small php application I have no
problem including the php nav-bar file and it gets parsed by php and the
application works The problem is that I also want to use the same file
include
Hi All,
I have register_global = off and I have problem
retrieving array session variable. For example;
Page1.php
?php
$name = array();
session_register (name);
$name[first] = First Name;
$name[last] = Last Name;
?
Page2.php
?
session_start();
echo $_SESSION[name['first']];
echo
: Wednesday, February 20, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] array session variable problem (register_global=off)
Hi All,
I have register_global = off and I have problem
retrieving array session variable. For example;
Page1.php
?php
$name = array
, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] array session variable problem
(register_global=off)
Hi All,
I have register_global = off and I have problem
retrieving array session variable. For example;
Page1.php
?php
$name = array();
session_register (name);
$name[first
Doh! I meant this:
$_SESSION['name']['first'] = 'First Name';
-Original Message-
From: Harry Yu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 4:52 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] array session variable problem
(register_global=off)
Thanks for your
Thanks Kirk,
That works.
Harry
__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK,...
For each page on my site there will be a different title.
Example:
title
?php
echo ?witakr home?
?
/title
or
title
?php
echo ?witakr News?
?
/title
What I want to know how to take the word that is currently in the place of
News or home.. Wait.. I think I may
I'm sure i confused someone... The $pagetitle1 and $pagetitle are supposed
to be the same... I made a couple typos
--
Jason Whitaker
Jason Whitaker [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
: OK,...
:
: For each page on my site there will be a different
I just saw something with my code there.. i have my link tag inside the
title tag.. i will have to fix that :)
--
Jason Whitaker
Jason Whitaker [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
: Is there a way to set a variable or is there a function that takes
Can you be more specific? I am just guessing here but is this what you want:
? $title = home; ?
html
head
title
? echo $title; ?
/title
/head
body
? echo $title; ?
/body
/html
Perhaps, I am not getting what you are asking for.
On 11 Feb 2002 at 23:34, Jason Whitaker wrote:
I just saw
Jason,
If I understand your question, you want to display the contents of a
variable to screen? Try this:
html
head
title/title
/head
body
?
$test_variable = this is a test;
echo Here is what it says: $test_variable;
?
/body
/html
Also note that you do not need
Hi Peter, are you limited to using arrays? If not, try msql_fetch_row()
since you are only looking for the one record, ie: the corresponding
username and password record for the username and password that was passed.
Hope this helps, Joe :)
?php
session_start();
include(config.php);
Hi Joe,
The record has other information as well, names, phone, and etc. I like
to store everything in an array and reference to it later. That way I don't
have to do another mysql_xxx() later for the subsequent pages...that should
save sometime, right?
The problem has gone away once I
how would I write it if I wanted to say this:
if $variable == 2 through 4 ???
if(( $variable = 2 ) ( $variable = 4 )) {
echo Equals 2 through 4br\n;
}
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try this:
if ($v=2 $v=4) {
echo ...;
}
mihai
On Wed, 6 Feb 2002, Jay Fitzgerald wrote:
i am currently using this code:
if ($variable == 2) || ($variable == 3) || ($variable == 4)
{
echo hello;
}
how would I write it if I wanted to say this:
if $variable == 2 through 4 ???
Can anyone explain why this URL and SQL statement won't work?
A
HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee
k1Media Coverage Test Page/A
-- And on test_mediacoverage.php ..
$table_name = $locale;
// ..connection content..
$sql = SELECT comp, content FROM
Subject: [PHP] stupid URL variable question
Can anyone explain why this URL and SQL statement won't work?
A
HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee
k1Media Coverage Test Page/A
-- And on test_mediacoverage.php ..
$table_name = $locale;
// ..connection content
]]
Sent: Friday, February 01, 2002 5:53 PM
To: James Hallam; Php-General
Subject: Re: [PHP] stupid URL variable question
Hi
Try without quotes :
$table_name = $locale;
Your SQL is probably reading SELECT comp, content FROM $locale instead of
en_na
Regards
Girish
- Original Message
]
To: Php-General [EMAIL PROTECTED]
Sent: Saturday, February 02, 2002 1:02 AM
Subject: RE: [PHP] stupid URL variable question
I think that was a necessary step, I had missed that one, but it
unfortunately hasn't solved the problem. Once again the page works fine if
I hard-code the values, but even if I
already
set bypass the login and redirect them to a new page.
HTH Joe :)
Ye Tun [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Do we have application variable in PHP as in ASP?
I have a small database running with user name and password kept in MySQL
What does this global variable stand for?
HTTP_IL_PAD
--
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]
Hi there guys,
Who's awake today then? :) What I'm trying to do is create variable
variable arrays and then fill these arrays with values. The problem I
have though is that the values don't appear to be getting stored - as
following the assignment I have outputted a 'sizeof' command which
always
On Friday 11 January 2002 20:02, Neil Freeman wrote:
Hi there guys,
Who's awake today then? :)
Someone isn't :)
Here's a snippet of the code. Any ideas guys???
...
//store children page_IDs into array for each parent
$str_array = menu_array_ . $current_parent_page_ID;
That's done the trick. More coffee for me I think :) Cheers Jason.
Jason Wong wrote:
On Friday 11 January 2002 20:02, Neil Freeman wrote:
Hi there guys,
Who's awake today then? :)
Someone isn't :)
Here's a snippet of the code. Any ideas guys???
...
//store children
-Original Message-
From: Neil Freeman [mailto:[EMAIL PROTECTED]]
Sent: 11 January 2002 12:03
Who's awake today then? :) What I'm trying to do is create variable
variable arrays and then fill these arrays with values. The problem I
have though is that the values don't appear to be
Hi!
Could someone please help...
How do I send variable(s) over the url and I want to send it to the the
same page (not opening a new page)
Thank you very much for reviewing my email.
Dani
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
On Friday 11 January 2002 00:21, Dani wrote:
Hi!
Could someone please help...
How do I send variable(s) over the url and I want to send it to the the
same page (not opening a new page)
Thank you very much for reviewing my email.
Dani
Hi Jason!
thanks for your email.
I have tried
http://www.mywebsite.com/mypage.php?myvariable1=value1myvariable2=value2
and adding this into my form
form = form1 method = post action =?php echo
$PHP_SELF?myvariable1=$myvariable1myvariable2=$myvariable2; ?
input type = text name=myvariable1
On Friday 11 January 2002 00:50, Dani wrote:
Hi Jason!
thanks for your email.
I have tried
http://www.mywebsite.com/mypage.php?myvariable1=value1myvariable2=value2
and adding this into my form
form = form1 method = post action =?php echo
Go to http://www.thickbook.com and look at Julie Meloni's tutorials,
particularly the one for custom error messages as she very nicely works it
up over about 3 iterations of the same simple script which includes a form
which calls its own script (PHP_SELF).
Miles Thompson
At 11:50 PM
On Friday 11 January 2002 01:11, Dani wrote:
First of all, please keep the discussion on the list :)
actually I'm trying to put a value from user input and then send the
variable and the value to the same page so that I can call other php
script.
Does this make any sense?
If I understand
I am trying to pass variables from a CGI/Perl script
to a php page. I know how to pass it through the url
(i.e. page.php?tmp=[var1]tmp2=[var2]) but need to
know how to pass it so that the information does not
show up in the url.
Benjamin
__
Do
$v=Var_.$Nums._Stat;
$Var_Call=$$v;
--
Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Design
www.x-playin.f2s.com
Yoed [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I never really found the trick to this one yet,
www.chessish.com http://www.chessish.com
--
From: Ye Tun [SMTP:[EMAIL PROTECTED]]
Sent: 04 January 2002 02:21
To: [EMAIL PROTECTED]
Subject: application variable
Do we have application variable in PHP as in ASP?
I have a small database
something like
?
$result = mssql_query($sql);
for ($i=0;$imssql_num_rows($result);$i++) {
mssql_data_seek($result,$i);
$row = mssql_fetch_object($result);
echo $row-someColumnInTable;
echo $row-someOtherColumnInTable;
}
?
-- Original Message
Hi, is it possible to print the sql query? i mean
i want to print the output of the command SELECT * FROM members;
and output it into html, i tried
print $result; -- it gives me different output..
Resource id #2
ty,
louie...
# PHP SCRIPT ###
html
use
$sql = select .. ;
$result = mysql_query($sql);
echo $sql;
--- louie miranda [EMAIL PROTECTED] wrote:
Hi, is it possible to print the sql query? i mean
i want to print the output of the command SELECT * FROM
members;
and output it into html, i tried
print $result; -- it gives me
A quick rewrite of your code:
?php
$conn = mysql_connect($host, $user, $pass);
if (!$conn) {
echo 'Could not connect: '. mysql_error();
exit;
}
mysql_select_db($dbname);
$sql= SELECT * FROM members;
$result = mysql_query($sql);
if (!$result) {
echo 'Could
You can create a hidden form variable with the value of user to pass with
the rest of the post data, or (preferably) you can use:
cookies: http://php.he.net/manual/en/function.setcookie.php
or, even better,
sessions: http://php.he.net/manual/en/ref.session.php
Fred
Jack [EMAIL PROTECTED] wrote
-INST] Undefined Variable Warnings Mail Settings
PHP List,
I am a new PHP user and have just installed it on a Windows NT IIS Server. I have set
the configuration variable display_errors =
Off in the php.ini file but am still getting many of the errors shown below on the
webpage generated
-Original Message-
From: Rudi Ahlers [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2001 14:04
To: PHP General
Subject: [PHP] changing a variable according to the input in a checkbox
How would I be able to change a variable from the input in a checkbox? I
need to write an sms script, that would
How would I be able to change a variable from the input in a checkbox? I
need to write an sms script, that would be able to sms to three different
providers, and I only want the use to type in the phone number. Thus, if he
types in 083xx, it should goto provider 1, if he types in
At 02:04 PM 11/26/2001 +0200, Rudi Ahlers wrote:
How would I be able to change a variable from the input in a checkbox? I
need to write an sms script, that would be able to sms to three different
providers, and I only want the use to type in the phone number. Thus, if he
types in 083xx,
Look in the Manual under Variable Variables.
Fred
Gerard Samuel [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey all. Im debugging a script that was written by someone else, and
alot of the variable has 2 '$$' in it. For example a varible is
intialised
This would be the logical way to do it (as I see it):
define('MY','pre_');
$a = dog;
$new_var = MY.$a;
$$new_var and $pre_dog are the same :)
--Joe
On Fri, Nov 16, 2001 at 09:47:12PM -0500, Jeff Lewis wrote:
I've a question regarding variable variable I was hoping someone could help me
It seems to me that the use of a temp variable may be the clearest
solution, and I doubt any overhead would matter really.
$a = dog;
$tmp = MY.$a; //$tmp = MYdog;
So the following two would be the same:
$$tmp = Spot;
$MYdog = Spot;
Good Luck,
Jason Garber
IonZoft.com
At 09:47 PM 11/16/2001
(/yabb\s+$tags[1]/,${$tags[1]},$curline);
Jeff
- Original Message -
From: Jason G. [EMAIL PROTECTED]
To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, November 17, 2001 7:02 AM
Subject: Re: [PHP] Question on variable variables
It seems to me that the use of a temp variable
have you tried /e modifier?
preg_replace(/yabb\s+$tags[1]/e,'${$1}', $curline);
it's just a tip.
- Original Message -
From: Jeff Lewis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 17, 2001 2:25 PM
Subject: Re: [PHP] Question on variable variables
, 2001 2:25 PM
Subject: Re: [PHP] Question on variable variables
Thanks Jason and Christoper for replying, here is the solution I came up
with. It takes into account that there could be multiple instances of what
I'm looking for on the same line - got it working late last night
I've a question regarding variable variable I was hoping someone could help me with:
All the examples in the manual have the entire variable name being variable e.g.
$a = hello and
$$a being the same as $hello
What I need to do, however, is append a variable portion to a constant prefix. So
On Fri, 16 Nov 2001, Jeff Lewis wrote:
What I need to do, however, is append a variable portion to a constant prefix. So I
have a set of variables that are named $MYdog, $MYcat etc. and I need to do
$a = dog
${MY$a} being the same as $MYdog
Can this be done, and if so - how? I can't get
Message -
From: Christopher William Wesley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Jeff Lewis [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 10:38 PM
Subject: Re: [PHP] Question on variable variables
On Fri, 16 Nov 2001, Jeff Lewis wrote:
What I need to do, however, is append a variable
PROTECTED]
Cc: Jeff Lewis [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 10:38 PM
Subject: Re: [PHP] Question on variable variables
On Fri, 16 Nov 2001, Jeff Lewis wrote:
What I need to do, however, is append a variable portion to a constant
prefix. So I have a set of variables
I currently log ip address that reach my site. However, I want to be able
to log both the ip address and remote name. Can anyone help?
Thanks,
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
check this out
http://www.php.net/manual/en/function.gethostbyaddr.php
jim
- Original Message -
From: Ben Clumeck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 2:48 PM
Subject: [PHP] IP Address Variable
I currently log ip address that reach my site
: Wednesday, November 14, 2001 2:57 PM
To: Ben Clumeck; [EMAIL PROTECTED]
Subject: Re: [PHP] IP Address Variable
check this out
http://www.php.net/manual/en/function.gethostbyaddr.php
jim
- Original Message -
From: Ben Clumeck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14
It may not work, if you are running Windows PHP on your localhost at home.
I'll bet you are trying to log getenv('REMOTE_HOST').
Been there done that. I use http://www.indigostar.com/microweb.htm to create a
localhost to develop and debug and then upload to the server. (I pay for modem
time.) I
-
From: Herb Wiser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 08, 2001 9:50 AM
Subject: [PHP] Losing Session Variable in IE Only?
I am having the strangest problem and I'm not sure there is anybody on
this
planet smart enough to figure it out
I have
hmm...weird! is that the code?
if you show us your real code...maybe you're missing a small detail...
Spunk S. Spunk III [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm assigning a variable a value from an associative array.
$variable =
hmm...weird! is that the code?
if you show us your real code...maybe you're missing a small detail...
Sorry about the variable names... I can print the variable inside the
function until it goes through ereg_replace. Then it's gone. The code works
fine if I replace the line '$song =
Hello,
I have a question on how to pass object variable from page to page. Here
is
something that I found, but it doesn't work. I would greatly appreciate if
someone can help:
1. does it matter if I include first, then so session_start()?
file1.php
?
include
You can see the below code in action at:
http://www.ionzoft.com/code/testing/globals.php
?
function CreateGlobals($td)
{
$td = foo;
$td_error = $td . _error;
$td_ok = $td . _ok;
global $$td_error;
global $$td_ok;
$$td_error = 'Error
Maybe something similar to this?
function test($td){
$global = global \$$td._error, \$$td._ok;;
eval($global);
$set = \$$td._error = \ERROR\; \$$td._ok = \OK\;;
eval($set);
}
test(foo);
echo $foo_error $foo_ok;
--
Justin Garrett
Martin [EMAIL PROTECTED] wrote in message
I have used:
global $$td;
in the past with success...
-Jason Garber
IonZoft.com
At 07:38 PM 9/30/2001 -0700, Justin Garrett wrote:
Maybe something similar to this?
function test($td){
$global = global \$$td._error, \$$td._ok;;
eval($global);
$set = \$$td._error = \ERROR\;
function MyFunction($td)
{
global $$td;
echo $$td; // echos 3
$$td = 5;
}
$billybob = 3;
MyFunction(billybob);
//Now $billybob = 5
-Jason Garber
IonZoft.com
At 10:25 PM 9/30/2001 -0400, you wrote:
I have used:
global $$td;
in the past with success...
-Jason
But how would you use this to create new global variables with $td as the
prefix?
$td = foo;
then we want new global variables
$foo_error and $foo_ok created.
--
Justin Garrett
Jason G. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
function MyFunction($td)
I have recently installed Apache 1.3.2 and PHP 4.0.6 using the instructions
at http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming on
a Win98 machine which I will later use as an intranet server (NT workstation
refuses to detect NT server, and the machine is too slow for Win2k).
This has to do with error_reporting level setting set in php.ini
echo $iamnotset;
when E_NOTICE level is on, that will produce a Warning. Otherwise, it
will not.
I posted something similiar recently, see it here:
http://marc.theaimsgroup.com/?l=php-generalm=100083224311516
On uklinux,
Hello people.
First , let me thanks all of you who answered my mime-mail question
(special Richard Lynch).
Next question (probably not for proper list, but I couldn't get answer,
so please sorry me).
I have http frame page (classical 'top', 'left' and 'center' frames),
then 'center' frame
Neil, look under variable variables in the php manual. They're what you
need:
http://www.php.net/manual/en/language.variables.variable.php
Charlie
Neil Freeman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
How do I generate variab
Hi,
I have a php page that accepts post values (ie;
./page.php?var1=0var4=5).
Now there can be posted values between var(1) and var(10) and i want to
check if they exist and also utilise them. Is there a way of accessing
these values in a loop ie;-
for($i=1;$i=10;$i++){
// do things
On Wed, Sep 19, 2001 at 12:57:07PM +0100, L Melville wrote:
Hi,
I have a php page that accepts post values (ie;
./page.php?var1=0var4=5).
Now there can be posted values between var(1) and var(10) and i want to
check if they exist and also utilise them. Is there a way of accessing
PHP lives on the server.
JavaScript lives on the browser.
Consider the sequencing of events:
1: Browser sends GET request
2: Apache begins processing request, decides to invoke PHP
3: PHP begins processing, starts sending out HTML (or other data)
4: Apache passes through PHP's HTML/data
5:
Finally, I've got another select box which calls a new page using get (I
tried post, and it didn't work either), and the $current_year disappears
never to be seen again. Perplexing, no?
You almost for sure don't have INPUT TYPE=HIDDEN NAME=current_year
VALUE=?php echo $current_year;? in that
Nafiseh Saberi [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi.
I want to use glabal variable.
?
global $a;
?
but it doesnot work??
... why do you think you need to use global here?
global is used *in a function* to let it see
external variables.
A HREF=nextpage.php?x=?php echo urlencode($x);?y=?php echo
urlencode($y);?
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
(please reply to me as well as the list, as I'm not subscribed)
I'm trying to generate variable names dynamically, based on
information read from a MySQL database. When a user creates an
account, they're asked to choose from a list of groups to which they
belong (by clicking checkboxes in an
if ( ${$named} == 1)
{
echo foo;
}
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
- Original Message -
From: Ian Marlier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 2:55 PM
Subject: [PHP] Dynamically generate variable names
is using
the variable variables feature of PHP, as follows:
$A = chkContact.$I;
$B = $$A;
This would work just fine if $chkContact## was not a global variable
(ie..not wrapped inside of a class). How can I use variable variables
on a global variable?
--
PHP General Mailing List (http://www
Use $HTTP_SESSION_VARS.
You are better to use $HTTP_*_VARS anyway.
--
Yasuo Ohgaki
Cole Tuininga [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I took a look through the archives and couldn't find any reference
to this.
Is there a way to easily list the
php4.0.5 win32
I have a page called results.php. Short but with any
number of 12 include files depending on the logic
flow. The first include file is a config file
include(config.fil);
that contains all the variables to run the app.,
included is :
I know this has been discussed before, but I've searched the manual and didn't see it
under Variable functions, or any of my searches.
I have varible $temp, how can I create a variable whose name is the string stored in
$temp? Thanks in advance
$temp = myvar;
$$temp = My value;
echo $myvar;
output:
My value
- James
-Original Message-
From: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: July 6, 2001 1:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Creating a Variable with the Name of a string
I know this has been
try using assoc. arrays also...
they're much nicer to deal with ;)
-Original Message-
From: James Atkinson [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 4:20 PM
To: Chris Anderson; [EMAIL PROTECTED]
Subject: RE: [PHP] Creating a Variable with the Name of a string
Thanks
- Original Message -
From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 4:27 PM
Subject: RE: [PHP] Creating a Variable with the Name of a string
try using assoc. arrays also...
they're much nicer to deal with ;)
-Original Message
I'm having a variable that contains HTML with embedded PHP
code. When I echo it then the PHP code does not get executed. Is there a
way I can parse/print the content of my variable?
eval(), though you might have to be careful if it's HTML and PHP.
Jason
--
PHP General Mailing List
Claus Heiko Niesen pressed the little lettered thingies in this order...
Hello
I'm having a variable that contains HTML with embedded PHP code. When I
echo it then the PHP code does not get executed. Is there a way I can
parse/print the content of my variable?
Checkout eval()
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Parse PHP inside a variable
maybe function eval()?
lenar.
Claus Heiko Niesen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello
I'm having a variable that contains HTML with embedded PHP code.
At 12:20 AM 06/21/2001, Christopher Ostmo wrote:
Checkout eval()
http://www.php.net/manual/en/function.eval.php
The second user contributed note contains an example of how to do this.
Good luck...
Thank you for the quick response Christopher and Jason. The eval(
?$string ); is exactly what I
Hello all,
I have come to a situation where i am having a variable inside another variable.
for example.
$rm_$cat_adt
The above is a variable and $cat is again another variable
This does not work..
Need some help!
Thanks,
Hasan
why don't you do something like
$var = $foo $baa;
?
-Original Message-
From: Hasan Niyaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] inserting a variable into a variable
Hello all,
I have come
I have come to a situation where i am having a variable inside another
variable.
for example.
$rm_$cat_adt
This works for me:
?
$cat=def;
${abc_.$cat._ghi}=TEST;
echo 'abc_.$cat._ghi = '.${abc_.$cat._ghi}.br\n;
echo 'abc_def_ghi = '.$abc_def_ghi.br\n;
?
michi
--
GMX - Die
Message-
From: Hasan Niyaz [mailto:[EMAIL PROTECTED]]
Sent: 20 June 2001 04:07
To: [EMAIL PROTECTED]
Subject: [PHP] inserting a variable into a variable
Hello all,
I have come to a situation where i am having a variable inside another
variable. for example.
$rm_$cat_adt
The above
I have come to a situation where i am having a variable inside another
variable.
for example.
$rm_$cat_adt
PHP would read this as trying to prepend the variable $cat_adt to the
variable $rm_
You seem to be trying to insert the variable $cat into the middle of a
variable.. possible, but
Michi,
Yours did the trick...
thank you and everyone else who contributed.
Hasan
- Original Message -
From: [EMAIL PROTECTED]
To: Hasan Niyaz [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 11:46 AM
Subject: Re: [PHP] inserting a variable into a variable
I
it's there for ;)
-Original Message-
From: Tom Carter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 5:24 AM
To: Hasan Niyaz; [EMAIL PROTECTED]
Subject: Re: [PHP] inserting a variable into a variable
I have come to a situation where i am having a variable inside
801 - 900 of 980 matches
Mail list logo