I get this error when I call the same function twice from a class that has an include of the class mentioned below:
Fatal error: Cannot redeclare class scripts in C:\PHP\includes\Class\Select\scripts.php on line 2
Multipli call to a function
Moderator: General Moderators
Yes I have tried it then I get the following error:
Fatal error: Class 'scripts' not found in C:\PHP\includes\Class\Select\results.php on line 16
Because it was include before the second time you call it, it doesn't request it another time thus PHP can not re-instantiate if that makes any sense.
Fatal error: Class 'scripts' not found in C:\PHP\includes\Class\Select\results.php on line 16
Because it was include before the second time you call it, it doesn't request it another time thus PHP can not re-instantiate
Code: Select all
class Script