| Page 1 of 1 | [ 3 posts ] |
|
Hi All,
I cannot seem to get phploader to work and desperately need some help! Unless there is another way to get YUI3 working under SSL? installed under /phploader/* I amended loader.php: Code: var $base = "https://mydomain.com/phploader/lib/3.2.0/build/"; var $comboBase = "https://mydomain.com/phploader/combo.php?"; I amended config_3.2.0.php: Code: 'base' => 'https://mydomain.com/phploader/lib/3.2.0/build/', Firstly config files could not be found so I amended the code in loader.php: Code: $phpConfigFile = $parentDir . '/phploader/lib/meta/config_' . $yuiVersion . '.php'; $jsonConfigFile = $parentDir . '/phploader/lib/meta/json_' . $yuiVersion . '.txt'; I have the following set-up: /phploader/lib/3.2.0/build/* /phploader/lib/meta/config_3.2.0.php /phploader/lib/meta/json_3.2.0.txt The following code outputs nothing at all: Code: <? $loader = new YAHOO_util_Loader("3.2.0"); $loader->allowRollups = true; $loader->load("yui", "node", "event", "io", "json", "anim", "node-event-simulate"); $loader->tags(); ?> What am I doing wrong?? TIA Phil. |
|
I had the problem while using LDAP access and https with phploader.
I had to change the loader.php getRemoteContent method as follows to support it. (used phploader in version 1.0.0b2) Code: //before curl_init if (isset($_SERVER["PHP_AUTH_USER"])){ $url = preg_replace( "/^http:\/\//", "http://" . $_SERVER["PHP_AUTH_USER"]. ":" . $_SERVER["PHP_AUTH_PW"] . "@", $url ); if (preg_match("/^on$/i", $_SERVER["HTTPS"])){ $url = preg_replace("/^http:\/\//", "https://", $url); } } Code: //after curl_init if (preg_match("/^https:\/\//", $url)){ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);//only if peer does not match the one in ssl cert } Dont know if this helps you. If not this may help other guys having similar problems. Regards Kai |
|
Thanks for your response
|
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group