LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 96 of 106
0 votes
2 ans
4 views
Moodle - terms of agreement activity

I'm creating a moodle site for school students with couple courses. When they start the course, I want to have a page like terms of agreement with a che...

moodle-core Solved
VI
asked 1 month ago by Vivek Chandraprakash
0 votes
1 ans
3 views
How to install moodle and configure moodledata folder?

I am trying to install moodle on my server. I did unpack moodle package in public html folder. This moodle folder has `755` access rights set. Then I create...

moodle-core Solved
SH
asked 1 month ago by Shien
0 votes
1 ans
3 views
How to manually create a user in Moodle?

I am trying to create an authentication plugin, but I am having problems when the user does not exist in the moodle database. Therefore I am trying to find a wa...

moodle-core Solved
NA
asked 1 month ago by Naner
0 votes
1 ans
3 views
Add a custom field to course Moodle

I'm new to moodle. I need your suggestions to create plugin which will add a custom field on Add/edit courses page and will also store the input value in `m...

moodle-core Solved
VI
asked 1 month ago by Viralk
0 votes
1 ans
3 views
Add new tables to moodle database

I just want to know is it ok to add new tables to the `moodle` database or should I create a new database for that? I need a table to save a unique id and a tok...

moodle-core Solved
RA
asked 1 month ago by Ravindu
0 votes
1 ans
3 views
How to manipulate URL inside ajax call?

I am trying to trigger an ajax call on change of a dropdown menu(at client_script.php). The ajax call will send some values to server_script.php and it will cha...

moodle-core Solved
N.
asked 1 month ago by N. F.
0 votes
1 ans
3 views
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)

### What is this? This is a collection of questions that come up now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to p...

php-dev Solved
GO
asked 1 month ago by Gordon
0 votes
1 ans
3 views
Deleting an element from an array in PHP

Is there an easy way to delete an element from an array using PHP, such that `foreach ($array)` no longer includes that element? I thought that setting it to...

php-dev Solved
BE
asked 1 month ago by Ben
0 votes
2 ans
4 views
How do I get a YouTube video thumbnail from the YouTube API?

If I have a YouTube video URL, is there any way to use PHP and cURL to get the associated thumbnail from the YouTube API?

general-dev Solved
CO
asked 1 month ago by CodeOverload
0 votes
1 ans
3 views
How do I check if a string contains a specific word?

Consider: $a = 'How are you?'; if ($a contains 'are') echo 'true'; Suppose I have the code above, what is the...

php-dev Solved
CH
asked 1 month ago by Charles Yeung
0 votes
1 ans
3 views
How do you parse and process HTML/XML in PHP?

How can one parse HTML/XML and extract information from it?

php-dev Solved
RO
asked 1 month ago by RobertPitt
0 votes
2 ans
4 views
How does PHP 'foreach' actually work?

Let me prefix this by saying that I know what `foreach` is, does and how to use it. This question concerns how it works under the bonnet, and I don't want a...

php-dev Solved
DA
asked 1 month ago by DaveRandom
0 votes
1 ans
3 views
When should I use 'self' over '$this'?

In PHP 5, what is the difference between using `self` and `$this`? When is each appropriate?

general-dev Solved
CA
asked 1 month ago by Casey Watson
0 votes
2 ans
4 views
How do I get PHP errors to display?

I have checked my PHP ini file (`php.ini`) and `display_errors` is set and also error reporting is `E_ALL`. I have restarted my Apache webserver. I have even...

php-dev Solved
AB
asked 1 month ago by Abs
0 votes
1 ans
3 views
How Can I add HTML And CSS Into PDF

I have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7. It uses fairly basic CSS to style it and renders fine in HTML. I'm now afte...

general-dev Solved
CL
asked 1 month ago by cletus
0 votes
1 ans
3 views
str_starts_with and str_ends_with functions in PHP

How can I write two functions that would take a string and return if it starts with the specified character/string or ends with it? For example: $str...

php-dev Solved
AL
asked 1 month ago by Ali
0 votes
1 ans
3 views
Difference between require, include, require_once and include_once?

In PHP: - When should I use `require` vs. `include`? - When should I use `require_once` vs. `include_once`?

general-dev Solved
SC
asked 1 month ago by Scott B
0 votes
1 ans
3 views
Sort a 2d array by a column value

How can I sort this array by the value of the "order" key? Even though the values are currently sequential, they will not always be. Array...

php-dev Solved
ST
asked 1 month ago by stef
0 votes
1 ans
3 views
"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

I'm running a PHP script and continue to receive errors like: > Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php on line 1...

database Solved
PE
asked 1 month ago by Pekka
0 votes
1 ans
3 views
Get the first element of an array

I have an array: `array( 4 => 'apple', 7 => 'orange', 13 => 'plum' )` I would like to get the first element of this arr...

php-dev Solved
HS
asked 1 month ago by hsz