alexa-tracking
Selamat Guest, Agan dapat mencoba tampilan baru KASKUS Masih Kangen Tampilan Sebelumnya
Kategori
Kategori
Home / FORUM / All / Tech / ... / Programmer Forum /
Error koneksi.php tidak bisa
1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/5bbd9a67c0d770e63e8b4569/error-koneksiphp-tidak-bisa

Error koneksi.php tidak bisa

gan, jadi ceritanya saya mau upload web ke 000webhostapp, nah tapi gak bisa karena ada masalah di koneksi.php katanya
ni screenshotnya
-------------------------------------------------------------------------------------------------------------------------------
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /storage/ssd2/921/7397921/public_html/koneksi.php:7 Stack trace: #0 /storage/ssd2/921/7397921/public_html/index.php(3): include() #1 {main} thrown in /storage/ssd2/921/7397921/public_html/koneksi.php on line 7
=====================================================
nnah file koneksi.phpnya ini
<?php $host = "localhost";

$user = "id7397921_root";

$pass = "daftarhadir3";

$db   = "id7397921_db_daftarhadir3";

// $db   = "db_skripsi";

$connect = mysql_connect($host, $user, $pass) or die ('Koneksi Gagal! ');

mysql_select_db($db);
?>


untuk nama database, username dan pw nya udah sama dengan database yg diupload ke server hosting gratisnya..

tolong dibantu gan....
Urutan Terlama
fungsi mysq_connect sudah ditiadakan sejak versi PHP v5.5.0. Coba pakai fungsi mysqli_connect gan
karena server udah pake php v7 yg udah gak dukung mysql_*
ente harus hijrah pake mysqli_* atau pdo
Balasan Post justhrun
sudah gan, di cpanel saya ubah ke php 5.2 dan bisa. makasi responnya gan....


nah ane mau nanya lagi ini gan,
pas proses cetak ternyata ada masalah, kira2 apa ya>? saya pake mpdf untuk cetaknya

Warning: include(): open_basedir restriction in effect. File(/usr/share/pear/lib/PDF/mpdf.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd2/921/7397921) in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(): open_basedir restriction in effect. File(/usr/share/php/lib/PDF/mpdf.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd2/921/7397921) in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(lib/PDF/mpdf.php): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(lib/PDF/mpdf.php): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(lib/PDF/mpdf.php): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(): Failed opening 'lib/PDF/mpdf.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: file_get_contents(lib/PDF/mpdf.css): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 153 Warning: Cannot modify header information - headers already sent by (output started at /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php:150) in /storage/ssd2/921/7397921/public_html/PDF/mpdf.php on line 7076 Warning: Cannot modify header information - headers already sent by (output started at /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php:150) in /storage/ssd2/921/7397921/public_html/PDF/mpdf.php on line 1727 mPDF error: Some data has already been output to browser, can't send PDF file

tolong dibantu gan...
Balasan Post diegaim
sudah gan, di cpanel saya ubah ke php 5.2 dan bisa. makasi responnya gan....


nah ane mau nanya lagi ini gan,
pas proses cetak ternyata ada masalah, kira2 apa ya>? saya pake mpdf untuk cetaknya

Warning: include(): open_basedir restriction in effect. File(/usr/share/pear/lib/PDF/mpdf.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd2/921/7397921) in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(): open_basedir restriction in effect. File(/usr/share/php/lib/PDF/mpdf.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd2/921/7397921) in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(lib/PDF/mpdf.php): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(lib/PDF/mpdf.php): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(lib/PDF/mpdf.php): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: include(): Failed opening 'lib/PDF/mpdf.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 150 Warning: file_get_contents(lib/PDF/mpdf.css): failed to open stream: No such file or directory in /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php on line 153 Warning: Cannot modify header information - headers already sent by (output started at /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php:150) in /storage/ssd2/921/7397921/public_html/PDF/mpdf.php on line 7076 Warning: Cannot modify header information - headers already sent by (output started at /storage/ssd2/921/7397921/public_html/PDF/cover_daftar_hadir.php:150) in /storage/ssd2/921/7397921/public_html/PDF/mpdf.php on line 1727 mPDF error: Some data has already been output to browser, can't send PDF file

tolong dibantu gan...
file mpdf.php udah diupload juga? path di include('lib/PDF/mpdf.php') harus disesuaikan.
Balasan Post justhrun
udah diupload gan,,,

maksud agan path di include('lib/PDF/mpdf.php') harus disesuaikan

berarti,
tempat file mpdf.php diupload ya?

kan sistem ini saya upload di public_html gan,
berarti diubah jadi 'public_html/PDF/mpdf.php'
gini gan?

tolong dibantu gan
PHP Code:
// cobain gini
include('PDF/mpdf.php'); 


×
GDP Network
Copyright © 2018, Kaskus Networks, PT Darta Media Indonesia.
Ikuti KASKUS di