I am trying to use this file manager called “Php Win2K File Manager”
But I am receiving these errors below
Deprecated: Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\test\explorer.php on line 166
Deprecated: Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\test\explorer.php on line 214
Warning: opendir(c:/inetpub/wwwroot/,c:/inetpub/wwwroot/) [function.opendir]: The system cannot find the path specified. (code: 3) in C:\xampp\htdocs\test\explorer.php on line 91
Warning: opendir(c:/inetpub/wwwroot/) [function.opendir]: failed to open dir: No such file or directory in C:\xampp\htdocs\test\explorer.php on line 91
Why is this? Is it because Im running this on a Linux Server instead of Win2K?
Call-time pass-by-reference means that a variable is being passed into a function using the
&operator in front of it. e.g. (someFunction(&$var);).PHP 5.4 deprecated call-time pass-by-reference which means you cannot pass a variable by reference in the function call, the correct way is to define the function so the variable is always passed by reference. The function definition for the above call would look like:
When you call it, you don’t need to precede the variable with the
&, the call just looks like:You will have to modify the code so that the function definitions declare the variable as a reference variable, and remove the
&from any function calls.You say you are running on Linux, but given the PHP error messages it appears you are still on Windows. PHP says your script is
C:\xampp\htdocs\test\explorer.phpwhich is a Windows path.Most likely
$_GET['dir']is incorrect, or the script is determining paths wrong. Not sure what’s going on there, I’d have to see how you were accessing the script. In the first case, it looks like its trying to open a path that is actually 2 paths separated by commas.