php-windows Digest 20 Dec 2001 13:39:01 -0000 Issue 910

Topics (messages 11027 through 11036):

Re: closing an ODBC connection to mysql
        11027 by: ben
        11029 by: George Nicolae

Using ErrorDocument redirect in Apache
        11028 by: alain samoun

Passing Logined in Name form One Form to other Page
        11030 by: Jack
        11031 by: Svensson, B.A.T. (HKG)
        11032 by: George Nicolae
        11033 by: Pac mon
        11035 by: George Nicolae

PHP IDE
        11034 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK

Session Questions
        11036 by: Rconover.americanbridge.net

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
George

Thank you. I didn't understand the meaning of the "void" preceding the
syntax in the statement. I should have looked this up, and have now. Thank
you for pointing me in the right direction - much apreciated!

Ben
"George Nicolae" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> odbc_close($link) is a void function. didn't return anything. look in
> documentation at odbc_close();
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> X-Playin - Professional Web Design
> www.x-playin.f2s.com
>
>
>
> "Ben" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello
> >
> > I've installed mysql and php on W2K with IIS5.0 and I'm having some
> trouble
> > closing my connection, which is established via odbc.
> >
> > I have been using the following php code to connect:
> >
> > $link = odbc_connect("forum", "ben", "dulwich")
> > or die("Could not connect");
> > print "Connected successfully";
> >
> >
> >
> > This connects successfully. I then execute my query, which returns a
> result.
> > All is fine so far.
> >
> > Unfortunately, when I come to close the connection, I have a problem:
> >
> > mysql_free_result ($result);
> >
> > print "Connection about to be closed";
> > // Closing connection
> > odbc_close($link)
> > or die ("connection not closed");
> > It always prints "connection not closed". Is this because the connection
> is
> > not closing, or simply that the "or die" option is not applicable for
the
> > statement "odbc_close()"? I've read the manual and been through
tutorials
> > etc but haven't found any conclusive answers on this, and I'd be
gratefull
> > for any help!
> >
> > Thanks very much in advance.
> >
> > Ben
> >
> >
>
>


--- End Message ---
--- Begin Message ---
you welcome.

--


Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Ben" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> George
>
> Thank you. I didn't understand the meaning of the "void" preceding the
> syntax in the statement. I should have looked this up, and have now. Thank
> you for pointing me in the right direction - much apreciated!
>
> Ben
> "George Nicolae" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > odbc_close($link) is a void function. didn't return anything. look in
> > documentation at odbc_close();
> >
> > --
> >
> >
> > Best regards,
> > George Nicolae
> > IT Manager
> > ___________________
> > X-Playin - Professional Web Design
> > www.x-playin.f2s.com
> >
> >
> >
> > "Ben" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hello
> > >
> > > I've installed mysql and php on W2K with IIS5.0 and I'm having some
> > trouble
> > > closing my connection, which is established via odbc.
> > >
> > > I have been using the following php code to connect:
> > >
> > > $link = odbc_connect("forum", "ben", "dulwich")
> > > or die("Could not connect");
> > > print "Connected successfully";
> > >
> > >
> > >
> > > This connects successfully. I then execute my query, which returns a
> > result.
> > > All is fine so far.
> > >
> > > Unfortunately, when I come to close the connection, I have a problem:
> > >
> > > mysql_free_result ($result);
> > >
> > > print "Connection about to be closed";
> > > // Closing connection
> > > odbc_close($link)
> > > or die ("connection not closed");
> > > It always prints "connection not closed". Is this because the
connection
> > is
> > > not closing, or simply that the "or die" option is not applicable for
> the
> > > statement "odbc_close()"? I've read the manual and been through
> tutorials
> > > etc but haven't found any conclusive answers on this, and I'd be
> gratefull
> > > for any help!
> > >
> > > Thanks very much in advance.
> > >
> > > Ben
> > >
> > >
> >
> >
>
>


--- End Message ---
--- Begin Message ---
Little off topic but...
I'm trying to customize error response (Apache style), so if the server gets
a 404 error (File not found) it will redirect to, for example, a got404.php
file script.
I changed the httpd.conf of Apache adding the line: ErrorDocument 404
/got404.php
But this doesn't seem to work.
My config: php4.1.0 - win98 Apache1.3. as CGI - Maybe that the problem - the
errordocument redirect may work only in the module??
Help appreciated
A+
Alain

--- End Message ---
--- Begin Message ---
Dear all
I had create the Login Page for the User to login before they can open the
WebPage. What i want to do is to:

When the User had type the Username into the Inputbox, and click the submit
button, this Username will be memorized, and pass to other PHP Page.Then
when he go to some page which need to select data from MYSQL, it will read
the Username which passed from the Login Form and select the only Record to
him!

I heard about the Session, but how i can pass the Username to other page
using Session??

Pls Help!

Thx a lot !
jack
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
>From: Jack

>Dear all
>I had create the Login Page for the User to login before they 
>can open the WebPage. What i want to do is to:
>
>When the User had type the Username into the Inputbox, and click the submit
>button, this Username will be memorized, and pass to other PHP Page.Then
>when he go to some page which need to select data from MYSQL, it will read
>the Username which passed from the Login Form and select the only Record to
>him!
>
>I heard about the Session, but how i can pass the Username to 
>other page using Session??

