com_create_guid() function got error on server side but works fine in local using php

前端 未结 4 1967
傲寒
傲寒 2020-12-10 11:00

working on generate a guid in a php file.i\'m using the com_create_guid(). It works fine on localhost but i shows the below error in remote server.

4条回答
  •  星月不相逢
    2020-12-10 11:17

    You must be running PHP version less than 5 else you must be running on a LINUX box as COM is a windows based extension.

    Try this script and make sure.

    echo function_exists('com_create_guid')
        ? "Yes" +  com_create_guid()
        : "Nope !"
    ;
    

提交回复
热议问题