User Profile
Collapse
-
Here is the rest of the error: "PHP Warning: Invalid argument supplied for foreach()", meaning the array I created.... -
changed it again: public $detail = array(1 => 'A');
same result. I have other arrays that work fine....Leave a comment:
-
--------------------------------------
I have tried declaring it public with the same result.
I tried creating it as private $detail = array(3); with the same result
What am I missing?...Leave a comment:
-
PHP Notice: Undefined variable: array_var
I have a class with an empty array like so:
private $detail = array();
Then I have a function later on in the class:
function get_array_value ()
{
$detail_info = ' ';
foreach($detail as $key=>$value)
{
$detail_info .= CreateDetailEnt ry($value);
}
}
when I create an instance of my class and try to use the function... -
CGI Error - Header Problem
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
I get this message when running ona production server with IIS 6 but my dev machine running XP Pro with default IIs from Visual Studio does not have this problem.
I have set up my website exactly the same on both machines and added the webservice extension to allow php.
even if my code does nothing but return... -
The php_snmp.dll should be part of the windows binaries or the windows zip so that is not actually the problem. The problem is all the dependencies (mods) that snmp needs (IP, TCP ...) so if you commentn out snmp then it will quit looking for the dependencies. I had the same problem when I installed the snmp extension from the windows binaries.
Now at least I have it running on my local windows pro laptop. we'll see what happens...Leave a comment:
No activity results to display
Show More
Leave a comment: