Click here to Skip to main content
15,885,182 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: one more question about the deploying apps in Linux server Pin
markkuk4-May-10 23:00
markkuk4-May-10 23:00 
GeneralRe: one more question about the deploying apps in Linux server Pin
alexyxj5-May-10 7:49
alexyxj5-May-10 7:49 
Questionhelp for deploying a PHP web application in a Linux server Pin
alexyxj3-May-10 10:25
alexyxj3-May-10 10:25 
AnswerRe: help for deploying a PHP web application in a Linux server Pin
alexyxj3-May-10 11:28
alexyxj3-May-10 11:28 
AnswerRe: help for deploying a PHP web application in a Linux server Pin
markkuk3-May-10 11:51
markkuk3-May-10 11:51 
GeneralRe: help for deploying a PHP web application in a Linux server Pin
alexyxj3-May-10 12:19
alexyxj3-May-10 12:19 
GeneralRe: help for deploying a PHP web application in a Linux server Pin
markkuk4-May-10 22:50
markkuk4-May-10 22:50 
Questionrecursive array search Pin
nhsal692-May-10 23:37
nhsal692-May-10 23:37 
Hi there,

I have a piece of code to search through a multidimensional array and return the keys of successful hits...

The problem is that I can see it has checked all though the array (the echo "@"; shows an @ for each element of the array) but the matches are not returned, the array contains at least 30 "status" fields.

Can anyone tell me where I'm going wrong..

Thanks


Here is the code:

$haystack = $server1 = $tx->extractTable();
$needle = 'Status';
$index = null;


   $aIt     = new RecursiveArrayIterator($haystack);
    $it    = new RecursiveIteratorIterator($aIt);
   
    while($it->valid())
    {       
        if (((isset($index) AND ($it->key() == $index)) OR (!isset($index))) AND ($it->current() == $needle)) {
        	
		return $aIt->key();
		
		echo $aIt->key();
	
        }

	echo "@";
       
        $it->next();

    }


   
    return false;

AnswerRe: recursive array search Pin
fly9043-May-10 1:23
fly9043-May-10 1:23 
GeneralRe: recursive array search Pin
nhsal693-May-10 1:27
nhsal693-May-10 1:27 
GeneralRe: recursive array search Pin
fly9043-May-10 1:36
fly9043-May-10 1:36 
GeneralRe: recursive array search [modified] Pin
nhsal693-May-10 4:11
nhsal693-May-10 4:11 
Questionhow to open pdf files in browser Pin
umeshdaiya27-Apr-10 23:35
umeshdaiya27-Apr-10 23:35 
AnswerRe: how to open pdf files in browser Pin
Peter_in_278029-Apr-10 20:41
professionalPeter_in_278029-Apr-10 20:41 
AnswerRe: how to open pdf files in browser Pin
Peace ON29-Apr-10 21:10
Peace ON29-Apr-10 21:10 
GeneralRe: how to open pdf files in browser Pin
Peter_in_27801-May-10 16:08
professionalPeter_in_27801-May-10 16:08 
AnswerRe: how to open pdf files in browser Pin
Peace ON2-May-10 23:20
Peace ON2-May-10 23:20 
AnswerRe: how to open pdf files in browser Pin
cristminix13-May-10 12:07
cristminix13-May-10 12:07 
QuestionDepriciated Function in PHP 5.3 - ereg & eregi Pin
sangeeta200926-Apr-10 2:55
sangeeta200926-Apr-10 2:55 
AnswerRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
Luc Pattyn26-Apr-10 3:15
sitebuilderLuc Pattyn26-Apr-10 3:15 
GeneralRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
sangeeta200926-Apr-10 3:30
sangeeta200926-Apr-10 3:30 
GeneralRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
Luc Pattyn26-Apr-10 3:55
sitebuilderLuc Pattyn26-Apr-10 3:55 
AnswerRe: Depriciated Function in PHP 5.3 - ereg & eregi Pin
cristminix13-May-10 12:14
cristminix13-May-10 12:14 
Questionwhich is Best php framework to use in any general project ? Pin
Peace ON25-Apr-10 20:36
Peace ON25-Apr-10 20:36 
AnswerRe: which is Best php framework to use in any general project ? PinPopular
User 171649225-Apr-10 21:46
professionalUser 171649225-Apr-10 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.