[PHP] Email with attachment function

2004-06-17 Thread Mark Cubitt
except it isn't divided up (i.e. attachment is text) Regards Mark Cubitt function send_mail($to, $from, $subject, $body, $attachment = '', $attachmentDir = '') { $path_to_sendmail = "/usr/sbin/sendmail"; $fp = popen(&quo

RE: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Mark Cubitt
I'm not sure but I think it would depend on the programming language and with php File I/O is slower then database (mySql anyway). Where as Perl would probably be quicker with the text file. I could be wrong though Regards Mark Cubitt > -Original Message- > From: Travis

[PHP] Weird problem with objects

2004-01-23 Thread Mark Cubitt
t;); This makes no sense to me what so ever, so can anybody shed some light on it for me. I'm prob just making a silly mistake but any help would be very much appreciated. Thanks in advance Regards Mark Cubitt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Function returns

2004-01-12 Thread Mark Cubitt
Shawn McKenzie wrote: > Maybe a dumb question, but as good coding practice, should all functions > return something even if they don't need to??? > > Example: > > function do_it() > { >echo "hi"; > } > > --or-- > > function do_it() > { >return echo "hi"; > } > > Also, if they do other th

RE: [PHP] Random Password Making.

2003-03-28 Thread Mark Cubitt
se letters $letterammount = ($letterammount + 1); } } return($string); } hope that helps Regards Mark Cubitt > -Original Message- > From: Philip J. Newman [mailto:[EMAIL PROTECTED] > Sent: 28 Ma

RE: [PHP] Long script execution and its implications?

2003-03-12 Thread Mark Cubitt
a copy of the code you are using might help for suggestions, and you say each line has upto 5 seprate querys on your db, are you using seprate tables to hold that data? > -Original Message- > From: Simon Lusted [mailto:[EMAIL PROTECTED] > Sent: 12 March 2003 14:57 > To: [EMAIL PROTECTED]

RE: [PHP] creating flat versions of php pages

2003-02-25 Thread Mark Cubitt
y = $body."$comment$ctbl"; $body = $body."$otbl Submitted by: $auth_nameDate: $commdateser"; $body = $body."$otbl $ctbl"; } $sth2->finish; $desc = "$name, $city, $county, & site title"; $keywords = "$name, $city, $county, & site title&

RE: [PHP] dynamic list box

2003-02-24 Thread Mark Cubitt
;0.8 double' => 2, '0.8 PTH' => 3, '1.6 single' => 4, '1.6 double' => 5, '1.6 PTH' => 6, '3.2 single' => 7,

RE: [PHP] creating flat versions of php pages

2003-02-24 Thread Mark Cubitt
if this answer takes this a little off topic. regards Mark Cubitt > -Original Message- > From: electroteque [mailto:[EMAIL PROTECTED] > Sent: 24 February 2003 11:13 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] creating flat versions of php pages > > > i dont under

RE: [PHP] AUTH (.htaccess style)

2003-02-20 Thread Mark Cubitt
ggest any improvements please say as they will be a help p.s. i'm not a security expert so this is probely not very secure regards Mark Cubitt > -Original Message- > From: Sebastian [mailto:[EMAIL PROTECTED]] > Sent: 20 February 2003 09:35 > To: [EMAIL PROTECTED]

RE: [PHP] AUTH (.htaccess style)

2003-02-20 Thread Mark Cubitt
ecure regards Mark Cubitt > -Original Message- > From: Sebastian [mailto:[EMAIL PROTECTED]] > Sent: 20 February 2003 09:35 > To: [EMAIL PROTECTED] > Subject: [PHP] AUTH (.htaccess style) > > > Greetings. > > I have a member system which each user has a unique ID, use

[PHP] Best way to sort a multidimentional array....

2003-02-19 Thread Mark Cubitt
Hello, I need to manipulate, the following data in a number of diffierent ways (specifics follow). Telephone extension number - 4 digits in the range 2000-2119 Total time on phone - seconds integer values Total No. of calls - integer value Name - A persons name I'm purposely NOT using a datab