To beging with, why not give the manual a try?
--- End Message ---
--- Begin Message ---
you can use cookies.
setcookie ("user", $value);
setcookie ("psw", $value);
//look in manual for more details

u can set the cookie only the login and psw are corect
and then in "some page" you do the follow:
if (isset($user)&&isset($psw)) .../*verify again if are corect and "select
the only Record to him!"





Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Jack" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dear all
> I had create the Login Page for the User to login before they can open the
> WebPage. What i want to do is to:
>
> When the User had type the Username into the Inputbox, and click the
submit
> button, this Username will be memorized, and pass to other PHP Page.Then
> when he go to some page which need to select data from MYSQL, it will read
> the Username which passed from the Login Form and select the only Record
to
> him!
>
> I heard about the Session, but how i can pass the Username to other page
> using Session??
>
> Pls Help!
>
> Thx a lot !
> jack
> [EMAIL PROTECTED]
>
>


--- End Message ---
--- Begin Message ---
HAHAHAHA...ok... sorry. First off.. RTFM guyz. Because it's obivious the 
manual hasn't been read I'm not going into great detail, but look up these 
functions I mention.

Secondly. No need. Sessions automatically take care of cookies.

session_register("thevariable");

tada.. every page will have a variable: $thevariable and it's value will be 
constant until

session_destroy();

http://www.php.net/manual/en/ref.session.php

>
>you can use cookies.
>setcookie ("user", $value);
>setcookie ("psw", $value);
>//look in manual for more details
>
>u can set the cookie only the login and psw are corect
>and then in "some page" you do the follow:
>if (isset($user)&&isset($psw)) .../*verify again if are corect and "select
>the only Record to him!"
>
>
>
>
>
>Best regards,
>George Nicolae
>IT Manager
>___________________
>X-Playin - Professional Web Design
>www.x-playin.f2s.com
>
>
>
>"Jack" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Dear all
> > I had create the Login Page for the User to login before they can open 
>the
> > WebPage. What i want to do is to:
> >
> > When the User had type the Username into the Inputbox, and click the
>submit
> > button, this Username will be memorized, and pass to other PHP Page.Then
> > when he go to some page which need to select data from MYSQL, it will 
>read
> > the Username which passed from the Login Form and select the only Record
>to
> > him!
> >
> > I heard about the Session, but how i can pass the Username to other page
> > using Session??
> >
> > Pls Help!
> >
> > Thx a lot !
> > jack
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>--
>PHP Windows 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]
>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

--- End Message ---
--- Begin Message ---
this is also a very good idea. I will use it in the future.

--


Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Pac Mon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> HAHAHAHA...ok... sorry. First off.. RTFM guyz. Because it's obivious the
> manual hasn't been read I'm not going into great detail, but look up these
> functions I mention.
>
> Secondly. No need. Sessions automatically take care of cookies.
>
> session_register("thevariable");
>
> tada.. every page will have a variable: $thevariable and it's value will
be
> constant until
>
> session_destroy();
>
> http://www.php.net/manual/en/ref.session.php
>
> >
> >you can use cookies.
> >setcookie ("user", $value);
> >setcookie ("psw", $value);
> >//look in manual for more details
> >
> >u can set the cookie only the login and psw are corect
> >and then in "some page" you do the follow:
> >if (isset($user)&&isset($psw)) .../*verify again if are corect and
"select
> >the only Record to him!"
> >
> >
> >
> >
> >
> >Best regards,
> >George Nicolae
> >IT Manager
> >___________________
> >X-Playin - Professional Web Design
> >www.x-playin.f2s.com
> >
> >
> >
> >"Jack" <[EMAIL PROTECTED]> wrote in message
> >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Dear all
> > > I had create the Login Page for the User to login before they can open
> >the
> > > WebPage. What i want to do is to:
> > >
> > > When the User had type the Username into the Inputbox, and click the
> >submit
> > > button, this Username will be memorized, and pass to other PHP
Page.Then
> > > when he go to some page which need to select data from MYSQL, it will
> >read
> > > the Username which passed from the Login Form and select the only
Record
> >to
> > > him!
> > >
> > > I heard about the Session, but how i can pass the Username to other
page
> > > using Session??
> > >
> > > Pls Help!
> > >
> > > Thx a lot !
> > > jack
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >--
> >PHP Windows 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]
> >
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>


--- End Message ---
--- Begin Message ---
--- Received from FPU.WHITES1 799 3703                    20-12-01 09:33

  -> [EMAIL PROTECTED]

PHPCoder is pretty good.

> ps. also suggest the download address
Yes master

http://www.phpide.de/download.php4

------------------------------------------------------------------------

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Wed, 19 Dec 2001 20:49:22 +0200
Subject: [PHP-WIN] PHP IDE

can anyone suggest me a good php ide? I tried some freeware but a need a
real good one.
ps. also suggest the download address

--


Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com






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

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Financial Services Authority.
--- End Message ---
--- Begin Message ---
I am using Sessions on a website.  When a user hits the back button they get
an error message "Page has Expired".  Is there a way preventing this.  I can
currently using 4.0.6 if that helps at all.

Ryan Conover
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pitt.edu/~rscst25/


--- End Message ---

Reply via email to