php-general Digest 2 Feb 2009 02:43:07 -0000 Issue 5935
php-general Digest 2 Feb 2009 02:43:07 - Issue 5935 Topics (messages 287505 through 287517): Re: Installation of php-5.2.8-win32-installer.msi 287505 by: kimwah Weird url passing what does it mean, am I hacked? 287506 by: Terion Miller 287508 by: Ashley Sheridan 287510 by: Ashley Sheridan 287512 by: Terion Miller 287516 by: Ashley Sheridan 287517 by: Michael Kubler CLI [Lack of] Performance on Windows 287507 by: Jason Young Re: PHP Enclosing Tags? Do You Close Your PHP Declarations? 287509 by: Yannick Mortier 287515 by: Alpár Török Re: Payment question in Canada 287511 by: Michelle Konzack Re: CURL vs stream_socket_client 287513 by: Yves Arsenault Re: [PHP-QA] problem code 287514 by: Daniel Brown Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- Confirmed it is a php installation bug. Just found the step by step guide for Solving this problem. You can get the solution in http://d0--0b.blogspot.com/2009/02/cannot-install-php-528-to-xp-iis-5.html Hope this help :) -- View this message in context: http://www.nabble.com/Installation-of-php-5.2.8-win32-installer.msi-tp21698463p21776117.html Sent from the PHP - General mailing list archive at Nabble.com. ---End Message--- ---BeginMessage--- I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... ---End Message--- ---BeginMessage--- On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote: I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... Are you using some of their content on your site? You may not realise it's come from them, it could be some Javascript you've found online and used on your site. It's more than likely just a call-back script to register a 'hit' along with other details. As for scraping your sites content, there is no way to prevent this. If your content is viewable for a human, it's viewable for a computer. Would you mind posting a link so we can see what you're seeing? Ash www.ashleysheridan.co.uk ---End Message--- ---BeginMessage--- On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote: I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... Are you using some of their content on your site? You may not realise it's come from them, it could be some Javascript you've found online and used on your site. It's more than likely just a call-back script to register a 'hit' along with other details. As for scraping your sites content, there is no way to prevent this. If your content is viewable for a human, it's viewable for a computer. Would you mind posting a link so we can see what you're seeing? Ash www.ashleysheridan.co.uk Hi Ash! My site isn't an outside app, it's an in house work order app hosted on our corporate servers, I was working on it yesterday and caught a glimpse in the bottom of the browser where you can see page loads , I kept seeing a www.mouserunner.com in there and was wondering what the hell...I googled and visited the site and found no other post anywhere complaining about this site or if it was a
Re: [PHP] Installation of php-5.2.8-win32-installer.msi
Confirmed it is a php installation bug. Just found the step by step guide for Solving this problem. You can get the solution in http://d0--0b.blogspot.com/2009/02/cannot-install-php-528-to-xp-iis-5.html Hope this help :) -- View this message in context: http://www.nabble.com/Installation-of-php-5.2.8-win32-installer.msi-tp21698463p21776117.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: More questions about SESSION use
This is how it was originally written: if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != true){ header (Location: LogOut.php); $_SESSION['user']=$UserName; $_SESSION['AdminID']=$AdminID; --*I added this one originally the script only used 'user' and 'AdminLogin'* but passed them in urls } Is the above part not needed since the Session is already active? Should I be not using the header part (honestly I havent read up on that chapter yet) Are you using session_start()? Cheers -- David Robley Hi David, yes I have session_start(); on everypage very 1st line. terio
[PHP] Weird url passing what does it mean, am I hacked?
I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks...
[PHP] CLI [Lack of] Performance on Windows
I'm not much for running PHP on Windows, but I thought that many of the performance issues had been worked out... However, I'm trying to run a PHP through CLI and having a terrible experience with speed. This is running Windows Server 2008 (with a Quad-Core Intel, 4 GB of RAM). My problem in particular is a small script that bzread()s from a large-ish (104 MB) file, and throws some data into a sqlite db. It's not really hitting any resource limits that I know of - the PHP process isn't even using 3% CPU, and RAM usage is minimal... it's just... slow. It's not even just this script. It's not doing it now, but when I was playing around with it last night, it was taking quite a bit to execute small echo statements from reading stdin from the php process (although 'php -qa' doesn't exhibit this behavior) Anyway, Windows processes about 4,000 rows per minute, while Linux does 10.6K. I know I shouldn't expect much out of the platform, but this just straight CLI, I figured it would be at least respectably similar. Any insight? Thanks! -Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird url passing what does it mean, am I hacked?
On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote: I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... Are you using some of their content on your site? You may not realise it's come from them, it could be some Javascript you've found online and used on your site. It's more than likely just a call-back script to register a 'hit' along with other details. As for scraping your sites content, there is no way to prevent this. If your content is viewable for a human, it's viewable for a computer. Would you mind posting a link so we can see what you're seeing? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?
2009/1/30 Nitsan Bin-Nun nit...@binnun.co.il: Do you close your PHP ?php tags? No, I don't. The reason is that I use subversion and I always get a message when I don't leave the last line empty. So I kind of have to leave the ?php Tag opened. I once read that this is even recommended by the PHP developers... Has anyone got a quote for me about this? -- Currently developing a browsergame... http://www.p-game.de Trade - Expand - Fight Follow me at twitter! http://twitter.com/moortier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird url passing what does it mean, am I hacked?
On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote: I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... Are you using some of their content on your site? You may not realise it's come from them, it could be some Javascript you've found online and used on your site. It's more than likely just a call-back script to register a 'hit' along with other details. As for scraping your sites content, there is no way to prevent this. If your content is viewable for a human, it's viewable for a computer. Would you mind posting a link so we can see what you're seeing? Ash www.ashleysheridan.co.uk Hi Ash! My site isn't an outside app, it's an in house work order app hosted on our corporate servers, I was working on it yesterday and caught a glimpse in the bottom of the browser where you can see page loads , I kept seeing a www.mouserunner.com in there and was wondering what the hell...I googled and visited the site and found no other post anywhere complaining about this site or if it was a hacker/phishing site... Copying the list back in on this. You still haven't mentioned if you were using any scripts you sourced from elsewhere? Have you performed a search on the server in question for any files containing a link to that website? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Payment question in Canada
Am 2009-01-30 22:47:10, schrieb Edmund Hertle: Read this discussion. I think this will help you: http://marc.info/?t=12329898971r=1w=2 Address Not Found www.marc.info could not be found. Please check the name and try again. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # http://www.tamay-dogan.net/ http://www.can4linux.org/ Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: [PHP] Weird url passing what does it mean, am I hacked?
On Sun, Feb 1, 2009 at 11:17 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote: I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... Are you using some of their content on your site? You may not realise it's come from them, it could be some Javascript you've found online and used on your site. It's more than likely just a call-back script to register a 'hit' along with other details. As for scraping your sites content, there is no way to prevent this. If your content is viewable for a human, it's viewable for a computer. Would you mind posting a link so we can see what you're seeing? Ash www.ashleysheridan.co.uk Hi Ash! My site isn't an outside app, it's an in house work order app hosted on our corporate servers, I was working on it yesterday and caught a glimpse in the bottom of the browser where you can see page loads , I kept seeing a www.mouserunner.com in there and was wondering what the hell...I googled and visited the site and found no other post anywhere complaining about this site or if it was a hacker/phishing site... Copying the list back in on this. You still haven't mentioned if you were using any scripts you sourced from elsewhere? Have you performed a search on the server in question for any files containing a link to that website? Ash www.ashleysheridan.co.uk no scripts that i've found, I inherited this app, and its about 57 pages 1200 lines each and I don't have access to the server corp rules...
Re: [PHP] CURL vs stream_socket_client
Hey there, First off I'd like to thank the Magento module's author for the support. The canada post shipping module now works! The problem was a little bit different then I saw in other posts and forums. Basically, the curl function wouldn't connect to the sellonline.canadapost.ca system on the desired port (3). In the curl section of code, we set opts.. and in the opts... we set the URL and the port #. For some reason this would not work. curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_PORT, $port); So what ended up working was to add the port directly to the url and comment out the port option.. // basically this is what is being passed to the URL opt $url = 'http://sellonline.canadapost.ca:3'; curl_setopt($ch, CURLOPT_URL, $url); // and comment out the port opt //curl_setopt($ch, CURLOPT_PORT, $port); So, after some diggin' around on curl and great support by module's author problem solved. Canada Post shipping module now works. :) Yves Arsenault Love is the only force capable of transforming an enemy into a friend. --Martin Luther King, Jr. On Fri, Jan 30, 2009 at 4:18 PM, Yves Arsenault yves.arsena...@gmail.comwrote: Hi all, It really seems to me that somehow when the curl command is run that it's not posting the request to port 3 to sellonline.canadapost.ca. That's the impression I'm under. Any ideas? Yves Arsenault Love is the only force capable of transforming an enemy into a friend. --Martin Luther King, Jr. On Fri, Jan 30, 2009 at 12:40 PM, Yves Arsenault yves.arsena...@gmail.com wrote: Hi Todd, First off.. thanks for the reply. I've dumped the xml data and tried to view it in Firefox... commented out the curl code (and all the other stuff) just to see what exactly was getting passed. Firefox did not display it as it does xml... like when I got directly to that xml file with firefox, I get the This XML file does not appear to have any style information associated with it. The document tree is shown below. (grey bar)... it always shows properly formed xml documents like that for me (collapsible)... But, when I dump it in the PHP script using: print $eparcelRequest; It will just display the values... don't see any collapsible xml tags like when I view the xml directly. So I was thinking it might be in the format sent.. I'll try to set the user agent. Thanks! Yves Arsenault Love is the only force capable of transforming an enemy into a friend. --Martin Luther King, Jr. On Fri, Jan 30, 2009 at 12:19 PM, Boyd, Todd M. tmbo...@ccis.edu wrote: -Original Message- From: Yves Arsenault [mailto:yves.arsena...@gmail.com] Sent: Friday, January 30, 2009 9:40 AM To: PHP List Subject: [PHP] CURL vs stream_socket_client Hi there, I'm not in PHP on a daily basis, but from time to time I get to program a little in PHP for certain projects. Recently, I've installed a Magento system... and I've installed a canada post shipping module for this system. One thing that seems to be tripping it up is that it's using curl. curl is attempting to send xml data to canada post's server on port 3. The response from canada post's system is always an html page... I've run a test using stream_socket_client and have gotten it to work, the canada post's system responds with the corresponding XML data with shipping info. I'm wondering if there are any curlopt_ options that should be set that aren't currently set... Could be that curl is not sending properly formatted XML. This may be a stretch, but try to set the User Agent string to mimic Firefox before sending your request. I wrote a PHP scrape to gather guild member information from the World Of Warcraft Armory [1] a few years back, and it kept giving me HTML instead of XML until I used the User Agent of a browser that most sites accept is capable of parsing XML. A lot of sites conditionally send IE (and unknown browsers) XHTML instead of XML if there is any transformation of data involved. Also--your comment Could be that curl is not sending properly formatted XML is possible. Have you looked at the resulting HTML that is sent to curl to make sure that it's not a server error message? If it's the results you were looking for (but in XHTML format instead of XML), I'll bet it's a User Agent thing. Just a thought... // Todd
[PHP] Re: [PHP-QA] problem code
Top-posting. Chris, you're on the wrong list. Please send messages like this to php-general@lists.php.net, and subscribe[1] to that list to follow along. This QA list is for the PHP Quality-Assurance Team. 1: http://php.net/mailinglists - or - php-general-subscr...@lists.php.net On Sun, Feb 1, 2009 at 14:08, Chris Ives ch...@ives.bz wrote: What is wrong with this code? $x_Message = $x_fname. .$x_lname. .$_practice. just registered for .$x_nevent.Method of payment .$x_payment. Email address is.$x_email. Telephone number.$x_tele. Question is .$x_qanda.; $message = $x_Message; $from = $x_email; $to = nci...@gmail.com; $subject = Panorama Registration; $headers = From: $from; /* Now we are ready to send the email so we call php's mail() function with the appropriate variables from above included in the brackets */ mail($to,$subject,$message,$headers); -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?
2009/2/1 Yannick Mortier mvmort...@googlemail.com 2009/1/30 Nitsan Bin-Nun nit...@binnun.co.il: Do you close your PHP ?php tags? No, I don't. The reason is that I use subversion and I always get a message when I don't leave the last line empty. So I kind of have to leave the ?php Tag opened. I once read that this is even recommended by the PHP developers... Has anyone got a quote for me about this? -- Currently developing a browsergame... http://www.p-game.de Trade - Expand - Fight Follow me at twitter! http://twitter.com/moortier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I know thw ZF codinf style includes it as a must. See here : http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general -- Alpar Torok
Re: [PHP] Weird url passing what does it mean, am I hacked?
On Sun, 2009-02-01 at 13:42 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 11:17 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote: I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... Are you using some of their content on your site? You may not realise it's come from them, it could be some Javascript you've found online and used on your site. It's more than likely just a call-back script to register a 'hit' along with other details. As for scraping your sites content, there is no way to prevent this. If your content is viewable for a human, it's viewable for a computer. Would you mind posting a link so we can see what you're seeing? Ash www.ashleysheridan.co.uk Hi Ash! My site isn't an outside app, it's an in house work order app hosted on our corporate servers, I was working on it yesterday and caught a glimpse in the bottom of the browser where you can see page loads , I kept seeing a www.mouserunner.com in there and was wondering what the hell...I googled and visited the site and found no other post anywhere complaining about this site or if it was a hacker/phishing site... Copying the list back in on this. You still haven't mentioned if you were using any scripts you sourced from elsewhere? Have you performed a search on the server in question for any files containing a link to that website? Ash www.ashleysheridan.co.uk no scripts that i've found, I inherited this app, and its about 57 pages 1200 lines each and I don't have access to the server corp rules... Do a search on all the files for that site. I'm guessing you'll find something in a .js file somewhere. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird url passing what does it mean, am I hacked?
Maybe you can use Firebug http://getfirebug.com/, or the Web Developer https://addons.mozilla.org/en-US/firefox/addon/60 plugins for Firefox? Michael Kubler *G*rey *P*hoenix *P*roductions http://www.greyphoenix.biz Ashley Sheridan wrote: On Sun, 2009-02-01 at 13:42 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 11:17 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote: On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote: I noticed yesterday that sometimes I was seeing a strange url passing at the bottom of the browser when clicking around my site I'm working on while watching the page loads, its calling to mouserunner.com and I went to the site and it is a bunch of links, my site is on a private server for a large media company, clues on what this means and where to look to stop it, what's it doing scraping my site or something? Thanks folks... Are you using some of their content on your site? You may not realise it's come from them, it could be some Javascript you've found online and used on your site. It's more than likely just a call-back script to register a 'hit' along with other details. As for scraping your sites content, there is no way to prevent this. If your content is viewable for a human, it's viewable for a computer. Would you mind posting a link so we can see what you're seeing? Ash www.ashleysheridan.co.uk Hi Ash! My site isn't an outside app, it's an in house work order app hosted on our corporate servers, I was working on it yesterday and caught a glimpse in the bottom of the browser where you can see page loads , I kept seeing a www.mouserunner.com in there and was wondering what the hell...I googled and visited the site and found no other post anywhere complaining about this site or if it was a hacker/phishing site... Copying the list back in on this. You still haven't mentioned if you were using any scripts you sourced from elsewhere? Have you performed a search on the server in question for any files containing a link to that website? Ash www.ashleysheridan.co.uk no scripts that i've found, I inherited this app, and its about 57 pages 1200 lines each and I don't have access to the server corp rules... Do a search on all the files for that site. I'm guessing you'll find something in a .js file somewhere. Ash www.ashleysheridan.co.uk
RE: [PHP] Re: [PHP-QA] problem code
~CODE~~~ $x_Message = $x_fname. .$x_lname. .$_practice. just registered for .$x_nevent.Method of payment .$x_payment. Email address is.$x_email. Telephone number.$x_tele. Question is .$x_qanda.; ~/CODE~~ Recheck your code for syntax error. Appears you have one to few/many quotes (). Good Luck David On Sun, Feb 1, 2009 at 14:08, Chris Ives ch...@ives.bz wrote: What is wrong with this code? $x_Message = $x_fname. .$x_lname. .$_practice. just registered for .$x_nevent.Method of payment .$x_payment. Email address is.$x_email. Telephone number.$x_tele. Question is .$x_qanda.; $message = $x_Message; $from = $x_email; $to = nci...@gmail.com; $subject = Panorama Registration; $headers = From: $from; /* Now we are ready to send the email so we call php's mail() function with the appropriate variables from above included in the brackets */ mail($to,$subject,$message,$headers); -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php No virus found in this incoming message. Checked by AVG. Version: 7.5.552 / Virus Database: 270.10.16/1928 - Release Date: 1/31/2009 8:03 PM No virus found in this outgoing message. Checked by AVG. Version: 7.5.552 / Virus Database: 270.10.16/1928 - Release Date: 1/31/2009 8:03 PM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Linux/Windows Outlook 2003 HTML email problem
Hi All, We've got a problem with our Ubuntu Linux machine sending HTML emails to Outlook 2003: It's an Ubuntu Server (uname -a Linux CDR2-221 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 GNU/Linux) with the newest version of Postfix installed as the Mail server. Unfortunately, all emails sent as HTML, using the PEAR library for sending email like so: public static function sendEmail($fromEmail, $recipientsEmails, $subject, $txtBody, $htmlBody = null, $ccEmails = null) { require_once 'Mail.php'; require_once 'Mail/mime.php'; $message = new Mail_mime(); $message-setTXTBody($txtBody); if (!$htmlBody) $htmlBody = str_replace(\n, br /\n, $txtBody); $message-setHTMLBody($htmlBody); $message-setFrom($fromEmail); if ($ccEmails) { if (!is_array($ccEmails)) $ccEmails = array($ccEmails); foreach ($ccEmails as $cc) { $message-addCc($cc); } } //$message-addCc(m...@insiteorg.com); $message-setSubject($subject); $body = $message-get(); $headers = $message-headers(); $mail = Mail::factory(mail); if (!is_array($recipientsEmails)) $recipientsEmails = array($recipientsEmails); foreach ($recipientsEmails as $mailto) { $mail-send($mailto, $headers, $body); } } arrive with only the plaintext part in Outlook 2003 (and only in Outlook 2003). All other email programs (Outlook 2007 e.g.) seem to work fine with the formatting. This only started happening on the Linux machine and works fine when emails are sent by a windows host or another mail server from the ISP. So i suspect it must be the setup of Postfix on that machine that is not quite correct. Other than that, i get the following messages from PHP, apparently the PEAR library has some (strinct) warnings which i thought should be ok: *Strict Standards*: Assigning the return value of new by reference is deprecated in */usr/share/php/Mail.php* on line *154* *Strict Standards*: Assigning the return value of new by reference is deprecated in */usr/share/php/PEAR.php* on line *569* *Strict Standards*: Assigning the return value of new by reference is deprecated in */usr/share/php/PEAR.php* on line *572* *Strict Standards*: Non-static method Mail::factory() should not be called statically in */home/magsbyme/www/ ljhooker.ddm.magsbyme.com/lib/myTools.class.php* on line *1035* *Strict Standards*: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in * /usr/share/php/Mail.php* on line *156* *Strict Standards*: is_a(): Deprecated. Please use the instanceof operator in */usr/share/php/PEAR.php* on line *281* *Strict Standards*: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in * /usr/share/php/Mail/mail.php* on line *115* *Strict Standards*: is_a(): Deprecated. Please use the instanceof operator in */usr/share/php/PEAR.php* on line *281* *Strict Standards*: Non-static method Mail::factory() should not be called statically in */home/magsbyme/www/ ljhooker.ddm.magsbyme.com/lib/myTools.class.php* on line *1035* *Strict Standards*: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in * /usr/share/php/Mail.php* on line *156* *Strict Standards*: is_a(): Deprecated. Please use the instanceof operator in */usr/share/php/PEAR.php* on line *281* *Strict Standards*: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in * /usr/share/php/Mail/mail.php* on line *115* *Strict Standards*: is_a(): Deprecated. Please use the instanceof operator in */usr/share/php/PEAR.php* on line *281* *Strict Standards*: Non-static method Mail::factory() should not be called statically in */home/magsbyme/www/ ljhooker.ddm.magsbyme.com/lib/myTools.class.php* on line *1035* *Strict Standards*: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in * /usr/share/php/Mail.php* on line *156* *Strict Standards*: is_a(): Deprecated. Please use the instanceof operator in */usr/share/php/PEAR.php* on line *281* *Strict Standards*: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in * /usr/share/php/Mail/mail.php* on line *115* *Strict Standards*: is_a(): Deprecated. Please use the instanceof operator in */usr/share/php/PEAR.php* on line *281* *Strict Standards*: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in * /usr/share/php/Mail/mail.php* on line *136* *Strict Standards*: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context in * /usr/share/php/PEAR.php* on line *867* *Strict Standards*: Non-static method Mail::factory() should not be called statically in */home/magsbyme/www/
Re: [PHP] PHP Linux/Windows Outlook 2003 HTML email problem
German Geek wrote: Hi All, We've got a problem with our Ubuntu Linux machine sending HTML emails to Outlook 2003: It's an Ubuntu Server (uname -a Linux CDR2-221 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 GNU/Linux) with the newest version of Postfix installed as the Mail server. Unfortunately, all emails sent as HTML, using the PEAR library for sending email like so: Best place to look at this would be the pear list: http://pear.php.net/support/lists.php -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?
2009/2/2 Alpár Török torokal...@gmail.com: 2009/2/1 Yannick Mortier mvmort...@googlemail.com I once read that this is even recommended by the PHP developers... Has anyone got a quote for me about this? I know thw ZF codinf style includes it as a must. See here : http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general -- Alpar Torok Ah, that must have been it. Thank you. So, again, I can only recommend you to ommit them because it really protects you from some stupid bugs that can cost you hours to find. -- Currently developing a browsergame... http://www.p-game.de Trade - Expand - Fight Follow me at twitter! http://twitter.com/moortier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] check public key of SSL client certificate
Hi, My php script is located on server with https protocol: https://www.somesite.com/myscript.php How can i check public key of client certificate, used for connection from client to server? I need to do it in php script. -- Serge -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php