php-windows Digest 5 Mar 2001 23:23:01 -0000 Issue 476 Topics (messages 5826 through 5839): Re: $PHP_SELF not producing the goods. 5826 by: Michael Rudel 5827 by: Markus Wagner Re: pulling arrays from nested arrays? 5828 by: Michael Rudel deleting file on server 5829 by: Glenn 5830 by: Tom Mathews Re: IE 5.5,authentication,PHP sessions: IE never stops 5831 by: John Henckel 5832 by: Ken 5835 by: Chris Poirier 5838 by: Ken Re: swflib 5833 by: Daniel Beulshausen transparent 5834 by: Bacon Luvva Help with ODBC to Access query 5836 by: S. William Schulz MySQL version details 5837 by: James Duncan time stamps in mail headers 5839 by: Bob Ferguson 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] ----------------------------------------------------------------------
Hi Jess, I'm not sure, but I think it could be the cgi-mode ?! (because of pointing to the php-interpreter php.exe) Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:[EMAIL PROTECTED] internet: http://www.suchtreffer.de _______________________________________________________________ -----Original Message----- From: Jess Perez [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 03, 2001 4:23 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] $PHP_SELF not producing the goods. Hi, I am using PHP4.0.4pl1 in cgi mode Apache 1.3.14 WIN2000 I point my browser at www.domain.com/phpinfo.php and the $PHP_SELF variable to contains "/php/php.exe/phpinfo.php" instead of just "phpinfo.php". Anyone know what is causing this and how to correct it? The manual says it is supposed to contain only "phpinfo.php" -- Regards Jess Perez -- 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]
I used the binary from www.php4win.de an all worked very fine. Attention: use the php.exe in the ISAPI-Directory not in the root-Directory, because of the cgi-redirect option. Jess Perez wrote: > > Hi, > I am using > PHP4.0.4pl1 in cgi mode > Apache 1.3.14 > WIN2000 > > I point my browser at www.domain.com/phpinfo.php and the $PHP_SELF variable > to contains "/php/php.exe/phpinfo.php" instead of just "phpinfo.php". > > Anyone know what is causing this and how to correct it? The manual says it > is supposed to contain only "phpinfo.php" > > -- > Regards > Jess Perez > > -- > 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] -- Markus Wagner email: [EMAIL PROTECTED] Hobby: 747 Jumbo-Jet, Pontiac
Hi Doug, could it be possible, that the $first_array["second array"] returns the string "array" instead of the array ?? A possible way to get a copy from your nested array is to write a function like this: $new_array = get_nested_array( $first_array, "second array" ); function get_nested_array( $array, $nested_array ) { while(list($key, $val) = each($array[$nested_array])) { $result_array[$key] = $val; } return ( $result_array ); } Yes, there may be a better solution =8) Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:[EMAIL PROTECTED] internet: http://www.suchtreffer.de _______________________________________________________________ -----Original Message----- From: Doug Brewer [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 04, 2001 5:30 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] pulling arrays from nested arrays? Perhaps I was unclear...I actually _want_ to modify the copy, that's why I made a copy, to preserve the original. My point was that this doesn't seem to create a valid copy of the original array: $new_array = $first_array["second array"]; Operations on $new_array seem to fail, because it isn't an array. Using a reference would modify the original, and I don't want to do that. Doug | -----Original Message----- | From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] | Sent: Saturday, March 03, 2001 7:17 PM | To: Doug Brewer | Cc: [EMAIL PROTECTED] | Subject: Re: [PHP-WIN] pulling arrays from nested arrays? | | | At 01:21 04.03.2001, Doug Brewer said: | --------------------[snip]-------------------- | >$new_array = $first_array["second array"]; # what's wrong | with this? | | this is a copy of $first_array["second array"]. | | >while(list($this, $that) = each($new_array)) { | > # doesn't work! | >} | | this modifies the copy! | | After applying the modifications, do | $first_array["second array"] = $new_array; | to replace the original with the modified contents. | | Usually you would use references to arrays to handle this, | but I haven't | found a way yet to get list() to return references instead | of copies... | | | ...ebird | | >O Ernest E. Vogelsinger | (\) http://www.1-at-web.at/ | ^ ICQ# 13394035 | | | -- | 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] | -- 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]
hallo! how can i removing files from my upload folder on the server whit php Best regards. /Glenn _____________________________________________ Free email with personality! Over 200 domains! http://www.MyOwnEmail.com
try the unlink() command Glenn wrote: > hallo! > how can i removing files from my upload folder on the server whit php > > Best regards. > /Glenn > > _____________________________________________ > Free email with personality! Over 200 domains! > http://www.MyOwnEmail.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]
At 09:51 PM 3/4/01 -0500, Ken wrote: >Anyway, can someone please test to see if this doesn't happen in IE5.0? > >I really hate this situation, yessir. I have installed IE 5.00.2614.3500 (that's what came with Win 98 2nd edition CDROM vers 4.10.2222A) and it does NOT have the problem you have described. However, it has another bug that is almost as good. Make this page called mytest.php (I am using Xitami on localhost for the server) <?php if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); echo "Sorry you are not authorized\n"; exit; } else { echo "Hello $PHP_AUTH_USER.<P>"; echo "You entered $PHP_AUTH_PW as your password.<P>"; } ?> These are the steps I did. 1. open mytest.php and when the password prompt appears, I enter a userid/password. 2. I see the "Hello" page with my userid and password. 3. close IE and reopen mytest.php, again the prompt appears -- this is good. 4. close IE and Restart Windows. 5. open mytest.php and when the password prompt appears, I hit CANCEL. 6. the message "Sorry you are not authorized" appears 7. in the address box I type www.google.com and wait for it to appear 8. I press the BACK button and guess what I see? I see the "Hello" page with my userid and password from step 2 !!!!!!!!!!!!!! apparently the page is retrieved from the browser cache. John Henckel alt. mailto:[EMAIL PROTECTED] Zumbro Falls, Minnesota, USA (507) 753-2216 http://geocities.com/jdhenckel/
At 10:56 AM 3/5/01 -0600, John Henckel wrote: >1. open mytest.php and when the password prompt appears, I enter a userid/password. >2. I see the "Hello" page with my userid and password. >3. close IE and reopen mytest.php, again the prompt appears -- this is good. >4. close IE and Restart Windows. >5. open mytest.php and when the password prompt appears, I hit CANCEL. >6. the message "Sorry you are not authorized" appears >7. in the address box I type www.google.com and wait for it to appear >8. I press the BACK button and guess what I see? I see the "Hello" page with my >userid and password from step 2 !!!!!!!!!!!!!! apparently the page is retrieved from >the browser cache. This is exactly one of the things I was complaining about: It is NOT a browser cache issue - it still remembers your username and password, and will continue to send it with page requests. This happens when you hit "cancel" on the new password prompt. You'd think it would forget the username and password at this point, but it doesn't. You have to clear the password field and hit OK. Crazy, huh? - Ken
Hi Ken, > At 10:56 AM 3/5/01 -0600, John Henckel wrote: > >1. open mytest.php and when the password prompt appears, I enter a userid/password. > >2. I see the "Hello" page with my userid and password. > >3. close IE and reopen mytest.php, again the prompt appears -- this is good. > >4. close IE and Restart Windows. > >5. open mytest.php and when the password prompt appears, I hit CANCEL. > >6. the message "Sorry you are not authorized" appears > >7. in the address box I type www.google.com and wait for it to appear > >8. I press the BACK button and guess what I see? I see the "Hello" page with my >userid and password from step 2 !!!!!!!!!!!!!! apparently the page is retrieved from >the browser cache. > > This is exactly one of the things I was complaining about: It is NOT a browser cache >issue - it still remembers your username and password, and will continue to send it >with page requests. This happens when you hit "cancel" on the new password prompt. >You'd think it would forget the username and password at this point, but it doesn't. >You have to clear the password field and hit OK. Crazy, huh? > > - Ken There is a suggestion in the PHP online documentation that has worked for me (except in Opera 5, which seems to ignore the Realm). Add a timestamp to the Realm that changes with each new session. IE 5.0 will prompt for a different password, because it sees it as a different login. Later, Chris.
At 02:39 PM 3/5/01 -0500, Chris Poirier wrote: >There is a suggestion in the PHP online documentation that has worked for >me (except in Opera 5, which seems to ignore the Realm). Add a timestamp >to the Realm that changes with each new session. IE 5.0 will prompt for a >different password, because it sees it as a different login. This is, in fact, what my system attempts to do. The catch is that I CAN'T change the realm with a new session...because I don't GET a new session, because IE 5.5 is not starting a new session when it should! Indeed, when I change the realm, I get the prompt. But I can't tell when the user closed his browser and started a new one, because IE 5.5 (on the machines I'm testing on) is still keeping the old session, acting like the browser never closed. Again, my system works perfectly on the other browsers I've tried. It changes the realm when appropriate. It sets a flag in the database when the user hits logout. And it works the way it should. Just in IE 5.5 (on the machines I'm testing on) do I get this horrible behavior. - Ken >Later, Chris.
At 04:17 05.03.2001 +0100, Tomasz Abramowicz wrote: >I was looking around, and i cant seem to find a compiled version of the >swflib extensions for PHP4.0.4pl1 / IIS 4 / NT4server... > >Are they availiable? >If so where? and if someone has 'em, can they send it to me? >otherwise is there a way to use the linux compiled version on NT? >again, if so, can someone send them to me, or tell me where to find >the compiled version? -> http://php.net/manual/en/ref.swf.php and read the note. the best is to use ming instead. daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Hallo, I have software located on another server and I do not wish to disclose the url of that server. Is there a way to transparently download from another server such that no url is ever seen in the status bar using PHP. My whole site is PHP mySQL driven and this is the only area where I am experiencing difficulties. Any assistance on this would be gratefully received. Thanks, BaconLuvva
Hello, I'm trying to get the following query to work: $query1 = 'SELECT COUNT(RunNumber) AS RunCount, DatePart("m", CallDate) AS MonNum FROM CallData WHERE (CallDate Between #1/1/00# AND #12/31/00#) AND Driver = 1731 GROUP BY DatePart("m", CallDate)'; It returns the following error: Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1., SQL state 07001 in SQLExecDirect in d:\internet\apache\htdocs\db\test.php on line 48 Line 48 is : $result = odbc_exec($connect, $query1); The connection is established okay, as other queries work: $query2 = "SELECT RunNumber, CallDate AS TDate, CallUnit, CallDutyCrew AS Crew, PtNum, NatureFull, Driver, Attendant1, Attendant2 FROM CallData WHERE (CallDate Between #1/1/00# AND #12/31/00#) AND Attendant1 = $id ORDER BY RunNumber"; I've tried escaping the m's in the DatePart (I initially used double-quotes " " around the query string), tried changing the COUNT(RunNumber) to COUNT(*), etc without success. The query runs fine as written if entered directly into Access. Any ideas? SWS
Does anyone know the PHP command that returns information regarding the MySQL server, it's status, version number, etc? I've seen it mentioned in the past but I can't find a reference to it in the PHP documentation. Thanks James
I've got a client that has written a form that emails the results to him. In the email header, he is getting the following: Received: from sounddata.com ([204.182.58.11]) by krim.seanet.com (8.9.3/8.9.3) with ESMTP id NAA09539 for <[EMAIL PROTECTED]>; Fri, 2 Mar 2001 13:41:50 -0800 (PST) Received: from gypsy [204.182.58.17] by sounddata.com (SMTPD32-6.05) id A4293497011E; Fri, 02 Mar 2001 13:44:09 -0800 Date: Fri, 02 Mar 2001 13:44:11 +0800 Subject: service inquiry from delicious-planet.com From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Message-Id: <200103021344997.SM00264@gypsy> X-UIDL: 5bbe982a92fc7086f6f0c1e5214cbaef Note that the first two date/time stamps correctly use the PST -0800 notation. But, the third one (the date on the email) uses a +0800 which ends up showing the email as sent 16 hours before it was. Where is this coming from? He is local to our servers (same time zone). I've checked the clocks and time zone settings on our Web server and email server -- they are correct. I modified the code to have the message sent to me -- therefore, my servers, my machine -- so no other machine would be involved. It still happens. Suggests? Known problem? Bob Sound Data, Inc. 1467 Elliott Avenue West, Seattle, WA 98119 Voice: +1 206.283.0600 Fax: +1 206.283.0782 Providing Web site design and hosting services (http://www.sounddata.com) and developers of Internet ArtResources (http://www.artresources.com), ArtWatch Art Management Systems (http://www.sounddata.com/artwatch/) and the intervault Data Backup System (http://www.sounddata.com/intervault/).