Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Daniel Clark
Guess it really is "experiemental" :-) >> http://www.php.net/manual/en/ref.sockets.ph > > Yes, I've read that page... many times. It has not helped me. That is > why I am posting my problem here, in that hopes that someone can help. > > (I don't mean to be completely helpless, but I just don't yet

RE: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Vail, Warren
There is another kind of blocking you could be running into (other than the type mentioned in the manual) and it was eluded to before. What are the odds you are going through a firewall to get to the server. Firewalls will reject attempts to connect to unauthorized sockets on protected machines.

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread René Fournier
There is no firewall—it's all running locally, on my iBook (with Firewall off). You know, I really wish it WAS the firewall. :-) I really can't believe this little problem I'm encountering is because of some bug in the Socket library. I mean, what I'm doing is so simple, and I'm sure hundreds of

Re[2]: [PHP] Socket looping challenge

2004-05-13 Thread Tom Rogers
Hi, Friday, May 14, 2004, 9:11:21 AM, you wrote: RF> The script doesn't even get that first "while" condition line. It loops RF> a few times (while receiving messages), then when no more messages are RF> coming from the server, and it times-out, it breaks out of the "while", RF> then returns to th

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread René Fournier
Hi Warren, There is only one process, and I'm sure I have only one IP address. It's just one script that loops. At the top of the loop, it waits to socket_read some data. If no data appears, I want it to timeout so that it can send the server a ping (which I must do). THAT is where the problem

[PHP] _$ variable

2004-05-13 Thread ken
Please somebody tell me what _$ (start from underscore) variable means. I'm trying to find it from PHP.NET, but I cannot find that.

RE: [PHP] _$ variable

2004-05-13 Thread Chris
That is, as far as I know, invalid syntax. Maybe it's being confused with the predefined Super Global variables like $_GET , $_POST, and $_SERVER ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 5:30 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] problem install pws and php

