[PHP] Fork and multi-thread in PHP?

2002-06-12 Thread Nathan Cassano
Hi PHP folks, I have a program that sends out email by making socket connection to our email server. The problem is that the program is very slow because it has to finish talking to the email server until it can proceed with the next email (as opposed to the mail() function that just

RE: [PHP] eregi(mail)

2002-05-10 Thread Nathan Cassano
This is what I have used. ? if(eregi(^[_.+a-z0-9-]+@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,4})\$, $email)){ echo Good Email!; } ? Here is an excellent article on Regular Expressions. Learning to Use Regular Expressions by Example http://www.phpbuilder.com/columns/dario19990616.php3

RE: [PHP] Browser cache

2002-04-23 Thread Nathan Cassano
?php header(Cache-Control: no-cache); ? -Original Message- From: José León Serna [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 9:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Browser cache Hello: How could I disable the browser cache?, I have a script that

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread Nathan Cassano
If I where in your shoes I would encrypt the accounts with Mcrypt, setup a separate database, on a separate computer, communicating on a low speed serial line (4800 baud) using ppp, fully fire walling the connection and doing mass logging. Mcrypt Encryption Functions

RE: [PHP] php and wml

2002-04-09 Thread Nathan Cassano
Introduction to WML, Apache, and PHP http://www.phpbuilder.com/columns/mike20010118.php3 Building dynamic WML sites http://www.phpbuilder.com/columns/baravalle20010221.php3 -Original Message- From: Starman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 1:00 PM To: [EMAIL

RE: [PHP] Cookies

2002-04-02 Thread Nathan Cassano
There is no such thing as an infinite cookie. About the closest thing to infinity in PHP is year 2038. setcookie(test, val, 2147483647); -Original Message- From: Steffan Harris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 11:57 AM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] PHP OOP: Multiple Class Extends

2002-03-21 Thread Nathan Cassano
Attention PHP guru's, I have a question about PHP and OOP. My problem is that I want multiple inheritance functionality in PHP but it does not support this (see http://www.zend.com/manual/keyword.extends.php). My question is can PHP classes be extended multiple times to simulate multiple

RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Nathan Cassano
Yes here is a solution to this problem and I am surprised no one on this list pointed it out. Simply put a transparent dot within a cell table that you wish to have the background image display. Netscape 4 in retarded in the fact that it will not display a cell background image unless it has

RE: [PHP] URGENT: CERT Advisory CA-2002-05 Multiple Vulnerabilities in PHP fileupload

2002-02-28 Thread Nathan Cassano
I'm finished! Patched all my servers, recompiled and installed. We're safe. -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 9:58 AM To: [EMAIL PROTECTED] Subject: [PHP] URGENT: CERT Advisory CA-2002-05 Multiple Vulnerabilities in

[PHP] Quote in input tag value?

2002-02-07 Thread Nathan Cassano
If there is a quote mark in an input tags value what is the correct way to print the quote? input type=text value=quotMy Quotequot or input type=text value=\My Quote\ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] WAP

2002-01-17 Thread Nathan Cassano
There are some excellent article at phpbuilder.com about PHP and WAP. Go to http://www.phpbuilder.com/columns/ and scroll down to the WAP columns. -Original Message- From: LaserJetter [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 9:27 AM To: [EMAIL PROTECTED]; [EMAIL

RE: [PHP] 8 bit check sum???? Not 32 bit

2002-01-16 Thread Nathan Cassano
This is a strange request but here you go. function CRC8bit($data){ return (crc32($data) 255); } -Original Message- From: Brian C. Doyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 11:34 AM To: [EMAIL PROTECTED] Subject: [PHP] 8 bit check sum Not 32 bit

RE: [PHP] sql question

2002-01-15 Thread Nathan Cassano
select * from tbl_lit where lit_source like 'c%'; Check out http://www.sqlcourse.com/ -Original Message- From: Wolf-Dietrich von Loeffelholz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] sql question i want that a select

[PHP] Persistent Database Resources?

2002-01-14 Thread Nathan Cassano
Lets say I have a page that makes queries with multiple sorts, returning plenty of rows and displaying part of the result set. Each time the client accesses the page the query must be re-executed, spinning the CPU and thus tieing up resources. In PHP, or any other language could the result set

RE: [PHP] Mommy, is it true that...?

2001-12-21 Thread Nathan Cassano
One thing that I do know is dangerous is deleting rows based on an integer field with an unprocessed value; Example: Delete row script ? if($delete $id){ delete from mytable where id = $id; } ? By simply appending an all inclusive sql clause. $id = 21421 or 1 = 1; Ca-Boom! The

RE: [PHP] How can I have CVS ?

2001-12-20 Thread Nathan Cassano
And the answer is... WinCVS Check it our at. http://www.cvsgui.org/ -Original Message- From: Alawi [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 7:51 AM To: PHP genral Subject: [PHP] How can I have CVS ? and log to it from windows ? -- PHP General Mailing List

RE: [PHP] PHP module for modem???

2001-12-18 Thread Nathan Cassano
There aren't any modem modules that I am aware of but if you are using UNIX you can just open the modem device and talk to it directly. What is your application that would need to use a modem? ? /* Something like this */ $fp = fopen(/dev/modem, rw); fwrite($fp, ATA); echo fgets($fp, 128)

RE: [PHP] Performance

2001-12-13 Thread Nathan Cassano
I have always assumed straight html was faster than function output. My logic being that quoted output requires more parsing than straight html. But they may be the same speed after a simple optimization pass. -Original Message- From: René Fournier [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] phplib???

