gravatar

Getting .htaccess Files to Work on AppServ

Getting .htaccess files to work on AppServ (Windows version) a lot of peoples computers doesn’t seem to work, I myself am one of those people, so I fiddled around the other day and got it working – so hopefully if you follow this tutorial you’ll understand how to get it to work and it should work for you.

First of all if you locate your Apache folder (within your AppServ folder, usually installed directly on your C drive) and go into a folder called “conf”, then open the file called “httpd.conf”.

Find:

#LoadModule rewrite_module modules/mod_rewrite.so

Replace:

LoadModule rewrite_module modules/mod_rewrite.so

Removing the ‘#’ (hash) symbol will enable the rewrite module. (Note: Some configurations are already loaded, if so ignore it)

Find:

AccessFileName .htaccess

Replace:

AccessFileName my.htaccess

Changing this from .htaccess to my.htaccess means that your .htaccess files will have to be called “my.htaccess” (However when you upload them to a real web server online then you’ll need to rename them back to .htaccess)

Now restart your Apache server (This can be done by going into the Apache folder, then into the “bin” folder and running the program “ApacheMonitor.exe”, opening it from the system tray and clicking “Restart”)

gravatar

Enter pada NowSMS

If you are sending via direct URL submission, you can include %0D%0A in the text parameter. This signifies the carriage return and line feed characters, both of which are required to cause a line break on all phone models.

If you are using the NowSMS web form, you can put \r\n in the text to indicate carriage return/line feed. (Note: You can also use \r\n in the URL parameters as well, as sometimes if you use %0D%0A, the library you are using might URL escape the %, causing a % to appear in the resulting message.)

gravatar

Menghitung hari pada Microsoft Excel

Fungsi datedif digunakan untuk menghitung jumlah hari, bulan atau tahun antara dua tanggal. Syntax-nya:

DATEDIF(start_date, end_date, unit)

Start_date dan end_date ditulis dalam format string misalnya "24/3/2004" atau nomor serial tanggal atau merujuk ke data tanggal pada cell lain.

Unit digunakan untuk menentukan tipe informasi keluaran yang diinginkan, yaitu:

  • "Y"
    Keluarannya adalah jumlah selisih tahun penuh. Antara tanggal 24/3/2004 sampai 23/3/2005 menghasilkan nilai 0, sedang jika sampai dengan 24/3/2005 menghasilkan 1.
  • "M"
    Keluarannya adalah jumlah selisih bulan penuh. Antara tanggal 24/3/2004 sampai 23/3/2005 menghasilkan nilai 11, sedang jika sampai dengan 24/3/2005 menghasilkan 12.
  • "D"
    Keluarnnya adalah jumlah selisih hari.
  • "MD"
    Keluarannya adalah jumlah selisih hari dengan mengabaikan tahun dan bulannya.
  • "YM"
    Keluarannya adalah selisih bulan dengan mengabaikan tahun dan tanggalnya.
  • "YD"
    Keluarannya adalah selisih hari dengan mengabaikan tahunnya.

Kalender


Shout Box


ShoutMix chat widget