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)
Perbandingan Biaya & Performa AI Agent: Gemini Flash 2.5, GPT-4o-Mini, dan LLaMA Phi-3 Mini
Dalam pengembangan AI Agent untuk aplikasi production, dua hal utama yang selalu menjadi pertimbangan adalah performa dan biaya op...
-
This step-by-step guide will walk you through backing up your current iptables configuration and restoring it when needed. Prerequisites ...
-
Langkah 1: Identifikasi Container PostgreSQL Gunakan perintah docker ps untuk menemukan container PostgreSQL: docker ps Cata...
-
Pendahuluan Aplikasi berbasis web telah berkembang pesat pada masa ini menjadikan orang awam paling tidak mengetahui bagaimana web itu bek...
Tidak ada komentar:
Posting Komentar