[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 'page', 'story' => 'story', 'noder

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.

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
Aschwin: Hi i tried -- //echo ''; //echo 'window.location.href="3.html";'; //echo ''; header("Location: 3.html"); exit; -- but t

[PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
quot;Content-Disposition: attachment; filename=$name"); //header("Content-Length: " . filesize($name)); //fpassthru($fp); then the redirect happens after the submit. i'm testing / running it on fedora core 6, Apache 2.2.5, php 5.2.5 and firefox 1.5 Any help / pointers is

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

2007-08-18 Thread Yashesh Bhatia
give expected output except the last set in the 2nd iteration $k = 17 $v = Array ( [tid] => 16 [ar_needed] => no ) the $k looks fine but the $v is not correct for some reason. Any clue what could be wrong here ?. Also, in the 2nd iteratio

Re: [PHP] PHP5 TUTORIAL

2007-06-26 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 &l

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

2007-06-25 Thread Yashesh Bhatia
eaders 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

[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 amit amar -

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 wh

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

2004-10-24 Thread Yashesh Bhatia
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