PDA

View Full Version : did you have any problems with installation of Unit Miner ?


vzeman
9th January 2005, 10:20 PM
did you have any problems with installation of Unit Miner ?

Please write here your problems or contact directly our support@qualityunit.com

We will help you with installation of Unit Miner on your server or local computer.

Guest
6th June 2005, 10:37 PM
Since several years, I'm using some services from a web hosting provider, which offers PHP/Curl/Zend Optimizer too. Now, I tried UnitMiner and tested the installation with test.php:

OK Passed:72 .................................................. ......................

But unfortunately I could not run wrappers. When I try to run

http://www.mydomain.com/wrapper.php?script=Wrapper/samples/online_demo/bbcnews.w

I get the message

Warning: set_time_limit(): Cannot set time limit in safe mode in d:\Data\members\others\html\wrapper.php on line 27
File not found: Wrapper/samples/online_demo/bbcnews.w

even if the path to bbcnews.w is right.

What's wrong?

viktor
6th June 2005, 10:48 PM
Your php is running in safe mode and in script wrapper.php is used function set_time_limt, which is in safe mode not allowed.

there are 2 possible solutions:

1. you will switch off safe mode
2. you will use on place of wrapper.php following code:


<?php
require_once(realpath(dirname(realpath(__FILE__))) . '/QUnit/Global.class.php');

function usage() {
return "usage: wrapper script\n";
}

if(isset($argv) && count($argv) >= 2) {
$script = $argv[1];
} else if(isset($_REQUEST['script'])) {
$script = $_REQUEST['script'];
} else {
echo "Script file is missing!\n";
die(usage());
}

if(empty($script)) {
die(usage());
}

$executor = QUnit_Global::newObj('Wrapper_Executor', $script);
$executor->execute();
?>



Disadvantage of second solution is, that if script will need for execution more than 30 seconds (what is default timeout of php script from php.ini), than script will be stopped by php.

Guest
7th June 2005, 09:14 PM
Thank you. Now it works, but I still get an error message

File not found: Wrapper/samples/online_demo/bbcnews.w