cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
324
Views
3
Helpful
1
Replies

ereg_replace() is deprecated?

Zhangatcisco
Level 1
Level 1

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?@

1 Reply 1

nmorrow
Cisco Employee
Cisco Employee

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);

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: