Re: [PHP] Cannot send session cookie

2004-07-12 Thread André Ventura Lemos
From: http://www.php.net/manual/en/function.session-start.php

Note:  If you are using cookie-based sessions, you must call
session_start() before anything is outputted to the browser.


You have to put session_start before anything else.


On Mon, 2004-07-12 at 15:40, Michael Purdy wrote:
 
 Warning: session_start(): Cannot send session cookie - headers already sent by 
 (output started at e:\http\cgi\a.php:14) in e:\http\cgi\a.php on line 15
 
 Warning: session_start(): Cannot send session cache limiter - headers already sent
 (output started at e:\http\cgi\a.php:14) in e:\http\cgi\a.php on line 15 
 
 Can anyone offer me a insight on the reason for the error.
 
 Mike
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


Re: [PHP] Retrieving Data To Edit

2004-07-09 Thread André Ventura Lemos
Just put a form with the value= bits having the values you want the
user to edit.


On Fri, 2004-07-09 at 14:39, Harlequin wrote:
 This is really confusing and I'm sure very simple to achieve.
 
 I already have values selected that I want to open and edit:
 
 $sql = SELECT * FROM RegisteredMembers WHERE UserID='$_POST[TXT_UserID]';
 
 I basically want to recall these values on screen for the user to edit
 themselves. Once I've achieved that I'm assuming that I simply use an INSERT
 command but need to achieve the first step first of calling the data up...
 
 -- 
 -
  Michael Mason
  Arras People
  www.arraspeople.co.uk
 -
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


Re: [PHP] Anyone have experiences with OCI9 and PHP ??

2004-06-18 Thread André Ventura Lemos
I've used PHP with Oracle 10g.


On Sex, 2004-06-18 at 10:46, [EMAIL PROTECTED] wrote:
 Hi all,
 
 is it possible to use an actuall Oracle-Client (Version = 9) with PHP ??
 
 Dose anyone habe experiences here ?
 
 Regards 
 Christian

-- 
Lego my ego, and I'll lego your knowledge.


signature.asc
Description: This is a digitally signed message part


[PHP] mod_php + oracle

2004-05-23 Thread André Ventura Lemos
Though I have:

OCI8 Supportenabled  
Revision$Revision: 1.183.2.12 $  
Oracle Version  10.1  
Compile-time ORACLE_HOME/opt/oracle/product/10.1.0/db_1  
Libraries Used  no value

and
'--with-oci8=/opt/oracle/product/10.1.0/db_1' showing up on phpinfo();,
I get:

Fatal error: Call to undefined function: ora_logon() in
/var/www/localhost/htdocs/teste.php on line 4

and

Fatal error: Call to undefined function: oci_connect() in
/var/www/localhost/htdocs/teste.php on line 2


Help?



-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


[PHP] mod_php + oracle

2004-05-22 Thread André Ventura Lemos
Though I have:

OCI8 Supportenabled  
Revision$Revision: 1.183.2.12 $  
Oracle Version  10.1  
Compile-time ORACLE_HOME/opt/oracle/product/10.1.0/db_1  
Libraries Used  no value

and
'--with-oci8=/opt/oracle/product/10.1.0/db_1' showing up on phpinfo();,
I get:

Fatal error: Call to undefined function: ora_logon() in
/var/www/localhost/htdocs/teste.php on line 4

and

Fatal error: Call to undefined function: oci_connect() in
/var/www/localhost/htdocs/teste.php on line 2


Help?



-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


[PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
Hi list :-)

I'm using sessions to manage users, by using cookies to store the
session.

My question is, how do I make the session last _forever_?

ATM the session lasts 'till the user closes the browser.


Thanks


-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...




signature.asc
Description: This is a digitally signed message part


Re: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
But my question is, since I don't deal with cookies directly (PHP does
that for me), 'cause I only have to deal with sessions, how can I change
the cookies produced by PHP?

atm I only session_start() and use the $_SESSION[''], so I don't really
know which cookie to change, or how to do it.

TIA


Ps.: I know it doesn't last forever, that's why I've put the _forever_
;-)

On Tue, 2004-03-09 at 23:12, Richard Davey wrote:
 Hello André,
 
 Tuesday, March 9, 2004, 10:53:35 PM, you wrote:
 
 AVL I'm using sessions to manage users, by using cookies to store the
 AVL session.
 AVL My question is, how do I make the session last _forever_?
 AVL ATM the session lasts 'till the user closes the browser.
 
 Ok first of all - you cannot make a cookie last forever. You can set
 its expiry to be a ridiculous date in the future, but that's all - if
 the browser removes it during cookie purging, or the user reinstalls
 something - it's gone. One of the best solutions is to refresh the
 cookie (without their knowledge) each time they come back to the site.
 
 Anyway, onto the meat of your question - give the cookie an expiry
 date well into the future so it persists until the visitor returns.
 Look at the help file for details on the attributes you need for
 setcookie.
 
 -- 
 Best regards,
  Richard Davey
  http://www.phpcommunity.org/wiki/296.html
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


