RE: [PHP] PHP Interview questions
Oh manit is WAY too early for a question like this... -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 7:31 AM To: Jay Blanchard; Curt Zirzow; PHP General Subject: RE: [PHP] PHP Interview questions [snip] However, Curt does bring up a good pointgiven a real world situation create the decision logic (in code format) that demonstrates you grep the path needed to arrive at a conclusion. As many of us model business processes this is a valid method for determining familiarity with the problem solving method in a code based world. Some of you requested another situation [/snip] Many of you will have seen this one, but perhaps never applied programming logic to it. You come to a fork in the road. One fork takes to to Utopia (where you'd like to go) and the other takes you to the Black Forest (where you definitely do not want to go). There are two men standing there. You know that one always tells the truth, the other always liesbut you do not know which one performs which way. What is the one question that you can ask that will let you know which way is the way to Utopia? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Interview questions
Each connected to a different light bulb, 3 switches, 3 bulbs. Not exactly rocket science here people. :-) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 12:57 PM To: Jay Blanchard Cc: CPT John W. Holmes; Micheal Harris; [EMAIL PROTECTED] Subject: RE: [PHP] PHP Interview questions This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light bulb? 8) Cheers, Rob. On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote: Also ask a couple of other questions that require thought, but have nothing else to do with code. such as... In one room you have 3 light switches, each connected to one light bulb in another room. How many trips must you make to determine which switch is connected to which light bulb? -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul.| `-' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mailing List Weirdness
Forge the headerspleasesomeone. :) -Original Message- From: Dan Van Derveer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Mailing List Weirdness Most mailing lists(I don't know about this one because I have yet to unsubscribe) require confirmation of the unsub too. I was thinking maybe us users can attempt to remove these other mailing lists for ourselves. Dan -Original Message- From: Van Andel, Robbert [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 12:45 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Mailing List Weirdness Is there no confirmation anymore when subscribing to the list?? I seem to recall that once I added my email I got several emails from this mailing list asking me to confirm the subscription. These returned emails are a pain in the a** if you ask me, or even if you don't :D Robbert van Andel -Original Message- From: Jonatan Pugliese. [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:38 AM To: Van Andel, Robbert; [EMAIL PROTECTED] Subject: Re: [PHP] Mailing List Weirdness yes me too - Original Message - From: Van Andel, Robbert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 21, 2003 1:35 PM Subject: [PHP] Mailing List Weirdness The last two posts I sent to this mailing list produced a flurry of emails from various locations including majordomo stating it couldnt' understand the command I just sent it, a reply from a e-commerce site stating my order has been received, and others. Anyone else running into this? Robbert van Andel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] test - please ignore
On that same note, if this list did NOT except attachments, we wouldn't have to worry as much about Thank You! and Details, etc... -Original Message- From: Wouter van Vliet [mailto:[EMAIL PROTECTED] Sent: Sunday, August 17, 2003 7:47 PM To: PHP General Subject: [PHP] test - please ignore I'm just testing if this list accepts text attachments .. would be much easier for code exchange and stuff... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] This is getting rediculus
I don't know, but if we can find out who it is and saywhere he livesI'll be glad to remedy the situation. :-) -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 11:57 AM To: Curt Zirzow Cc: [EMAIL PROTECTED] Subject: Re: [PHP] This is getting rediculus I was thinking about it, but how did he manage to send the confirmation email. Maybe the list admin did it ;) Curt Zirzow wrote: Some joker is somehow making all are posts being sent to request subscriptions, help-list, unsubscriptions.. etc. I'm not sure how we can stop this nonsense. Part of the problem is there seems to be nobody in control of this list. I have tried contacting several people about this but I haven't had any success. Does anyone know who to contact about this? Thanks, Curt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] This is getting ridiculous
But if we find a way to filter the list, say, for patterns just like virus checking programs do. That would probably solve a lot of problems. But again, nobody is really in control of the list so that is difficult...besides, hundreds of people use this list. I don't want to go through and block each individual user. That also defeats the purpose of this list. I'm subscribed so that I can keep up on issues people are having. If I have a question, or a comment, I'll throw my $.02 in. If people just go and block everyone else you end up with tons of redundant posts. Blocking the users is not solving the issue... -Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 1:18 PM To: Curt Zirzow Cc: PHP List Subject: Re: [PHP] This is getting rediculus This is fine an dandy but this problem needs to be resolved. not ignored!!! sarcasm What a brilliant idea! I'll tell you what, you start in the Eastern United States and tell everyone to use something besides Windows and I'll start in the Western United states. We'll meet up somewhere in the Great Plains and shake hands when we've eradicated viruses from America! Next stop: the world! BWAHAHAHA /sarcasm So long as we have people with this lists address in a Windows address book while there's a major worm raging there are going to be emails of this sort. I subscribe to several lists and each one appears to be affected. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail From option in PHP.ini
Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm pulling the e-mail I'd like to change it to from a MySQL database but can I rewrite the php.ini file on the fly or am I stuck. Any help is greatly appreciated. Thanks! Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail From option in PHP.ini
I tried the extra header. The problem is with the return receipts. The mail is being generated by a server other than my main e-mail server, so if I want a delivery/read receipt I have to specify a From e-mail address or else it will default to the user executing the script, i.e. [EMAIL PROTECTED] ini_set() does not appear to work with sendmail_path. sendmail_path is in the PHP_INI_SYSTEM group so it can only be set in the php.ini or httpd.conf...Thanks for the suggestion though... -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:09 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm pulling the e-mail I'd like to change it to from a MySQL database but can I rewrite the php.ini file on the fly or am I stuck. Any help is greatly appreciated. Why not just put it in the extra headers? $headers .= From: $email_address_from_your_database\r\n; Or you could possibly use ini_set() to change the php.ini setting. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail From option in PHP.ini
It's not the recipient that is the problem. The extra headers work fine for that. It's the delivery and read notifications (recipient's mail server). The From header that is generated by sendmail itself is where I'm getting the problem. If I specify the -f option in the sendmail_path it fixes the problem. Just specifying a From header works for the recipients e-mail client, but it doesn't work for their server...I also tried Content-Disposition-To, Return-Path and a few others. All unsuccessfully -Original Message- From: skate [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:16 AM To: [EMAIL PROTECTED]; 'CPT John W. Holmes'; [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini the sendmail_path in php.ini is to do with where abouts the sendmail program is located, not where your sending mail from... if you define the extra headers in the mail, such as FROM and REPLY-TO, you shouldn't have any problems. basically, it's just like fake-mail, and your recipient should be none-the-wiser unless he really wants to sift through the headers. - Original Message - From: Brian S. Drexler [EMAIL PROTECTED] To: 'CPT John W. Holmes' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 18, 2003 4:10 PM Subject: RE: [PHP] Mail From option in PHP.ini I tried the extra header. The problem is with the return receipts. The mail is being generated by a server other than my main e-mail server, so if I want a delivery/read receipt I have to specify a From e-mail address or else it will default to the user executing the script, i.e. [EMAIL PROTECTED] ini_set() does not appear to work with sendmail_path. sendmail_path is in the PHP_INI_SYSTEM group so it can only be set in the php.ini or httpd.conf...Thanks for the suggestion though... -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:09 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm pulling the e-mail I'd like to change it to from a MySQL database but can I rewrite the php.ini file on the fly or am I stuck. Any help is greatly appreciated. Why not just put it in the extra headers? $headers .= From: $email_address_from_your_database\r\n; Or you could possibly use ini_set() to change the php.ini setting. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail From option in PHP.ini
No, I tried this too. Here is what I've tried $hdrs = array( 'From'= ''.$FullName.' '.$Email.'', 'Return-Path' = $Email, //'From'= $Email, //'Disposition-Notification-To' = ''.$FullName.' '.$Email.'', 'Disposition-Notification-To' = $Email, 'Return-Receipt-To' = '' .$FullName.' '.$Email.'', //'Return-Path' = $Email, 'Subject' = 'Your Quote # '.$Theresult ); The commented out ones were also tried -Original Message- From: sven [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:23 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini ... and how about this? $headers .= Return-Path: $email_address_from_your_database\r\n; tell me, if it works. ciao SVEN Brian S. Drexler wrote: I tried the extra header. The problem is with the return receipts. The mail is being generated by a server other than my main e-mail server, so if I want a delivery/read receipt I have to specify a From e-mail address or else it will default to the user executing the script, i.e. [EMAIL PROTECTED] ini_set() does not appear to work with sendmail_path. sendmail_path is in the PHP_INI_SYSTEM group so it can only be set in the php.ini or httpd.conf...Thanks for the suggestion though... -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:09 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm pulling the e-mail I'd like to change it to from a MySQL database but can I rewrite the php.ini file on the fly or am I stuck. Any help is greatly appreciated. Why not just put it in the extra headers? $headers .= From: $email_address_from_your_database\r\n; Or you could possibly use ini_set() to change the php.ini setting. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail From option in PHP.ini
Yes, sorry...forgot to include that one...:-) -Original Message- From: M.A.Bond [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:31 AM To: 'sysadmin'; 'sven'; php-general Subject: RE: [PHP] Mail From option in PHP.ini I take it you've also tried setting Reply-To: ?? Same format as From: Mark -Original Message- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 16:25 To: 'sven'; php-general Subject: RE: [PHP] Mail From option in PHP.ini No, I tried this too. Here is what I've tried $hdrs = array( 'From'= ''.$FullName.' '.$Email.'', 'Return-Path' = $Email, //'From'= $Email, //'Disposition-Notification-To' = ''.$FullName.' '.$Email.'', 'Disposition-Notification-To' = $Email, 'Return-Receipt-To' = '' .$FullName.' '.$Email.'', //'Return-Path' = $Email, 'Subject' = 'Your Quote # '.$Theresult ); The commented out ones were also tried -Original Message- From: sven [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:23 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini ... and how about this? $headers .= Return-Path: $email_address_from_your_database\r\n; tell me, if it works. ciao SVEN Brian S. Drexler wrote: I tried the extra header. The problem is with the return receipts. The mail is being generated by a server other than my main e-mail server, so if I want a delivery/read receipt I have to specify a From e-mail address or else it will default to the user executing the script, i.e. [EMAIL PROTECTED] ini_set() does not appear to work with sendmail_path. sendmail_path is in the PHP_INI_SYSTEM group so it can only be set in the php.ini or httpd.conf...Thanks for the suggestion though... -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:09 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm pulling the e-mail I'd like to change it to from a MySQL database but can I rewrite the php.ini file on the fly or am I stuck. Any help is greatly appreciated. Why not just put it in the extra headers? $headers .= From: $email_address_from_your_database\r\n; Or you could possibly use ini_set() to change the php.ini setting. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail From option in PHP.ini
GREAT!!! I guess I need to RTFM...:-) Thanks again for all your help everyone! -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:38 AM To: [EMAIL PROTECTED]; 'M.A.Bond'; 'sven'; 'php-general' Subject: RE: [PHP] Mail From option in PHP.ini From the php website, it appears that the [EMAIL PROTECTED] can be put in the fifth parameter of the mail() function: Example 3. Sending mail with extra headers and setting an additional command line parameter. mail([EMAIL PROTECTED], the subject, $message, From: [EMAIL PROTECTED], [EMAIL PROTECTED]); Note: This fifth parameter was added in PHP 4.0.5. Since PHP 4.2.3 this parameter is disabled in safe_mode and the mail() function will expose a warning message and return FALSE if you're trying to use it. --- Brian S. Drexler [EMAIL PROTECTED] wrote: Yes, sorry...forgot to include that one...:-) -Original Message- From: M.A.Bond [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:31 AM To: 'sysadmin'; 'sven'; php-general Subject: RE: [PHP] Mail From option in PHP.ini I take it you've also tried setting Reply-To: ?? Same format as From: Mark -Original Message- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 16:25 To: 'sven'; php-general Subject: RE: [PHP] Mail From option in PHP.ini No, I tried this too. Here is what I've tried $hdrs = array( 'From'= ''.$FullName.' '.$Email.'', 'Return-Path' = $Email, //'From'= $Email, //'Disposition-Notification-To' = ''.$FullName.' '.$Email.'', 'Disposition-Notification-To' = $Email, 'Return-Receipt-To' = '' .$FullName.' '.$Email.'', //'Return-Path' = $Email, 'Subject' = 'Your Quote # '.$Theresult ); The commented out ones were also tried -Original Message- From: sven [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:23 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini ... and how about this? $headers .= Return-Path: $email_address_from_your_database\r\n; tell me, if it works. ciao SVEN Brian S. Drexler wrote: I tried the extra header. The problem is with the return receipts. The mail is being generated by a server other than my main e-mail server, so if I want a delivery/read receipt I have to specify a From e-mail address or else it will default to the user executing the script, i.e. [EMAIL PROTECTED] ini_set() does not appear to work with sendmail_path. sendmail_path is in the PHP_INI_SYSTEM group so it can only be set in the php.ini or httpd.conf...Thanks for the suggestion though... -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:09 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Mail From option in PHP.ini Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm pulling the e-mail I'd like to change it to from a MySQL database but can I rewrite the php.ini file on the fly or am I stuck. Any help is greatly appreciated. Why not just put it in the extra headers? $headers .= From: $email_address_from_your_database\r\n; Or you could possibly use ini_set() to change the php.ini setting. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Mark Weinstock [EMAIL PROTECTED] *** You can't demand something as a right unless you are willing to fight to death to defend everyone else's right to the same thing. *** __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Need Help: Please click on Test Link
All I got was Error -Original Message- From: Peter Clarke [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 7:14 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Need Help: Please click on Test Link Suhas Pharkute wrote: http://sspsoft.com/test/ip2ll.php (in case if you cannot get it, please click on http://ns1.webhostdns.us and then click on the website link.) which should identify your Country, State, City. Please click on one of the buttons to provide feedback. I'm in London, England and got the following result: United Kingdom, England, Southend-on-Sea So providing feedback with your options is a little tricky. England is a country not a state. It'll cause confusion if you regard it as such. Southend-on-Sea is not where I'm located. Close but no cigar :) Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Parsing POP3 Mailbox
Ok, this is what I want to do. I would like to parse a mailbox and forward the returned mail in it to other users. For instance, if I send an e-mail to [EMAIL PROTECTED] and [EMAIL PROTECTED] doesn't exist it is going to send the return to [EMAIL PROTECTED]. I want to parse [EMAIL PROTECTED] and send the e-mail to whoever is in the Disposition-Notification-To header of the e-mail. Anyone know where I can find a good script to parse mail boxes or maybe give me an idea of where to start? I checked hotscripts and some others but they are complete web based e-mail systems. I'd like to run this as a cron job if possible and I don't want to tear another system all apart if I don't have to. Thanks in advance! Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] KEEP IMAGE RATIO
Leave out the height or width tag and it will keep the ratio by itself won't it? -Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:46 AM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] KEEP IMAGE RATIO Ok, before you go responding with percentages, I should note this. consider this: Image1 : 100x100 (Ratio = 1:1) Image2 : 100x200 (Ratio = 1:2) Space available for display : 75x75 now, i can say width=75% height=75%, but this will only work for Image1, since Image2 will end up as 75x150 (which clearly does not fit the 75x75 constraints) now, if i specify width=75 height=75, again, this works for Image1, but not Image2, since the new Image2 ratio will be 1:1, with Image2 losing 1/2 of it's heigth ratio. John Manko wrote: Ok, I'm surprised that this is not taken care of with HTML. I propose the following standard (but also looking for a PHP workaround if available) for the Img HTML tag: RATIO = Keep|Ignore, default Ignore lt; img width='x' height='y' RATIO='Keep|Ignore' gt; Where, RATIO=Keep will inlarge the image to a max WIDTH or HEIGHT (which ever comes first), without changing the perspective ratio. I don't want to have to use Photoshop or Gimp to ensure that the images a width=x or heigth=y will keep ratio. If anyone belongs to W3C, please consider this. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Refresh PHP
Try adding a random number to the end of your URL.index.php?$randomnumber -Original Message- From: Mauricio [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:02 AM To: PHP Subject: [PHP] Refresh PHP Hi people! Did anyone get this situation? I'm creating a Site that uses 3 session variables. One of them I always print at the top of the page, it's the name of the user. There is a link that calls the function session_destroy(). Everytime that I follow this link and log in with another user, that session variable printed doesn't change, but if I press F5 in IE or Netscape them it brings the right user. I can't make the page return the current user login, it always came with the last user logged. I tried to add some headers to set no cache in all php pages, but it doesn't work. Anyone can help me??? Thanks PS: Sorry about my poor english... Maurício Valente -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Header/Return Receipt
Ok, I have an interesting one here. I'm trying to send an e-mail from Server A, through Server B, and to a recipient using PHP on Server A. Server B relays the e-mail because Server A does not have an internet connection. Now, I want to request a read/delivery receipt for the user sending the mail but if I specify the Disposition-Notification-To: Header the mail fails to deliver because the username/domain that Server A is executing the script with comes through. I don't know if this makes any sense but here is some stuff from the logs This is from the server the mail is being sent to(Recipient Server) Jul 8 13:32:13 www sendmail[26808]: h68HWCY26808: ruleset=check_mail, arg1=[EMAIL PROTECTED], relay=ServerB.myDomain.com [64.113.42.5], reject=501 5.1.8 [EMAIL PROTECTED]... Domain of sender address [EMAIL PROTECTED] does not exist Jul 8 13:32:13 www sendmail[26808]: h68HWCY26808: from=[EMAIL PROTECTED], size=256213, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=ServerB.myDomain.com [64.113.42.5] This is from Server A: Jul 8 12:43:48 ServerA sendmail[31361]: MAA31361: from=uucp, size=256011, class=0, pri=286011, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Jul 8 12:43:49 ServerA sendmail[31363]: MAA31361: [EMAIL PROTECTED], ctladdr=uucp (10/14), delay=00:00:01, xdelay=00:00:01, mailer=smtp, relay=ServerB.myDomain.com. [206.162.111.100], stat=Sent (2.0.0 h68GhoQ18448 Message acc epted for delivery) This is from Server B: Jul 8 12:43:56 ServerB sendmail[18450]: h68GhoQ18448: to=[EMAIL PROTECTED], delay=00:00:06, xdelay=00:00:05, mailer=esmtp, pri=286213, relay=mail.recipient.com. [64.113.39.156], dsn=5.6.0, stat=Data format error Jul 8 12:43:56 ServerB sendmail[18450]: h68GhoQ18448: h68GhuQ18450: DSN: Data format error Jul 8 12:43:57 ServerB sendmail[18450]: h68GhuQ18450: to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=286313, relay=ServerA.myDomain.com. [206.162.111.97], dsn=2.0.0, stat=Sent (MAA31368 Message accepted for delivery) Any help would be greatly appreciated.Thanks in advance! Brian Here is my code also: (I'm using PEAR Mail and MIME) $FullName=$r[FullName]; $Email=$r[Email]; $ConfirmVia=$r[ConfirmVia]; $ConfirmTo=$r[ConfirmTo]; if($ConfirmVia==Email || $ConfirmVia==EMail) { $file=/tmp/Quote.$Theresult..pdf; system(ps2pdf $filename $file); //This is the part that actually sends the mail include('Mail.php'); include('Mail/mime.php'); $text = 'The quote that you requested is attached. Thank you for the opportunity to quote your enclosure needs!\n\n'.$FullName.'\n'.$Email; $html = 'htmlbodyfont face=\Arial\The quote that you requested is attached. Thank you for the opportunity to quote your enclosure needs!brbr'.$FullName.'br'.$Email.'/font/body/html'; $crlf = \r\n; $hdrs = array( 'From'= $Email, 'Subject' = 'Your Quote # '.$Theresult, 'Disposition-Notification-To' = $Email, 'Return-Path' = $Email ); $mime = new Mail_mime($crlf); $mime-setTXTBody($text); $mime-setHTMLBody($html); //$mime-addAttachment($file, 'text/plain'); $mime-addAttachment($file); $body = $mime-get(); $hdrs = $mime-headers($hdrs); $mail = Mail::factory('mail'); $mail-send($ConfirmTo, $hdrs, $body); //End mail part system(rm -f $file); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() function
I've gotten that error message when running PHP from the command line. The script still works even though it gives me that error though. If anyone figures out what it's from or how to fix it I'd be interested in their solution. -Original Message- From: Mike At Spy [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:57 PM To: [EMAIL PROTECTED]; Mike At Spy Cc: [EMAIL PROTECTED] Subject: RE: [PHP] mail() function I can't tell what the version is, but I can tell you that the kernel is: 2.4.7-10 Maybe it has something to do with what identity php or sendmail is running under? Thanks, -Mike -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:01 PM To: Mike At Spy Cc: [EMAIL PROTECTED] Subject: Re: [PHP] mail() function Yeah, umm, thats a weird error message. What server platform / OS? On Mon, 2003-07-07 at 12:58, Mike At Spy wrote: Is anyone familiar with the mail function and how it works on the server? I can't get it to work on a client's server, and this error shows up in the error log: PHP Warning: U1]': Unable to initialize module Module compiled with debug=144, thread-safety=135 module API=1119810252 PHP compiled with debug=0, thread-safety=0 module API=20010901 These options need to match in Unknown on line 0 PHP Warning: U1]': Unable to initialize module Module compiled with debug=144, thread-safety=167 module API=1120015052 PHP compiled with debug=0, thread-safety=0 module API=20010901 These options need to match in Unknown on line 0 If anyone has any suggestions as to what to look for, I would appreciate it. I already tried 'pointing' php.ini directly to sendmail (which is in a traditional spot: /usr/sbin/sendmail). Thanks, -Mike -- Adam Voigt ([EMAIL PROTECTED]) Linux/Unix Network Administrator The Cryptocomm Group -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() function
Can you run a regular phpinfo() command? -Original Message- From: Mike At Spy [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:57 PM To: [EMAIL PROTECTED]; Mike At Spy Cc: [EMAIL PROTECTED] Subject: RE: [PHP] mail() function I can't tell what the version is, but I can tell you that the kernel is: 2.4.7-10 Maybe it has something to do with what identity php or sendmail is running under? Thanks, -Mike -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:01 PM To: Mike At Spy Cc: [EMAIL PROTECTED] Subject: Re: [PHP] mail() function Yeah, umm, thats a weird error message. What server platform / OS? On Mon, 2003-07-07 at 12:58, Mike At Spy wrote: Is anyone familiar with the mail function and how it works on the server? I can't get it to work on a client's server, and this error shows up in the error log: PHP Warning: U1]': Unable to initialize module Module compiled with debug=144, thread-safety=135 module API=1119810252 PHP compiled with debug=0, thread-safety=0 module API=20010901 These options need to match in Unknown on line 0 PHP Warning: U1]': Unable to initialize module Module compiled with debug=144, thread-safety=167 module API=1120015052 PHP compiled with debug=0, thread-safety=0 module API=20010901 These options need to match in Unknown on line 0 If anyone has any suggestions as to what to look for, I would appreciate it. I already tried 'pointing' php.ini directly to sendmail (which is in a traditional spot: /usr/sbin/sendmail). Thanks, -Mike -- Adam Voigt ([EMAIL PROTECTED]) Linux/Unix Network Administrator The Cryptocomm Group -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Get Rid of this Crook
You do have to admit though, it is a pretty good story. :-) Now let me ask you this. You reply to this e-mail and give your phone/fax numbers and then I'm assuming those get spammed all to hell too. Correct? -Original Message- From: Daryl Meese [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 7:33 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Get Rid of this Crook Could someone that this ass of the mailing list Daryl -Original Message- From: MARIAM ABACHA [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:02 AM To: [EMAIL PROTECTED] Subject: [PHP] ASSISTANCE NEEDED Hello, I am sorry for the embarrassment this letter might cause you as we have not had any correspondence before this letter. I got your address through my nephew with Nigerian Military Chamber of Commerce industry and Mining during my research for a reliable and trustworthy partner who l can do business with though l did not disclose the nature of the business l intend to do with whoever he recommend for me. I am DR. MRS MARIAM ABACHA, wife of the late Nigeria Head of State, General Sanni Abacha who died on the 8th of June 1998 while still on active duty. I am contacting you in view of the fact that we will be of great assistance to each other likeness developing a cordial relationship. I currently have within my reach the sum of Twenty - Five Million US Dollars (US$25,000,000.00) cash which l intends to use for investment, like Real Estate Development specifically in your country. This money came as a payback contract deal between my late husband and a Russian Firm on our countries Multi-billion dollars Ajaokuta Steel Plant. The Russian Partners returned my husband's Share of USD$25,000,000.00 after the death of my husband and Lodged in my husband's Security Company of which l am director right now, the new Civilian Government have intensified their probe on my husband? Financial and oil company. In view of these, l acted fast to withdraw the US$25,000,000.00 from the company vault and deposited it in a Security Company. I have since declared the Security Company bankrupt. No record ever existed concerning the money traceable by the government because there is no documentation showing that we received the money from the Russian. Due to the current situation in the country concerning government attitude towards my family, it has become quite impossible for me to make use of this money within. Let me refer you to the front page of this day newspapers of 10th March 2001. You can check it through their website www.thisdayonline.com the present government in Nigeria had frozen and seized all our bank accounts both here in Nigeria and abroad.Thus consent l shall expect you to contact me urgently to enable us discuss in detail about this transaction.Bearing in mind that your assistance is needed to transfer this fund, I proposed a percentage of 30% of the total sum to you for the expected service and assistance, 5% for offsetting minor expenses incurred in the course of this transaction. Your urgent response is highly needed as to stop further contacts. All correspondence must be by the email address [EMAIL PROTECTED] I will give you my Tel numbers where you can contact me when I hear from you. I must use this opportunity to implore you to exercise the utmost indulgence to keep this matter extraordinarily confidential whatever your decision while await your prompt response. NB: Because of the security being mounted on the members of my family, l has decided that this transaction exist between you and my nephew Dr. Azeez Bello. Remember to include your private Tel/fax or mobile number for easy communication. Best Regards. DR. (MRS) MARIAM ABACHA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] preg_match?
Ok, here is my problem. I have a Postscript file that looks something like this: %!PS-Adobe-3.0 %%Title: Q-111BSD %%Creator: Windows NT 4.0 %%CreationDate: 8:31 6/30/2003 %%Pages: (atend) . And I want to get the Q-111BSD into a variable but I can't figure out how to keep it from grabbing the next line as well. Does anyone have any idea how I can do this? Thanks in advance! Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] preg_match? [SOLVED]
Sorry. Must be Monday or something :-) preg_match('/%%Title:(.*?)%%/i',$contents,$matches); -Original Message- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:35 AM To: [EMAIL PROTECTED] Subject: [PHP] preg_match? Ok, here is my problem. I have a Postscript file that looks something like this: %!PS-Adobe-3.0 %%Title: Q-111BSD %%Creator: Windows NT 4.0 %%CreationDate: 8:31 6/30/2003 %%Pages: (atend) . And I want to get the Q-111BSD into a variable but I can't figure out how to keep it from grabbing the next line as well. Does anyone have any idea how I can do this? Thanks in advance! Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add new loadable module in php
I've run into a similar situation before because my default PHP install was not using the php.ini in /etc/ . In your phpinfo() does it list /etc/php.ini for the ini file or is something else listed? -Original Message- From: Neil [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 7:19 AM To: [EMAIL PROTECTED]; Skon Lapamnuaypol Cc: Marek Kilimajer Subject: Re: [PHP] Add new loadable module in php Skon Lapamnuaypol wrote: We use PHP 4.3.1 on Apache 1.3.27 (RedHat 7.3). We got a binary PHP rpm package from rpmfind.com. The problem occurred on v-webmail from phpguru.org. I already copied imap.so into /usr/lib/php4 and add an extension of imap.so on /etc/php.ini, then restart httpd. But, the application still can't see the imap module. I wonder that in the extension of php.ini, all of extension (.dll - windows platform) was commmented only mysql.so and imap.so were added. But, phpinfo command show a lot of loadable module. Just curious that where does phpinfo get the information from. - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Skon Lapamnuaypol [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:43 PM Subject: Re: [PHP] Add new loadable module in php What platform are you running, where did you get php, do you have imap.so in the extension directory, did you restart webserver after changing its configuration? Skon Lapamnuaypol wrote: Hi, I'm newbie in PHP and tried to install webmail appliction on PHP engine. That webmail require a module IMAP,but my engine haven't have it yet. I tried to put a extenstion = imap.so in php.ini. But, the application still can't detect this module. Can I add php module without recompile PHP source. Thanks in advance, Skon L. Hello Where modules are concerned , you will need to stop and then start apache , as a reload/restart does not check for modules changes . I am not 100% sure of my explanation, but i know in pratice this is the case. Cheers Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Redirects in PHP
I don't know of any, but is there a good alternative? -Original Message- From: Zak Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:31 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Redirects in PHP On 2003-06-13 10:34-0600, Michael wrote: Search engines frown on using meta refresh because of abuse problems. Some engines won't index the page period and all of them penalize you at the very least. While it will work as you described, you're sacrificing search engine positioning to use it. How many search engines do you know of that will parse and follow the JavaScript location.href redirection suggested earlier? -Zak -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Redirects in PHP
But is this the type of stuff that gets penalized in Search Engines or no? -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:47 PM To: Zak Johnson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Redirects in PHP At 19:00 13.06.2003, Zak Johnson said: [snip] This will not solve the OP's problem; the header will still be output first, and the client will be immediately redirected. I am curious though; why is everyone suggesting to use JavaScript when the following in the head section of the HTML document will work just as well? meta http-equiv=refresh content=3;URL=http://example.com/new-page.html; / Am I missing something? [snip] This will (or should...) always work regardless of JS settings. Being a HTTP equivalent this also means you can transmit it as MIME header as well: header('Refresh: 5;URL=http://www.microsoft.com;'); echo 'Transferring you to Microsoft in 5 seconds...'; exit; HTH, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] sound
Negative. Sounds are client side, PHP is server side. -Original Message- From: Bobby [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 3:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] sound I know that...i'm just curious if somebody knows of a bit of php code outside of the usual html embed src and background tags for sound on a webpage...and I'm trying to avoid having to add flash unless I have to...but yes that is an option Thanks -bobby -Original Message- From: Julien Wadin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 9:40 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] sound Php is on the server, not on the local client You can make it with Flash -Message d'origine- De : Bobby [mailto:[EMAIL PROTECTED] Envoyé : jeudi 29 mai 2003 21:39 À : [EMAIL PROTECTED] Objet : [PHP] sound Does anybody know of a way under php to add a background sound to a webpage...i have sound on my page when it's local but as soon as I copy it to the server, nothing :( thanks -bobby Bobby Brooks [EMAIL PROTECTED] http://bobby-brooks.com Public Key = bobby-brooks.com/pubring.pkr Simulated disorder postulates perfect discipline; simulated fear postulates courage; simulated weakness postulates strength. Sun Tzu - The Art of War (Chap 5-17) ICQ-33647303 AOL_IM-TX Copenhagen Yahoo-tx_copenhagen1977 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Order by Date (Newbie)
Ok, I must be missing something, but does anyone have a script that will order by the closest date in the future that hasn't been here yet. Did that make sense? Brian -- 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]