Flex Builder 4, ZendAMF, and Data Services - Error?

I am trying to set up the Flex Builder 4 dev environment, including PHP and ZendFramework in the WAMP stack on my hard drive.

Everything goes smoothly until I try to configure the data service. I point it to a php class file, it fills in various fields in the form, so I know that he understood it, and click on. After a little tweak, I have ZendFramework installed, and everything seems to point the right way, so I'm not sure why I get this error:

"Make sure the Zend Framework is installed correctly, and the amf.production parameter is not set to true in the amf_config.ini file located in the project output folder. Warning: include_once (C: \ wamp \ www \ TestDrive-debug \ EmployeeService.php ) [function.include-once]: Could not open stream: permission denied in C: \ wamp \ ZendFramework \ library \ Zend \ Loader.php on line 146 "

What can cause a permission error? This is not at the system level, because I went into the properties and completely opened this file, so even the basic user has full permissions - there are still no cubes.

I am not a reeeally PHP guy, so this is a little above my skill set. Has anyone encountered this problem before? I just follow the manual that I have and it MUST work. I just don’t understand what will cause a permissions problem like this.

Thank!

+3
source share
3 answers

I solved this problem by changing the encoding of the php file. There must be some invisible characters in the file that twisted the parsing. Try saving the php service file with different encodings and see if it works for you. The one that worked for me was created by eclipse. I copied the code into it, saved and will work!

+1
source

, OP, , ,

+1

inside the amf_Config.ini folder, create a new amf_config2.ini file, copy the contents of amf_config.ini, as it is in amf_config2.ini, now inside amf_config2 specify the value of the webroot parameter (webroot = "xxxxx") twice, save ur amf_config2, open gateway.php , which will also be inside the same directory, change $ configfile = "$ dir / amf_config.ini" to $ configfile = "$ dir / amf_config2.ini", save it and try

0
source

Source: https://habr.com/ru/post/1744687/


All Articles