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
$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 =
$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 =
3 matches
Mail list logo