Search found 2 matches

by eyriquewong
Mon Oct 25, 2010 4:55 am
Forum: PHP - Code
Topic: mail function not working
Replies: 0
Views: 156

mail function not working

hi, i'd tried to run this: mail($to, $subject, $message, $headers); but in the linux shell, it shows this: sh: /usr/sbin/sendmail: No such file or directory when i tried this: whereis sendmail it shows: sendmail: /usr/lib/sendmail /usr/share/man/man8/sendmail.8.gz is this kinda path prob? how do i d...
by eyriquewong
Mon Sep 27, 2010 12:05 am
Forum: PHP - Code
Topic: Spliting from CSV
Replies: 1
Views: 89

Spliting from CSV

hi, i have a csv file, the data is something as below: 1/19/2010,book_1,14,"67,333",5 2/19/2010,book_2,15,"15,123",6 how do i make it into an array? Here's how i come so far $temp_array = explode("\n",read_file('my.csv')); foreach($temp_array as $lines){ //echo $lines; ...