[PHP-WIN] Re: SESSION QUESTION
> Is there a bug in php4.2.1 dealing with sessions? I am using $_SESSION to > set my session variables and it will not work. Can anyone offer examples > that they have used that work? I am going insane. I had similar problem, so I realized that $_SESSION["name"]=value starts working after something like that (copied from PHP docs): // hack to enable SESSION - my comment if (!isset($HTTP_SESSION_VARS["count"])) $HTTP_SESSION_VARS["count"] = 0; else $HTTP_SESSION_VARS["count"]=$HTTP_SESSION_VARS["count"]+1; "count", however doesn't increment (funny?) but without above following line wouldn't work: $_SESSION["id"]=1; I asked few days ago why does it work this way, but nobody knew ("Session - funny or magic?"). I don't know also, but it works on my server, so you can try too. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] SNMP -> LOG
Hi I would like to collect data from snmpget and log it. Anyone have a idea how to do this? // maas, Sweden -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] CGI Error
Hi all, I am getting this error. ==8<= CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: FATAL: emalloc(): Unable to allocate 1949066614 bytes ==8<= IIS server running 4.2.1 Help any one -- TTFN, ___ David |David Elliott| Software Engineer| _| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 | | I'm sorry, for a moment I thought I had entered an alternate universe. | -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] fputs - need help!!
Hi I use this line fputs ($sysname_log, "$time - SystemName: $sysname\n"); I would like to get a log file, and everytime I refresh this page it will make a new line and write $the local time - SystemName: $sysname So after a while it will look like this $the local time - SystemName: $sysname $the local time - SystemName: $sysname $the local time - SystemName: $sysname BUT, this is not working, I don´t get a new line, everything is on the same line. Why?? I use WIN2K and IIS. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-windows Digest 15 Jul 2002 14:21:31 -0000 Issue 1242
php-windows Digest 15 Jul 2002 14:21:31 - Issue 1242 Topics (messages 14763 through 14768): Re: Quick request (ereg?) 14763 by: Ross Fleming HEAD METHOD 14764 by: nimesh Kocheta Re: SESSION QUESTION 14765 by: Tomator SNMP -> LOG 14766 by: MAAS CGI Error 14767 by: David Elliott fputs - need help!! 14768 by: MAAS 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 --- Oops! Obviously, I mean strip alphanumerics and spaces from a string. :D > -Original Message- > From: Ross Fleming [mailto:[EMAIL PROTECTED]] > Sent: 15 July 2002 02:08 > To: PHP Windows mailing list > Subject: [PHP-WIN] Quick request (ereg?) > > > Hi folks, I'm looking for a quick & easy way to strip out all characters > except alphanumerics and spaces. Is there a function > specifically for this? > > I know the answer probably lies with an ereg but unfortunately don't know > enough about these RE's, would appreciate any Perl geniuses out there > helping me :) > > Cheers > > Ross > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > --- End Message --- --- Begin Message --- HI everyone I would like to know how do i access the data when it is passed using the HEAD method the senario is I am connecting my application with another tool which is passing the data using HEAD method , hence i need to write in my page the way to access the data hope to hear from u all soon --- End Message --- --- Begin Message --- > Is there a bug in php4.2.1 dealing with sessions? I am using $_SESSION to > set my session variables and it will not work. Can anyone offer examples > that they have used that work? I am going insane. I had similar problem, so I realized that $_SESSION["name"]=value starts working after something like that (copied from PHP docs): // hack to enable SESSION - my comment if (!isset($HTTP_SESSION_VARS["count"])) $HTTP_SESSION_VARS["count"] = 0; else $HTTP_SESSION_VARS["count"]=$HTTP_SESSION_VARS["count"]+1; "count", however doesn't increment (funny?) but without above following line wouldn't work: $_SESSION["id"]=1; I asked few days ago why does it work this way, but nobody knew ("Session - funny or magic?"). I don't know also, but it works on my server, so you can try too. --- End Message --- --- Begin Message --- Hi I would like to collect data from snmpget and log it. Anyone have a idea how to do this? // maas, Sweden --- End Message --- --- Begin Message --- Hi all, I am getting this error. ==8<= CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: FATAL: emalloc(): Unable to allocate 1949066614 bytes ==8<= IIS server running 4.2.1 Help any one -- TTFN, ___ David |David Elliott| Software Engineer| _| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 | | I'm sorry, for a moment I thought I had entered an alternate universe. | --- End Message --- --- Begin Message --- Hi I use this line fputs ($sysname_log, "$time - SystemName: $sysname\n"); I would like to get a log file, and everytime I refresh this page it will make a new line and write $the local time - SystemName: $sysname So after a while it will look like this $the local time - SystemName: $sysname $the local time - SystemName: $sysname $the local time - SystemName: $sysname BUT, this is not working, I don´t get a new line, everything is on the same line. Why?? I use WIN2K and IIS. --- End Message ---
[PHP-WIN] MSSQL and NT Authentification
Hi all! I went after my problem with the NT authentification and I found out, that if you want to make a NT-based Authentification (f.ex for an ODBC-Connection) the I_USR will be seen as the actual user... I granted then rights to the I_USR in the DB, but this way, I cannot distinguish which user is actually working in the DB. IS there a way to use NT-Authentification in connection with php & MSSQL ??? Please Help , Gabor -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Fopen errors out when opening a URL
check out this ini value: allow_url_fopen its set to false for some versions of PHP. another thing, do a sanity check to make sure it works at all... like this: $fp = fopen ("c:\\temp\\test.txt", "r"); also note, you cant use include() or require() with remote files on windows. also note, if this is a heavily trafficked site (like weather.com, google, or Yahoo), the response might not be html, it might actually be gzipped html, which fopen() isn't smart enough to handle. Do a test with a known site. last resort, make sure that the service you are running PHP as is a service that has access to the network. For example, the default install of Apache and IIS probably runs as the Local User, you might need to run it as a domain user, such as yourself. You should be able to change this in the services control panel... I dont know if this matters at all, but you might as well try. -- Brian 'Bex' Huff [EMAIL PROTECTED] Phone: 952-903-2023 Fax: 952-829-5424 > I am trying to do a simple fopen("http://www.weather.com/index.html";, "r"); > For some reason I cannot Open any URL's after trying several. > > I get the following error > > Warning: stat failed for Resource id #1 (errno=2 - No such file or > directory) > I checked my php.ini to make sure I set the fopen wrappers and they are set. > > Any help would be appreciated. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Clear Form onLoad
Hello everyone. I have been teaching myself PHP over the past few months. I have to say that I am impressed with the learning curve for it. I do have a problem that has popped up that maybe someone could help with. I have a javascript that clears my forms using the onLoad command for my other sites. I recently started a php site. however my script is not working. Is there a way to make my script work with onLoad? If not is there a way to clear the form when the page loads? I dont want people to be able to click the back button and resubmit the same information a second time. Any help would be greatly appreciated Bill -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Clear Form onLoad
The index page has an include for the footer... "William Stickles" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello everyone. > I have been teaching myself PHP over the past few months. I have to say > that I am impressed with the learning curve for it. I do have a problem that > has popped up that maybe someone could help with. I have a javascript that > clears my forms using the onLoad command for my other sites. I recently > started a php site. however my script is not working. Is there a way to > make my script work with onLoad? If not is there a way to clear the form > when the page loads? I dont want people to be able to click the back button > and resubmit the same information a second time. Any help would be greatly > appreciated > > Bill > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Clear Form onLoad
The index page has an include for the footer page... Virile V lets men and women in a loving relationship restore the bond of closeness and intimacy that sometimes gets lost when sex becomes infrequent or unsatisfying. Simply put, Virile V, can make your sex life ELECTRIFYING! Be a Super Lover AT ANY AGE! "If you're considering high priced prescriptions... why not try my exclusive Virile V Formula. It's safe...it's effective and you can try it absolutely FREE!" Dr.James Hughes,M.D. Thousands of men and women all across the country are experiencing the best time of their lives! See what you've been missing! Just two tablets one hour before lovemaking and... BINGO! If your sex drive isn't what you'd like it to be... If you're having trouble maintaining sexual excitement... If you want to BOOST your Sex Drive like Crazy and feel like a teenager again... Order your FREE 6 Pills Now >From there the code is in for the onLoad command... //clear form so people can't hit back button and resubmit order function clear() { alert("Working!"); string=""; document.my_form.contactname.value=string; document.my_form.contactemail.value=string; document.my_form.phone1.value=string; document.my_form.billfirstname.value=string; document.my_form.billlastname.value=string; document.my_form.billstreet1.value=string; document.my_form.billcity.value=string; document.my_form.billstate.value="ZZ"; document.my_form.billzip.value=string; document.my_form.cardtype.value="VISA"; document.my_form.cardnumber.value=string; document.my_form.cardexpmonth.value="00"; document.my_form.cardexpyear.value="00"; document.my_form.shipname.value=string; document.my_form.shipstreet1.value=string; document.my_form.shipcity.value=string; document.my_form.shipstate.value=string; document.my_form.shipzip.value=string; } You Are Ordering: Qty Description Unit Amount (1) 6 Pills Free Trial Offer Free (1) Virile-V Membership $0.00 (1) Auto Ship Program $0.00 Subtotal: $0.00 Shipping & Handling: $1.00 Total: $1.00 https://www.metabiological.com/cgi-sys/cgiwrap/metabiol/metabio.cgi"; > Please provide us with the following information so we may process your order promptly. If any items are missing, we may not be able to process your order. Most importantly, please ensure your email address is correct, as this is how we will notify you if any problems occur while processing your order. When you have finished, please click the 'Submit Order' button to continue submitting your order. Contact Information
[PHP-WIN] RE: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area
[snip] No, it's not a dating service :) Want to meet other PHP developers in your area? Check out: http://php.meetup.com/ Pretty nifty idea... especially given the lack of user groups in the U.S. I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries. [/snip] I have seen some users groups mentioned, which is outstanding. PHP Meetup is gaining lots of ground with 105 members at last check. Top 5 cities are... Manhattan (below 42nd St) (5 members) London, England (4 members) Ann Arbor, MI (3 members) Melbourne (3 members) Washington DC (3 members) [actually tied with Philadelphia, PA and Orange County, CA] And I finally saw another San Antonio member. Just want to keep this fresh in everyone's mind. If you know of other developer lists where php is discussed please forward this along. Thanks! Jay "Do not meddle in the affairs of dragons-for you are crunchy and good with ketchup" -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developersin Your Area
Yes, everyone please join up! I would love to find more developers in the Maryland area, and I'm sure others would in their areas as well! Let's do the great american get togeth... err... the great php get together! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Jay Blanchard" <[EMAIL PROTECTED]> 07/15/02 03:20PM >>> [snip] No, it's not a dating service :) Want to meet other PHP developers in your area? Check out: http://php.meetup.com/ Pretty nifty idea... especially given the lack of user groups in the U.S. I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries. [/snip] I have seen some users groups mentioned, which is outstanding. PHP Meetup is gaining lots of ground with 105 members at last check. Top 5 cities are... Manhattan (below 42nd St) (5 members) London, England (4 members) Ann Arbor, MI (3 members) Melbourne (3 members) Washington DC (3 members) [actually tied with Philadelphia, PA and Orange County, CA] And I finally saw another San Antonio member. Just want to keep this fresh in everyone's mind. If you know of other developer lists where php is discussed please forward this along. Thanks! Jay "Do not meddle in the affairs of dragons-for you are crunchy and good with ketchup" -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] fputs - need help!!
Try adding in a '\r' as well. This stands for a carriage return and '\n' means a line feed. The '\r' is necessary if your viewing the log file with something like notepad, etc. eg; fputs ($sysname_log, $time - SystemName: $sysname\r\n"); Cheers -Original Message- From: MAAS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 July 2002 12:22 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] fputs - need help!! Hi I use this line fputs ($sysname_log, "$time - SystemName: $sysname\n"); I would like to get a log file, and everytime I refresh this page it will make a new line and write $the local time - SystemName: $sysname So after a while it will look like this $the local time - SystemName: $sysname $the local time - SystemName: $sysname $the local time - SystemName: $sysname BUT, this is not working, I don´t get a new line, everything is on the same line. Why?? I use WIN2K and IIS. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: MSSQL and NT Authentification
hi > I went after my problem with the NT authentification and I found out, > that if you want to make a NT-based Authentification (f.ex for an > ODBC-Connection) the I_USR will be seen as the actual user... > > I granted then rights to the I_USR in the DB, but this way, I cannot > distinguish which user is actually working in the DB. > > IS there a way to use NT-Authentification in connection with php & > MSSQL ??? > Yes, there is a way: you can disable anonymous access in IIS for the parts of the website which need login. Christoph -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP Network functions
Lo all, What extensions needs to be enabled to be able to use PHP's network functions in Windows? I'm specifically after the DNS related functions (getmxrr, gethostbyname & fsockopen)... Thank you kindly. -- me
php-windows Digest 16 Jul 2002 07:03:22 -0000 Issue 1243
php-windows Digest 16 Jul 2002 07:03:22 - Issue 1243 Topics (messages 14769 through 14779): MSSQL and NT Authentification 14769 by: Gabor Niederlaender 14777 by: Christoph Grottolo Re: Fopen errors out when opening a URL 14770 by: Brian Huff Clear Form onLoad 14771 by: William Stickles 14772 by: William Stickles 14773 by: William Stickles Re: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area 14774 by: Jay Blanchard [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area 14775 by: Martin Clifford Re: fputs - need help!! 14776 by: David Redmond PHP Network functions 14778 by: Chris Knipe Problem on file_exists() 14779 by: Jack 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 --- Hi all! I went after my problem with the NT authentification and I found out, that if you want to make a NT-based Authentification (f.ex for an ODBC-Connection) the I_USR will be seen as the actual user... I granted then rights to the I_USR in the DB, but this way, I cannot distinguish which user is actually working in the DB. IS there a way to use NT-Authentification in connection with php & MSSQL ??? Please Help , Gabor --- End Message --- --- Begin Message --- hi > I went after my problem with the NT authentification and I found out, > that if you want to make a NT-based Authentification (f.ex for an > ODBC-Connection) the I_USR will be seen as the actual user... > > I granted then rights to the I_USR in the DB, but this way, I cannot > distinguish which user is actually working in the DB. > > IS there a way to use NT-Authentification in connection with php & > MSSQL ??? > Yes, there is a way: you can disable anonymous access in IIS for the parts of the website which need login. Christoph --- End Message --- --- Begin Message --- check out this ini value: allow_url_fopen its set to false for some versions of PHP. another thing, do a sanity check to make sure it works at all... like this: $fp = fopen ("c:\\temp\\test.txt", "r"); also note, you cant use include() or require() with remote files on windows. also note, if this is a heavily trafficked site (like weather.com, google, or Yahoo), the response might not be html, it might actually be gzipped html, which fopen() isn't smart enough to handle. Do a test with a known site. last resort, make sure that the service you are running PHP as is a service that has access to the network. For example, the default install of Apache and IIS probably runs as the Local User, you might need to run it as a domain user, such as yourself. You should be able to change this in the services control panel... I dont know if this matters at all, but you might as well try. -- Brian 'Bex' Huff [EMAIL PROTECTED] Phone: 952-903-2023 Fax: 952-829-5424 > I am trying to do a simple fopen("http://www.weather.com/index.html";, "r"); > For some reason I cannot Open any URL's after trying several. > > I get the following error > > Warning: stat failed for Resource id #1 (errno=2 - No such file or > directory) > I checked my php.ini to make sure I set the fopen wrappers and they are set. > > Any help would be appreciated. --- End Message --- --- Begin Message --- Hello everyone. I have been teaching myself PHP over the past few months. I have to say that I am impressed with the learning curve for it. I do have a problem that has popped up that maybe someone could help with. I have a javascript that clears my forms using the onLoad command for my other sites. I recently started a php site. however my script is not working. Is there a way to make my script work with onLoad? If not is there a way to clear the form when the page loads? I dont want people to be able to click the back button and resubmit the same information a second time. Any help would be greatly appreciated Bill --- End Message --- --- Begin Message --- The index page has an include for the footer... "William Stickles" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello everyone. > I have been teaching myself PHP over the past few months. I have to say > that I am impressed with the learning curve for it. I do have a problem that > has popped up that maybe someone could help with. I have a javascript that > clears my forms using the onLoad command for my other sites. I recently > started a php site. however my script is not working. Is there a way to > make my script work with onLoad? If not is there a way to clear the form > when the page loads? I dont want people to be able to click the back button > and resubmit the same information a second time. Any help would be great
[PHP-WIN] Problem on file_exists()
Dear all I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing room\report) it stores a lot of PDF reports in there. I'm trying to use the file_exists() function to detect if a specific file exist in this folder, but i got a problem is : It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go through (dealing room) folder. i had made test on it, i moved a file into (\\nedcoraa\pdf_reports), then php can detect it, but if i move it to (\\nedcoraa\pdf_reports\dealing room), then it can't detect the file! why? I'm using php in windows NT IIS environment! Please help me! -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] RE: [PHP] Problem on file_exists()
Jack, try using forward slashes instead of backslashes;eg $fp = fopen("//nedcoraa/pdf_reports/dealing/filename.ext", "r+"); Cheers -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 July 2002 5:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Problem on file_exists() Dear all I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing room\report) it stores a lot of PDF reports in there. I'm trying to use the file_exists() function to detect if a specific file exist in this folder, but i got a problem is : It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go through (dealing room) folder. i had made test on it, i moved a file into (\\nedcoraa\pdf_reports), then php can detect it, but if i move it to (\\nedcoraa\pdf_reports\dealing room), then it can't detect the file! why? I'm using php in windows NT IIS environment! Please help me! -- Thx a lot! Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] mail in WIN2K
Hi Iam trying to use mail in WIN2K PRO, I use IIS. But I only get this in my browser Warning: Server Error in c:\inetpub\wwwroot\log.php on line 23 I use code like this. But what should I use for headers? mail($recipient, $subject, $msg, $mailheaders); Should I do anything in php.ini? I have configurate it with my snmp mail server. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php