You don't want to show the ugly page, right. This can be lead by unclosed html tag. I bet, this happens when You let the user input some text into your page.
By that case, you can fix your page by using tidy class in PHP.
Follow this to fix your page;
By default, php is not including tidy class. So you need to install it first by using this syntac;
sudo apt-get install php5-tidy
Restart your Apache service
sudo service apache2 restart
Now, you can use tidy class;
tidy_repair_string($string);
For more detail, you can visit
http://php.net/manual/en/book.tidy.php
Langganan:
Posting Komentar (Atom)
Berapa harga pembuatan software, website dan aplikasi mobile?
Jika Anda ingin membuat website, software atau aplikasi mobile, pasti pertanyaan seperti pada judul diatas terlintas dikepala Anda. Untuk ...

-
Kenapa harus membuat server Git sendiri? Git pada masa ini seperti tools wajib bagi para pekerja dibidang software. Requirement pekerjaan...
-
Java sebagai bahasa murni berorientasi objek mempunyai aturan yang ketat tentang penerapannya. Aturan-aturan yang ketat ini menjadikan Java ...
-
KVM (Kernel-based Virtual Machine) adalah modul virtualisasi pada kernel Linux yang membolehkan fungsi hypervisor .(1) KVM sangat ringan dan...

Tidak ada komentar:
Posting Komentar