Re: [PHP] Variable Troubleshooting Code

2012-01-09 Thread Donovan Brooke
Just to share, a Mr. Harkness forwarded me a consolidated version of my code.. basically substituting the innards for: if (!isset($pmatch) || substr($key,0,strlen($pmatch)) == $pmatch) { print "$key = $value"; } Cheers, Donovan -- D Brooke -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Variable Troubleshooting Code

2012-01-09 Thread Paul M Foster
On Mon, Jan 09, 2012 at 10:42:59AM -0500, Marc Guay wrote: > > some pretty natives php functions exists to do the job : > > But how many times in my life will I have write echo ""; ??? > Does anyone have a handy solution? (Make this the default behavior? > Add a "even more human-readable" flag to

Re: [PHP] Re: php sendmail_from

2012-01-09 Thread Matijn Woudt
On Mon, Jan 9, 2012 at 8:50 PM, alexus wrote: > using Drupal > If you're using Drupal to send the mail, or any module installed in Drupal, than there are most likely settings in Drupal (module) that allow you to set the from address. If these functions call the mail command with a different From

[PHP] Re: php sendmail_from

2012-01-09 Thread Jim Giner
I guess I'm asking to see your code pertaining to sending the email. Telling us about a couple of ini settings doesn't really present us a picture of your problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php sendmail_from

2012-01-09 Thread alexus
using Drupal On Mon, Jan 9, 2012 at 2:48 PM, Jim Giner wrote: > And how are you generating the email? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- http://alexus.org/ -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] php sendmail_from

2012-01-09 Thread alexus
do you know if Drupal uses that too? On Mon, Jan 9, 2012 at 10:16 PM, Fatih P wrote: > On Mon, 2012-01-09 at 13:53 -0500, alexus wrote: >> I need to change sendmail from field, I added following to my .htaccess: >> >> php_value sendmail_from 'x...@xxx.xxx' >> >> and tried to send out an email, bu

[PHP] Re: php sendmail_from

2012-01-09 Thread Jim Giner
And how are you generating the email? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php sendmail_from

2012-01-09 Thread Fatih P
On Mon, 2012-01-09 at 13:53 -0500, alexus wrote: > I need to change sendmail from field, I added following to my .htaccess: > > php_value sendmail_from 'x...@xxx.xxx' > > and tried to send out an email, but it still comes from apache@FQDN > > through phpinfo(); I see as local value my email addr

Re: [PHP] Strange foreach reference issue

2012-01-09 Thread Tim Behrendsen
On 1/9/2012 10:35 AM, David Harkness wrote: On Sat, Jan 7, 2012 at 5:01 PM, Tim Behrendsen > wrote: The first loop is leaving a reference to the final element. But then the second foreach is doing a straight assignment to the $row variable, but $row is a r

Re: [PHP] Strange foreach reference issue

2012-01-09 Thread David Harkness
On Sat, Jan 7, 2012 at 5:01 PM, Tim Behrendsen wrote: > The first loop is leaving a reference to the final element. But then the > second foreach is doing a straight assignment to the $row variable, but > $row is a reference to the final element. So the foreach is assigning its > iterated value t

[PHP] php sendmail_from

2012-01-09 Thread alexus
I need to change sendmail from field, I added following to my .htaccess: php_value sendmail_from 'x...@xxx.xxx' and tried to send out an email, but it still comes from apache@FQDN through phpinfo(); I see as local value my email address x...@xxx.xxx -- http://alexus.org/ -- PHP General Maili

Re: [PHP] Variable Troubleshooting Code

2012-01-09 Thread Ashley Sheridan
Ashley Sheridan wrote: > > >Marc Guay wrote: > >>> some pretty natives php functions exists to do the job : >> >>But how many times in my life will I have write echo ""; ??? >>Does anyone have a handy solution? (Make this the default behavior? >>Add a "even more human-readable" flag to the fun

Re: [PHP] Variable Troubleshooting Code

2012-01-09 Thread Ashley Sheridan
Marc Guay wrote: >> some pretty natives php functions exists to do the job : > >But how many times in my life will I have write echo ""; ??? >Does anyone have a handy solution? (Make this the default behavior? >Add a "even more human-readable" flag to the function? Create a >simple macro in Ap

Re: [PHP] Variable Troubleshooting Code

2012-01-09 Thread Marc Guay
> some pretty natives php functions exists to do the job : But how many times in my life will I have write echo ""; ??? Does anyone have a handy solution? (Make this the default behavior? Add a "even more human-readable" flag to the function? Create a simple macro in Aptana 3?) Argz, Marc -- P

Re: [PHP] ip2long and ipv6

2012-01-09 Thread TR Shaw
On Jan 9, 2012, at 4:44 AM, Arno Kuhl wrote: > My dev and test tools are windows based and the apps deployed on linux, and > it's been working well. But moving to win7 created problems because it uses > ipv6 and code for ratings is for ipv4. Specifically, using ip2long to save > the ip as an int

[PHP] ip2long and ipv6

2012-01-09 Thread Arno Kuhl
My dev and test tools are windows based and the apps deployed on linux, and it's been working well. But moving to win7 created problems because it uses ipv6 and code for ratings is for ipv4. Specifically, using ip2long to save the ip as an int (to prevent duplicate votes) doesn't work in test (win7