Re: Re[2]: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
but since the cookie stores the session id, I thought I could keep that
ID and bring it back.

could you show me some code, or point me to some example?

Thanks


On Tue, 2004-03-09 at 23:48, Richard Davey wrote:
 Hello André,
 
 Tuesday, March 9, 2004, 11:41:04 PM, you wrote:
 
 AVL But my question is, since I don't deal with cookies directly (PHP does
 AVL that for me), 'cause I only have to deal with sessions, how can I change
 AVL the cookies produced by PHP?
 
 AVL atm I only session_start() and use the $_SESSION[''], so I don't really
 AVL know which cookie to change, or how to do it.
 
 In that case the reason the session expires when the browser closes is
 because that is what sessions are designed to do. In order to bring
 them back you need to issue a cookie of your own that keeps track and
 re-builds the session when they return.
 
 -- 
 Best regards,
  Richard Davey
  http://www.phpcommunity.org/wiki/296.html
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


Re: Re[4]: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
I'll try to find another way then.

Thanks for the replies


On Wed, 2004-03-10 at 00:00, Richard Davey wrote:
 Hello André,
 
 Tuesday, March 9, 2004, 11:53:15 PM, you wrote:
 
 AVL but since the cookie stores the session id, I thought I could keep that
 AVL ID and bring it back.
 
 You could, but PHP will automatically clear up expired sessions as
 part of its garbage collection routine, which means its entirely
 possible the session data will have been removed when the user returns
 and you try retrieving it again.
 
 You could try changing the session.cookie_lifetime in your php.ini
 file, or via code by using the session_set_cookie_params() function.
 
 Please note that this will lead to excessive build up of session data
 files on your server, depending on the popularity of your site.
 
 -- 
 Best regards,
  Richard Davey
  http://www.phpcommunity.org/wiki/296.html
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


[PHP] sessions timeout

2004-03-02 Thread André Ventura Lemos
Hi list :-)

I'm using sessions to manage users, by using cookies to store the
session.

My question is, how do I make the session last _forever_?

ATM the session lasts 'till the user closes the browser.


Thanks


-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...




signature.asc
Description: This is a digitally signed message part


Re: [PHP] GMP problem

2004-03-02 Thread André Ventura Lemos
http://packages.debian.org/stable/devel/libgmp2-dev

On Tue, 2004-03-02 at 14:28, csko wrote:
 Hi!
 
 I've some problems with installing the GMP module for PHP.
 My system: Debian Linux 3.0 Woody
 I've downloaded the source from php.net.
 I cd-ed to its dir and typed ./configure --with-gmp
 (i've recently installed GMP with apt-get install libgmp2)
 I have an error:
 
 checking for GNU gettext support... no
 checking for GNU MP support... yes
 configure: error: Unable to locate gmp.h
 [EMAIL PROTECTED]:~/install/php$
 
 csko
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


[PHP] sessions timeout

2004-03-02 Thread André Ventura Lemos
Hi list :-)

I'm using sessions to manage users, by using cookies to store the
session.

My question is, how do I make the session last _forever_?

ATM the session lasts 'till the user closes the browser.


Thanks


-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...




signature.asc
Description: This is a digitally signed message part


Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread André Ventura Lemos
I had a similar problem, but with much lesser fields, so I passed the
$_POST to $_SESSION, but I guess there's a more practical way to do
this, or so I hope. Having said this, I'm also interested in an answear
:-)

On Tue, 2004-03-02 at 20:54, Charlie Fiskeaux II wrote:
 I'm creating a form with 170 fields, and I'd like to create 
 an intermediary page so the user can review their info 
 before submitting it again to the emailing script.
 
 Since the form has so much data, I was hoping I could just 
 take the entire $POST array and pass it to the emailing 
 script like an HTML form POST method (so that form A sends 
 its data via POST to PHP script B, which displays it for 
 review; upon successful review, the user clicks Submit again 
 to pass the $POST data on to Perl script C, which is 
 prewritten). Is this possible?
 
 I looked in the PHP Manual but couldn't find anything; I'm 
 having a difficult time finding stuff in there, since I have 
 to know what category a function falls under before I can 
 look it up.
 
 Thanks.

-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread André Ventura Lemos
I already tried that, but had problems with ' '  .

On Tue, 2004-03-02 at 21:05, Jay Blanchard wrote:
 [snip]
 I'm creating a form with 170 fields, and I'd like to create 
 an intermediary page so the user can review their info 
 before submitting it again to the emailing script.
 [/snip]
 
 When you create the view page store all of the passed variables in
 hidden form fields. That way they can then be submitted on to the next
 script.
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part


RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread André Ventura Lemos
No.. o_O

I'll look into that, thanks

On Tue, 2004-03-02 at 21:09, Matt Matijevich wrote:
 snip
 I already tried that, but had problems with ' '  .
 /snip
 
 Did you try the htmlentities function?
-- 
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...



signature.asc
Description: This is a digitally signed message part