2001-12-13 Thread Nathan Cassano
Went to www.google.com. Searched phplib. The first result returned was http://sourceforge.net/projects/phplib. -Original Message- From: Duane Douglas [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] phplib??? hello, can

RE: [PHP] Script like this for PHP

2001-12-12 Thread Nathan Cassano
While we are on the topic of Dynamic HTML, I'd like to recommend DynAPI (http://dynapi.sourceforge.net/), a powerful cross-browser DHTML library. You can do some awesome stuff with DynAPI. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] How to UNSUBSCRIBE ???

2001-12-07 Thread Nathan Cassano
Whats wrong? Is it that you don't like us anymore? Why would you want to unsubscribe? Please inspect the bottom of any PHP list email to find you answer. -Original Message- From: fazer [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 8:25 AM To: [EMAIL PROTECTED] Subject:

[PHP] Simulating POST with GET and Location:

2001-11-02 Thread Nathan Cassano
Hi list, Don't you just hate the way that the POST method makes browsers act some times? Expiring pages and asking you if you really want to reload this page. I have found a solution. Instead of relying on the POST method to protect pages from being accessed twice, I use GET and at the

RE: [PHP] defending PHP mail function

2001-10-31 Thread Nathan Cassano
My favorite email libraries are .. SMTP class http://www.phpguru.org/download.php?script_id=10 And working in conjunction with SMTP class .. HTML Email Class http://www.phpguru.org/download.php?script_id=4 -Original Message- From: Matthew Luchak [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] PHP and qmail

2001-10-31 Thread Nathan Cassano
If you have installed Qmail and removed Sendmail create symlinks to the qmail sendmail wrapper and you should not have to edit you php.ini. Read the qmail INSTALL file for more. # ln -s /var/qmail/bin/sendmail /usr/lib/sendmail # ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail -Original

[PHP] Daylight savings and timestamps

2001-10-26 Thread Nathan Cassano
Hello fellow PHPer's, Daylight savings is soon upon most of us and I have some questions in regard to timestamps. My problem: So we put our clocks an hour back. I have database tables with plain integers that store timestamps. I like to do comparison operations with these timestamps.

RE: [PHP] How to protect MySQL password

2001-10-23 Thread Nathan Cassano
One solution is to depend upon your defaults in /usr/local/lib/php.ini . Then just call mysql_connect() with no arguments or just call mysql_db_query with out the connection parameter and PHP will connect for you. If you are connecting to different MySQL servers this solution is not appropriate.

RE: [PHP] Password Generator?

2001-04-18 Thread Nathan Cassano
Random Pronounceable Password Generator This function generates random pronounceable passwords. (ie jachudru, cupheki) http://www.zend.com/codex.php?id=215single=1 -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 1:20 PM To:

RE: [PHP] password

2001-03-27 Thread Nathan Cassano
Don't you mean.. http://httpd.apache.org/docs/mod/mod_auth.html or do you want to do this with php headers? -Original Message- From: Marisol Daz E. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 9:03 AM To: PHP General Subject: [PHP] password Hi I need the code, for

RE: [PHP] Tutorial for RegExpressions

2001-03-14 Thread Nathan Cassano
Learning to Use Regular Expressions by Example http://www.phpbuilder.com/columns/dario19990616.php3 -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 6:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Tutorial for RegExpressions Hi ! Does

[PHP] HTTP Bailout

2001-03-12 Thread Nathan Cassano
When a client bails out of a http connection and apache shuts down that thread process, is there something or a way so that php can call some sort of destructor? My problem is if a client bails out right in the middle of a financial transaction I need some way of canceling a pending order.

RE: [PHP] Is it odd or even??? Optimize!!!

2001-03-05 Thread Nathan Cassano
You all are a bunch of un-optimizing novices. Just do some bit banging. i.e. if(1 number){ echo "$number is odd"; }else{ echo "$number is even"; } -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 12:18 PM To: PHP User

RE: [PHP] strip ^M's ??

2001-03-02 Thread Nathan Cassano
Here is a solution I can up with to solve all the CR and LF funniness coming from different web browsers. $input = ereg_replace("\r\n|\n|\r", "\n", $input); -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 9:43 AM To: PHP User Group

[PHP] Reindexing Arrays

2001-02-15 Thread Nathan Cassano
I have an array of search results which I am searching through and unset()ing unwanted search results. My question is once I have unset a result there is then a break in the numeric index and how do I stop this from happening or reindex the results. Like this.. $results = array(0 = array(more

Re: [PHP] php and xml

2001-02-13 Thread Nathan Cassano
Steve, Did you take a look at the raw data returned by the fsockopen file pointer. There may be some http headers that are tripping up the xml parser. -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 12:07 PM To: PHP Mailing

[PHP] Class method reference

2001-02-09 Thread Nathan Cassano
Does anyone know how to pull a function reference from a class method? Here's why, class myclass(){ var $myarray; function mysort() { /* User sort fails */ usort($this-myarray, $this-mycompfunction); /* Or */

RE: [PHP] job search/posting software

2001-02-05 Thread Nathan Cassano
At CJHunter.com we use swish-e http://sunsite.berkeley.edu/SWISH-E/ in conjunction with custom php scripts to make our job and resumes searches. -Original Message- From: Chuck Barnett [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:46 AM To: PHP General List Subject: [PHP]

RE: [PHP] Echo and Print

2001-01-26 Thread Nathan Cassano
As I understand it, echo is somewhat of an language construct and print is a function. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 11:37 AM To: [EMAIL PROTECTED] Subject: [PHP] Echo and Print I know it is a kind of stupid