[PHP] PHP to get mail headers

2003-11-23 Thread Scott St. John
I run a small ISP and am looking at ways to automate grabbing the headers from email. I currently copy all email to a BSD box, then use Pine in header mode to get the IP addresses from which I build my spam filters. A search did not yield much in what I am trying to do: 1)Open the mailbox

Re: [PHP] RedHat

2003-04-05 Thread Scott St. John
John- This would best be asked on a Red Hat list, but I can tell you that if you are using Red Hat 7.3 I would not really count on getting them to release PHP 4.3 as once a major Red Hat release is out they usually only provide security updates - NOT feature updates. Red Hat also modifies the

Re: [PHP] Javascript

2003-02-25 Thread Scott St. John
Usually you would have the actual page between the () so it would be: echo a class=\white\ href=\javascript.openpopup('whatever.php?Unique_Id')\; -Scott At 04:10 PM 2/25/2003 -0800, Todd Barr wrote: I have tried this 3 different ways and none of them worked... I am trying to get javascript

Re: [PHP] Unix passwd file

2002-10-04 Thread Scott St. John
At 04:54 AM 10/4/2002 -0600, Peter Janett wrote: You can just put the username and password in the MySQL database as normal text, then build your applications that are reading them to check the passwords with the UNIX Crypt function. Basically that is what I am trying to do. I just converted a

Re: [PHP] Unix passwd file

2002-10-04 Thread Scott St. John
At 01:54 PM 10/4/2002 +0200, lallous wrote: Peter, I think he's stuck with the parsing part? you can file() the /etc/passwd file then explode() it and add the username,passhash parts and/or more values into the mysql table. I can parse the file just fine, what I am trying to do is actually make

[PHP] fsockopen

2002-05-16 Thread Scott St. John
I am using fsockopen to test several of our SQL and WEB servers at our office. Testing ports 80, 1433 and 8080 work fine, but I would like to set something up to test ports on our mainframe. These are printers listening on 9100 and when I test it fails. I don't see anything in the online

[PHP] SQL Server test tool

2002-05-15 Thread Scott St. John
Has anyone seen or know if it is possible to use PHP to test if a SQL server is alive on port 1433? I know I could run a query, but was looking for something to actually test on the port. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] date comparison again

2002-05-09 Thread Scott St. John
Thank you Miguel! I was missing the /86400 and it works much better now :) On Thu, 9 May 2002, Miguel Cruz wrote: On Wed, 8 May 2002, Scott St. John wrote: Sorry to be so thick this morning, but I have a unix time stamp in my MS Sql server that is the date, plus 60 days to expire

[PHP] adding 60 to a date

2002-05-07 Thread Scott St. John
Morning I am working on a password aging system that will force a user to change their password every 60 days. Can anyone recommend the best method for taking the current date and adding 60 days to that number? Should I do a unix timestampe and add or strtotime and add 60 days? Thanks,

Re: [PHP] adding 60 to a date

2002-05-07 Thread Scott St. John
Will the fact that the server is on NT be a problem? On Tue, 7 May 2002, John S. Huggins wrote: On Tue, 7 May 2002, Scott St. John wrote: -Morning - -I am working on a password aging system that will force a user to change -their password every 60 days. Can anyone recommend

Re: [PHP] PHP Editors

2002-05-01 Thread Scott St. John
I second that! I was to the point where I bought Ultra Dev but only used it for table layout and then spent the rest of my time in Home Site. Now with the new Dreamwever MX Home Site is built in. I was able to complete a site I was working on in PHP in about an hour last night! Since Home

Re: [PHP] PHP editor for windows

2002-04-22 Thread Scott St. John
Macromedia/Allaire Home Site 5.0 has PHP color coding, not auto-complete, but you can customize it for auto-complete if you want. You can also make it tab 2 instead of 4 :) It's been my editor since the free version 1.0 and it's a work horse. And Home Site has Ultra Dev/Dream Weaver

Re: [PHP] Return more than 255 chars

2002-04-22 Thread Scott St. John
Change nvarchar to varchar, ntext to text. I do not think you can return a nvarchar from SQL Server like that. Was this imported from Excel? -Scott On Mon, 22 Apr 2002, Jeff Hatcher wrote: I'm running Advance Server with MSSQL 2000 Enterprise. I can not get php to return more than 255

Re: [PHP] mysql quickie..

2002-04-17 Thread Scott St. John
Kelly- My way may not be perfect, but this is what I do. $sql_temp = select last_insert_id() as mainid from transfers; $sql_result_temp = mysql_query($sql_temp,$connection); $row_temp = mysql_fetch_array($sql_result_temp); $file_temp_id = $row_temp[mainid]; -Scott On Wed, 17 Apr 2002,

[PHP] Conditions within a function

2002-04-16 Thread Scott St. John
I have been trying to organize my code better by using functions, especially where I am repeating logic. The problem seems to be when I run a condition within the function, an if statement to check for results of a variable. As is the code seems to be bypasses, but if I put a die; in the

Re: [PHP] Conditions within a function

2002-04-16 Thread Scott St. John
On Tue, 16 Apr 2002, Erik Price wrote: First of all, try organizing your code using whitespace. Here is an example of the code, formatted to be a bit easier to read: Thank you, that was Pine doing some nice formatting tricks of it's own. Now, my first question, is why do you have $userID

[PHP] cookie sharing between asp and php

2002-04-09 Thread Scott St. John
I have developed a security application for our intranet that handles a user login. It writes values to a cookie and uses that to verify them on the intranet sites until the sessions expire. Since we have not totally moved over to PHP I have some ASP applications I need to protect as well.

Re: [PHP] Re: cookie sharing between asp and php

2002-04-09 Thread Scott St. John
On Wed, 10 Apr 2002, Gordon Stewart wrote: As far as I know - ALL cookies set by a particular server - can be read re-set by any programme / process on the same server / website.. So your ASP script could read your PHP cookies vice-versa.. I'm just learning PHP, dont know cookies as yet (I

Re: [PHP] Custom 404

2002-04-02 Thread Scott St. John
Custom 404 what? Do you want to make one? On Tue, 2 Apr 2002, Craig Donnelly wrote: Custom 404 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hi to you anti-spammers HAHA

2002-04-01 Thread Scott St. John
? echo phpinfo(); ? On Mon, 1 Apr 2002, vins wrote: Happy Happy Easter. and to all you peeps out there who don't celebrate this day. Hope you enjoyed your day. And just too keep the cool How do i run that script that give all the information about php ? Someone told me the you type

[PHP] cookies

2002-03-27 Thread Scott St. John
Help! I have not had a need to use sessions or cookies on PHP until now. My experience has been to use Sessions in ASP. I am building a system to have users log in and then drop a cookie on their machine so they can log onto other apps. It's an internal app. The cookie will contain a

Re: [PHP] Re: which php book 2 buy ?

2002-03-26 Thread Scott St. John
I didn't think Programming PHP was out yet? On Tue, 26 Mar 2002, Rasmus Lerdorf wrote: Or, of course, if you want to be cool like Carl: http://lerdorf.com/buy/ ;) -Rasmus On Tue, 26 Mar 2002, Ralph Friedman wrote: In article [EMAIL PROTECTED], Septic Flesh wrote: I

Re: [PHP] Perl NewsGroup?

2002-03-21 Thread Scott St. John
Not really a bad question as both are great tools. If you are new to Perl check out the Perl Beginners group. Wonderful group of people and very patient with newbies. Make sure you read up on things you are trying to do before you ask the how do I do this question. -Scott On Wed, 20

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
Yes, I have tried that. To view them on the next page I would call them as $choice[0];$choice[1];, etc, but only the first item in the list is available. -Scott On Thu, 14 Mar 2002, Erik Price wrote: Did you try putting brackets at the end of the input names? This tells PHP to put the

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
Ok, how about a code snipet since I seem to be blind this morning. The select box code: select multiple=yes name=groups id=av ? $sql = select groupID,groupName from groups order by groupName; $result = mssql_query($sql,$connection); while($row = mssql_fetch_array($result)){ $groupID =

Re: [PHP] getting values from multiple select

2002-03-14 Thread Scott St. John
On Thu, 14 Mar 2002, Erik Price wrote: Sure! First go get a cup of coffee! :) Then change the first line to say this: select multiple=yes name=groups[] id=av Let me know how that works for you. Erik- I don't do coffee, but the Iced Tea works just as well :) Thank you, all is well and my

[PHP] getting values from multiple select

2002-03-13 Thread Scott St. John
Hi gang- I am working on a javascript box that will allow the user to drag values from one select box to another. I will use this box to set the values. This is a standard, multiple select box. On the next page I need to figure out what PHP is doing with the data coming in. If I send 5

[PHP] number_format

2002-03-08 Thread Scott St. John
Hi everyone, I am trying to format a number for a report, the one consistant thing is the three decimal places. But I need to strip them, then fill in zero's from the left. So, if the number coming in is 8.000 I need to convert to 00800, 11.070 would convert to 01107. I have tried a

RE: [PHP] number_format

2002-03-08 Thread Scott St. John
Lightwood Consultancy Ltd http://www.lightwood.net -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: 08 March 2002 17:02 To: [EMAIL PROTECTED] Subject: [PHP] number_format Hi everyone, I am trying to format a number for a report, the one

Re: [PHP] REQUEST QUESTION

2002-03-05 Thread Scott St. John
Call me silly, but I would just call the hidden values: $order1 and $order2 Did I miss why they both must be called order? On Tue, 5 Mar 2002, karthikeyan wrote: Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly There are 2 hidden

Re: [PHP] mySQL back up

2002-03-04 Thread Scott St. John
1)Create the db in mysql: mysqladmin -u (your user name) -p (if you have a password) create (new database name) 2)mysql -D (the name you used above) (the text file) Works on Unix and 2000. Is that what you mean? -Scott On Mon, 4 Mar 2002, Wilbert Enserink wrote: Hi all, I have a

Re: [PHP] Non printable page

2002-03-01 Thread Scott St. John
Black background, white text used to work :) On Fri, 1 Mar 2002, Diana Castillo wrote: Is there any way tomake a page that cannot be printed?? -- -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

Re: [PHP] Non printable page

2002-03-01 Thread Scott St. John
Seriously, another option that works in IE would be to use the link tag in the head of the document Put an alternate document in the tag so when they print the page you can control the content Here is the tag: link rel=alternate media=print href=whatevertxt -Scott On Fri, 1 Mar 2002, Diana

Re: [PHP] how to use PHP on command line in windows

2002-03-01 Thread Scott St. John
Just download the CGI version and call it from the command line I am doing a project now based entirely on the command line using PHP as a file parser on Win 2K You can add it to your path or just call it: c:\php\phpexe -q nameOfScriptphp Make sure you write it like a normal PHP script with

[PHP] intranet security

2002-02-27 Thread Scott St. John
I am currently building an intranet security system to handle internal users and the web applications we have. When we are done we will have the ability to add/remove users, control what apps they can and can't see, etc. One thing I would like to be able to do is set up groups and have the

Re: [PHP] Re: intranet security

2002-02-27 Thread Scott St. John
Thank you. What I am trying to avoid is doing a parsing of the string everytime a user comes in. My thought is to use a user table, a group table and then a permissions table that will allow the user to be a member of more than one group. Thank you, -Scott On Wed, 27 Feb 2002, Julio