[PHP] Help with CHdir

2002-10-02 Thread Nokar
I get this error from php when i execute this code can you help me ;) Warning: chdir() expects parameter 1 to be string, resource given in C:\\read.php on line 146 145 echo "Attachment :"; 146 $rep = opendir("C:\\xxx\\Attach\\$id\\"); 147 chdir($rep); 148 while ($zone = readdir($rep)) 149 { 1

[PHP] Help with Imap : getting attachment

2002-10-01 Thread Nokar
$attachdata[$x] = imap_base64($attachment); on that part sometimes the attachdata get empty so i did a IF but at that point i'm stuck. If i output it raw it will simply not work. Please help ! Here the code : if ($AsAttach == "Y") { for ($x=0;$x PID : $pid[$x] Type : $type[$x] "; $attachment =

[PHP] Not sure if it pass the first time : Help with imap attachment

2002-10-01 Thread Nokar
$attachdata[$x] = imap_base64($attachment); on that part sometimes the attachdata get empty so i did a IF but at that point i'm stuck. If i output it raw it will simply not work. Please help ! Here the code : if ($AsAttach == "Y") { for ($x=0;$x PID : $pid[$x] Type : $type[$x] "; $attachment =