RE: PHP operation Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yeps, this simple script:

<?php

$test1 = array(1, 2, 3, 4, 5, 6);

foreach($test1 as $out)
{
	echo $out."\n";
}

?>

Returns aray aray aray aray rather then 1,2,3,4

Cheers


Stefaan H.G. de Keersmaeker
Systems Engineer
--------------------------
Webarama - OzAus Pty Ltd
http://www.webarama.com.au
ACN: 097 354 348
Tel: +61 3 9725 6300
Fax: +61 3 9725 6388
--------------------------
 

> -----Original Message-----
> From: fedora-list-bounces@xxxxxxxxxx 
> [mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of bruce
> Sent: Tuesday, 21 June 2005 11:22 AM
> To: 'For users of Fedora Core releases'
> Subject: RE: PHP operation Problem
> 
> stefaan...
> 
> you can always find the required RPM for your version of FC, 
> and do a rpm -Uvh "foo.rpm" which will more or less 
> upgrade/write your foo over the current version...
> 
> however, if you want to completely remove php, and start 
> fresh, then rpm -e will get you there... but i don't know if 
> you'll get there with all your hair, given the potential 
> dependency issues you might run into...
> 
> my primary concern is that  you state that php is installed, 
> but that some functions of it appear to be screwing up...
> 
> not to insult your intelligence, but have you created a 
> simple piece of code to do a for-loop and run the simple app 
> from the php command line?
> 
> -bruce
> 
> 
> -----Original Message-----
> From: fedora-list-bounces@xxxxxxxxxx
> [mailto:fedora-list-bounces@xxxxxxxxxx]On Behalf Of stefaan
> Sent: Monday, June 20, 2005 5:57 PM
> To: fedora-list@xxxxxxxxxx
> Subject: PHP operation Problem
> 
> 
> It seems that some of my php scripts don't get executed 
> properly on a FC2 install, php is installed and seems to be 
> working OK until I put in a foreach loop which just doesn't work.
> 
> The script is definitely OK as it works on other servers.
> 
> So I'm looking at rebuilding PHP on this machine, do I first 
> need to rpm -e
> php* and reinstall or is there a better way?
> Can I also use yum to reinstall it maybe?
> 
> 
> Stefaan
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux