RE: [PHP] Calling a Variable in a weird Way

2002-03-06 Thread Jason Murray
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

RE: [PHP] how to: variable = php parsed file include

2002-03-04 Thread Kearns, Terry
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

Re: [PHP] how to: variable = php parsed file include

2002-03-04 Thread George Whiffen
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

[PHP] Re: Global Variable Change

2002-03-01 Thread Yasuo Ohgaki
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');

[PHP] how to: variable = php parsed file include

2002-02-28 Thread Brian Petro
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

[PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
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

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
: 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

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
, 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

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
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

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
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

Re: [PHP] Re: function? variable?

2002-02-12 Thread Jason Whitaker
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

Re: [PHP] Re: function? variable?

2002-02-12 Thread Jason Whitaker
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

[PHP] Re: function? variable?

2002-02-11 Thread Jason Whitaker
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

Re: [PHP] Re: function? variable?

2002-02-11 Thread Keith V. (Vance Consulting LLC)
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

Re: [PHP] Re: function? variable?

2002-02-11 Thread Steven Walker
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

[PHP] Re: array variable passing in session.

2002-02-07 Thread Joe Van Meer
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);

[PHP] Re: array variable passing in session.

2002-02-07 Thread Peter Ruan
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

[PHP] Re: [PHP-DB] if variable is equal to 2 through 4

2002-02-06 Thread Chris Boget
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

[PHP] Re: [PHP-DB] if variable is equal to 2 through 4

2002-02-06 Thread Mihail Bota
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 ???

[PHP] stupid URL variable question

2002-02-01 Thread James Hallam
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

Re: [PHP] stupid URL variable question

2002-02-01 Thread Girish Nath
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

RE: [PHP] stupid URL variable question

2002-02-01 Thread James Hallam
]] 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

Re: [PHP] stupid URL variable question

2002-02-01 Thread Girish Nath
] 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

[PHP] Re: application variable

2002-01-19 Thread Joe Van Meer
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

[PHP] HTTP_IL_PAD global variable?

2002-01-16 Thread bill
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]

[PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
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

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Jason Wong
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;

Re: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Neil Freeman
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

RE: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Ford, Mike [LSS]
-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

[PHP] Help - sending variable(s)

2002-01-10 Thread Dani
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

Re: [PHP] Help - sending variable(s)

2002-01-10 Thread Jason Wong
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

Re: [PHP] Help - sending variable(s)

2002-01-10 Thread 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

Re: [PHP] Help - sending variable(s)

2002-01-10 Thread Jason Wong
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

Re: [PHP] Help - sending variable(s)

2002-01-10 Thread Miles Thompson
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

Re: [PHP] Help - sending variable(s)

2002-01-10 Thread Jason Wong
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

[PHP] Post CGI variable to PHP

2002-01-10 Thread Benjamin Bostow
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

[PHP] Re: A variable with a variable

2002-01-10 Thread George Nicolae
$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,

[PHP] RE: application variable

2002-01-04 Thread Tim Ward
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

Re: [PHP] printing php variable into html print $result; ?

2002-01-03 Thread charlesk
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

[PHP] printing php variable into html print $result; ?

2002-01-03 Thread louie miranda
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

Re: [PHP] printing php variable into html print $result; ?

2002-01-03 Thread Mehmet Kamil ERISEN
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

Re: [PHP] printing php variable into html print $result; ?

2002-01-03 Thread Philip Olson
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

[PHP] Re: Post Variable Problem

2001-12-13 Thread Fred
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

[PHP] Re: [PHP-INST] Undefined Variable Warnings Mail Settings

2001-12-12 Thread Andrey Hristov
-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

RE: [PHP] changing a variable according to the input in a checkbox

2001-11-27 Thread Yoan Bosch [VDB TECH SUPPORT DEVEL]
-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

[PHP] changing a variable according to the input in a checkbox

2001-11-26 Thread Rudi Ahlers
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

Re: [PHP] changing a variable according to the input in a checkbox

2001-11-26 Thread Miles Thompson
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,

[PHP] Re: Strange variable.....

2001-11-19 Thread Fred
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

Re: [PHP] Question on variable variables

2001-11-18 Thread Joe Stump
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

Re: [PHP] Question on variable variables

2001-11-17 Thread Jason G.
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

Re: [PHP] Question on variable variables

2001-11-17 Thread Jeff Lewis
(/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

Re: [PHP] Question on variable variables

2001-11-17 Thread Papp Gyozo
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

Re: [PHP] Question on variable variables

2001-11-17 Thread Papp Gyozo
, 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

[PHP] Question on variable variables

2001-11-16 Thread Jeff Lewis
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

Re: [PHP] Question on variable variables

2001-11-16 Thread Christopher William Wesley
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

Re: [PHP] Question on variable variables

2001-11-16 Thread Jeff Lewis
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

Re: [PHP] Question on variable variables

2001-11-16 Thread Christopher William Wesley
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

[PHP] IP Address Variable

2001-11-14 Thread Ben Clumeck
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]

Re: [PHP] IP Address Variable

2001-11-14 Thread Jim Lucas
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

RE: [PHP] IP Address Variable

2001-11-14 Thread Ben Clumeck
: 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

Re: [PHP] IP Address Variable

2001-11-14 Thread John Taylor-Johnston
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

Re: [PHP] Losing Session Variable in IE Only?

2001-11-10 Thread Herb Wiser
- 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

[PHP] Re: argument variable gets lost in function

2001-10-25 Thread _lallous
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 =

Re: [PHP] Re: argument variable gets lost in function

2001-10-25 Thread Spunk S. Spunk III
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 =

[PHP] passing object variable from page to page. Please disregard the previous!

2001-10-03 Thread Ming-Chieh Lee
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

Re: [PHP] Re: Making variable global / accessing variable

2001-10-01 Thread Jason G.
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

[PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Justin Garrett
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

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Jason G.
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\;

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Jason G.
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

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Justin Garrett
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)

[PHP] Warning: Undefined variable when used locally, but fine on remote server

2001-09-24 Thread Justin Colson
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).

