2108 solutions found
Page 97 of 106votes
Every now and then I hear the advice "Use bcrypt for storing passwords in PHP, bcrypt rules". But what is `bcrypt`? PHP doesn't offer any such...
votes
I know that PHP doesn't yet have native Enumerations. But I have become accustomed to them from the Java world. I would love to use enums as a way to give p...
votes
Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML t...
votes
It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection. This...
votes
I have tried reading some articles, but I am not very clear on the concepts yet. Would someone like to take a shot at explaining to me what these technologie...
votes
I have a PHP array like so: $messages = [312, 401, 1599, 3, ...]; Given that **the values in the array are unique**, how can I delete the element with...
votes
I need to keep a session alive for 30 minutes and then destroy it.
votes
Please define what `stdClass` is.
votes
I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky for the year to be outdated. How would I make the year u...
votes
I want to return JSON from a PHP script. Do I just echo the result? Do I have to set the `Content-Type` header?
votes
When and why should I use `public`, `private`, and `protected` functions and variables inside a class? What is the difference between them? Examples:...
votes
How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?
votes
Today I needed to install the IBM DB2 library. I went through all the steps up to `make install`, and I found ibm_db2.so in `$PHP_HOME/lib/extensions/somecompl...
votes
I need to login my user from my website to the moodle page.I have build function that create user and make enroll to course,Now i need to make auto login....
votes
when I create a badge in Moodle 3.5, the core automatically creates 3 thumbs for the badge icon (35x35, 100x100, 512x512). I should increase the size of the 100...
votes
I'm building a Moodle course for my students who are part of different batches. Each batch refers same lesson notes, but the Quiz and Assignment activities...
votes
I'm new in moodle and I always programmed at client-side. I think maybe I'm missing something because of that reason. I need to provide the user with di...
votes
I have an application where I need to fetch records from Moodle using the core Web Service API. I am receiving courses and categories with the following API...
votes
Hi Iam using moodle cms to develop my e-learning website everything OK except one problem when i trying to search any youtube video the first image error shown...
votes
Would you recommend using a [datetime][1] or a [timestamp][1] field, and why (using MySQL)? I'm working with PHP on the server side. [1]: https:/...