2004-05-13 Thread Jay Blanchard
[snip] i am a beginner for php programming, my OS is win98 while my webserver is PWS, all is in the same machine,when i try to run my internet explorer( type in http://localhost/phpinfo.php), phpinfo.php cannot be display. i try to reinstall pws and php follow the instrustruction but its still s

Re: [PHP] _$ variable

2004-05-13 Thread John W. Holmes
[EMAIL PROTECTED] wrote: > Please somebody tell me what _$ (start from underscore) variable means. > I'm trying to find it from PHP.NET, but I cannot find that. http://us2.php.net/manual/en/function.gettext.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|

Re: [PHP] Load Data infile

2004-05-13 Thread John W. Holmes
Juan Pablo Herrera wrote: [snip] I need do load data infile in mysql: $query_string2 = "LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO TABLE `test` FIELDS TERMINATED BY ',' ENCLOSED BY '\"' ESCAPED BY '\\' LINES TERMINATED BY '\n'";$query_db_string2 = mysql_query($query_string2); But not realiz

[PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread CF High
Hey all. I'm running an online sport report that is member protected; i.e. users need to login to gain site access. When a new user signs up, I set their username to their email address & generate a temporary password for them using rand() & md5(): $username = strip_illegals($_POST['email']); $p

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): > On Thursday, May 13, 2004, at 05:13 PM, Daniel Clark wrote: > > >http://www.php.net/manual/en/ref.sockets.ph > > Yes, I've read that page... many times. It has not helped me. That is > why I am posting my problem here, in that hopes that someone c

RE: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Vail, Warren
Don't know if this will help, but can you confirm whether your while loop is failing on the first time through or a subsequent time through (perhaps by echoing something each time through)? Warren Vail -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED] Sent: Thursday, May

Re: [PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread Curt Zirzow
* Thus wrote CF High ([EMAIL PROTECTED]): > > $username = strip_illegals($_POST['email']); > $plain_pass = rand(); > $password = md5($plain_pass); > > I then insert their login info into our member's table. > > Unexpectedly, when users attempt to login no matching record is found. Are you sendi

Re: [PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread CF High
Their receiving the $plain_pass $plain_pass is md5'd on login submit, so we should get md5($plain_pass ) = db stored md5'd($plain_pass ). Makes no sense at all. Got a couple hundred emails in my inbox from users not able to login -- I'm basically screwed ;--( --Noah "Curt Zirzow" <[EMAIL PRO

Re: [PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread John W. Holmes
CF High wrote: If anyone has any clues as to what might be happening; i.e. why the md5'd submitted plain text password does not match the stored md5'd password, please, please let me know. md5() results in a 32 character string. What kind of field are you storing it in? -- ---John Holmes... Amaz

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > By default php streams the STDIN to a file so your just dealing > with buffer sized ~2K-4K. enabling this option makes php put the > contents into memory, thus leaving open the possiblity of someone > using up all your memory and bringing the machine to

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Chris Shiflett
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > PHP must read the whole post stream to create $_POST and > $HTTP_POST_VARS arrays, and to save file uploads into a temporary > files. This happens before the script is executed. Well, there are other scenarios: POST /path/to/script.php HTTP/1.1 Hos

Re: [PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread CF High
password field is char (32) Strange that the usernames are all properly set to the submitted email address, but the password is not properly updated. Correct me if I'm wrong here, but $plain_pass = rand(); /* plain pass should be a random # */ md5($plain_pass); /* plain pass is a random # here a

Re: [PHP] Socket looping challenge

2004-05-13 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): > > MESSAGE RECEIVED > PHP Warning: socket_read() unable to read from socket [35]: Resource > temporarily unavailable in /Users/rene/Sites/gpspolice/titan/cr.php on > line 61 This error [35] will occur if the socket isn't ready yet. Its an EAGA

[PHP] Normalising Names

2004-05-13 Thread Justin French
Hi all, Can someone point me in the direction of a function/library/tutorial on normalising and formatting user-inputted names so that they have the correct capitalisation etc? This will work for MOST situations I'm aware of: BUT, this will not work in the following cases: 1. whe

Re: [PHP] Normalising Names

2004-05-13 Thread Curt Zirzow
* Thus wrote Justin French ([EMAIL PROTECTED]): > Hi all, > > Can someone point me in the direction of a function/library/tutorial on > normalising and formatting user-inputted names so that they have the > correct capitalisation etc? > > This will work for MOST situations I'm aware of: > $nam

Re: [PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread CF High
Re: the browser track, it looks like all adversely affected users; i.e. those who can no longer log in, have a browser of I.E. 6.0. I know that in many cases I.E. 6.0 has session and cookie vars disabled by default. Is it possible, a long, long shot, that rand() behaves differently in I.E. 6.0 --

Re: [PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread Travis Low
Besides checking the browser cookie settings, have one of the affected users turn off the auto-fill form feature, then tell the browser to forget all saved form information. Let us know what happens. cheers, Travis CF High wrote: Re: the browser track, it looks like all adversely affected use

Re: [PHP] Normalising Names

2004-05-13 Thread John W. Holmes
Justin French wrote: Can someone point me in the direction of a function/library/tutorial on normalising and formatting user-inputted names so that they have the correct capitalisation etc? I remember a discussion about this on the list a while ago (http://www.phparch.com/mailinglists/msg.php?a

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread raditha dissanayake
Chris Shiflett wrote: --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: PHP must read the whole post stream to create $_POST and $HTTP_POST_VARS arrays, and to save file uploads into a temporary files. This happens before the script is executed. Well, there are other scenarios: POST /path/to

[PHP] Re: Webcapture to PDF

2004-05-13 Thread Paul Chvostek
On Thu, May 13, 2004 at 09:59:56AM -0600, Ashley M. Kirchner wrote: > >Looking for a (open source) solution here: is there some way that I > can convert an already existing HTML page to a PDF file, by means of a > script (on a unix box)? Well, http://www.babysimon.co.uk/khtml2png/ will buil

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > By default php streams the STDIN to a file so your just dealing > > with buffer sized ~2K-4K. enabling this option makes php put the > > contents into memory, thus leaving open the possiblity of someo

Re: [PHP] Normalising Names

2004-05-13 Thread Justin French
On 14/05/2004, at 1:50 PM, John W. Holmes wrote: Justin French wrote: Can someone point me in the direction of a function/library/tutorial on normalising and formatting user-inputted names so that they have the correct capitalisation etc? I remember a discussion about this on the list a while

[PHP] export mysql to excel

2004-05-13 Thread CurlyBraces Technologies \( Pvt \) Ltd
hi ,   i want to export data in mysql to excel .. but problem is mysql runs in the linux machine , How can i get that data from mysql-Linux machine  to windows-Excel machine , plz help asap   thanx in advance curlys -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] variable passing using URL

2004-05-13 Thread gowthaman ramasamy
hello list, I have a problem in passing variables using URLs. I have a link from a PHP 'Page One' and passing some variables thru URL. This link should now open another page (main frame) which will have two frames in it (left frame and Right frame). But I want the variables to be passed on to the

Re: [PHP] Error Passing Command in URL

2004-05-13 Thread Chris Shiflett
--- Dragon <[EMAIL PROTECTED]> wrote: > If I/You try to open the Admin-Sektion ?open=admin > Nothing happens, you will only reload the main view. Use $_GET['open']. It will work. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Han

[PHP] tracking ip and its location

2004-05-13 Thread adwinwijaya
Hello PHP, Is there any function/class to search the location based on ip address ? For example, I got ip 144.xxx.xxx.xxx and it can displaying that IP comes from X country. thxs -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] variable passing using URL

2004-05-13 Thread Steve Douville
Capture the variables you've sent to the main frame page and send them via the url of the frames. Hope that helps. - Original Message - From: "gowthaman ramasamy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 14, 2004 2:24 AM Subject: [PHP] variable passing using URL

Re: [PHP] export mysql to excel

2004-05-13 Thread Richard Harb
You could get yourself the mySQL ODBC driver and 'Get External Data' in Excel ... Richard -Original Message- From: CurlyBraces Technologies ( Pvt ) Ltd Sent: Friday, May 14, 2004, 7:18:17 AM > hi , > i want to export data in mysql to excel . but problem is mysql runs in the linux > mac

<    1   2