php-windows Digest 14 Dec 2001 13:48:49 -0000 Issue 900
Topics (messages 10884 through 10905):
Re: Magic Quotes
10884 by: Michael Sims
10885 by: Michael Sims
10905 by: Asendorf, John
Re: IIS Lockdown Tool
10886 by: Todd Williamsen
10888 by: Michael Sims
10904 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK
What to do, what to do!
10887 by: Todd Williamsen
10889 by: Michael Sims
10890 by: Todd Williamsen
10891 by: Todd Williamsen
10892 by: Todd Williamsen
10893 by: Michael Sims
10894 by: Todd Williamsen
10895 by: Rygars
What variables does a <select name='what' mutilple> tag submit?
10896 by: Cliff
10898 by: Michael Reynolds
10899 by: Christian Sandfeld
10900 by: Martin Lindhe
Problem with a COM object.
10897 by: Michael Reynolds
Re:Re: [PHP-WIN] Has anyone gotten session_destroy() to actually work on Windows?
10901 by: Michel Laine
Re: Mysql connection
10902 by: Michel Laine
Problem with LDAP search.
10903 by: Ganishev Alexander
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 ---
At 10:57 AM 12/13/2001 -0500, Asendorf, John wrote:
>OK, maybe I'm just off my rocker or have something set incorrectly or
>something, but...
>
>What's the deal with magic quotes?
>
>you turn it on, and it automatically performs the addslashes for data being
>entered into databases, right? But it doesn't automatically run
>stripslashes when you retreive the data. Is this accurate or am I doing
>something wrong?
It is accurate. There is no need to stripslashes for data coming back out
of the database, normally. The slashes are used to escape special
characters (such as the single quote) in query strings, but those slashes
don't actually go inside the database. In other words if you have:
INSERT INTO table VALUES ('Mike\'s query')
...the data is entered as:
Mike's query
The slash is never actually put inside. So when you retrieve the data, it
comes out as "Mike's query".
Now this is all true assuming you don't have "magic_quotes_runtime" turned
on in your PHP.INI. While "magic_quotes_gpc" automatically escapes data
that is a result of a GET, POST, or cookies, "magic_quotes_runtime" escapes
ANY external data, INCLUDING data you get from databases. In that case,
you would need to manually use stripslashes() on data that you want to display.
Another possibility is that you have a program designed for a
"magic_quotes_gpc" setting of 0, and you have it set to 1. The program is
manually escaping the strings already, and then the server is doing it
again a SECOND time. In such an environment you'd end up getting something
like:
INSERT INTO table VALUES ('Mike\\\'s query')
...and the data WOULD be entered as:
Mike\'s query
This is just my opinion only, but it was exactly issues like these that
caused me to turn OFF magic_quotes_gpc. In my opinion this setting causes
more headaches than it's worth. I wish that php.ini-dist didn't have it
enabled by default. I suppose that's what I get for not using
php.ini-optimized.
The problem with shutting this setting off is that some scripts require
it. The biggest example of this is phpMyAdmin. In this case what I do is
create an .htaccess file that sets the option selectively for certain
directories. The contents are like:
php_flag magic_quotes_gpc on
This requires that your AllowOverride directive to be set to "Options" in
your httpd.conf.
I wouldn't know how to acheive this same per-directory configuration on a
machine running IIS. Maybe an IIS/PHP guru reading this can chime in.
--- End Message ---
--- Begin Message ---
At 10:57 AM 12/13/2001 -0500, Asendorf, John wrote:
>OK, maybe I'm just off my rocker or have something set incorrectly or
>something, but...
>
>What's the deal with magic quotes?
Oh yeah, here is a nice post on PHPBuilder that explains this all very well:
http://www.phpbuilder.com/forum/archives/5/2000/10/1/2467
--- End Message ---
--- Begin Message ---
Thanks... I think that's my problem (having BOTH gpc and runtime turned
on)....
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Michael Sims [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 13, 2001 8:46 PM
> To: Asendorf, John; Php-Windows (E-mail)
> Subject: Re: [PHP-WIN] Magic Quotes
>
>
> At 10:57 AM 12/13/2001 -0500, Asendorf, John wrote:
> >OK, maybe I'm just off my rocker or have something set incorrectly or
> >something, but...
> >
> >What's the deal with magic quotes?
>
> Oh yeah, here is a nice post on PHPBuilder that explains this
> all very well:
>
> http://www.phpbuilder.com/forum/archives/5/2000/10/1/2467
>
--- End Message ---
--- Begin Message ---
here is a another great IIS lockdown tool
http://www.apache.org
"George Pitcher" <[EMAIL PROTECTED]> wrote in message
00fc01c183ad$866d5ea0$[EMAIL PROTECTED]">news:00fc01c183ad$866d5ea0$[EMAIL PROTECTED]...
> Warning: check that your non-'*.html' extension pages work after you've
done
> this. We had to de-activate IIS locktool to get our sites to work at all.
>
> George
> ----- Original Message -----
> From: "Robin Bolton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 13, 2001 7:13 AM
> Subject: [PHP-WIN] IIS Lockdown Tool
>
>
> > While browsing www.microsoft.com I stumbled across something that some
> > of you may have a use for:
> >
> > http://www.microsoft.com/technet/security/tools/locktool.asp
> >
> >
> > Enjoy
> >
> >
> > --
> > 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]
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
--- End Message ---
--- Begin Message ---
At 07:51 PM 12/13/2001 -0600, Todd Williamsen wrote:
>here is a another great IIS lockdown tool
>
>http://www.apache.org
LOL!
Good one. :)
--- End Message ---
--- Begin Message ---
--- Received from FPU.WHITES1 799 3703 14-12-01 12:40
-> [EMAIL PROTECTED]
-> [EMAIL PROTECTED]
8-)))
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 13 Dec 2001 19:51:36 -0600
Subject: Re: [PHP-WIN] IIS Lockdown Tool
here is a another great IIS lockdown tool
http://www.apache.org
"George Pitcher" <[EMAIL PROTECTED]> wrote in message
00fc01c183ad$866d5ea0$[EMAIL PROTECTED]">news:00fc01c183ad$866d5ea0$[EMAIL PROTECTED]...
> Warning: check that your non-'*.html' extension pages work after you've
done
> this. We had to de-activate IIS locktool to get our sites to work at all.
> George
> ----- Original Message -----
> From: "Robin Bolton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 13, 2001 7:13 AM
> Subject: [PHP-WIN] IIS Lockdown Tool
> > While browsing www.microsoft.com I stumbled across something that some
> > of you may have a use for:
> >
> > http://www.microsoft.com/technet/security/tools/locktool.asp
> >
> >
> > Enjoy
> >
> >
> > --
> > 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]
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.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 one of my sites does an online league for Madden football game.
The Story of the problem:
When a user reports a game that is played, the winner reports the game by
choosing his name from a drop down selection box and also choses the loser
from the selection box, he enters his password and the game is reported.
The Problem
The problem is that abusers of the site will report games that they have not
played and screws up the stats of the players that he supposedly played
against.
Now, the ultimate solution would be to have a way where when the winner
reports the game it should also be authenticated by the loser as well. So
you would have two people reporting in order for the game to be actually
recorded in the database.
I am asking You All Knowing Ones what would be a solution to this and how
would I implement it?
here is the site
http://madden.williamsen.net
I disabled the report feature because of the abuse, now they have to go
through me and I have to manually do it
--- End Message ---
--- Begin Message ---
At 08:02 PM 12/13/2001 -0600, Todd Williamsen wrote:
[...]
>The problem is that abusers of the site will report games that they have not
>played and screws up the stats of the players that he supposedly played
>against.
>
>Now, the ultimate solution would be to have a way where when the winner
>reports the game it should also be authenticated by the loser as well. So
>you would have two people reporting in order for the game to be actually
>recorded in the database.
>
>I am asking You All Knowing Ones what would be a solution to this and how
>would I implement it?
[...]
This is probably what I'd do. Create a "pending" table that stores
reported games that have not been verified. When a user reports a game,
they choose another user as the loser and then a record is written into the
pending table, and an email is sent to the loser informing him that he has
a pending game to verify. Create an interface that allows people to view
games pending verification. From there a user that was reported as the
loser can verify a pending game by entering their password. Once this is
done, the pending item is moved into the verified games.
Setup a timed job to notify you of pending games that are older than a
certain number of days, so you can see what the holdup is and delete them
out if necessary.
--- End Message ---
--- Begin Message ---
I thought about that, but the problem is, what happens when the time expires
and the loser doesn't report?
"Michael Sims" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 08:02 PM 12/13/2001 -0600, Todd Williamsen wrote:
> [...]
> >The problem is that abusers of the site will report games that they have
not
> >played and screws up the stats of the players that he supposedly played
> >against.
> >
> >Now, the ultimate solution would be to have a way where when the winner
> >reports the game it should also be authenticated by the loser as well.
So
> >you would have two people reporting in order for the game to be actually
> >recorded in the database.
> >
> >I am asking You All Knowing Ones what would be a solution to this and how
> >would I implement it?
> [...]
>
> This is probably what I'd do. Create a "pending" table that stores
> reported games that have not been verified. When a user reports a game,
> they choose another user as the loser and then a record is written into
the
> pending table, and an email is sent to the loser informing him that he has
> a pending game to verify. Create an interface that allows people to view
> games pending verification. From there a user that was reported as the
> loser can verify a pending game by entering their password. Once this is
> done, the pending item is moved into the verified games.
>
> Setup a timed job to notify you of pending games that are older than a
> certain number of days, so you can see what the holdup is and delete them
> out if necessary.
>
--- End Message ---
--- Begin Message ---
Actually I have no idea where to start on something like this... This is
going to be challenge!
"Todd Williamsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I thought about that, but the problem is, what happens when the time
expires
> and the loser doesn't report?
>
>
> "Michael Sims" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > At 08:02 PM 12/13/2001 -0600, Todd Williamsen wrote:
> > [...]
> > >The problem is that abusers of the site will report games that they
have
> not
> > >played and screws up the stats of the players that he supposedly played
> > >against.
> > >
> > >Now, the ultimate solution would be to have a way where when the winner
> > >reports the game it should also be authenticated by the loser as well.
> So
> > >you would have two people reporting in order for the game to be
actually
> > >recorded in the database.
> > >
> > >I am asking You All Knowing Ones what would be a solution to this and
how
> > >would I implement it?
> > [...]
> >
> > This is probably what I'd do. Create a "pending" table that stores
> > reported games that have not been verified. When a user reports a game,
> > they choose another user as the loser and then a record is written into
> the
> > pending table, and an email is sent to the loser informing him that he
has
> > a pending game to verify. Create an interface that allows people to
view
> > games pending verification. From there a user that was reported as the
> > loser can verify a pending game by entering their password. Once this
is
> > done, the pending item is moved into the verified games.
> >
> > Setup a timed job to notify you of pending games that are older than a
> > certain number of days, so you can see what the holdup is and delete
them
> > out if necessary.
> >
>
>
--- End Message ---
--- Begin Message ---
Since there is a ranking system, and if the game doesn't get reported by the
loser, should it be that the winner automatically gets the win?
--- End Message ---
--- Begin Message ---
At 08:31 PM 12/13/2001 -0600, Todd Williamsen wrote:
>I thought about that, but the problem is, what happens when the time expires
>and the loser doesn't report?
and
At 08:55 PM 12/13/2001 -0600, Todd Williamsen wrote:
>Since there is a ranking system, and if the game doesn't get reported by the
>loser, should it be that the winner automatically gets the win?
That's really a design/functionality question, not a PHP one, but
nevertheless I see two ways to deal with this. If a game is still pending
after a predetermined amount of time, either:
(1) Manually intervene by contacting both the winner and loser and see what
the hold-up is.
or
(2) Establish a rule that if a loser fails to either contest a reported
game or verify it within the required time frame it will automatically be
verified.
Which way you go really depends on how many games are reported and how much
free time you have. Option 1 puts the responsibility on your shoulders and
option 2 puts it on the shoulders of your players. Just depends on what
philosophy you take when designing the system.
Read on...
At 08:39 PM 12/13/2001 -0600, you wrote:
>Actually I have no idea where to start on something like this... This is
>going to be challenge!
But that's what makes it fun. :)
It sounds to me that you already had some code and functionality in place
before you took it down due to the abuse problems. If this is the case
then it shouldn't be terribly difficult to modify/expand it to include the
functionality we have been discussing. If you have specific questions or
have some code to post I'll throw around my ideas, for whatever they're
worth (I'm far from an expert).
--- End Message ---
--- Begin Message ---
Damn, this is definitely uncharted territory, I just learned PHP about a
month ago
Thank you,
Todd Williamsen, MCSE
home: 847.265.4692
Cell: 847.867.9427
-----Original Message-----
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 9:18 PM
To: Todd Williamsen; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] What to do, what to do!
At 08:31 PM 12/13/2001 -0600, Todd Williamsen wrote:
>I thought about that, but the problem is, what happens when the time
>expires and the loser doesn't report?
and
At 08:55 PM 12/13/2001 -0600, Todd Williamsen wrote:
>Since there is a ranking system, and if the game doesn't get reported
>by the loser, should it be that the winner automatically gets the win?
That's really a design/functionality question, not a PHP one, but
nevertheless I see two ways to deal with this. If a game is still
pending
after a predetermined amount of time, either:
(1) Manually intervene by contacting both the winner and loser and see
what
the hold-up is.
or
(2) Establish a rule that if a loser fails to either contest a reported
game or verify it within the required time frame it will automatically
be
verified.
Which way you go really depends on how many games are reported and how
much
free time you have. Option 1 puts the responsibility on your shoulders
and
option 2 puts it on the shoulders of your players. Just depends on what
philosophy you take when designing the system.
Read on...
At 08:39 PM 12/13/2001 -0600, you wrote:
>Actually I have no idea where to start on something like this... This
>is going to be challenge!
But that's what makes it fun. :)
It sounds to me that you already had some code and functionality in
place
before you took it down due to the abuse problems. If this is the case
then it shouldn't be terribly difficult to modify/expand it to include
the
functionality we have been discussing. If you have specific questions
or
have some code to post I'll throw around my ideas, for whatever they're
worth (I'm far from an expert).
--- End Message ---
--- Begin Message ---
A system like you want is implemented at www.clanbase.com, a site that
records the games played on net, games like Counter-Strike or Quake3. So, I
will tell you in a short note how the sistem works there:
1. A clan/team/group/whatever (named challenger) challenges another
clan (named challenged)
2. "Challenger" edits the properties of the game
3. The game is moved to both "challenged's" pending table and
"challenger's" pending table
4. "Challenged" reviews the game and it has several options: accept,
decline, modify
If accept go to 5
If decline go to 10
If modify "Challenger" becomes "Challenged" and vice-versa then
go to 2.
5. "Challenged" accepted the challenge from "Challenger" and we have a
game ready to be played
6. The game is played and its ready to receive the results
7. The parties enter the result
If they are the same go to 9
If they are different go to 8
If no one entered a result wait then go to 7.
If only one clan entered a result wait 4 days for the other team
If 4 days have passed
If the other team entered no results then they lose
If the other team entered a result then go to 7.
8. Match conflict settled down by:
Both parties: go to 7.
Supervisor: go to 9
9. Game is validated, the result is saved and the rank are tuned
10. Clear the pending tables
11. Stop
It is a good system and it is working (I play there since february 2000).
Rygars
----- Original Message -----
From: "Todd Williamsen" <[EMAIL PROTECTED]>
To: "'Michael Sims'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 5:27 AM
Subject: RE: [PHP-WIN] What to do, what to do!
> Damn, this is definitely uncharted territory, I just learned PHP about a
> month ago
>
> Thank you,
>
> Todd Williamsen, MCSE
> home: 847.265.4692
> Cell: 847.867.9427
>
>
> -----Original Message-----
> From: Michael Sims [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 13, 2001 9:18 PM
> To: Todd Williamsen; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] What to do, what to do!
>
>
> At 08:31 PM 12/13/2001 -0600, Todd Williamsen wrote:
> >I thought about that, but the problem is, what happens when the time
> >expires and the loser doesn't report?
>
> and
>
> At 08:55 PM 12/13/2001 -0600, Todd Williamsen wrote:
> >Since there is a ranking system, and if the game doesn't get reported
> >by the loser, should it be that the winner automatically gets the win?
>
> That's really a design/functionality question, not a PHP one, but
> nevertheless I see two ways to deal with this. If a game is still
> pending
> after a predetermined amount of time, either:
>
> (1) Manually intervene by contacting both the winner and loser and see
> what
> the hold-up is.
>
> or
>
> (2) Establish a rule that if a loser fails to either contest a reported
> game or verify it within the required time frame it will automatically
> be
> verified.
>
> Which way you go really depends on how many games are reported and how
> much
> free time you have. Option 1 puts the responsibility on your shoulders
> and
> option 2 puts it on the shoulders of your players. Just depends on what
>
> philosophy you take when designing the system.
>
> Read on...
>
> At 08:39 PM 12/13/2001 -0600, you wrote:
> >Actually I have no idea where to start on something like this... This
> >is going to be challenge!
>
> But that's what makes it fun. :)
>
> It sounds to me that you already had some code and functionality in
> place
> before you took it down due to the abuse problems. If this is the case
> then it shouldn't be terribly difficult to modify/expand it to include
> the
> functionality we have been discussing. If you have specific questions
> or
> have some code to post I'll throw around my ideas, for whatever they're
> worth (I'm far from an expert).
>
>
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
Hi,
I would like to ask, what variables are submitted from a form with say...
options 2 and 4 selected?
<select name='what' multiple size=4>
<option value='1'>1
<option value='2'>2
<option value='3'>3
<option value='4'>4
<option value='5'>5
</select>
Thank you very much in advance.
---------------------------------------------------
Koh Zi Han, Cliff
[EMAIL PROTECTED]
http://www.kohzh.f2s.com
--- End Message ---
--- Begin Message ---
--- Cliff <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to ask, what variables are submitted
> from a form with say...
> options 2 and 4 selected?
>
> <select name='what' multiple size=4>
> <option value='1'>1
> <option value='2'>2
> <option value='3'>3
> <option value='4'>4
> <option value='5'>5
> </select>
>
I am not 100% certain, but I believe that it would set
$what as an array, with $what[0] as '2', and $what[1]
as '4.'
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--- End Message ---
--- Begin Message ---
I second that...
-----Original Message-----
From: Michael Reynolds [mailto:[EMAIL PROTECTED]]
Sent: 14. december 2001 10:33
To: Cliff; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] What variables does a <select name='what'
mutilple> tag submit?
--- Cliff <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to ask, what variables are submitted
> from a form with say...
> options 2 and 4 selected?
>
> <select name='what' multiple size=4>
> <option value='1'>1
> <option value='2'>2
> <option value='3'>3
> <option value='4'>4
> <option value='5'>5
> </select>
>
I am not 100% certain, but I believe that it would set
$what as an array, with $what[0] as '2', and $what[1]
as '4.'
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.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]
--- End Message ---
--- Begin Message ---
> --- Cliff <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I would like to ask, what variables are submitted
> > from a form with say...
> > options 2 and 4 selected?
> >
> > <select name='what' multiple size=4>
> > <option value='1'>1
> > <option value='2'>2
> > <option value='3'>3
> > <option value='4'>4
> > <option value='5'>5
> > </select>
> >
> I am not 100% certain, but I believe that it would set
> $what as an array, with $what[0] as '2', and $what[1]
> as '4.'
submit and
print_r($_POST);
and you'll know
:-)
/Martin
--- End Message ---
--- Begin Message ---
I'm trying to open and use a COM connection, as
follows:
$com = new COM("WinampCOM.Application");
Seems this does not work in PHP, although it works in
many other applications. The module, and its source,
is available from:
http://www.adcock8.freeserve.co.uk/winamp.htm
Any assistance would be greatly appreciated.
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--- End Message ---
--- Begin Message ---
David Ayres wrote:
> Thanks Egil,
>
> But I've tried everything and can not get it to work. I also can't get it
Obviously not ;-)
...since you cannot get it to work you must have left out some poswsible
combination that will work - right?.
>
> to instantiate a session until I print the Session variables once to the
To instantiate a session you should only have to do a session_start() at the
beginning of a page.
To register a session variable you use the session_register('my_var') - after
your session_start() line.
To use registered session variables on a page you have to do a session_start()
before any variables can be used (i.e. on every page).
To end a session you first have to issue a start_session(), possible a cleanup
(as one prevoios poster suggested) of the variables and then a
session_destroy().
The session_start() line must be issued before any HTML output/echo/header line
in the code!.
>
> HTML Page, then the session finally works. It's really strange (I just wish
> it were as stable as .Net). Thanks for your feedback...
>
It's simple.
It should be simple.
this is the code that i am currently using on an dev-intranet-logout
(logout.php) page:
<?php
// Destroy the current session
$refpage = $HTTP_SERVER_VARS['HTTP_REFERER'];
session_start();
session_destroy();
?>
<center>
You have logged off the intranet.
<BR>
<a href="<?PHP echo "$refpage"; ?>">Go back</a>
</center>
As another poster put it: "works like a charm".
If you still have a problem making it work - is there any possibility that it is
caused by some PHP.INI settings?
+++
I'm a newbie myself - so don't flame me if anything in the above is false -
instead write a note to this discussion group and correct me.
I don't know a thing about .Net - but if you want it simple i believe that PHP
(still) is your right choice.
--
Michel Laine
--- End Message ---
--- Begin Message ---
"blind leading another blind" ;-)
Hi, i am a not-a-total-newbie myself - so here comes nothing...
See if you get the same result (errors) when you use the local computer's
real IP address or the localhost IP "127.0.0.1" instead of "localhost" in
your mysql_connect().
Don't ask me if this solve it, but try - it might help.
:-)´
"A. Bacon" wrote:
> Hi...I'm new to php and mysql so please bear with me. I am having a
> problem connecting to mysql through php. If I go into the mysql
> monitor, the username and password that I set up are present in the user
> db, and my scripts using $connection = mysql_connect("localhost",
> "myusername", "mypassword"); have sometimes connected me, but sometimes
> I get cutoff at the past with this:
>
> Warning: MySQL Connection Failed: Can't connect to MySQL server on
> 'localhost' (10061) in c:\program files\apache
> group\apache\htdocs\db_connect.php on line 3
>
> I'm using Meloni's "PHP - Fast and Easy" as my reference tool. I've got
> Apache1.3.12 running on win95.
>
> Any help would be greatly appreciated...Tonloc
--
Michel Laine
--- End Message ---
--- Begin Message ---
Hi,
I'm trying create search in LDAP-directory.
But when I define search criteria in cyrillic it doesn't work.
For example, search criteria "cn=*anything with cyrrilic symbols"
Could anybody help me?
--- End Message ---