[PHP] Mail Attachment for Photo
Hi All, I am trying to do a mail attachment for photo(jpeg file) by using php mail function and qmail server. I have used the following mime format to send out photo attachment provide by http://planetkiller.shadow.net.au/mime-php.txt. But When I received the mail in Outlook Express, they are in garbage like 1253254dfafafadgas. And the most funny things is that if the mail message has been modified on the server before downloading to Outlook Express. Then, I am able to received the mail in normal situation when downloaded to Outlook Express. By modified I means just to delete a quote or a word, then add it back and then save the file. The code is below. Any body having any ideas. Thanks in advance Mark Lo ? Function mailattachments($to,$subject,$body,$attacharray,$extraheaders) { // Generate a unique boundary $mail_boundary =b. md5(uniqid(time())); // MIME-compliant headers $mailheaders = $extraheaders .MIME-Version: 1.0\r\n .Content-Type: multipart/mixed;boundary=\$mail_boundary\\r\n .\r\n .This is a multi-part in MIME format\r\n .\r\n; // Body. The part that gets displayed as the message: $mailbody = --$mail_boundary\r\n .Content-Type: text/plain;charset=\iso-88592\\r\n .Content-Transfer-Encoding: 7bit\r\n .\r\n .$body .\r\n; // Now, do the attachments for ($i = 0; $i count($attacharray); $i++) { $fp = fopen($attacharray[$i][filename], r); $file = fread($fp, filesize($attacharray[$i][filename])); $file = base64_encode($file); // BASE64-encoded. Text. Nice. $file = chunk_split($file);// Now in handy bite-sized 76-char chunks. $filename = basename($attacharray[$i][filename]); $mailbody .= --$mail_boundary\r\n .Content-Type: .$attacharray[$i][mimetype].;name=.\$filename\\r\n .Content-Transfer-Encoding: base64\r\n .Content-Disposition: attachment; .filename=.\$filename\\r\n .\r\n .$file .\r\n .\r\n; } // End of mail $mailbody .= --$mail_boundary--; mail($to, $subject, $mailbody, $mailheaders); } $fileattach[] = array(filename=/home/timeking/product/bigpic/yellowcomb.jpg, mimetype=image/jpeg); Mailattachments(([EMAIL PROTECTED]),(Subject),(BodyMessages),($fileattach) ,(X-mailer)); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Next and Preview Row
Dear All, I am using PHP + MYSQL. I have a question that I need some expert to help. That is: How do I find out a next and preview row values by using PHP and MYSQL. For examples, Row 10ID00010need this value Row 11ID00025have this value on hand Row 12ID00063need this value The questions is how do I find out the values in Row 10 and Row 12, if and only if I only have one data that is ID00025 (select * from table where field=ID00025) . But, the questions is How do I find out the data in Row 10 and Row 12 which is ID00010 and ID00063 assume I don't know the values of ID00025 is in Row 11. Thank you so much for your help. Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] using php exec command
Hi, I would like to know how to use the exec command to assign a new system users. I have sent out this questions so many times, but doesn't get any reply. Does It means this is ridiculous to assign a new system user using PHP EXEC command. Thank you for your attentions, Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] add system user using PHP Apache
Hi, I would like to know how to use PHP Apache to add system user. Eg. # Adduser mark I am seeking advice, so should I use suexec to perform the task or others. Thank you Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Download the whole directory
Hi, I know I can use the following code to download a single file, but how can I download the whole directory by using the following code. Please help.. (I am using PHP Apache) ?php Header(Content-disposition: attachment; filename=\Quickstep.doc\); Header(Content-type: application/download); readfile($path/Quickstep.doc'); ? Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re-send (Download the whole directory using PHP)
Hi Sir, I have been asking this for so many times, and I never get a reply for this !!! Please help me. I would like to know how to download the whole directory using PHP. Can anyone supply me some sources code for this. I am greatly appreciate for your help. Best Regards, Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Download Function in PHP
Hi All, I would like to know how to download the whole directory using PHP. Thanks Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Create A New File
Hi, I would like to know which function use to create a New File in PHP. Many Thanks Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Create A New File
Dear Rasmus Lerdorf, I mean to create a new file, Not to open a file. Thank you Mark Lo - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Mark Lo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 4:18 PM Subject: Re: [PHP] Create A New File http://php.net/fopen On Thu, 18 Oct 2001, Mark Lo wrote: Hi, I would like to know which function use to create a New File in PHP. Many Thanks Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Create A New File
Thanks - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Mark Lo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 4:25 PM Subject: Re: [PHP] Create A New File http://php.net/fopen please read it again. Pay careful attention to the mode flags. 'w' would create a new file. -Rasmus On Thu, 18 Oct 2001, Mark Lo wrote: Dear Rasmus Lerdorf, I mean to create a new file, Not to open a file. Thank you Mark Lo - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Mark Lo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 4:18 PM Subject: Re: [PHP] Create A New File http://php.net/fopen On Thu, 18 Oct 2001, Mark Lo wrote: Hi, I would like to know which function use to create a New File in PHP. Many Thanks Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Counter
Hi, I would like to know how to write a web page counter in PHP or Javascript. Thank You Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] looking for web designer
Dear Sir, I am looking for PHP Programmer and Web Designer to work on a proget basis. If interesting, please send your reply back to [EMAIL PROTECTED] Best Regards, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Log file analysis
Hi, Is there any software or program exists that can show the site statistics for each virtual domain when individual client access statistics page from their browser. (Assume virtual domain is used, and all of the domain's log file is in one large file).I am using php 4 + Redhat Linux 6.2 + Apache. Any ideas ??? Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] maito function
Hi, I would like to know how to use the mailto function calling the mail client and at the same time having the subject filled with something. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] mailto function with this subject line filled.
Hi, I would like to know how to use the mailto function calling the mail client and most importantly having the subject filled with something. Etc. Subject: abc inquiry Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] mailto function to attach a photo
Hi, I would like to know how to use the mailto function to attach a specific file. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Any Functions !!
Hi, is there any PHP functions to create 3D object from the photo. if no, is there any software exists?? Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] charset
Hi, What could be wrong if I don't specific the CHARSET in my webpage. If my webpage will display both chinese and english, then what charset should i use. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] new one is it ??
208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?NNN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00=a HTTP/1.0 400 333 - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Resize Picture
Hi, I would like to know ..is it possible to let my client resize the picture from the browser instead of having a default height and width. If yes, can you give me some idea of how to do it. Thanks Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Am I being Hacked ???
Hi, My apache log files contains the following log info sending from my desktop to my server which hosted at remote data center, I am wondering, am I being hacked ?? Is there something wrong in my apache server ?? 203.218.49.24 - - [07/Aug/2001:22:04:52 +0800] - 408 - - - - 203.218.49.24 - - [07/Aug/2001:22:04:55 +0800] - 408 - - - - 203.218.49.24 - - [07/Aug/2001:22:04:56 +0800] - 408 - - - - 203.218.49.24 - - [07/Aug/2001:22:04:56 +0800] - 408 - - - - Thanks Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] include path syntax for php.ini under windows
Hi, I would like to know the correct syntax of include_path for php.ini under windows. I have tried to set the include path as C:\home\main\require but it doesn't work. Thanks in advance Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] auto refresh in every five seconds.
Hi, I would like to know how to do a auto refresh in every five seconds. Thanks Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Add system user using php
HI, I would like to know how to add a system user using php. etc. adduser mark..and then passwd mark --password -- password. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Using Frames
Hi, I would like to know how to make all three frames to move at the same time. Actually is it possible ?? Thanks Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] charset
Hi, What will the problem if i don't specific what charset to use in the metal tag. And also, what is the CHARSET of UTF-8. What charset to use if i want my web page to display chinese and english. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] charset
Hi, What will the problem if i don't specific what charset to use in the metal tag. And also, what is the CHARSET of UTF-8. What charset to use if i want my web page to display chinese and english. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Download function for php
Hi, Is there any php download function for php. I am asking is the one like downloading the file from the server when people click the link. Like downloading php sources tar file. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] setcookie problem
Hi, How to set a forever cookie into client machine. I use the following syntax to set the cookie, but when I close the brower's window, then the cookie is deleted when the browser closed. setcookie(buyerid,$email,time()+360,,$domain); setcookie(buyeridpasswd,$passwd,time()+360,,$domain); Thank you for your attentions, Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Commerical Site that is using PHP
Hi, Commerical Site that has been launched and using PHP. the website address is www.trade-revenues.com Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Detect screen size
Hi, I would like to know how to detect the screen size. I mean the viewing area. etc. 800x600, 1028x728... Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] preview function with upload
Hi, Does anyone know how to implement a preview function. That preview function is work after selecting the specific picture to upload in php upload function, when people click the preview function, the the selected upload product will show up on the screen. Hope, I am clear enough. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Syntax Needed in safe_mode_exec_dir
Hi, I have turned on safe mode in PHP4. Now, I would like to exec something in home directory. What syntax should I use ?? etc. safe_mode_exec_dir= /home --- Thank you so much mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] run du command uder php
Hi, I would like to know how to run du command under PHP. is this correct ?? exec (du -ks /home/apache,$test[]); echo $test[0]; -- I would like to print out the result in web browser Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] link variables space problem in netscape
Hi, I am having a problem in link variables in netscape. etc. www.domain.com?xx=1xxx=2=mark loxxxee=polol if the above link contains space, then everyting is faded after the space, how to over come this problem in netscape. In IE5, it is okay to have space in link variables. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Link Color Questions
Hi, I would like to know how to make different link in different color on one page. etc. www.domain1.com in blue color www.domain2.com in red color www.domain3.com in orange color Thank you for your help Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How many color can html recongize in Word.
Hi, I would like to know how many colors can html recongized in WORD such as orange.. red.. blue.. eg. font color="blue"Blue/font where can I find out the sources of how many color can html recrongized in word. and what wording should I use.. Thank you so much, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] replace function in a file.
Hi, Is there any function exists which to open a specific file, then find a specific word, if found, then replace that word with something else. re: I know fopen is to open, read, and write to specific file, but not finding and replacing.. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Attach File in PHP's Mail Function.
Hi, I would like to ask how to attach a file in PHP's Mail Function ?? Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] send mail in HTML format in Mail Function
Hi, I would like to know how to send a mail in HTML format in Mail Functions. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]