473,320 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP on Windows missing features

I have a PHP program on a Windows Server website and the following do
not work:

$HTTP_SERVER_VARS["PHP_SELF"], $_SERVER, $_SESSION

etc. etc.

Can someone explain me why?

Is there something I can tell my web host to set in the php.ini file to
fix this?

All of this has always worked for me on Unix.

Dec 23 '05 #1
8 1325
ch************@post.harvard.edu wrote:
I have a PHP program on a Windows Server website and the following do
not work:

$HTTP_SERVER_VARS["PHP_SELF"], $_SERVER, $_SESSION

etc. etc.

Can someone explain me why?

Is there something I can tell my web host to set in the php.ini file to
fix this?

All of this has always worked for me on Unix.


It's probably because you're using IIS, not Apache. This can't be fixed
in the php.ini file. This information is supplied by Apache.

Solution? Get an Apache server.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Dec 23 '05 #2
So you are saying that there are no session variables in Windows IIS
PHP and I have to handle all this in hidden variables or something like
that? Too bad. Fortunately my ultimate target is a Linux server and I
guess I will just have to do my development there. Live and learn.

Dec 23 '05 #3
ch************@post.harvard.edu wrote:
So you are saying that there are no session variables in Windows IIS
PHP and I have to handle all this in hidden variables or something like
that? Too bad. Fortunately my ultimate target is a Linux server and I
guess I will just have to do my development there. Live and learn.


Yes, there are session variables on Windows servers. But you don't have
the same $_SERVER variables Apache does. And even to get those, you
*may* have to have the ISAPI version installed instead of the CGI version.

But if you're going to be running on Linux anyway, why not just load
Apache on Windows and use it? It makes things *much* easier.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Dec 23 '05 #4
"Jerry Stuckle" <js*******@attglobal.net> wrote in message
news:C7********************@comcast.com...
ch************@post.harvard.edu wrote:
I have a PHP program on a Windows Server website and the following do
not work:

$HTTP_SERVER_VARS["PHP_SELF"], $_SERVER, $_SESSION

etc. etc.

Can someone explain me why?

Is there something I can tell my web host to set in the php.ini file to
fix this?

All of this has always worked for me on Unix.


It's probably because you're using IIS, not Apache. This can't be fixed
in the php.ini file. This information is supplied by Apache.


Bullshit! I work with PHP + IIS server. $_SESSION, $_SERVER and so on, are
all available in php programs. The primary solution is to check the
configuration of the server, and fix that first, and if that fails, then get
the apache. But saying using apache is the only solution is just horse shit.
--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
an*******************@gmail.com.NOSPAM.invalid
Dec 23 '05 #5
Kimmo Laine wrote:
"Jerry Stuckle" <js*******@attglobal.net> wrote in message
news:C7********************@comcast.com...
ch************@post.harvard.edu wrote:
I have a PHP program on a Windows Server website and the following do
not work:

$HTTP_SERVER_VARS["PHP_SELF"], $_SERVER, $_SESSION

etc. etc.

Can someone explain me why?

Is there something I can tell my web host to set in the php.ini file to
fix this?

All of this has always worked for me on Unix.


It's probably because you're using IIS, not Apache. This can't be fixed
in the php.ini file. This information is supplied by Apache.


Bullshit! I work with PHP + IIS server. $_SESSION, $_SERVER and so on, are
all available in php programs. The primary solution is to check the
configuration of the server, and fix that first, and if that fails, then
get the apache. But saying using apache is the only solution is just horse
shit.


True, I have them all under IIS5/PHP-ISAPI on my W2000 machine.
Maybe not all (didn't check them all), but all I need.
I prefer Debian/apache, but hey, life is a bitch, and so am I when I can
make a dime. ;-)

Regards,
Erwin Moller

Dec 23 '05 #6
Kimmo Laine wrote:
"Jerry Stuckle" <js*******@attglobal.net> wrote in message
news:C7********************@comcast.com...
ch************@post.harvard.edu wrote:
I have a PHP program on a Windows Server website and the following do
not work:

$HTTP_SERVER_VARS["PHP_SELF"], $_SERVER, $_SESSION

etc. etc.

Can someone explain me why?

Is there something I can tell my web host to set in the php.ini file to
fix this?

All of this has always worked for me on Unix.


It's probably because you're using IIS, not Apache. This can't be fixed
in the php.ini file. This information is supplied by Apache.

Bullshit! I work with PHP + IIS server. $_SESSION, $_SERVER and so on, are
all available in php programs. The primary solution is to check the
configuration of the server, and fix that first, and if that fails, then get
the apache. But saying using apache is the only solution is just horse shit.


I do, too. And no, not everything is available in IIS as it is in Apache.

Additionally, if you have PHP loaded as a CGI, even less is available.

And learn to read. I didn't say to get Apache because it's the only
solution - I said to get it because it's the MOST COMPATIBLE SOLUTION.
His final target is Linux. It only makes sense to develop using the
same server as you're going to be deploying on.

So get off your Microsoft High Horse and learn to read.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Dec 23 '05 #7
I don't have any control over this server. I am sure it is an IIS
server. Can someone tell me what to tell my web host to do and what
special I have to do in my program in order to enable $_SESSION
variables if that is possible?

Dec 23 '05 #8
To get access to lots of info, including server info check out:
http://ie2.php.net/phpinfo

To learn about sessions goto:
http://ie2.php.net/manual/en/ref.session.php. Basically you need to put
in session_start.

All in the manual.

Dec 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yawnmoth | last post by:
The portion of the PHP manual entitled "Using PHP from the command line" states that "The CGI SAPI supports the CLI SAPI behaviour by means of the -C switch when run from the command line.": ...
0
by: Daniel Mercier | last post by:
Hi, I'm new to mysql and just installed phpmyadmin. Here is the versions info: System Linux linlyne.spider.sense 2.4.22-1.2199.nptl #1 PHP Version 4.3.8
0
by: Steven Blair | last post by:
Hi, I am a big fan of the Web DataGrid, mainly for it's design time features. Is it possible to use this component in a Windows Application (I have added the component but its greyed out). ...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
20
by: mc | last post by:
I may be opening a can of worms and don't want to start a religious war, but... What features of Java do Java programmers miss when working in C#? Other than, of course, great portability. C#...
4
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
I am creating an application for windows mobile using Visual C# windows. I am using visual studio 2008 and I have windows Microsoft Vista on my computer. I also downloaded the professional and...
14
by: DL | last post by:
The rationale is that certain IE7 features are great while FF3 got things that IE7 doesn't and the user has both browsers installed (not assumption but a requirement for "controled" use...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.