RE: [PHP] Speed Issues PHP vs ASP.net

2009-08-25 Thread kyle.smith
-Original Message- Recently i read this blog post about speed issues comparing PHP with ASP.net, please, read that and comment what you think about it: http://misfitgeek.com/blog/aspnet/php-versus-asp-net-ndash-windows-versu s-linux-ndash-who-rsquo-s-the-fastest/ The big deal is: I don't

RE: [PHP] More on "JS alert that links to file"

2009-07-27 Thread kyle.smith
You really can't send multiple files in a single response, and you certainly can't send multiple headers after data has gone through. Zipping would be a nice approach. Another would be to use AJAX calls to sequenctially download the files. HTH, - Kyle -Original Message- From: Ashley

RE: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread kyle.smith
One of two things is happening: - PHP is crashing, maybe a memory leak, etc. Or - That while(true) loop is exiting, and the script is completing. Would be interesting to know which, try adding this after the loop: $fp = fopen('/tmp/test','w'); fputs($fp, 'My script left the loop and exited clea

RE: [PHP] Not a regular file?

2009-06-04 Thread kyle.smith
Likewise, do some debug output. echo "I'm going to upload $FilePath to $remote_path."; Make sure it looks sane, maybe your variables aren't what you think they are... You can also use is_file() on http:// locations, AFAIK. -Original Message- From: Miller, Terion [mailto:tmil...@springfi

RE: [PHP] Not a regular file?

2009-06-04 Thread kyle.smith
Wrap some debug code in the loop: echo "I want to upload $file. Is it a file?" . is_file($file) . ""; See what that says. -Original Message- From: haliphax [mailto:halip...@gmail.com] Sent: Thursday, June 04, 2009 10:23 AM To: php-general@lists.php.net Subject: Re: [PHP] Not a regular

RE: [PHP] Numerical Recipe - Scheduling Question

2009-05-29 Thread kyle.smith
I'm confused as to why cron doesn't work for you. It doesn't explicitly tell you when the next X occurences will be, but math does. If you schedule something to run every 5 minutes starting at 1:45 PM, it's simple work to be able to report that the next times would be 1:50 PM, 1:55 PM, 2:00 PM et

RE: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread kyle.smith
SSL occurs a layer above HTTP, so HTTP/1.1 is correct. HTTPS is not a different data protocol, but a different transport protocol. HTH, Kyle -Original Message- From: Dee Ayy [mailto:dee@gmail.com] Sent: Friday, May 22, 2009 11:05 AM To: php-general@lists.php.net Subject: [PHP] IE ca

RE: [PHP] Sending SMS through website

2009-05-13 Thread kyle.smith
Most carriers have email-to-sms bridges. For example, I use AT&T Wireless and you can text me by sending an email to myphonenum...@txt.att.net. HTH, Kyle -Original Message- From: dheeraj bansal [mailto:bansalcooldhee...@gmail.com] Sent: Wednesday, May 13, 2009 10:24 AM To: php-general@

RE: [PHP] Warning: Division by zero

2009-04-30 Thread kyle.smith
It's always better to validate your inputs in any was possible, this helps prevent exploits. -Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: Thursday, April 30, 2009 8:51 AM To: php-general@lists.php.net Subject: [PHP] Warning: Division by zero I have a script that is a resu

RE: [PHP] Unable to send mail from PHP to AT&T e-mail address

2009-04-22 Thread kyle.smith
> Phpster wrote: >> >> >> On Apr 21, 2009, at 20:32, Edward Diener wrote: >> >>> I have a PHP script which uses the PHP 'mail' function. When the >>> script's 'to' address is an AT&T address, such as my own as an AT&T >>> ISP customer, the mail never gets to me. If the 'to' address is >>> anyt

RE: [PHP] Unable to send mail from PHP to AT&T e-mail address

2009-04-22 Thread kyle.smith
Edward Diener wrote: > Phpster wrote: >> >> >> On Apr 21, 2009, at 20:32, Edward Diener wrote: >> >>> I have a PHP script which uses the PHP 'mail' function. When the >>> script's 'to' address is an AT&T address, such as my own as an AT&T >>> ISP customer, the mail never gets to me. If the 'to'

RE: [PHP] Regex not working with ":"

2009-04-22 Thread kyle.smith
Have you tried escaping the : with a \? Like: mb_ereg_replace('^(.*)this is the test\: replace(.*)$', '', $contents ,'UTF-8'); Also, have you tried removing the : and adjusting the input string to verify your belief that it's the :? HTH, Kyle -Original Message- From: Merlin Morgenstern

RE: [PHP] Need Your Help :) I'm Just About Creating File Uploading Service

