Search found 4 matches

by speedy_rudolf
Fri Oct 30, 2009 6:32 am
Forum: PHP - Code
Topic: mail with attachment problems
Replies: 1
Views: 37

Re: mail with attachment problems

I forgot to copy this part of the code: $headers="From: $from"; $semi_rand=md5(time()); $mime_boundary="==Multipart_Boundary_x{$semi_rand}x"; $header.="\nMIME-Version: 1.0\n"."Content-Type: multipart/mixed;\n"."boundary=\"{$mime_boundary}\""...
by speedy_rudolf
Fri Oct 30, 2009 4:23 am
Forum: PHP - Code
Topic: mail with attachment problems
Replies: 1
Views: 37

mail with attachment problems

Hi. I have the following code: else if(file_exists("site".$timp.".zip"))     {$file=fopen("site".$timp.".zip", "rb");     $data=fread($file, filesize("site".$timp.".zip"));     fclose($file);     $data=chunk_split(base64_encode($d...
by speedy_rudolf
Wed Oct 28, 2009 7:25 am
Forum: PHP - Code
Topic: if statements problems
Replies: 1
Views: 92

Re: if statements problems

Sorry...I forgot you can't see raw php code....so....here it is: <?php $timp=$_GET['timp']; $eroare=fopen("eroare.txt", "r"); $layout=fgets($eroare, 102400); $fis_lay=fgets($eroare, 102400); $text_lay=fgets($eroare, 102400); $text=fgets($eroare, 102400); $fis_txt=fgets($eroare, 1...
by speedy_rudolf
Wed Oct 28, 2009 5:28 am
Forum: PHP - Code
Topic: if statements problems
Replies: 1
Views: 92

if statements problems

Hi. I'm trying to make a web form, but I kind of hit a dead end trying to figure out why it doesn't work. Basically, I'm trying to read from a file and then populate the form according to the file. The link to the code is http://rudolf.uv.ro/php/eroare.php and the link to the file is http://rudolf.u...