-
Posts
22 -
Joined
-
Last visited
-
You are definatly heading down the right track. We have been working at this for some time and have just about got it sorted. Firstly, I would recommend you look at ADmit Mac as an intergration tool instead of Apple's built in Active Directory. Secondly, The preferences ARE set on the Apple Server through Workgroup Manager. This is a little complicaited to explain here, but when you are in Workgroup Manager, you want the main area to be authenticating against the Open Directory so you can set up the permissions group. When it comes to adding a user from Active Directory, then a side panel will appear on the right of the Workgroup Manager. You will need to make sure this is authenticating to Active Directory and your AD users and groups should appear. When they do, drag over the ones you want to put into this OD group. There are several web sites that give step by step instructions on how to do this, including screen shots so have a search and see what you can find. If you have any specific questions, message me and I will see what I can do to help. Barry.
-
I'd just spotted that. Now looking for a colleage to kick me very hard!! Thanks and sorry for wasting your time. Barry.
-
Thanks all, OK I have added the Print instruction which returns: Array() I'm guessing this is not right! Here is the script of the form, which, if there is an error on, I'll kick myself very hard!!! // Form information echo ('You have '.$remaining.' options remaining. </pre><form name="selectoption" methord="POST" action="/dev/optprocess.php"> Please pick'); foreach($chors as $row2) { echo (''.$row2->subject.''); } echo (' </form><br>< I have attached the optprocess.php script as a text file. Because of the added lines, the error (notice) has changed to: Notice: Undefined index: uname in D:\Web Server\moodle\dev\optprocess.php on line 18 Thanks for your assistance with this. Barry. optprocess.txt
-
Hi, Info: PHP 5.2 Moodle 1.9.7 Apache 2 Windows Server 2003 Problem: I've created a form on a php page. The form 'posts' three variables, (uname, tutor & newoption), on to the next script. I have used the following code to recover the information: $uname = $_POST["uname"]; $tutor = $_POST["tutor"]; $subjectid = $_POST["newoption"]; However, I get an error message as follows for each of the variables listed above: Notice: Undefined index: uname in D:\Web Server\moodle\dev\optprocess.php on line 12 If you need to see anything else, please ask. I am quite new to PHP so any help would be much apprechiated. Cheers, Barry.
-
Thanks to everyone on here who offered me help with this. I have managed to work out how to do it. The code I needed was: foreach($opt as $row) { $optno = $row->subjectid; } Hope that helps someone else at some point. Barry
-
Well spotted Powdarrmonkey, I'm using a library supplied with a module for Moodle VLE. $opt=get_records_sql($sql1); If this is the cause of my problems, then I will take it up with the author of the module. Let me know if you want me to print the code of the 'get_records_sql'. Thanks.
-
Dan, If you don't mind playing with PHP, then Moodle VLE has two add-on modules which connect to CMIS, both of them are for different areas: Facility to Moodle - Connects students for authentication to Moodle and imports teaching groups. MIS - For looking up student ePortal information. I'm sure the coding of these two modules would help with finding the solution that you would like. Hope thats of help. Barry. Winton Arts and Media College
-
I changed it as you suggested, but got exactly the same error. Could it have something to do with the fact that the stdClass Object is returned within the array? I don't know, just guessing! Cheers for your help and ideas.
-
Thanks guys for your assistance. I did as was suggested above and got teh following error: Fatal error: Cannot use object of type stdClass as array Any thoughts? Thanks.
-
The array contains a field subjectid which will contain a number that will be cross referenced against a second database to find out which subject name goes against that number. When I run the page, it prints the array contents: Array ( [1] => stdClass Object ( [uname] => JHollands06 [tutor] => M LSt [subjectid] => 1 [year] => 2010 [optid] => 1 ) ) this shows me that the subjectid field on this record contains a number 1, but I get an error when I try and lookup that specific field in order to find out which number it contains.
-
Hi, The lookup returned an array automatically. I need access to several fields and to cross reference against another database for each record that gets returned. For this reason I need the array broken into each field so that I can run the cross reference and then post the result before going on to the next record in the results. I know how to do it in ASP, but not in PHP. Thanks.
-
Hi, I'm quite new to PHP and experiencing some issues. I understand programming in general as I have been using ASP for quite some time. I am trying to get a record from a database using an sql lookup (sql1). This then returns as an array which is fine, but I need to use part of the array for my next stage. My question is, does anyone know how to remove a fields value from the array? My code is: $opt=get_records_sql($sql1); //Diags for SQL content print_object($opt); $n = count($opt); if (empty($opt)) { echo 'No options selected'; } else { $optno = $opt["subjectid"]; // Diags of $optno echo ' $optno = '.$optno; As you can see, I tried to use this: $opt["subjectid"] as subjectid is the fieldname that I am trying to access and I was under the impression that this was correct for accessing an array, but I get the following error: Notice: Undefined index: subjectid Any thoughts would be much appreciated. Thanks, Barry.
-
Cheers Dan, I found the following in my php.ini file. [eAccelerator] extension=eaccelerator.dll eaccelerator.shm_size = "0" eaccelerator.cache_dir = "C:\Web Server\tmp" eaccelerator.enable = "1" eaccelerator.optimizer = "1" eaccelerator.debug = "0" eaccelerator.check_mtime = "0" eaccelerator.filter = "" eaccelerator.shm_max = "0" eaccelerator.shm_ttl = "0" eaccelerator.shm_prune_period = "0" eaccelerator.shm_only = "0" eaccelerator.compress = "1" eaccelerator.compress_level = "9" eaccelerator.keys = "shm_and_disk" eaccelerator.sessions = "shm_and_disk" eaccelerator.content = "shm_and_disk" ;eaccelerator.admin.name = ;eaccelerator.admin.password = I have added the ';' in front of each of the above lines. Saved the file. Stopped and restarted the Apache server and this has got rid of the Cache. Thanks for all your help. Barry.
-
My XAMPP install has 4 modules listed: Apache, mySQL, Filezilla and Mercury. Only Apache and mySQL are running. Thanks.
-
Moodle Cache is aready set to none and I can not find any reference to mod_expires. EDIT: I 'add' php pages to the Moodle directory. I'm trying to see if I can pass the active Moodle username to another Web Application. Cheers.

