[PHP] in_array breaks down for 0 as value

2008-11-19 Thread Yashesh Bhatia
Hi. I wanted to use in_array to verify the results of a form submission for a checkbox and found an interesting behaviour. $ php -v PHP 5.2.5 (cli) (built: Jan 12 2008 14:54:37) $ $ cat in_array2.php ?php $node_review_types = array( 'page' = 'page',

[PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
testing / running it on fedora core 6, Apache 2.2.5, php 5.2.5 and firefox 1.5 Any help / pointers is appreciated. Thanks. Yashesh Bhatia. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
:(. thanks for the tip. yashesh bhatia Hi, What you are doing is: header(Content-Type: application/pdf); And after that you try to echo some script. But the browser already thinks that belongs to the PDF and not to a HTML page. What I think should work instead of the script part is just

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
What about doing it the other way ... submitting the page to a script that calls on the pdf creation, yet doesnt leave this script - then proceed to redirect when that script (pdf) has been completed? S steven: the steps u'r suggesting are 1 - submit form (1.html) to script (2.php) 2

[PHP] iterating and changing value of an array using foreach and references - PHP 5.2.3

2007-08-18 Thread Yashesh Bhatia
of the variable is changed from $v to $v1 it displays correctly $k = 17 $v1 = Array ( [tid] = 17 [ar_needed] = no ) Thanks. Yashesh Bhatia. -- Go Pre http://www2.localaccess.com/rlalonde/pre.htm

Re: [PHP] PHP5 TUTORIAL

2007-06-27 Thread Yashesh Bhatia
hello, other interesting articles to give a bird's eye view of new features for php5 http://www.onlamp.com/pub/a/php/2004/07/15/UpgradePHP5.html http://devzone.zend.com/node/view/id/1714 http://www.devshed.com/c/a/PHP/Whats-New-in-PHP-5/ hth. yashesh bhatia. On 6/26/07, Preethi [EMAIL

[PHP] functions for sorting/paging functionality for imap mailboxes

2007-06-25 Thread Yashesh Bhatia
and then use the array index to simulate limit offset, row_count). thanks in advance. yashesh bhatia Go Pre http://www2.localaccess.com/rlalonde/pre.htm -- PHP General Mailing

[PHP] Arrays not recognized in Simple XML Objects (using print_r)

2005-03-23 Thread Yashesh Bhatia
hi! i'm trying to use the simple_xml functions to get an arrray of data from a sample xml file. here's my sample_data.xml ?xml version=1.0 encoding=ISO-8859-1? sample_data first_names

[PHP] problem using error_reporting() PHP 5.0.2 (cli)

2004-10-24 Thread Yashesh Bhatia
] etc]# httpd -v Server version: Apache/2.0.52 Server built: Oct 8 2004 02:13:40 Appreciate any help on fixing the above problem. Thanks. Yashesh Bhatia. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem using error_reporting() PHP 5.0.2 (cli)

2004-10-24 Thread Yashesh Bhatia
thanks. anyplace i can find which errors are reported by E_STRICT at runtime and which ones at compile time ? thx. yashesh bhatia. On Sun, 24 Oct 2004 15:24:34 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Yashesh Bhatia: My question is why is the funtion call