php-windows Digest 10 Jul 2002 23:53:24 -0000 Issue 1234
Topics (messages 14664 through 14689):
Re: How to dectect if a file exist in specific Folder
14664 by: David Elliott
14665 by: Piotr Pluciennik
Re: Domain validiation in php??
14666 by: Manuel Lemos
ini_set
14667 by: robert
14668 by: colin mcdonald
File Upload
14669 by: Alexandr Polupanov
Calling Windows DLL Files
14670 by: Todd Williamsen
14672 by: colin mcdonald
14678 by: Tracker1
14686 by: Todd Williamsen
bringing back data by day from current week
14671 by: R.S. Herhuth
Re: PHP on IIS 5.0
14673 by: Tracker1
14679 by: colin mcdonald
14684 by: Tracker1
Re: Closest store location by zip code
14674 by: Tracker1
Re: Browser Troubles...
14675 by: Tracker1
Re: run as
14676 by: Tracker1
Re: [PHP] Dual Server...
14677 by: Tracker1
SESSION vars
14680 by: Matt Babineau
14681 by: Matt Babineau
14682 by: Matt Babineau
14683 by: Dash McElroy
Sessions under PHP v4.2.1
14685 by: Dennis Schlichczin
Exec
14687 by: charlesk
14688 by: Scott Carr
14689 by: charlesk
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 ---
Dear Piotr
On 10 July 2002 at 02:53:04 -0700 (PDT) (which was 10:53 where I live) Piotr
Pluciennik wrote and made these points
> RTFM!!!
It is like saying to some one who wants to spell a word correctly 'Look it
up in a dictionary'.
If you can not spell it how can you look it up!!
--
Regards, _______________________________________________
David | David Elliott | Software Engineer |
_________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 |
| Redneck: if you go to the family reunion to pick up women. |
--- End Message ---
--- Begin Message ---
Dear David...
read my post to the end - the answer is after RTFM
:-)) so, I answer once again, if somebody missed it
:-)
BEGINING OF THE ANSWER:
bool file_exists(string filename) - returns TRUE if
the file specified by filename exists; FALSE
otherwise.
END OF THE ANSWER :-))
HTH, all the best
Piotr
--- David Elliott <[EMAIL PROTECTED]> wrote:
> Dear Piotr
>
> On 10 July 2002 at 02:53:04 -0700 (PDT) (which was
> 10:53 where I live) Piotr
> Pluciennik wrote and made these points
>
> > RTFM!!!
>
> It is like saying to some one who wants to spell a
> word correctly 'Look it
> up in a dictionary'.
>
> If you can not spell it how can you look it up!!
>
> --
> Regards,
> _______________________________________________
> David | David Elliott |
> Software Engineer |
> _________________________| [EMAIL PROTECTED] |
> PGP Key ID 0x650F4534 |
> | Redneck: if you go to the family reunion to pick
> up women. |
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--- End Message ---
--- Begin Message ---
Hello,
On 07/09/2002 08:37 AM, Daniel Ryhle wrote:
> Hi folks!
>
> Is there anyone that can tell me if it is possible to validate users in php
> on a windows machine against domain accounts??
>
> Really need to know if its possible and if it is, the how.
Yes, configure your Web server to do Windows NTLM authentication on the
pages you want.
--
Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
hello list,
ini_set
and his alias ini_alter,
seems not to work under win 2000 enviroment with php 4.2.1
Any suggestions about fixing the problem.
Parse the php.ini file with preg_match could be an idea,
but ini_set is easy and fast.
regards
robert
--- End Message ---
--- Begin Message ---
Robert wrote:
> hello list,
>
> ini_set
> and his alias ini_alter,
> seems not to work under win 2000 enviroment with php 4.2.1
there are restrictions to init_set that you should read in the manual.
namely, some settings cannot be changed, some can only be changed in
certain places and some with no restrictions, etc.
>
> Any suggestions about fixing the problem.
> Parse the php.ini file with preg_match could be an idea,
> but ini_set is easy and fast.
>
ini_set does not permanently change the value from php.ini, it only
changes the value for the execution of your script.
colin
--- End Message ---
--- Begin Message ---
I heard, that somehow i can track the percentage of file upload. If it is
possible, an example, or algorythm would be nice!
Thanks.
--- End Message ---
--- Begin Message ---
I don't know if this is possible, but I figured there is a small limitation
on php....
The scenario...
I have a client that wants his application revamped from MS Access to mySQL
and PHP. Now, he is a doctor in an office and he scans patients information
in. He wants the ability to click a button on the GUI which launches the
scan program(TWAIN32.DLL I think) then automatically saving the scanned file
in the designated folder or location. I informed him its the scanning
applications responsibility to scan and automatically save it, so in order
to designate the location I need to either: 1. Find a program that does
that, 2. Write a new scanning application.
I think this guy is starting to want too much, but if it is possible I
would like to give it a whirl.
Is this possible?
--- End Message ---
--- Begin Message ---
php can only call dll's on the server, not the client end (which is what
I think your doctor wants?).
Todd Williamsen wrote:
> I don't know if this is possible, but I figured there is a small limitation
> on php....
>
> The scenario...
>
> I have a client that wants his application revamped from MS Access to mySQL
> and PHP. Now, he is a doctor in an office and he scans patients information
> in. He wants the ability to click a button on the GUI which launches the
> scan program(TWAIN32.DLL I think) then automatically saving the scanned file
> in the designated folder or location. I informed him its the scanning
> applications responsibility to scan and automatically save it, so in order
> to designate the location I need to either: 1. Find a program that does
> that, 2. Write a new scanning application.
>
> I think this guy is starting to want too much, but if it is possible I
> would like to give it a whirl.
>
> Is this possible?
>
>
--- End Message ---
--- Begin Message ---
To: Colin McDonald
If he is running IE for the browser, you could write an active-x control
that will launch from the page, and then upload the given file to the
webserver.
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
" Colin McDonald" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> php can only call dll's on the server, not the client end (which is what
> I think your doctor wants?).
>
> Todd Williamsen wrote:
> > I don't know if this is possible, but I figured there is a small limitation
> > on php....
> >
> > The scenario...
> >
> > I have a client that wants his application revamped from MS Access to mySQL
> > and PHP. Now, he is a doctor in an office and he scans patients
information
> > in. He wants the ability to click a button on the GUI which launches the
> > scan program(TWAIN32.DLL I think) then automatically saving the scanned
file
> > in the designated folder or location. I informed him its the scanning
> > applications responsibility to scan and automatically save it, so in order
> > to designate the location I need to either: 1. Find a program that does
> > that, 2. Write a new scanning application.
> >
> > I think this guy is starting to want too much, but if it is possible I
> > would like to give it a whirl.
> >
> > Is this possible?
> >
> >
>
>
> --- Synchronet NewsLink v1.00 Beta
--- Synchronet NewsLink v1.00 Beta
* Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
Yes, I would make sure that they use IE as a browser...
Now things become complicated, and I don't know what PHP's limitations are
What he wants...
1. to be able to press a button to scan a document
2. that scanned document gets automatically saved in a new or existing
folder by patient ID#
Is this possible?
"Tracker1" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> To: Colin McDonald
> If he is running IE for the browser, you could write an active-x control
> that will launch from the page, and then upload the given file to the
> webserver.
>
> --
> =======================================================================
> Michael J. Ryan - tracker1[*at*]theroughnecks.com
> Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
> =======================================================================
> Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
> One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
>
>
> " Colin McDonald" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > php can only call dll's on the server, not the client end (which is what
> > I think your doctor wants?).
> >
> > Todd Williamsen wrote:
> > > I don't know if this is possible, but I figured there is a small
limitation
> > > on php....
> > >
> > > The scenario...
> > >
> > > I have a client that wants his application revamped from MS Access to
mySQL
> > > and PHP. Now, he is a doctor in an office and he scans patients
> information
> > > in. He wants the ability to click a button on the GUI which launches
the
> > > scan program(TWAIN32.DLL I think) then automatically saving the
scanned
> file
> > > in the designated folder or location. I informed him its the scanning
> > > applications responsibility to scan and automatically save it, so in
order
> > > to designate the location I need to either: 1. Find a program that
does
> > > that, 2. Write a new scanning application.
> > >
> > > I think this guy is starting to want too much, but if it is possible
I
> > > would like to give it a whirl.
> > >
> > > Is this possible?
> > >
> > >
> >
> >
> > --- Synchronet NewsLink v1.00 Beta
> --- Synchronet NewsLink v1.00 Beta
> * Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
I'm trying to write a stats program that queries a MSSQL database to
bring back a count of all items entered into the database for the
current week by day. I'm having trouble getting my mind around how to
write this seemingly simple concept.
I have the database and I know the field name but I'm having a bit of
trouble with the math to create the query. I would greatly appreciate
it if someone might be able to share such a script.
Thanks,
Ron
--- End Message ---
--- Begin Message ---
To: Colin McDonald
So, you would suggest, *NOT* caching isapi apps, when using php?
this should be doable per application..
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
" Colin McDonald" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> From Newsgroup: php.windows
>
> This is what I had to do:
>
> -take out zend_optimizer from php.ini
> -put process isolation level to "HIGH" (as Michael suggested)
> -put IIS in the ISAPI filter list
> -disable chaching of isapi applications
>
> I hope this helps you and/or anyone else having this problem, because it
> took me a long time to figure this out and stabilize our app on IIS.
>
> colin
>
> Alexandr Polupanov wrote:
> > i'm using php4isapi.dll on a Windows 2000 Professional.
> > When i'm running Server-Side PHP Scripts, all works fine, but when i'm
> > running them more than approximately 50 times, PHP seems to stop working,
> > and in my browser i get this:
> > "PHP has encountered an Access Violation at 010125C0"
> > or this too:
> > "PHP has encountered an Access Violation at 0101290E"
> > Then i need to restart IIS service, to get PHP work again.
> >
> > Do somebody knows what is the problem, and how to solve it?
> > Thanks in advance.
>
> --- Synchronet NewsLink v1.00 Beta
--- Synchronet NewsLink v1.00 Beta
* Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
yes, what worked for me was:
-go to the properties of the website
-click "Home Directory" tab
-click configuration button
-UNcheck "Cache ISAPI Applications"
I'm not sure if this means that it is per application or not?
colin
Tracker1 wrote:
> To: Colin McDonald
> So, you would suggest, *NOT* caching isapi apps, when using php?
> this should be doable per application..
>
> --
> =======================================================================
> Michael J. Ryan - tracker1[*at*]theroughnecks.com
> Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
> =======================================================================
> Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
> One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
>
>
> " Colin McDonald" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>
>>From Newsgroup: php.windows
>>
>>This is what I had to do:
>>
>>-take out zend_optimizer from php.ini
>>-put process isolation level to "HIGH" (as Michael suggested)
>>-put IIS in the ISAPI filter list
>>-disable chaching of isapi applications
>>
>>I hope this helps you and/or anyone else having this problem, because it
>>took me a long time to figure this out and stabilize our app on IIS.
>>
>>colin
>>
>>Alexandr Polupanov wrote:
>>
>>>i'm using php4isapi.dll on a Windows 2000 Professional.
>>>When i'm running Server-Side PHP Scripts, all works fine, but when i'm
>>>running them more than approximately 50 times, PHP seems to stop working,
>>>and in my browser i get this:
>>>"PHP has encountered an Access Violation at 010125C0"
>>>or this too:
>>>"PHP has encountered an Access Violation at 0101290E"
>>>Then i need to restart IIS service, to get PHP work again.
>>>
>>>Do somebody knows what is the problem, and how to solve it?
>>>Thanks in advance.
>>
>>--- Synchronet NewsLink v1.00 Beta
>
> --- Synchronet NewsLink v1.00 Beta
> * Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
To: Colin McDonald
yeah.. basically, the options like that can be done per site, or if
you have a folder on the site, you can assign an "application name"
under properties, and establish per-directory/application..
as well as global properties to all webs on the server..
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
" Colin McDonald" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> yes, what worked for me was:
>
> -go to the properties of the website
> -click "Home Directory" tab
> -click configuration button
> -UNcheck "Cache ISAPI Applications"
>
> I'm not sure if this means that it is per application or not?
>
> colin
>
> Tracker1 wrote:
> > To: Colin McDonald
> > So, you would suggest, *NOT* caching isapi apps, when using php?
> > this should be doable per application..
> >
> > --
> > =======================================================================
> > Michael J. Ryan - tracker1[*at*]theroughnecks.com
> > Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
> > =======================================================================
> > Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
> > One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
> >
> >
> > " Colin McDonald" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> >
> >>From Newsgroup: php.windows
> >>
> >>This is what I had to do:
> >>
> >>-take out zend_optimizer from php.ini
> >>-put process isolation level to "HIGH" (as Michael suggested)
> >>-put IIS in the ISAPI filter list
> >>-disable chaching of isapi applications
> >>
> >>I hope this helps you and/or anyone else having this problem, because it
> >>took me a long time to figure this out and stabilize our app on IIS.
> >>
> >>colin
> >>
> >>Alexandr Polupanov wrote:
> >>
> >>>i'm using php4isapi.dll on a Windows 2000 Professional.
> >>>When i'm running Server-Side PHP Scripts, all works fine, but when i'm
> >>>running them more than approximately 50 times, PHP seems to stop working,
> >>>and in my browser i get this:
> >>>"PHP has encountered an Access Violation at 010125C0"
> >>>or this too:
> >>>"PHP has encountered an Access Violation at 0101290E"
> >>>Then i need to restart IIS service, to get PHP work again.
> >>>
> >>>Do somebody knows what is the problem, and how to solve it?
> >>>Thanks in advance.
> >>
> >>--- Synchronet NewsLink v1.00 Beta
> >
> > --- Synchronet NewsLink v1.00 Beta
> > * Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
>
--- Synchronet NewsLink v1.00 Beta
* Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
To: R.S. Herhuth
This would take a database of zip code information, iirc the post office
has one available, you will get long/lat coords however, and need to
calculate yourself.. best bet may be to simply get the closest by number
of the zip..
however, it wouldn't be precise. there are a lot of paid services to
actually get this information, and have COM objects for use, that can
be used in php-windows, but their examples will likely be ASP based.
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
" R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> From Newsgroup: php.windows
>
>
> Does any one know of a php script to calculate the closest store to a
> user entered zip code?
>
> Thanks,
> Ron
> --- Synchronet NewsLink v1.00 Beta
--- Synchronet NewsLink v1.00 Beta
* Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
To: Brian McGarvie
The original 5.00, not 5.01 had a few bugs, especially with regards to
the DOM accessed through JS, it broke several scripts... run a detect
for 5.00, and not 5.01, and suggest upgrading... It is likely your prob
is with 5.00, not 5.01...
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
" Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> From Newsgroup: php.windows
>
> OK...
>
> I have developed a web-application... on Windows 2k Server, IIS5, PHP, =
> MsSQL/MySQL.
>
> Now... on certain browser platforms the browser spuriously dies for no =
> reason. (Primarily Oldish IE 5.0(but not all releases) and 5.5).
>
> I have tried MS's mailing lists/support but not had any usefull =
> feedback.
>
> Has anyone came accross this kind of thing before?
>
> Thanks In Advance...
>
> [ http://www.the-local-guide.com :: http://www.mcgarvie.net ]
>
> --- Synchronet NewsLink v1.00 Beta
--- Synchronet NewsLink v1.00 Beta
* Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
To: Scott Hurring
You probably could have just changed the security restriction on the
dll in question.. the problem was likely that winamp was running in a
separate desktop space from the user apache was running as.. so either
you would have to create a wrapper service, or pretty much do what you
did...
can't say for apache.. but in iis, you could have created a separate
application folder for the php that needed to access winamp, and without
any extra extensions beyond php, should not have issues...
Personally, I am one to REMOVE anything not being used.. in iis, I will
remove unused asp extensions for php projects, and vice-versa.. this
helps limit exposure...
Code Red was averted on all the servers I had setup, because the
extensions and folders that were suspect weren't in there the way I
had things setup. Don't get me wrong, I like apache okay, just know
IIS better, and have worked with it longer... the php projects I have
been working on lately are deployed on apache/linux, but they are run
by another admin...
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
" Scott Hurring" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> You're entirely correct -- IF it was an internet
> accessable webserver.
>
> It's installed locally on my workstation solely for
> local development. It's got a pretty nice corporate
> firewall and "httpd.conf" restrictions setup to deny
> access to everyone 'cept me. Of course, firewalls
> and corporate LAN's can be hacked, but i figure that
> if someone's good/determined enough to hack into this
> particular LAN, apache security flaws are the least
> of my worries. :-)
>
> But basically, i did that beucase i'm not too fluent
> with the bizarre system of Win2k permissions and
> system accounts...
>
> ---
> Scott Hurring
> Systems Programmer
> EAC Corporation
> [EMAIL PROTECTED]
> Voice: 201-462-2149
> Fax: 201-288-1515
>
> > -----Original Message-----
> > From: Neil Smith [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 09, 2002 7:56 AM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: run as
> >
> >
> > At 09:15 09/07/2002 +0000, you wrote:
> > >Message-ID: <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >From: "Scott Hurring" <[EMAIL PROTECTED]>
> > >Date: Mon, 8 Jul 2002 17:36:52 -0400
> > >Subject: Re: WinampCOM problem
> > >
> > >What user is your Server running as?
> >
> > Whoa ! This is a really, really *bad* idea - you have given
> > the web server
> > access to all the files which are owned by you as far as I
> > can tell, and
> > have introduced a major security hole. A web server should
> > *always* run as
> > its own (low-privilege) user, and be given limited access to
> > specific files
> > by adjusting the permissions on the file & directory on a
> > case by case
> > basis, not the other way around.
> >
> > Please tell me the address of your webserver, I wanna hack it ;-)
> > (Actually you dont need to - somebody will probably beat me to it!)
> >
> > Cheers,
> > Neil Smith.
> >
> > >For me, when i setup apache on my Win2k machine, i
> > >had to "RunAs" my personal "scott" account, rather than
> > >the system account, or else apache wouldn't be able to
> > >read certain "scott-only" files.... perhaps the user that
> > >apache is running as doesn't have permission to do
> > >COM stuff.... but i really don't know for sure.
> > >
> > >--
> > >Scott Hurring
> > >Systems Programmer
> > >EAC Corporation
> > >scott (*) eac.com
> > >--
> > >"Olivier Hubert" <[EMAIL PROTECTED]> wrote in message
> >
> --- Synchronet NewsLink v1.00 Beta
>
--- Synchronet NewsLink v1.00 Beta
* Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
To: Brian McGarvie
yes, also, you should be able to bind each to a different IP, if you
want them both on port 80...
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
" Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I will probably do this the other way round as we have a few sites...
>
> so if i have a single file with a frame and point contents of frame to =
> apache this should work?
>
> > -----Original Message-----
> > From: Collins, Robert [mailto:[EMAIL PROTECTED]]
> > Sent: 09 July 2002 4:41 PM
> > To: Brian McGarvie; [EMAIL PROTECTED];=20
> > [EMAIL PROTECTED]
> > Subject: RE: [PHP] Dual Server...
> >=20
> >=20
> > I have Apache and IIS coexisting on my intranet server and=20
> > the way I set
> > them up was to put each on a different port. (Apache serves=20
> > http://intranet
> > and IIS serves http://intranet:8080) this appears to work=20
> > fine. Hope this
> > helps
> >=20
> > Robert W. Collins II
> > Webmaster
> > New Orleans Regional Transit Authority
> > Phone : (504) 248-3826
> > Fax: (504) 248-3866
> > Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>=20
> >=20
> >=20
> >=20
> > -----Original Message-----
> > From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 09, 2002 10:39 AM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: [PHP] Dual Server...
> >=20
> >=20
> > OK following from my thread 'Browser Issues' I have found=20
> > that when serving
> > the site from apache, that the aforementioned errors go=20
> > away... mostly...
> >=20
> > OK so... What is the best way to setup so that IIS/Apache co-exist...
> >=20
> > I'd like to keep the 'entry' to the site on IIS as we have other sites
> > too... and use apache to serve the content of it.
> >=20
> > Any help mucho appreciated... also working to a deadline!
> >=20
> > --=20
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >=20
> >=20
> --- Synchronet NewsLink v1.00 Beta
>
--- Synchronet NewsLink v1.00 Beta
* Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
I was reading on php.net but it seem unclear to me how to properly set a
session variable.
my code looks like this:
session_start();
$_SESSION["logged_in"] = "1";
----------------------------------
when I click the link to the next page, and it checks for the logged_in
session var it cannot find it. am I setting it improperly? do I need to
use:
session_register("logged_in");
Thanks,
Matt Babineau
MCWD / CCFD
-----------------------------------------
e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w: <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
--- End Message ---
--- Begin Message ---
Is there a way to refrence the session variable or set the session
variable using $_SESSION? I like using the $_GET, $_POST, $_SESSION
constructs for consistency.
Matt Babineau
MCWD / CCFD
-----------------------------------------
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-----Original Message-----
From: Robert Trembath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 2:12 PM
To: Matt Babineau
Subject: Re: [PHP-WIN] SESSION vars
<?
session_start();
session_register( "foo" );
$foo = "Whatever";
?>
On Wed, 2002-07-10 at 12:56, Matt Babineau wrote:
> I was reading on php.net but it seem unclear to me how to properly set
> a session variable.
>
> my code looks like this:
>
> session_start();
> $_SESSION["logged_in"] = "1";
>
> ----------------------------------
> when I click the link to the next page, and it checks for the
> logged_in session var it cannot find it. am I setting it improperly?
> do I need to
> use:
>
> session_register("logged_in");
>
> Thanks,
>
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w: <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX
> 601 Manchester, NH 03105
>
--- End Message ---
--- Begin Message ---
Well once the session var has been set using the previously posted
methos I can accress like $_SESSION['foo']. Should I be able to simply
do this:
Session_start();
$_SESSION['foo'] = "xyz";
?
Matt Babineau
MCWD / CCFD
-----------------------------------------
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-----Original Message-----
From: Dash McElroy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 2:15 PM
To: 'Matt Babineau'
Subject: RE: [PHP-WIN] SESSION vars
Have you started the session on the second page?
When I read the 4.1.0 release announcement, it said that calling a
variable with $_SESSION['blah'] will register the variable, no need to
do a session_register().
-Dash
-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:57 AM
To: 'PHP Windows'
Subject: [PHP-WIN] SESSION vars
I was reading on php.net but it seem unclear to me how to properly set a
session variable.
my code looks like this:
session_start();
$_SESSION["logged_in"] = "1";
----------------------------------
when I click the link to the next page, and it checks for the logged_in
session var it cannot find it. am I setting it improperly? do I need to
use:
session_register("logged_in");
Thanks,
Matt Babineau
MCWD / CCFD
-----------------------------------------
e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w: <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX
601 Manchester, NH 03105
--- End Message ---
--- Begin Message ---
Here's an example:
Page1:
session_start();
$_SESSION['foo'] = bar;
Page2:
session_start();
print $_SESSION['foo'];
Page 2 should print 'bar'.
-Dash
-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 11:34 AM
To: 'Dash McElroy'; 'PHP Windows'
Subject: RE: [PHP-WIN] SESSION vars
Well once the session var has been set using the previously posted
methos I can accress like $_SESSION['foo']. Should I be able to simply
do this:
Session_start();
$_SESSION['foo'] = "xyz";
?
Matt Babineau
MCWD / CCFD
-----------------------------------------
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-----Original Message-----
From: Dash McElroy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 2:15 PM
To: 'Matt Babineau'
Subject: RE: [PHP-WIN] SESSION vars
Have you started the session on the second page?
When I read the 4.1.0 release announcement, it said that calling a
variable with $_SESSION['blah'] will register the variable, no need to
do a session_register().
-Dash
-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:57 AM
To: 'PHP Windows'
Subject: [PHP-WIN] SESSION vars
I was reading on php.net but it seem unclear to me how to properly set a
session variable.
my code looks like this:
session_start();
$_SESSION["logged_in"] = "1";
----------------------------------
when I click the link to the next page, and it checks for the logged_in
session var it cannot find it. am I setting it improperly? do I need to
use:
session_register("logged_in");
Thanks,
Matt Babineau
MCWD / CCFD
-----------------------------------------
e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w: <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX
601 Manchester, NH 03105
--- End Message ---
--- Begin Message ---
Hello all.
I've some problems with starting sessions.
Used Webserver:
Apache 1.3.26 (src) under Win2k
PHP version 4.2.1
php.ini properties
-------------------
session.save_handler = files
session.save_path = c:/winnt/tmp (exists)
session.use_cookies = 0
session.name = PHPSESSID
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length =
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
Since the lates version of php / apache it doesn't work ... ideas?
--- End Message ---
--- Begin Message ---
I am trying to get php to create a DNS entry on a different server.
When I open a command shell and enter the command it works fine. (
(dnscmd.exe servername /EnumRecords domainname @) OR
(dnscmd.exe IPaddress /EnumRecords domainname @)
When I have php exec() the same command from a command line it works fine.
(c:\php\php.exe c:\test.php4)
When I have php exec() the same command from a web page it fails.
(www.intranet.com/dnsinfo.php)
When servername is the local server it works fine from everywhere.
Also when I access the website I am using IIS 5.0 and NT authentication so the task
manager shows that the php.exe is running as me. (Permision shouldnt be an issue)
My question is, does the exec function have network access or why isnt this working
from a webpage?
Charles Killmer
PHP 4.2.1 IIS 5.0 Windows 2000 Server
--- End Message ---
--- Begin Message ---
Sounds like a permissions problem.
Everywhere else you are running as you or root. Under the Web Server, you are
probably running as "Nobody".
Check permissions on the file you are trying to execute.
--
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/
Quoting charlesk <[EMAIL PROTECTED]>:
> I am trying to get php to create a DNS entry on a different server.
>
> When I open a command shell and enter the command it works fine. (
> (dnscmd.exe servername /EnumRecords domainname @) OR
> (dnscmd.exe IPaddress /EnumRecords domainname @)
> When I have php exec() the same command from a command line it works fine.
> (c:\php\php.exe c:\test.php4)
> When I have php exec() the same command from a web page it fails.
> (www.intranet.com/dnsinfo.php)
>
> When servername is the local server it works fine from everywhere.
>
> Also when I access the website I am using IIS 5.0 and NT authentication so
> the task manager shows that the php.exe is running as me. (Permision shouldnt
> be an issue)
>
> My question is, does the exec function have network access or why isnt this
> working from a webpage?
>
> Charles Killmer
> PHP 4.2.1 IIS 5.0 Windows 2000 Server
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
When I look in the task manager the php.exe is running as me. The only way that it
doesnt work is when I run it from the web and try to get info off another server.
Localhost works fine in all cases. When I try to get info off another server it only
fails when I make the request from the web site.
Try this.
Set up a site in IIS and set the directory security to NT authenticaion. Disallow
anonymous.
Configure PHP
Put this into a script on that site:
<?
exec("echo %username%",$output);
print_r($output);
?>
When requested from the web it displays %username%
But when run though a command line it displays charles
It seems that the shell that exec() uses doesnt have all the environment variables and
possibly no network access?
Charles Killmer
PHP 4.2.1 IIS 5.0 Windows 2000 Server
---------- Original Message ----------------------------------
From: Scott Carr <[EMAIL PROTECTED]>
Date: Wed, 10 Jul 2002 11:34:26 -0500
Sounds like a permissions problem.
Everywhere else you are running as you or root. Under the Web Server, you are
probably running as "Nobody".
Check permissions on the file you are trying to execute.
--
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/
Quoting charlesk <[EMAIL PROTECTED]>:
> I am trying to get php to create a DNS entry on a different server.
>
> When I open a command shell and enter the command it works fine. (
> (dnscmd.exe servername /EnumRecords domainname @) OR
> (dnscmd.exe IPaddress /EnumRecords domainname @)
> When I have php exec() the same command from a command line it works fine.
> (c:\php\php.exe c:\test.php4)
> When I have php exec() the same command from a web page it fails.
> (www.intranet.com/dnsinfo.php)
>
> When servername is the local server it works fine from everywhere.
>
> Also when I access the website I am using IIS 5.0 and NT authentication so
> the task manager shows that the php.exe is running as me. (Permision shouldnt
> be an issue)
>
> My question is, does the exec function have network access or why isnt this
> working from a webpage?
>
> Charles Killmer
> PHP 4.2.1 IIS 5.0 Windows 2000 Server
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---