php-windows Digest 11 Jan 2008 18:25:29 -0000 Issue 3396
Topics (messages 28705 through 28712):
Re: Is there a hack or similar to get $_SERVER['PHP_SELF'] working under IIS?
28705 by: Zephaniah Leviticus
Re: [IGNORE] Is there a hack or similar to get $_SERVER['PHP_SELF'] working
under IIS?
28706 by: Greg Cocks
Advantage SQl 8.1 dll not registering
28707 by: Zephaniah Leviticus
Ok, next step/question
28708 by: Jacob Kruger
28709 by: James Crow
28710 by: Jacob Kruger
28711 by: Jacob Kruger
28712 by: James Crow
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 ---
What happens when you try print_r($_SERVER) ?
What about when you run phpinfo() ?
Are you using ISAPI mode for php install on windows?
-----Original Message-----
From: Greg Cocks [mailto:[EMAIL PROTECTED]
Sent: Friday, January 11, 2008 1:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Is there a hack or similar to get $_SERVER['PHP_SELF']
working under IIS?
Hello,
*Is there a hack (?), a workaround or some alternative to get
$_SERVER['PHP_SELF'] working under IIS?*
I am new(ish) to PHP, IIS and web pages as a whole (!)
I was hoping to get the 'breadcrumbs' feature working...
And for a variety of reasons I am using IIS (currently v5.1 on some test
hardware running XP Pro, soon to be 6.x (?) on Server '03 when the client
gets me the dosh...)
Using PHP 5.2.5, if that matters...
Note that I am still using this stuff in a 'black box'-ish way, so feel free
to talk down to me! GRIN
For instance, I tried to use the approach at http://tinyurl.com/2zb4ck
before I gained enough knowledge to realise this solves a different (but
similar) - it seems - problem...
Thanks in advance...
----------
Regards,
GREG COCKS
GIS Analyst V
gcocks |at| stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
TOO QUICK ON THE EMAIL - PLEASE IGNORE - APOLOGIES
(cheers Zeph)
Cheers:
GREG COCKS
Gcocks |at| stoller.com
--------------------------------
-----Original Message-----
From: Greg Cocks
Sent: Thursday, January 10, 2008 11:04 PM
To: '[EMAIL PROTECTED]'
Subject: Is there a hack or similar to get $_SERVER['PHP_SELF'] working under
IIS?
Hello,
*Is there a hack (?), a workaround or some alternative to get
$_SERVER['PHP_SELF'] working under IIS?*
I am new(ish) to PHP, IIS and web pages as a whole (!)
I was hoping to get the 'breadcrumbs' feature working...
And for a variety of reasons I am using IIS (currently v5.1 on some test
hardware running XP Pro, soon to be 6.x (?) on Server '03 when the client gets
me the dosh...)
Using PHP 5.2.5, if that matters...
Note that I am still using this stuff in a 'black box'-ish way, so feel free to
talk down to me! GRIN
For instance, I tried to use the approach at http://tinyurl.com/2zb4ck before I
gained enough knowledge to realise this solves a different (but similar) - it
seems - problem...
Thanks in advance...
----------
Regards,
GREG COCKS
GIS Analyst V
gcocks |at| stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--- End Message ---
--- Begin Message ---
Has anyone had success connecting to an Advantage SQL 8.1 server using PHP
on a windows machine? I downloaded the php extensions from ianywhere and
they will not register.. gives cannot load invalid module. Need assistance
getting it set up properly if possible.
Thanks,
Z
--- End Message ---
--- Begin Message ---
Now got that main page redirecting/spitting out the relevant JS code to get
it to move on to the next page, but there I was trying to ascertain if the
session variable/array element had actually been set, and, for whatever
reason, no PHP code seems to be executing in main.php.
Below is what I currently have inbetween the <body></body> tags:
<? php
echo "testing...";
?>
Before I was trying to do something along the lines of:
echo $_SESSION["admin"];
And that also did nothing.
I also tried changing the static HTML content to see if maybe the output was
just being cached or something, but that renders correctly.
Any ideas? (am I just not 'trying' correctly or something)
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
--- End Message ---
--- Begin Message ---
Jacob,
You must issue a session_start() prior to outputting any code to the
browser for sessions to work. There are tons of different ways to
configure things, but session_start() as the first thing in the script
should get you started. Here is a basic example:
index.php:
<?php
session_start();
$_SESSION['test_me'] = 'My test $_SESSION variable'; // stores a value
in the $_SESSION array
?>
<html><head>
<meta http-equiv="refresh" content="0;url=page2.php">
</head></html>
################## End of index.php ##################
page2.php:
<?php
session_start()
?>
<html><head><title>Page 2</title></head><body>
<?php
echo $_SESSION['test_me'];
?>
</body></html>
################# End of page2.php #######################
The index.php page simply stores a value in the $_SESSION super global
array and then immediately redirects to page2.php. page2.php retrieves
the value stored by index.php and displays it as the content of the web
page.
This code is all from memory so it might have a bug, but it is how I got
started working with session support in PHP.
Thanks,
James
On Fri, 2008-01-11 at 12:26 +0200, Jacob Kruger wrote:
> Now got that main page redirecting/spitting out the relevant JS code to get
> it to move on to the next page, but there I was trying to ascertain if the
> session variable/array element had actually been set, and, for whatever
> reason, no PHP code seems to be executing in main.php.
>
> Below is what I currently have inbetween the <body></body> tags:
>
> <? php
> echo "testing...";
> ?>
>
> Before I was trying to do something along the lines of:
> echo $_SESSION["admin"];
>
> And that also did nothing.
>
> I also tried changing the static HTML content to see if maybe the output was
> just being cached or something, but that renders correctly.
>
> Any ideas? (am I just not 'trying' correctly or something)
>
> Stay well
>
> Jacob Kruger
> Blind Biker
> Skype: BlindZA
> '...Fate had broken his body, but not his spirit...'
>
--- End Message ---
--- Begin Message ---
Already got that one on the very first line of the initial (index.php) page,
and I am assigning an array element in that first page, which seems to work
fine.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
----- Original Message -----
From: "James Crow" <
[EMAIL PROTECTED]>
To: "Jacob Kruger" <
[EMAIL PROTECTED]>
Cc: <
[EMAIL PROTECTED]>
Sent: Friday, January 11, 2008 3:42 PM
Subject: Re: [PHP-WIN] Ok, next step/question
Jacob,
You must issue a session_start() prior to outputting any code to the
browser for sessions to work. There are tons of different ways to
configure things, but session_start() as the first thing in the script
should get you started. Here is a basic example:
index.php:
<?php
session_start();
$_SESSION['test_me'] = 'My test $_SESSION variable'; // stores a value
in the $_SESSION array
?>
<html><head>
<meta http-equiv="refresh" content="0;url=page2.php">
</head></html>
################## End of index.php ##################
page2.php:
<?php
session_start()
?>
<html><head><title>Page 2</title></head><body>
<?php
echo $_SESSION['test_me'];
?>
</body></html>
################# End of page2.php #######################
The index.php page simply stores a value in the $_SESSION super global
array and then immediately redirects to page2.php. page2.php retrieves
the value stored by index.php and displays it as the content of the web
page.
This code is all from memory so it might have a bug, but it is how I got
started working with session support in PHP.
Thanks,
James
On Fri, 2008-01-11 at 12:26 +0200, Jacob Kruger wrote:
Now got that main page redirecting/spitting out the relevant JS code to
get
it to move on to the next page, but there I was trying to ascertain if
the
session variable/array element had actually been set, and, for whatever
reason, no PHP code seems to be executing in main.php.
Below is what I currently have inbetween the <body></body> tags:
<? php
echo "testing...";
?>
Before I was trying to do something along the lines of:
echo $_SESSION["admin"];
And that also did nothing.
I also tried changing the static HTML content to see if maybe the output
was
just being cached or something, but that renders correctly.
Any ideas? (am I just not 'trying' correctly or something)
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
--- End Message ---
--- Begin Message ---
Ok. Just realised that you might have meant that I need that
session_start(); statement on the first line of every page?
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
----- Original Message -----
From: "Jacob Kruger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 11, 2008 3:52 PM
Subject: Re: [PHP-WIN] Ok, next step/question
Already got that one on the very first line of the initial (index.php)
page,
and I am assigning an array element in that first page, which seems to
work
fine.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
----- Original Message -----
From: "James Crow" <
[EMAIL PROTECTED]>
To: "Jacob Kruger" <
[EMAIL PROTECTED]>
Cc: <
[EMAIL PROTECTED]>
Sent: Friday, January 11, 2008 3:42 PM
Subject: Re: [PHP-WIN] Ok, next step/question
Jacob,
You must issue a session_start() prior to outputting any code to the
browser for sessions to work. There are tons of different ways to
configure things, but session_start() as the first thing in the script
should get you started. Here is a basic example:
index.php:
<?php
session_start();
$_SESSION['test_me'] = 'My test $_SESSION variable'; // stores a value
in the $_SESSION array
?>
<html><head>
<meta http-equiv="refresh" content="0;url=page2.php">
</head></html>
################## End of index.php ##################
page2.php:
<?php
session_start()
?>
<html><head><title>Page 2</title></head><body>
<?php
echo $_SESSION['test_me'];
?>
</body></html>
################# End of page2.php #######################
The index.php page simply stores a value in the $_SESSION super global
array and then immediately redirects to page2.php. page2.php retrieves
the value stored by index.php and displays it as the content of the web
page.
This code is all from memory so it might have a bug, but it is how I got
started working with session support in PHP.
Thanks,
James
On Fri, 2008-01-11 at 12:26 +0200, Jacob Kruger wrote:
Now got that main page redirecting/spitting out the relevant JS code to
get
it to move on to the next page, but there I was trying to ascertain if
the
session variable/array element had actually been set, and, for whatever
reason, no PHP code seems to be executing in main.php.
Below is what I currently have inbetween the <body></body> tags:
<? php
echo "testing...";
?>
Before I was trying to do something along the lines of:
echo $_SESSION["admin"];
And that also did nothing.
I also tried changing the static HTML content to see if maybe the output
was
just being cached or something, but that renders correctly.
Any ideas? (am I just not 'trying' correctly or something)
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
That is correct. The session_start() command must appear in each script
that needs to access the $_SESSION variable.
Thanks,
James
On Fri, 2008-01-11 at 15:57 +0200, Jacob Kruger wrote:
> Ok. Just realised that you might have meant that I need that
> session_start(); statement on the first line of every page?
>
> Stay well
>
> Jacob Kruger
> Blind Biker
> Skype: BlindZA
> '...Fate had broken his body, but not his spirit...'
>
> ----- Original Message -----
> From: "Jacob Kruger" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 11, 2008 3:52 PM
> Subject: Re: [PHP-WIN] Ok, next step/question
>
>
> > Already got that one on the very first line of the initial (index.php)
> > page,
> > and I am assigning an array element in that first page, which seems to
> > work
> > fine.
> >
> > Stay well
> >
> > Jacob Kruger
> > Blind Biker
> > Skype: BlindZA
> > '...Fate had broken his body, but not his spirit...'
> >
> > ----- Original Message -----
> > From: "James Crow" <
> > [EMAIL PROTECTED]>
> > To: "Jacob Kruger" <
> > [EMAIL PROTECTED]>
> > Cc: <
> > [EMAIL PROTECTED]>
> > Sent: Friday, January 11, 2008 3:42 PM
> > Subject: Re: [PHP-WIN] Ok, next step/question
> >
> >> Jacob,
> >>
> >> You must issue a session_start() prior to outputting any code to the
> >> browser for sessions to work. There are tons of different ways to
> >> configure things, but session_start() as the first thing in the script
> >> should get you started. Here is a basic example:
> >>
> >> index.php:
> >> <?php
> >> session_start();
> >> $_SESSION['test_me'] = 'My test $_SESSION variable'; // stores a value
> >> in the $_SESSION array
> >> ?>
> >> <html><head>
> >> <meta http-equiv="refresh" content="0;url=page2.php">
> >> </head></html>
> >> ################## End of index.php ##################
> >>
> >>
> >> page2.php:
> >> <?php
> >> session_start()
> >> ?>
> >> <html><head><title>Page 2</title></head><body>
> >> <?php
> >> echo $_SESSION['test_me'];
> >> ?>
> >> </body></html>
> >> ################# End of page2.php #######################
> >>
> >> The index.php page simply stores a value in the $_SESSION super global
> >> array and then immediately redirects to page2.php. page2.php retrieves
> >> the value stored by index.php and displays it as the content of the web
> >> page.
> >>
> >> This code is all from memory so it might have a bug, but it is how I got
> >> started working with session support in PHP.
> >>
> >> Thanks,
> >> James
> >>
> >>
> >> On Fri, 2008-01-11 at 12:26 +0200, Jacob Kruger wrote:
> >>> Now got that main page redirecting/spitting out the relevant JS code to
> >>> get
> >>> it to move on to the next page, but there I was trying to ascertain if
> >>> the
> >>> session variable/array element had actually been set, and, for whatever
> >>> reason, no PHP code seems to be executing in main.php.
> >>>
> >>> Below is what I currently have inbetween the <body></body> tags:
> >>>
> >>> <? php
> >>> echo "testing...";
> >>> ?>
> >>>
> >>> Before I was trying to do something along the lines of:
> >>> echo $_SESSION["admin"];
> >>>
> >>> And that also did nothing.
> >>>
> >>> I also tried changing the static HTML content to see if maybe the output
> >>> was
> >>> just being cached or something, but that renders correctly.
> >>>
> >>> Any ideas? (am I just not 'trying' correctly or something)
> >>>
> >>> Stay well
> >>>
> >>> Jacob Kruger
> >>> Blind Biker
> >>> Skype: BlindZA
> >>> '...Fate had broken his body, but not his spirit...'
> >>>
> >>
> >>
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--- End Message ---