Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Wednesday, August 18, 2010

Lost password recovery for moodle

| Wednesday, August 18, 2010 | 1 komentar

Do you have weak and often failing memory as I do? And what worse, have you forgotten password you are accessing your beloved Moodle with? It is catastrophe! Really?

I assume you know, that Moodle can send you new password in case you have forgotten the old one when you provide username or email you registrated.

But what to do, if you have forgotten absolute everything or your Moodle is not sending emails? (Maybe you are trying Moodle on your localhost without smtp settings etc.)


If you have access to database (phpmyadmin is most used) you are saved.

You need to run this query:

UPDATE `mdl_user` SET password = md5('newpassword') WHERE username = 'admin';

where newpassword is you new password and admin is a username of account you want to set that new password.

Or you can use this script from Shane Elliot:

* download it
* modify lines


$username = 'username';
$newpassword = 'newpassword';

* copy this file to your root moodle installation directory, same location as config.php and access this script with your browser (eg. "http://yourmoodleurl/passchange.php" )

Don't forget to delete this script after usage, it can create security issue!

I hope you regained your password and you are good to go with using Moodle once again ;).

Readmore..

Saturday, May 3, 2008

contoh form dengan php

| Saturday, May 3, 2008 | 1 komentar

untuk membuat form dengan php, anda harus menginstall web server( misalnya : xampp, appserv, dll)
setelah itu ikutilah langkah-langkah berikut:

  • membuat file dengan nama data01.php menggunakan editor text (notepad) dengan script:
klik gambar untuk memperjelas tulisannya

ato tinggal copy paste text di dalam text area berikut ini:



  • membuat file dengan nama data02.php dengan scrit:
klik gambar untuk memperjelas tulisannya

ato tinggal copy paste text di dalam text area berikut ini:


  • kemudian simpan kedua file itu kedalam folder c:/xampp/htdocs/coba
  • setelah itu jalankan file01.php lewat browser dengan mengetikkan di url internet explorer /localhost/coba/data01.php
  • terakhir, isilah kotak isiannya dengan data anda, kemudian klik dengan tombol kirim. maka akan tampil data anda.

Readmore..
 
© Copyright 2010. yourblogname.com . All rights reserved | yourblogname.com is proudly powered by Blogger.com | Template by o-om.com - zoomtemplate.com