hyPerdarKness adlı üyeden alıntı:
mesajı görüntüle
eklediğiniz adımları takip ettim fakat sayfa açılmıyor ve HTTP ERROR 500 hatası veriyor. ne yapmam lazım acaba?
33
●1.724
[14-Oct-2021 19:55:47 Europe/Istanbul] PHP Parse error: syntax error, unexpected '$dbpass' (T_VARIABLE) in /home/parkegec/public_html/takip/plug/do_sys.php on line 5
<?php if(!defined("include")){ echo '<meta http-equiv="refresh" content="0;URL=../index.php">'; exit(); }
$dbhost = "localhost"; $dbuser = "root"; parkegec_takip11 $dbpass = ""; parkegec_takip22 $dbdata = "veritabani"; parkegec_takip
try { $db = new PDO("mysql:host=$dbhost;dbname=$dbdata", "$dbuser", "$dbpass", array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); } catch ( PDOException $e ){ print $e->getMessage(); exit(); }
function htmlclean($text){ $text = preg_replace("'<script[^>]*>.*?</script>'si", '', $text ); $text = preg_replace('/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is', '\2 (\1)',$text ); $text = preg_replace( '/<!--.+?-->/', '', $text ); $text = preg_replace( '/{.+?}/', '', $text ); $text = preg_replace( '/ /', ' ', $text ); $text = preg_replace( '/&/', ' ', $text ); $text = preg_replace( '/"/', ' ', $text ); $text = strip_tags($text); $text = htmlspecialchars($text); return $text; }
?>$dbuser = "parkegec_takip11"; $dbpass = "parkegec_takip22"; $dbdata = "parkegec_takip";