RE: [PHP] mailing to 19000 users
If you use qmail, then ezmlm (www.ezmlm.org) might be a solution for you. It's capable of using MySQL to store the subscriber lists. Daniel > I am soon to encounter the problem Mostafa is facing. > Currently, I have written my custom code to mail to > users subscribed to mailing lists on my site. (It is > custom code using PHP, MySQL, Linux cron.) > I was wondering if there is a mailing list system that > could use MySQL to retreive the list of subscribers. > Thanks. -- 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] HTTP Header
Hy list :-) I need to manually send the HTTP header with PHP. The following is an example what I have to send to the client: HTTP/1.1 200 OK Date: Mon, 04 Feb 2002 10:01:54 GMT Server: Apache/1.3.20 (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6 Connection: Keep-alive, close Expires: Thu, 01 Dec 1994 16:00:00 GMT Content-Length: 1078 Content-Type: text/plain How would I Do that with PHP? Thx, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Perhaps a task for regexp?
Hy list, I'm currently writing an application to edit and send our customer news- letter. The interface and the template engine which will put the content into text or html templates is ready and working. Now I'd love to extend the system to automatically generate content lists. The html newsletter contains headers from to . Now I'd like to parse through the text and get all occurences of ... and ... add a tag before each of them. How could this be done best? Would a regexp help to get all these entries? And how would I add the tag? Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() and qmail
Hy list, seems like my PHP installation won't send mails with qmail. I'm using it with vpopmail. As suggested in the manual nots for mail() I tried using both /path/to/qmail/bin/sendmail -t -i and directly using /path/to/qmail/bin/qmail-inject for sendmail_path in php.ini. Anyway ... it doesn't send mails, there even are no error messages in both php log an qmail log. Anybody on the list using qmail who could help? Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() and qmail
> I use qmail with PHP on a RH v 7.0 system. Works like a charm. Same here, RH 7.0 with some updates from RPM. > I compiled/installed qmail from source. Installed RH, Apache and PHP from source, too. Do you have a possibility to look at a phpinfo() page? There the option your php version uses for sendmail_path should be visible? Would be interesting to know what parameters your php version uses. Mine uses sendmail -t -i. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] GD GIF or PNG Detect Part 2
> However when there are no GD libraries installed the > following error is > thrown: > Fatal error: Call to undefined function: imagetypes() > > Any suggestions to prevent the error message being thrown. Are there > other methods to detect the presence GD libraries before > testing for GIF > or PNG support? How about using something like this? if (function_exists('ImageTypes')) { // GD functions are available } else { // GD functions not available } http://www.php.net/manual/en/function.function-exists.php is the place in the manual :) Daniel -- 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] Trouble with PNGs
Hy, I'm using PHP 4.0.6 with GD-2.0.1 and Freetype 2 compiled in. After playing a while with gd, I found that i can generate blank images with TTF text on it and can put text with imagestring on a png, but writing with ImageTTFText fails. Any idea? Daniel -- 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] Trouble with PNGs
> I'm using PHP 4.0.6 with GD-2.0.1 and Freetype 2 compiled in. After > playing a while with gd, I found that i can generate blank images > with TTF text on it and can put text with imagestring on a png, > but writing with ImageTTFText fails. Okay, I've tried it with PNG and JPEG, nut nothing works. The sample i use can be viewed at: http://195.127.171.50/php/testimages.php First picture is PNG, second is JPEG. On both i tried to write using the windows arial.ttf font. Source is available at: http://195.127.171.50/php/gd_image_inc.phps What the &%&%/ is going in here? Can anyone please help me? This makes me go crazy. Daniel -- 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] CF convert question..
> In the middle of porting over a large cold fusion project to php. How are your experiences so far? Any bigger problems? Missing Features? > CF has a tag called which lets you jump to > another page/location. > > Does php have an equivalent? Yes. Give http://www.php.net/header a try. Daniel -- 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] POST files with PHP
Hy, I'm trying to post image files to a php script with another php script. Don't ask why, it's a crazy project :) Now the file is around 28000 bytes but the post receiver only gets around 300 bytes. Has anybody experienced this behaviour? I use the following script: --- snap --- http://www.server.com/post.php";; // the file to upload $file = "/var/www/test/dummy.jpg"; // the file location $con_type = "image/jpg"; // the file mime type $content_file = join("",file($file)); // define boundary srand((double)microtime()*100); $boundary = "---".substr(md5(rand(0,32000)),0,10); $data = "--$boundary Content-Disposition: form-data; name=\"userfile\"; filename=\"$file\" Content-Type: $con_type $content_file"."--$boundary--\r\n\r\n"; $msg = "POST $remote_page HTTP/1.0 Content-Type: multipart/form-data; boundary=$boundary Content-Length: ".strlen($data)."\r\n\r\n"; $f = fsockopen("www.server.com",80); fputs($f,$msg.$data); $result = fread($f,32000); fclose($f); print $result."\n"; ?> --- snap -- -- 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] Classes and functions
Hy, I'm writing a class for POP3 access and I want some of the internal functions to be private, like the mime decoding stuff. Is there any way to do this? I found nothing in the docs :( Daniel -- 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] PHP and plugin detection
Hy, is there any way to detect the plugins a user has installed in his browser with PHP? I want to write a page where users get a plugin depending on their installation. If none of the required plugins is available an error page should be viewed. If it's not possible using PHP, can it be done with JavaScript? Greetings, Daniel -- 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] Compiling on Windows
Hy, is there any guide available, how to compile the Windows version of PHP4.0.6 with all available modules like GD/Freetype, IMAP, curl, etc. Daniel -- 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] preg_match
Hy, i've got a string which looks like "<[EMAIL PROTECTED]>". Now i wanted to check it with preg_match like this: if ( preg_match( '/[\<][a-z]([-a-z0-9_.])*@([-a-z0-9_]*\.)+[a-z]{2, }[\>]/i', $value ) ) { print "Valid mail address"; } else { print "Invalid mail address"; } Unfortunatly this doesn't work. I think, i have to use a different syntax for the "<" and ">" braces. Can somebody give me a hint? Thx, Daniel -- 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] gettext functions
Hy, i would like to use the gettext functions but i have no hint, where i have to put the locale files and how to tell php where they are. Is ther any sample implementation available for this? Daniel -- 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] GD2 and alpha channels
Hy, i would like to use the alpha channel funtionality in GD2 to put a jpeg into a PNG (24bit) with alpha channel. As i'm a total newbie with GD, i'd love to see some examples. Can somebody shed a light on this? Greetings from Germany, Daniel -- 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] Error while saving attachments (jpegs)
Hy, i wrote a little cron job which fetches mails from a pop account and saves all contained jpeg attachments to disc. I use the following code: --- snap --- // determine attachment encoding $atty = imap_fetchbody($mbox, $i, $b); switch($att_ency) { case "base64": $decoded_string = imap_base64($atty); break; case "binary": $decoded_string = imap_binary($atty); break; case "other": $decoded_string = $atty; break; } // save it to disc echo $upload_folder.$att_name; $fp = fopen ($upload_folder.$att_name , "w+"); fwrite ($fp, $decoded_string, $atty_size); fclose ($fp); --- snap --- After saving there is a difference in filesize and the image is unusable. Original image size is 758.204 bytes and after saving the attachment to disc its 759.885 bytes. What am i doing wrong here? Greetings from Germany, Daniel -- 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] URGENT: imap_fetchbody CRLF trouble
Hy there, I've got serious problems with the imap_fetchbody function and need help urgent. When using $atty = imap_fetchbody($mbox, $i, $b, FT_INTERNAL); to fetch a base64 encoded attachment, imap_fetchbody replaces CRLF although it shouldn't. I did RTFM and it says: --- snap --- FT_INTERNAL - The return string is in "internal" format, without any attempt to canonicalize CRLF. --- snap --- Well... obviously this doesn't work. Is there any way i can get this to work? I need the CRLF's to get to their original CR state. Otherwise my whole project will fail :o( Greets, Daniel -- 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]