Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(9 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Bug Reports

Atutor 1.4.1 fresh install problem


You must be signed-in to post.

AuthorSubject
  Page: 1
sbhatt
Subject: Atutor 1.4.1 fresh install problemQuote this post in your reply
Hi all,

I am doing a fresh install of Atutor 1.4.1. Env details are :
- PHP 5.0.0
- Mysql 4.0.20
- IIS 5.1

On clicking "Install Fresh Version. ... [INSTALL], I get the following message :
"Fatal error: Cannot redeclare scandir() in c:\Inetpub\wwwroot\ATutor\install\include\common.inc.php on line 192".

Line nos in common.inc.php are as follows :

183: function scandir($dirstr) {
184: $files = array();
185: $fh = opendir($dirstr);
186: while (false !== ($filename = readdir($fh))) {
187: array_push($files, $filename);
188: }
189: closedir($fh);
190: return $files;
191:
192: }

Please help.

Regards, Sanjay
Posted: 2004-07-30 22:17:06
greg

Avatar for greg
Subject: php5 and scandirQuote this post in your reply
We have not started developing for php5 yet.

ATutor uses its own function called scandir which did not exist in php4, but now exists in php5. You'll need to go back to php4 to correct the problem. We'll try to deal with this new conflict in a future version of ATutor.
Posted: 2004-08-02 10:48:34
greg

Avatar for greg
Subject: Rename the scandir functionQuote this post in your reply
Actually, this has already fixed in the developing code by replacing all occurances of scandir with scan_dir.

Instances can be found in:

install/include/ustep2.php
install/include/ustep4.php
install/include/common.inc.php
Posted: 2004-08-02 12:07:38
 Page: 1

You must be signed-in to post.