php-general Digest 15 Jan 2010 19:18:43 -0000 Issue 6540

2010-01-15 Thread php-general-digest-help
php-general Digest 15 Jan 2010 19:18:43 - Issue 6540 Topics (messages 301124 through 301139): Re: To add the final ? or not... 301124 by: Mattias Thorslund 301126 by: Jochem Maas What's the best way to extract HTML out of $var? 301125 by: alexus 301127 by:

[PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Gaurav Kumar
Hi All, Ash, Angelo, Any ideas how to send an email in PHP on windows platform/xp on local development machine. System Configuration PHP 5.2 Apache 2 No ISS NO SMTP Any trusted SMTP software to install on local development machine and how to set it up with php to send an email? Also just

Re: [PHP] What's the best way to extract HTML out of $var?

2010-01-15 Thread Bruno Fajardo
2010/1/15 alexus ale...@gmail.com: What's the best way to extract HTML out of $var? example of $var $var = a href=http://http://stackoverflow.com/Stack Overflow/a I want $var2 = http://starckoverflow.com/; example: preg_match(); what else? Hi, If you simply wants to remove all tags

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Kim Madsen
Hi Gaurav Gaurav Kumar wrote on 15/01/2010 09:54: NO SMTP Any trusted SMTP software to install on local development machine and how to set it up with php to send an email? Also just providing the SMTP server details in php.ini will not work for me as this requires authentication/credentials

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Gaurav Kumar
Sorry Kim, don't want to use phpmailer script or manually setting user accounts u/p in the script. On Fri, Jan 15, 2010 at 5:23 PM, Kim Madsen php@emax.dk wrote: Hi Gaurav Gaurav Kumar wrote on 15/01/2010 09:54: NO SMTP Any trusted SMTP software to install on local development

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread vikash . iitb
You can install any smtp server on your windows machine and the mail() will work with default settings. You can check this out: http://www.softstack.com/freesmtp.html Thanks, Vikash Kumar http://vika.sh On Fri, Jan 15, 2010 at 5:30 PM, Gaurav Kumar kumargauravjuke...@gmail.comwrote: Sorry

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Richard Quadling
2010/1/15 vikash.i...@gmail.com: You can install any smtp server on your windows machine and the mail() will work with default settings. You can check this out: http://www.softstack.com/freesmtp.html Thanks, Vikash Kumar http://vika.sh On Fri, Jan 15, 2010 at 5:30 PM, Gaurav Kumar

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Gaurav Kumar
Hi Richard, The problem is that if I am using any open source software or any other pre-built software then I will not be able to manage through ini_set. Also http://www.softstack.com/freesmtp.html which vikash mentioned works through outlook settings. Anyways the below will help-

RE: [PHP] strtotime

2010-01-15 Thread Bob McConnell
There are a variety of starting points available, depending on the environment and application. See the Computer section of http://en.wikipedia.org/wiki/Epoch_%28reference_date%29 for a brief review. Bob McConnell -Original Message- From: haliphax [mailto:halip...@gmail.com] Sent:

[PHP] PHP and javascript

2010-01-15 Thread Andres Gonzalez
How do I call PHP code that will run server side, from javascript code that is running client side? I have a lot of PHP server side code written and working within CodeIgniter. Now, my project has changed and (for reasons unimportant to this discussion) we are now NOT going to use apache and

Re: [PHP] PHP and javascript

2010-01-15 Thread Ryan Sun
I don't think you can call php cli from client javascript unless you have a wrapper http interface On Fri, Jan 15, 2010 at 2:07 PM, Andres Gonzalez and...@packetstorm.comwrote: How do I call PHP code that will run server side, from javascript code that is running client side? I have a lot of

Re: [PHP] PHP and javascript

2010-01-15 Thread Ashley Sheridan
On Fri, 2010-01-15 at 14:07 -0500, Andres Gonzalez wrote: How do I call PHP code that will run server side, from javascript code that is running client side? I have a lot of PHP server side code written and working within CodeIgniter. Now, my project has changed and (for reasons

[PHP] mysql_real_escape_string(0xffffffff) yields -1

2010-01-15 Thread Richard Lynch
The subject line says it all: mysql_real_escape_string(0x) yields -1 What's up with that? Is there some way to convince mysql_real_escape_string to use BIGINT? I guess I'll just PCRE for digits and then pass it in and... But what if somebody passes in some BC Math number?... -- Some

Re: [PHP] mysql_real_escape_string(0xffffffff) yields -1

2010-01-15 Thread Jim Lucas
Richard Lynch wrote: The subject line says it all: mysql_real_escape_string(0x) yields -1 What's up with that? Is there some way to convince mysql_real_escape_string to use BIGINT? I guess I'll just PCRE for digits and then pass it in and... But what if somebody passes in

[PHP] PHP 5.3 shared hosting

2010-01-15 Thread Adam Richardson
Hi, I've developed a framework that requires PHP 5.3 (it takes a more functional approach.) I'm hosting my own apps on a dedicated server running cpanel (thanks to their recent upgrade.) However, for client work I prefer not to personally host the websites. I've been contacting hosts about

Re: [PHP] PHP 5.3 shared hosting

2010-01-15 Thread Michael A. Peters
Adam Richardson wrote: Hi, I've developed a framework that requires PHP 5.3 (it takes a more functional approach.) I'm hosting my own apps on a dedicated server running cpanel (thanks to their recent upgrade.) However, for client work I prefer not to personally host the websites. I've been

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Andy Shellam
Hi, Also http://www.softstack.com/freesmtp.html which vikash mentioned works through outlook settings. Anyways the below will help- http://php.net/manual/en/ref.mail.php http://glob.com.au/sendmail/ Personally, I always found hMailServer to be perfectly reliable as a relay on