2009-04-16 Thread kyle.smith
How is 700MB too big for HTTP? Ever download a linux distro? Ever benchmark FTP vs HTTP, the overhead is minimal... -- Kyle Smith Unix Systems Administrator -Original Message- From: Nitsan Bin-Nun [mailto:nit...@binnun.co.il] Sent: Thursday, April 16, 2009 3:37 PM To: PHP General L

RE: [PHP] Re: Strange result, 1 shows up

2009-04-16 Thread kyle.smith
You're echoing the return value of include(), which is "true", or 1. -- Kyle Smith Unix Systems Administrator -Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: Thursday, April 16, 2009 2:14 PM To: php-general@lists.php.net Subject: [PHP] Re: Strange result, 1 shows up Perf

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
Wow can't believe I missed that. I also was wondering why Ray mailed an empty message... :) -Original Message- From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf Of 9el Sent: Friday, April 03, 2009 4:05 PM To: Gary Cc: php-general@lists.php.net Subject: Re: [PHP]

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
This is unrelated, the email sends fine. And it's one per submission. -Original Message- From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf Of 9el Sent: Friday, April 03, 2009 3:37 PM To: Gary Cc: php-general@lists.php.net Subject: Re: [PHP] What is wrong with thi

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
re working, but I cant seem to find why the others are not. Thanks for your reply. Gary ""kyle.smith"" wrote in message news:d3fe56d174abf6469079ca1a5c8474a804fa9...@nsmail01.inforonics.corp.. . Try something like print_r on $_POST to see if it contains *anything*, seems lik

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
Try something like print_r on $_POST to see if it contains *anything*, seems like it's empty?! Also, when you say blank emails I assume you mean they have the template you made but the variables are empty and not zero-length emails. -Original Message- From: Gary [mailto:gwp...@ptd.net] S

RE: [PHP] formulate nested select

2009-03-31 Thread kyle.smith
What about using "IN", something like: SELECT * FROM book WHERE id IN (SELECT bookID FROM book_authors WHERE authID IN (SELECT author.id FROM authors WHERE last_name LIKE "$Auth%")); You could use LEFT instead of LIKE, too. -Original Message- From: PJ [mailto:af.gour...@videotron.ca

RE: [PHP] Rusu Ionut, PHP Question

2009-03-26 Thread kyle.smith
Have you bolded sections of the email or are there really asterisk characters in those strings? Assuming it's bolding being converted to text, why shouldn't this work? It's definitely not the best approach, for example if you instanciate the "index" class twice, you'll re-include the code *again*.

RE: [PHP] Multiple PHP's and php.ini's - Linux 5.2.9/5.2.6

2009-03-25 Thread kyle.smith
n the same position. - Kyle -Original Message----- From: kyle.smith [mailto:kyle.sm...@inforonics.com] Sent: Wednesday, March 25, 2009 10:56 AM To: php-general@lists.php.net Subject: [PHP] Multiple PHP's and php.ini's - Linux 5.2.9/5.2.6 I've been wrestling with this issue f

RE: [PHP] newbe question

2009-03-25 Thread kyle.smith
I'm not sure it will resolve your issue, but the closing ?> is not a requirement and will eliminate any chance of you adding whitespace to the end of your scripts: #!/usr/bin/php mailto:and...@packetstorm.com] Sent: Wednesday, March 25, 2009 11:29 AM To: php-general@lists.php.net Subject: [PHP] n

[PHP] Multiple PHP's and php.ini's - Linux 5.2.9/5.2.6

2009-03-25 Thread kyle.smith
I've been wrestling with this issue for a few days, I'm hoping someone can help. The issue we had is that we have a system httpd running a custom php-5.2.9 which is compiled in /opt/php/. The php.ini for this installation linked to and ioncube accelerator Zend module. The same apache also hosted