Re: [PHP] complicated but fun, please help.

2003-03-17 Thread Erik Price
Daniel McCullough wrote: Where I am having problems at is when they need to update the poppasswd, which is a IMAP or QMAIL file. Plesk has files that will update the system, but it seems that I using the exec() and system() I can access those pl files. From the command prompt it works

Re: [PHP] How to break out of nested loops

2003-03-17 Thread Erik Price
Bix wrote: I have a for loop within a for loop, and need to break out of both together... for ( blah ) { for ( blah ) { if ( true ) { break; } // only breaks out of this loop, how can I break it out of both loops. } } break accepts an optional numeric argument which tells it how many nested

Re: [PHP] complicated but fun, please help.

2003-03-18 Thread Erik Price
Daniel McCullough wrote: Yes sorry for not being clear. I am trying to use exec() and system(). I guess I'm trying to see if there is another way to do it, like write to a file and have acron job run every minute or so, or if there is some way to make it seem like I am doing this with the

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread Erik Price
Jim Greene wrote: Hi All, I have a text file that has entries like the following: user1:mbox1: user1:mbox2: I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2'; I then want to print out the data in the $mboxs variable (array) I am trying to use foreach but it does not work..

Re: [PHP] Authentication

2003-03-18 Thread Erik Price
Beauford.2002 wrote: I am looking for a simple authentication script that uses MySQL. I have downloaded about 10 of them (most with no instructions on it's use), but even at that they are not what I need. The PEAR project has 7 different authentication packages, including Auth which I

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
Vernon wrote: I am calculating distances between to record's zip codes using php and have a need to sort the recordset by that value. How do I do something like this? I mean it's not a value in the table that I can use the SQL ORDER BY statement. I want to be able to have the distances closest

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
Vernon wrote: Use the distance you've calculated as the numeric index of an array, pointing to the record that corresponds to that distance. Can you please expalin this statement? Perhaps a tutorial somewhere? I could explain it better if you could post the code that you have so far which

Re: [PHP] php auth instead of .htaccess

2003-03-18 Thread Erik Price
Bryan Koschmann - GKT wrote: Hello, I have gotten used to using .htaccess to protect files/directories, but now I am looking at a need to authenticate against mysql. I have no problem actually getting it to authenticate, but I'm wondering what the simplest way to prevent someone from hitting

Re: [PHP] PHP Processing Order || Function Calls

2003-03-18 Thread Erik Price
CF High wrote: Hey all. I was under the impression that PHP processes all php code first before handing HTML processing over to the browser. http://www.php.net/manual/en/ref.outcontrol.php Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
vernon wrote: I think that maybe I should explain the fist Zip comes from a session, here I've defined the variable. I use the caluation in the code to get the distance and then loop the recordset so that the distance is created each time the record loops through. I have taken many things

Re: [PHP] nstalling PHP

2003-03-18 Thread Erik Price
Marc Bakker wrote: Hello all, I installed PHP, Apache and MySQL. I read the install.txt file that came with php and changed the default values in php.ini and httpd.conf. When I restart Apache and type my local website (127.0.0.1/index.php) IE comes with a 'Save file As' dialog box. Instead of

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-18 Thread Erik Price
Brad Wright wrote: Thanks for the reply Rene, Any change of a code sample of how u did this?? Im not at all experienced in Java. According to the manual, PHP does have some tokenizer functions: http://www.php.net/manual/en/ref.tokenizer.php However, the documentation appears to be lacking as

Re: [PHP] Using PHP to get a word count of a MSword doc

2003-03-19 Thread Erik Price
Brad Wright wrote: Erik, thanks, are you able to pint me to some good reference sources on tokenizer's... i have never come across them before I have been scouring the web, and am coming up a decided blank. :) The only tokenizers I have used are the StringTokenizer and StreamTokenizer classes

<    2   3   4   5   6   7