[PHP] Email with attachment function

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

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 Low [mailto

[PHP] Weird problem with objects

2004-01-23 Thread Mark Cubitt
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 things but really don't

RE: [PHP] Random Password Making.

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

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
in either php or perl , is mod_fast_cgi a better way to do this ? is there a way of trawling through each page creating a html version of it and also converting the links to other pages and the other pages too ? Mark Cubitt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Are all

RE: [PHP] creating flat versions of php pages

2003-02-24 Thread Mark Cubitt
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 understand what you mean , anyway, this is a short term

RE: [PHP] dynamic list box

2003-02-24 Thread Mark Cubitt
this helps regards Mark Cubitt -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED] Sent: 24 February 2003 14:02 To: [EMAIL PROTECTED] Php. Net Subject: [PHP] dynamic list box Hello, I have an sql statement that pulls data into a dynamic list box, the problem is, I

RE: [PHP] AUTH (.htaccess style)

2003-02-20 Thread Mark Cubitt
; } pg_close($dbh); ? 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, username and password. I

RE: [PHP] AUTH (.htaccess style)

2003-02-20 Thread Mark Cubitt
: text/html); Header(Status: 302 Moved); Header(Location: $site/unauthorised.htm); exit; } pg_close($dbh); ? regards Mark Cubitt -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 09:35 To: [EMAIL PROTECTED] Subject

[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