You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to parse excel data in Customer portal?

Question
20
Views
0
Comments
edited Dec 2, 2019 11:33AM in Customer Portal

Summary

How to parse excel data in Customer portal? Which PHP library to use?

Content

Hi,

I have written a sample php script inside Custom controller - "/dav/cp/customer/development/controllers" of our Customer Portal code, to parse data from excel sheet using PHPExcel. I have attachedthe sample code snippet.
When I run the file from the browser (https://<sitename>.custhelp.com/cc/SampleFile/testExcel), it gives me an error that the path of the PHPExcel is incorrect, as follows:

A PHP Error was encountered
Severity: Warning
Message: require_once(): open_basedir restriction in effect. File(Classes/PHPExcel.php) is not within the allowed path(s): (/cgi-bin/<sitename>.cfg/scripts/cp/core/:/cgi-bin/<sitename>.cfg/scripts/cp/customer/development/:/cgi-bin/<sitename>.cfg/scripts/cp/src/core/framework/3.7.8/:/cgi-bin/<sitename>.cfg/scripts/cp/generated/:/cgi-bin/<sitename>.cfg/scripts/ma/util.phph:/cgi-bin/<sitename>.cfg/scripts/ma/cci/head.phph:/cgi-bin/<sitename>.cfg/scripts/ma/cci/top.phph:/cgi-bin/<sitename>.cfg/scripts/ma/cci/bottom.phph:/cgi-bin/<sitename>.cfg/scripts/views/view_utils.phph:/vhosts/<sitename>/euf/:/vhosts/<sitename>/rnt/rnw/yui_2.7:/vhosts/<sitename>/rnt/rnw/yui_3.18/:/cgi-bin/<sitename>.cfg/scripts/../log/:/cgi-bin/<sitename>.cfg/scripts/include/ConnectPHP/:/cgi-bin/<sitename>.cfg/scripts/ConnectPHP/:/cgi-bin/<sitename>.cfg/scripts/cp/mod_info.phph:/tmp/:/prod_tmp/:/cgi-bin/<sitename>.cfg/webindex/:/cgi-bin/<sitename>.cfg/scripts/../configs:/configs:/cgi-bin/<sitename>.cfg/scripts/euf/config:/vhosts/<sitename>:/vhosts/<sitename>/rnt/rnw/:/cgi-bin/<sitename>.cfg/scripts/include/src/:/cgi-bin/<sitename>.cfg/scripts/cp/src/mod_info.phph)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!