RE: [PHP] Re: Passing Variables

2003-06-21 Thread George Pitcher
Nabil,

That is one way but it means that Jay would have to use a form and not a
link.

You could set a cookie. That would work, but it relies on the user allowing
cookies.

George

 -Original Message-
 From: nabil [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2003 2:58 pm
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Passing Variables


 use hidden field (pure html) and then u have it as $yourhiddenfield on the
 next page even u have the register global off..

 Nabil


 Jay Fitzgerald [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I have been searching for an answer to this for a couple of
 hours now and
  cant find anything. I believe that there is a secure way of
 doing this but
  I think my brain is having a momentary lapse...
 
  I have these variables:
 
  $eventid = 1;
  $age = 15;
 
  Is there a way to pass these variables to the next page so I
 can continue
  using them without doing something like this:
 
  A HREF=test.php?eventid=1age=15
 
  I would rather not have the variables be seen or known to the
 end user for
  security reasons because they could change them in the URL. I
 know it has
  something to do with $_GET and $_POST because I do have register_globals
  set to OFF in my php file and I do not want to turn them on
 
  TIA
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jay Fitzgerald
That was my thought too, George. But if the user does not have cookies 
enabled, then I believe, as Thomas pointed out, that a SESSION is the only 
way to handle the variables. I have never done a correct session so I am 
trying to learn how to do them without having a userid and password for 
each user. I have played with sessions but I don't know if I am doing them 
correctly or how to do sessions without authentication.

Jay



At 03:14 PM 6/21/2003 +0100, George Pitcher wrote:
Nabil,

That is one way but it means that Jay would have to use a form and not a
link.
You could set a cookie. That would work, but it relies on the user allowing
cookies.
George

 -Original Message-
 From: nabil [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2003 2:58 pm
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Passing Variables


 use hidden field (pure html) and then u have it as $yourhiddenfield on the
 next page even u have the register global off..

 Nabil


 Jay Fitzgerald [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I have been searching for an answer to this for a couple of
 hours now and
  cant find anything. I believe that there is a secure way of
 doing this but
  I think my brain is having a momentary lapse...
 
  I have these variables:
 
  $eventid = 1;
  $age = 15;
 
  Is there a way to pass these variables to the next page so I
 can continue
  using them without doing something like this:
 
  A HREF=test.php?eventid=1age=15
 
  I would rather not have the variables be seen or known to the
 end user for
  security reasons because they could change them in the URL. I
 know it has
  something to do with $_GET and $_POST because I do have register_globals
  set to OFF in my php file and I do not want to turn them on
 
  TIA
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: Passing Variables

2003-06-21 Thread George Pitcher
Jay,

I've never ventured into 'sessions' (not ones without drinks) but I've a
feeling that if the user has turned cookies off then sessions are out as
well as they require a cookie being stored on the user's machine.

Someone will surely correct me if I am wrong.

I went to the PHP conference in Frankfurt about 18 months ago and Rasmus was
talking about 'clean' URLs (ithout the 'query' string. I never did find out
how though?

Cheers

George

 -Original Message-
 From: Jay Fitzgerald [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2003 3:19 pm
 To: George Pitcher; nabil; [EMAIL PROTECTED]
 Subject: RE: [PHP] Re: Passing Variables


 That was my thought too, George. But if the user does not have cookies
 enabled, then I believe, as Thomas pointed out, that a SESSION is
 the only
 way to handle the variables. I have never done a correct
 session so I am
 trying to learn how to do them without having a userid and password for
 each user. I have played with sessions but I don't know if I am
 doing them
 correctly or how to do sessions without authentication.

 Jay



 At 03:14 PM 6/21/2003 +0100, George Pitcher wrote:
 Nabil,
 
 That is one way but it means that Jay would have to use a form and not a
 link.
 
 You could set a cookie. That would work, but it relies on the
 user allowing
 cookies.
 
 George
 
   -Original Message-
   From: nabil [mailto:[EMAIL PROTECTED]
   Sent: 21 June 2003 2:58 pm
   To: [EMAIL PROTECTED]
   Subject: [PHP] Re: Passing Variables
  
  
   use hidden field (pure html) and then u have it as
 $yourhiddenfield on the
   next page even u have the register global off..
  
   Nabil
  
  
   Jay Fitzgerald [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
I have been searching for an answer to this for a couple of
   hours now and
cant find anything. I believe that there is a secure way of
   doing this but
I think my brain is having a momentary lapse...
   
I have these variables:
   
$eventid = 1;
$age = 15;
   
Is there a way to pass these variables to the next page so I
   can continue
using them without doing something like this:
   
A HREF=test.php?eventid=1age=15
   
I would rather not have the variables be seen or known to the
   end user for
security reasons because they could change them in the URL. I
   know it has
something to do with $_GET and $_POST because I do have
 register_globals
set to OFF in my php file and I do not want to turn them on
   
TIA
   
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Passing Variables

2003-06-21 Thread Thomas Seifert
you can transfer the session-id (which is unique) through the url too.
but then its only the session-id and not the actual data and the session-id
can't be guessed that simple to reach another user's data.


Thomas

On Sat, 21 Jun 2003 15:31:56 +0100 [EMAIL PROTECTED] (George Pitcher) wrote:

 Jay,
 
 I've never ventured into 'sessions' (not ones without drinks) but I've a
 feeling that if the user has turned cookies off then sessions are out as
 well as they require a cookie being stored on the user's machine.
 
 Someone will surely correct me if I am wrong.
 
 I went to the PHP conference in Frankfurt about 18 months ago and Rasmus was
 talking about 'clean' URLs (ithout the 'query' string. I never did find out
 how though?
 
 Cheers
 
 George
 
  -Original Message-
  From: Jay Fitzgerald [mailto:[EMAIL PROTECTED]
  Sent: 21 June 2003 3:19 pm
  To: George Pitcher; nabil; [EMAIL PROTECTED]
  Subject: RE: [PHP] Re: Passing Variables
 
 
  That was my thought too, George. But if the user does not have cookies
  enabled, then I believe, as Thomas pointed out, that a SESSION is
  the only
  way to handle the variables. I have never done a correct
  session so I am
  trying to learn how to do them without having a userid and password for
  each user. I have played with sessions but I don't know if I am
  doing them
  correctly or how to do sessions without authentication.
 
  Jay
 
 
 
  At 03:14 PM 6/21/2003 +0100, George Pitcher wrote:
  Nabil,
  
  That is one way but it means that Jay would have to use a form and not a
  link.
  
  You could set a cookie. That would work, but it relies on the
  user allowing
  cookies.
  
  George
  
-Original Message-
From: nabil [mailto:[EMAIL PROTECTED]
Sent: 21 June 2003 2:58 pm
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Passing Variables
   
   
use hidden field (pure html) and then u have it as
  $yourhiddenfield on the
next page even u have the register global off..
   
Nabil
   
   
Jay Fitzgerald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have been searching for an answer to this for a couple of
hours now and
 cant find anything. I believe that there is a secure way of
doing this but
 I think my brain is having a momentary lapse...

 I have these variables:

 $eventid = 1;
 $age = 15;

 Is there a way to pass these variables to the next page so I
can continue
 using them without doing something like this:

 A HREF=test.php?eventid=1age=15

 I would rather not have the variables be seen or known to the
end user for
 security reasons because they could change them in the URL. I
know it has
 something to do with $_GET and $_POST because I do have
  register_globals
 set to OFF in my php file and I do not want to turn them on

 TIA

   
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
   
   
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jeff Harris
On Jun 21, 2003, George Pitcher claimed that:

|Jay,
|
|I've never ventured into 'sessions' (not ones without drinks) but I've a
|feeling that if the user has turned cookies off then sessions are out as
|well as they require a cookie being stored on the user's machine.
|
|Someone will surely correct me if I am wrong.
|
|I went to the PHP conference in Frankfurt about 18 months ago and Rasmus was
|talking about 'clean' URLs (ithout the 'query' string. I never did find out
|how though?
|
|Cheers
|
|George
|

http://marc.theaimsgroup.com/?l=php-generalm=105597453308214w=2

form name=myform method=POST action=validate.php
input type=hidden name=secret1 value=15
input type=hidden name=secret2 value=secret login code
a href=javascript:void(document.myform.submit())next page/a/form

If you really want to keep the values a secret, you will have to
substitute them with a reverable hash or some other method to keep prying
eyes away.

Jeff

-- 
Registered Linux user #304026.
lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import
Key fingerprint = 52FC 20BD 025A 8C13 5FC6  68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Passing variables between servers

2002-08-21 Thread Jay Blanchard

[snip]
The session variables are need on both server for authorization needs.
The two servers host two separate Intranet apps and I am trying to join the
two together into one Intranet app.  The variable will be used on both
sides.

The reason I don't what to use cookie is your users keep disabling them.
They think a web site can use a cookie to break into their computer. They
also disable JavaScript a lot too.
[/snip]

What about installing PHP on the IIS server and when time comes to pass back
the information using the same method?

Trying to think outside the box ...

Jay

***
* Texas PHP Developers Conf  Spring 2003  *
* T Bar M Resort  Conference Center  *
* New Braunfels, Texas*
* San Antonio Area PHP Developers Group   *
* Interested? Contact [EMAIL PROTECTED] *
***



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Passing variables between servers

2002-08-21 Thread Mark McCulligh

I have thought about this also, but I need the variables in the ASP session
and I don't have the time line to rewrite the ASP pages over in PHP.  The
current ASP app took a year to develop.

I have thought about having PHP on both servers and having the PHP on the
2000 server just save the variables to a XML file or ini file, then have the
ASP code read it in, but I thought there is probable some easy solution out
there for passing information around.  cURL looked like a solution but I
can't find information on it using ASP.

Maybe I am looking of a easy solutions that doesn't exist and will have to
just use the longer one.

Thanks for your input, Mark.
_
Mark McCulligh, Application Developer / Analyst
Sykes Canada Corporation www.SykesCanada.com
(888)225-6824 ex. 3262
[EMAIL PROTECTED]
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: 'Mark McCulligh' [EMAIL PROTECTED]; 'Seairth Jacobs'
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 3:34 PM
Subject: RE: [PHP] Re: Passing variables between servers


 [snip]
 The session variables are need on both server for authorization needs.
 The two servers host two separate Intranet apps and I am trying to join
the
 two together into one Intranet app.  The variable will be used on both
 sides.

 The reason I don't what to use cookie is your users keep disabling them.
 They think a web site can use a cookie to break into their computer. They
 also disable JavaScript a lot too.
 [/snip]

 What about installing PHP on the IIS server and when time comes to pass
back
 the information using the same method?

 Trying to think outside the box ...

 Jay

 ***
 * Texas PHP Developers Conf  Spring 2003  *
 * T Bar M Resort  Conference Center  *
 * New Braunfels, Texas*
 * San Antonio Area PHP Developers Group   *
 * Interested? Contact [EMAIL PROTECTED] *
 ***




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Passing variables between servers

2002-08-21 Thread MET

http://www.w3.org/TR/SOAP/

~ Matthew

-Original Message-
From: Mark McCulligh [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 21, 2002 4:14 PM
To: Jay Blanchard
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Passing variables between servers


I have thought about this also, but I need the variables in the ASP
session and I don't have the time line to rewrite the ASP pages over in
PHP.  The current ASP app took a year to develop.

I have thought about having PHP on both servers and having the PHP on
the 2000 server just save the variables to a XML file or ini file, then
have the ASP code read it in, but I thought there is probable some easy
solution out there for passing information around.  cURL looked like a
solution but I can't find information on it using ASP.

Maybe I am looking of a easy solutions that doesn't exist and will have
to just use the longer one.

Thanks for your input, Mark. _
Mark McCulligh, Application Developer / Analyst
Sykes Canada Corporation www.SykesCanada.com
(888)225-6824 ex. 3262
[EMAIL PROTECTED]
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: 'Mark McCulligh' [EMAIL PROTECTED]; 'Seairth Jacobs'
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 3:34 PM
Subject: RE: [PHP] Re: Passing variables between servers


 [snip]
 The session variables are need on both server for authorization needs.

 The two servers host two separate Intranet apps and I am trying to 
 join
the
 two together into one Intranet app.  The variable will be used on both

 sides.

 The reason I don't what to use cookie is your users keep disabling 
 them. They think a web site can use a cookie to break into their 
 computer. They also disable JavaScript a lot too. [/snip]

 What about installing PHP on the IIS server and when time comes to 
 pass
back
 the information using the same method?

 Trying to think outside the box ...

 Jay

 ***
 * Texas PHP Developers Conf  Spring 2003  *
 * T Bar M Resort  Conference Center  *
 * New Braunfels, Texas*
 * San Antonio Area PHP Developers Group   *
 * Interested? Contact [EMAIL PROTECTED] *
 ***




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Passing variables with include()

2002-01-14 Thread Stefan Rusterholz

Sure you can. Right out from the manual:

If URL fopen wrappers are enabled in PHP (which they are in the default
configuration), you can specify the file to be include()ed using an URL
instead of a local pathname. See Remote files and fopen() for more
information.

best regards
Stefan Rusterholz

- Original Message -
From: Tino Didriksen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 1:53 PM
Subject: [PHP] Re: Passing variables with include()


  include(http://www.someremote.server/calculate_drivers.php;);

 Very simple really: You cannot include remote files...

 --|--
 Tino Didriksen
 http://ProjectJJ.dk/



 --
 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 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]




Re: [PHP] Re: Passing variables with include()

2002-01-14 Thread Scott Houseman

Hi Al.

While we are on topic, what are the key differences between include() 
require() ?

Cheers

Scott

- Original Message -
From: Martin Wickman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 3:40 PM
Subject: [PHP] Re: Passing variables with include()


 Imar De Vries wrote:

  Imar De Vries wrote:
 
 
 - Including remote files *is* possible. The php manual does not mention
this
 does not work, and when I add the variable to the call (include
 /calculate_drivers?serie_id=3.php) the code is processed perfectly.
The
 thing is, I can not pass the variable with the call, because it's value
is
 determined by the form field. I could use a switch statement of course,
but
 that adds a lot more text to the code.
 
 
  I just changed the code to (include
  .../calculate_drivers?serie_id=$serie_id.php)
 
  ... and this worked! Weird solution...

 Not really. The http://.../foo.php request returns html and not php.
 The foo.php file is parsed and executed by the remote server and
 returned to you as html. By adding serie_id=xxx you actually give the
 remote php-script the name and value of the variable.

 You should think of include/require as a way to *include* any file
 into your script. Instead of cutting and pasting code into your file,
 you use include. Thats the way it works in practice. No magic is going
 on here :-)


 --
 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 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]




Re: [PHP] Re: Passing variables with include()

2002-01-14 Thread Stefan Rusterholz

Since some time there has only one difference left (don't know at which
version it changed):
include causes a warning and require an error on fail. (very useful for
debugging - require your error-handler and include everything else)

best regards
Stefan Rusterholz

- Original Message -
From: Scott Houseman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 13, 2002 2:54 PM
Subject: Re: [PHP] Re: Passing variables with include()


 Hi Al.

 While we are on topic, what are the key differences between include() 
 require() ?

 Cheers

 Scott

 - Original Message -
 From: Martin Wickman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 14, 2002 3:40 PM
 Subject: [PHP] Re: Passing variables with include()


  Imar De Vries wrote:
 
   Imar De Vries wrote:
  
  
  - Including remote files *is* possible. The php manual does not
mention
 this
  does not work, and when I add the variable to the call (include
  /calculate_drivers?serie_id=3.php) the code is processed
perfectly.
 The
  thing is, I can not pass the variable with the call, because it's
value
 is
  determined by the form field. I could use a switch statement of
course,
 but
  that adds a lot more text to the code.
  
  
   I just changed the code to (include
   .../calculate_drivers?serie_id=$serie_id.php)
  
   ... and this worked! Weird solution...
 
  Not really. The http://.../foo.php request returns html and not php.
  The foo.php file is parsed and executed by the remote server and
  returned to you as html. By adding serie_id=xxx you actually give the
  remote php-script the name and value of the variable.
 
  You should think of include/require as a way to *include* any file
  into your script. Instead of cutting and pasting code into your file,
  you use include. Thats the way it works in practice. No magic is going
  on here :-)
 
 
  --
  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 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 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]




Re: [PHP] Re: Passing variables with include()

2002-01-14 Thread Martin Wickman

Scott Houseman wrote:

 Hi Al.
 
 While we are on topic, what are the key differences between include() 
 require() ?


Unlike include(), require()  will always read in the target file, 
even if the line it's on never executes. If you want to conditionally 
include a file, use include(). The conditional statement won't affect 
the require(). However, if the line on which the require() occurs is 
not executed, neither will any of the code in the target file be 
executed.


-- 
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]




Re: [PHP] Re: Passing variables with include()

2002-01-14 Thread Stefan Rusterholz

 Scott Houseman wrote:

  Hi Al.
 
  While we are on topic, what are the key differences between include() 
  require() ?


 Unlike include(), require()  will always read in the target file,
 even if the line it's on never executes. If you want to conditionally
 include a file, use include(). The conditional statement won't affect
 the require(). However, if the line on which the require() occurs is
 not executed, neither will any of the code in the target file be
 executed.

I'm pretty sure that at last for PHP 4.06 or higher this is deprecated. I
don't know why it is still in the manual.
Please correct me if I'm wrong.

best regards
Stefan Rusterholz


-- 
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]




RE: [PHP] Re: passing variables between PHP and Perl

2001-08-21 Thread Dave

Just a quick addition...  when a PHP script is run as a shell script from a Perl
script (that make sense?) it cannot pass back exit variables to the Perl
script...

Would love to be proven wrong on this as I had to dust off Perl programming for
a RADIUS interface some time ago.

Dave


http://php.net/exec/

You can get back whatever Perl spews out to 'stdout' using that.

 I'm integrating a telephony service into a clients site. I'm pretty handy
 with PHP but I don't have much knowledge of perl. I've setup up my
client's
 site using PHP and the service provided me with a Perl script to make the
 telephone connection. I used virtual() in my PHP script to pass variables
to
 the Perl script but now I need to deal with passing the results from the
 Perl back to PHP.

 Is there something like virtual() in Perl that I could use to relay the
 variables back to my script? Can I call up the Perl variables from my PHP
 script after virtual()?



-- 
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]