I'm moving to a new server and trying to use phpagi.php. However, i'm getting the following error when I try to use the phpagi.php.
PHP Notice: Undefined index: PATH in /var/lib/asterisk/scripts/phpagi.php on line 1693
PHP Notice: Undefined index: PATH in /var/lib/asterisk/scripts/phpagi.php on line 1693
I'm using the latest version of phpagi.php and i'm using php version 5.3.3.
I'm guessing that its a compatibility problem with php 5.3.3.
Any idea how i can correct this problem?
Thanks
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sometime you have to customize PHPAgi library to make it more compatible with your work
Editing that line is seams better than downgrading to old version . 5.1 is very old. but this is your decision.
You can also create Child class or template or using other OOP methodologies if you want avoid to edit PHPAgi class.
but the easy way was that one that I try to explain
And as always, The best way is the way you're comfortable with it
Have a good time
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm moving to a new server and trying to use phpagi.php. However, i'm getting the following error when I try to use the phpagi.php.
PHP Notice: Undefined index: PATH in /var/lib/asterisk/scripts/phpagi.php on line 1693
PHP Notice: Undefined index: PATH in /var/lib/asterisk/scripts/phpagi.php on line 1693
I'm using the latest version of phpagi.php and i'm using php version 5.3.3.
I'm guessing that its a compatibility problem with php 5.3.3.
Any idea how i can correct this problem?
Thanks
Dan
It depend on your code and server . but for ignoring this error message you can replace that line with :
or
I dont know the effect because I dont know where/how this method called in your code or not .
Another way is turning off PHP Notice
with "error_reporting" feature You can turn-off PHP Notice when you are in production progress
I've downgraded to php 5.1.6 which seems to have removed that error message.
Sometime you have to customize PHPAgi library to make it more compatible with your work
Editing that line is seams better than downgrading to old version . 5.1 is very old. but this is your decision.
You can also create Child class or template or using other OOP methodologies if you want avoid to edit PHPAgi class.
but the easy way was that one that I try to explain
And as always, The best way is the way you're comfortable with it
Have a good time