[PHP] sending mail via SMTP server

2002-02-26 Thread Matthew Delmarter
the socket to the SMTP server 2. I fire the mail through - a few thousand emails 3. I close the socket Do I have to close and reopen the socket every few hundred emails? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] smtp server and socket connections

2002-02-18 Thread Matthew Delmarter
I just wanted to come to grips with how sockets/SMTP works. Is it like this... 1. I open the socket to the SMTP server 2. I fire the mail through - a few thousand emails 3. I close the socket Also, is step 3 necessary? Regards, Matthew Delmarter -- PHP General Mailing List (http

[PHP] smtp server and socket connections

2002-02-18 Thread Matthew Delmarter
I just wanted to come to grips with how sockets/SMTP works. Is it like this... 1. I open the socket to the SMTP server 2. I fire the mail through - a few thousand emails 3. I close the socket Also, is step 3 necessary? Regards, Matthew Delmarter -- PHP General Mailing List (http

[PHP] get process id of a script?

2002-01-28 Thread Matthew Delmarter
Is there any way to get the process id of a script running on Apache? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

RE: [PHP] set_time_limit() in a loop

2002-01-27 Thread Matthew Delmarter
02 12:08 AM To: Matthew Delmarter Cc: PHP Mailing List Subject: Re: [PHP] set_time_limit() in a loop what are you doing a while on if while never ends and you reset the time out each loop and use ignore_user_abort(true), it will still be going 13 hours latter. maybe if you send the full code so w

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
I should also mention that the loop is sending mail using mail(). Is it possible that this is the problem somehow? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:16 PM To: 'Matthew Delmarter'; PHP Mailing List Subject

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
Thanks for your reply Martin. Any ideas why ignore_user_abort would cause this problem? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:16 PM To: 'Matthew Delmarter'; PHP Mailing List Subject: RE: [PHP] set_time_limit() in a

[PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
script is still running 13 hours later! Or is this related to the ignore_user_abort? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

[PHP] mail headers problem

2001-12-12 Thread Matthew Delmarter
tter_name, $newsletter_email, $newsletter_subject, 'Return-Path: <[EMAIL PROTECTED]>' ) It doesn't work! If I change 'Return-Path: <[EMAIL PROTECTED]>' to 'Reply-To: <[EMAIL PROTECTED]>' it does work. Any ideas? Reg

[PHP] sharing data stored in mysql with another site

2001-10-30 Thread Matthew Delmarter
I have developed a site using PHP and MySQL. My question: How do I share the data stored in the database with another site? Regards, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

[PHP] ereg

2001-09-30 Thread Matthew Delmarter
How do I use ereg to check for MSIE 5.5 and above. eg: eregi("(MSIE.[56])",$HTTP_USER_AGENT) This only gets version 5 and 6 ... but I want 5.5 and above. Any ideas? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

RE: [PHP] display query results at random

2001-09-25 Thread Matthew Delmarter
Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: September 26, 2001 12:01 PM To: PHP Mailing List Subject: [PHP] display query results at random How do I return a specific record from a db outside of the query? Let's say I "select * from table" (using my

[PHP] display query results at random

2001-09-25 Thread Matthew Delmarter
How do I return a specific record from a db outside of the query? Let's say I "select * from table" (using mysql_fetch_object) and get 5 results. I want to display the 5 results in different / random places on the page. Place 1 - show details for record 3 Place 2 - show details for record 1 Plac

[PHP] send mail to mailing list using mail() or smtp?

2001-08-23 Thread Matthew Delmarter
mail directly to the smtp server? Can you foresee any problems? I look forward to your reply... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] stop a batch of mail during send

2001-08-13 Thread Matthew Delmarter
Let's say I am mailing 1000 members of a mailing list - is it possible to stop the process once started? In particular I am looking for a browser based solution... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] stop a batch of mail during send

2001-08-13 Thread Matthew Delmarter
Let's say I am mailing 1000 members of a mailing list - is it possible to stop the process once started? In particular I am looking for a browser based solution... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] using placeholders and db results

2001-08-05 Thread Matthew Delmarter
Here is an example of my code: $text = "Hi ##firstname## ##lastname##,"; $text = ereg_replace("##([^#]+)##", $row->."\\1", $text); $row-> is a result of using mysql_fetch_object. I would expect it to replace ##firstname## and ##lastname## with the value of $row->firstname and $row->lastname

[PHP] is there a performance hit using flush() ?

2001-08-05 Thread Matthew Delmarter
ic example is displaying the results of a mail program as it fires off mail to hundreds of members in a database. Will this slow down the execution of the script at all - or much? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

[PHP] field sizes

2001-08-05 Thread Matthew Delmarter
Hi all, I am curious about how to best define the size of fields in mysql. Is there some size that are better used than others? For example without thinking about it to much I would tend to size fields in multiples of 10 - 20, 50, 100, 200 etc... Is this the best answer? Regards, Matthew

[PHP] dynamic variable names?

2001-07-31 Thread Matthew Delmarter
I'll try again... my explanation of my exact problem was not too good last time :P I am working with the following code: $text = "##firstname##"; $text = ereg_replace("##([^#]+)##", $row["\\1"], $text); $row[] is a result of using mysql_fetch_array. I would expect it to replace

[PHP] dynamic variable names?

2001-07-31 Thread Matthew Delmarter
Is it possible to dynamically assign a variable name? For example: variable name is $var_."name" or $var_."$name" Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

[PHP] search array for value

2001-07-30 Thread Matthew Delmarter
How do I search an array? For example if I want to know if $array contains "1"... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adminis

[PHP] search based on array

2001-07-30 Thread Matthew Delmarter
How do I search mysql based on an array? For example suppose I had an array of array(1,2,3). And I want to search like so: SELECT * FROM table WHERE id=arrayvalues Regards, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

RE: [PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
ge! I should admit that I am only just getting used to arrays... Matthew -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:03 PM To: 'Matthew Delmarter' Subject: RE: [PHP] storing array in mysql Have you tried serialize()'ing it

[PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
Hi all, I want to store the results of a multiple select input box in a mysql db. The box looks like this: name I cannot seem to store the array in a database and then output the result using foreach. Any tips? Regards, Matthew Delmarter Web Developer AdplusOnline.com Ltd

[PHP] naming conventions

2001-07-26 Thread Matthew Delmarter
e? In short I want to know if more than personal preference is involved in naming fields... Regards, Matthew Delmarter Web Developer AdplusOnline.com Ltd www.adplusonline.com Phone: 06 8357684 Cell: 025 2303630 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] mailing in batches

2001-07-23 Thread Matthew Delmarter
do I get a script to run in the background? I am only familiar with processing script within an html page that is returned to a client. Will a script like this keep running even if a browser window is closed? Also is there any examples of this kind of app? Regards, Matthew Delmarter Web

[PHP] using image place holders in a database field?

2001-07-10 Thread Matthew Delmarter
n a field - but I can see it's advantages. I hope this all makes sense... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] using image place holders in a database field?

2001-07-10 Thread Matthew Delmarter
n a field - but I can see it's advantages. I hope this all makes sense... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread Matthew Delmarter
Is it possible to stop the mail delivery once the process has started - even in the middle of a run? -Original Message- From: Michael Stearne [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 2:07 PM To: Matthew Delmarter Cc: PHP Mailing List Subject: Re: [PHP] sending 5000+ emails

[PHP] PHAkt for Macromedia Ultradev

2001-07-01 Thread Matthew Delmarter
appreciated... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] sending 5000+ emails - use PHP?

2001-07-01 Thread Matthew Delmarter
I at looking at using PHP to send a monthly newsletter to 5000+ users who have subscribed via our site. The newsletter will be in HTML format for those who have selected this option - otherwise plain text. Can PHP handle something like this? Regards, Matthew Delmarter -- PHP General Mailing

[PHP] mnoGoSearch & PHP udm_ functions

2001-06-20 Thread Matthew Delmarter
is is mnoGoSearch? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] can I detect html email capability?

2001-04-04 Thread Matthew Delmarter
nd correct? I never knew such things could be done. If so, can it be done with PHP? I look forward to your reply... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

[PHP] get name of file

2001-03-19 Thread Matthew Delmarter
How do I return the name of a file without any extensions or path info. Eg how do I return "about" from "http://www.domainz.com/about.htm". Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

[PHP] get current events from mysql query by date?

2001-03-05 Thread Matthew Delmarter
I have a mysql database of events. It contains the following fields: - EventID - EventName - EventDescription - EventStartDate - EventEndDate I would like to query the database for the next 5 events from the current date (today). Any ideas? Regards, Matthew Delmarter Web Developer -- PHP

[PHP] check all values in HTTP_GET_VARS

2001-02-18 Thread Matthew Delmarter
I want to check to see if all vars in HTTP_GET_VARS array are empty. How can I do this? The code would work like this: if(all HTTP_GET_VARS empty): do this; else: echo this; endif; Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To

[PHP] sessions & javascript problem

2001-02-07 Thread Matthew Delmarter
I have an interesting problem with sessions (using enable-trans-sid). I have created a page with the following javascript function on it: function swapImgRestore() { var i,x,a=document.sr; for(i=0;a&&ihttp://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] sessions or db for shopping cart

2001-01-29 Thread Matthew Delmarter
I am about to build my own shopping cart but would like some feedback on the following: 1. Using arrays stored in a PHP4 session vs. a database for storing cart details. 2. What is the best method of passing session data if cookies disabled. I hope you can help... Matthew -- PHP General Mail