I am trying to use the PHP example code. When I call $URL = ereg_replace("^https://", "", $URL), I got an error:
A PHP Error was encountered
Severity: 8192
Message: Function ereg_replace() is deprecated
Filename: admin/webex.php
Line Number: 119
$URL contains "[https://emindful.webex.com/WBXService/XMLService]"
How should I proceed?@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hello,
The example code is very old and will be updated in the future. As for this line, the following should work in its place:
$URL = preg_replace("#https://#i", "", $URL);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.