Re: [PHP] Warning: Undefined variable when used locally, but fineon remote server

2001-09-24 Thread Philip Olson
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,

[PHP] Javascript document variable names for complex forms

2001-09-24 Thread M
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

[PHP] Re: Generating variable names 'on the fly'

2001-09-20 Thread Charlie Killian
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

[PHP] changing post variable names

2001-09-19 Thread L Melville
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

Re: [PHP] changing post variable names

2001-09-19 Thread Jason Stechschulte
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] Re: Accessing Variable !!!

2001-09-11 Thread Richard Lynch
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:

[PHP] Re: vanishing variable

2001-08-31 Thread Richard Lynch
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

[PHP] Re: global variable.

2001-08-25 Thread Hugh Bothwell
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.

[PHP] Re: persistence variable value - help

2001-08-08 Thread Richard Lynch
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

[PHP] Dynamically generate variable names?

2001-07-26 Thread Ian Marlier
(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

Re: [PHP] Dynamically generate variable names?

2001-07-26 Thread Sheridan Saint-Michel
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

[PHP] Re: Global Variable Variables...

2001-07-26 Thread Yasuo Ohgaki
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

[PHP] Re: Session variable listing

2001-07-26 Thread Yasuo Ohgaki
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

[PHP] Odd include/variable problem

2001-07-20 Thread rm
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 :

[PHP] Creating a Variable with the Name of a string

2001-07-06 Thread Chris Anderson
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

RE: [PHP] Creating a Variable with the Name of a string

2001-07-06 Thread James Atkinson
$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

RE: [PHP] Creating a Variable with the Name of a string

2001-07-06 Thread scott [gts]
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

Re: [PHP] Creating a Variable with the Name of a string

2001-07-06 Thread Chris Anderson
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

RE: [PHP] Parse PHP inside a variable

2001-06-21 Thread Jason Murray
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

Re: [PHP] Parse PHP inside a variable

2001-06-21 Thread Christopher Ostmo
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()

Re: [PHP] Parse PHP inside a variable

2001-06-21 Thread Zak Greant
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.

Re: [PHP] Parse PHP inside a variable

2001-06-21 Thread Claus Heiko Niesen
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

[PHP] inserting a variable into a variable

2001-06-20 Thread Hasan Niyaz
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

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread Peter Houchin - SunRentals Australia
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

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread mailing_list
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

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread Ray Hilton
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

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread Tom Carter
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

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread Hasan Niyaz
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

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread scott [gts]
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

<    4   5   6   7   8   9   10   >