Got this error and after some digging I found a solution. It was listed below. But looking back into my code I noticed that I called the function twice and used it incorrectly that caused the error!. Anyways, aside from that in case you encountered this error you can have the solution below
Warning: Call-time pass-by-reference has been deprecated – argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer
For the Warning: Call-time pass-by-reference, in c:\EasyPhp\apache
\php.ini set :
allow_call_time_pass_reference = true
Warning: … [function.main]: failed to open stream: Permission denied
Warning: main() [function.include]: Failed opening … for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in …
I wanna bear in mind that this error has something to do with file permission coz at first glance I just checked the path of the included file but looking closely it has something to do with the file permission. Changing it to 755 solved the issue.
And one more thing, I had this error_reporting(E_ALL && ~NOTICES); on my script and can’t see why my included file is not functioning. I’ve been looking what could be the error. Commented this error_reporting(E_ALL && ~NOTICES); kuala!!! I found the Warning msg! so be sure to comment this line when debugging your code or else you’ll get crazy looking for the error
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user ‘apache’@'localhost’ (using password: NO)…
I’m having that error for using mysql_real_escape_string in one of my functions. Checked php manual and it says u need to have mysql connection to use that. well.. my bad…coz I’m using it in a variable before putting in a query. This is an example on how to use it anyway…
$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password')
$query = sprintf(“SELECT * FROM users WHERE user=’%s’ AND password=’%s’”,
[function.move-uploaded-file]: failed to open stream: Permission denied
Encountered this error. I’ve checked the path, permission it’s all correct. Then I tried changing the permission of the folder on where to move the files to 777… problem solved. Thanks God!
I’m getting this error Virtual Class — cannot instantiate within nested class/functions. I checked the class reported by the error and instead of using extended class when using other class inside that specific class, I used class::function, it solved problem.