[PHP] Attachments with Mail()

2003-10-23 Thread Don Mc Nair
Hi Can anyone tell me how to add a file as an attachment to an email sent with something like the following ? $headers = From: .$fromaddress.\r\n; $headers .= Reply-To: $fromaddress\r\n; mail($toaddress, $subject, $mailcontent, $headers); Thanks Don --- Outgoing mail is certified Virus

Re: [PHP] Attention: List Administrator

2003-09-19 Thread Don Mc Nair
I got 21 emails with attachments today from Microsoft. Don Payne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Raquel Rice wrote: On Fri, 19 Sep 2003 15:39:12 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Chris Sherwood ([EMAIL PROTECTED]): To Whom it may

[PHP] Arrays and Alphabetical order

2003-07-22 Thread Don Mc Nair
Hi folks I am trying to print out a table of elements in alphabetical order. I have an SQL query which sorts out the data in order and am using 'while ($info =(mysql_fetch_row...etc)) to read the data array. I need it to echo out a table with all the A's first, then a blank line, then all the

[PHP] File Permissions

2003-01-24 Thread Don Mc Nair
Sorry if this is not really PHP related but I can't get it to work. I am using fopen and I get the following: Warning: fopen(testfile2.php, w) - Permission denied in /usr/local/psa/home/vhosts/complementarymedicines.net/httpdocs/reg/regformte st.php on line 411 I have tried setting this

[PHP] Re: value not displayed

2003-01-24 Thread Don Mc Nair
Use ?php echo $_GET['abc']; ? Rahul [EMAIL PROTECTED] wrote in message 00b301c2c38e$c9d83f80$[EMAIL PROTECTED]">news:00b301c2c38e$c9d83f80$[EMAIL PROTECTED]... Hello All, When i pass a value through browser to a php page as below http://www.xyz.com/test.php?abc=test But when i try to

[PHP] file creation (again)

2003-01-24 Thread Don Mc Nair
Thanks for all the help so far folks. I have finally got PHP to create a page on the web server now but the owner is set to apache. As it uses an include() function it will not allow me to display the page giving Warning: SAFE MODE Restriction in effect. uid not allowed to etc. I dont seem

[PHP] Re: Auto Incrementing in PHP

2003-01-19 Thread Don Mc Nair
); } Simple when someone tells you what to do :o) Thanks and regards. Don Mc Nair [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Is there a way for a php page to automatically increment a number and store it every time the page is loaded.

[PHP] Auto Incrementing in PHP

2003-01-18 Thread Don Mc Nair
Hi Is there a way for a php page to automatically increment a number and store it every time the page is loaded. I want to generate an invoice number that goes up 1 everytime the HTML form is sent to it. Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

[PHP] Dumping Tables from MySQL

2003-01-14 Thread Don Mc Nair
Hi folks I am having trouble writing a script to dump the data from tables in MYSQL. Can anyone provide help on how to use the mysqldump command within PHP (4.2). Many thanks Don www.complementarymedicines.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system