Php Syntax Error Unexpected T_dnumber
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have parse error: syntax error, unexpected t_dnumber Meta Discuss the workings and policies of this site About Us
000webhost
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected T_DNUMBER in C:\Inetpub\vhosts\ [closed] up vote -2 down vote favorite I have this error message on windows vps. Complete error message: "Parse error: syntax error, unexpected T_DNUMBER in C:\Inetpub\vhosts\kayahomesonline.com\httpdocs\configuration.php on line 24" My configuration.php content is: error_reporting(E_ALL); ini_set("display_errors", 1); session_start(); ## Set the time for IST date_default_timezone_set('Europe/Istanbul'); setlocale(LC_ALL, 'turkish'); setlocale(LC_ALL, 'tr_TR.UTF-8'); // setlocale(LC_TIME, 'tr_TR'); $title = "KAYAHOMES YÖNETİM PANELİ"; $baseURL = "https://www.kayahomesonline.com"; $basePath = "C:\Inetpub\vhosts\kayahomesonline.com\httpdocs\"; ## JavaScript General Path $js_path = 'http://script.rezsis.com/js/'; $img_path = 'http://script.rezsis.com/images/'; $version = "0.1"; $baglan = mysql_connect('localhost','datauser','D4t4b4s3*'); if (!$baglan) { die('Veritabanına bağlanılamadı... Lütfen yetkilinizle irtibata geçin...' . mysql_error()); } mysql_select_db('kayahomes_new',$baglan) or header("Location: ../login.php"); mysql_query("SET NAMES UTF8"); ?> what is wrong? This config file is working on my old Linux VPS. php php-parse-error share|improve this question asked Nov 2 '14 at 15:18 Yavuz 52 closed as off-topic by deceze, CBroe, lxg, andrewsi, biegleux Nov 3 '14 at 5:33 This question appears to be off-topic. The users who voted to close gave this specific reason:"This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely i
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, http://stackoverflow.com/questions/26700844/parse-error-syntax-error-unexpected-t-dnumber-in-c-inetpub-vhosts just like you, helping each other. Join them; it only takes a minute: Sign up Parse error: syntax error, unexpected '.1' (T_DNUMBER) in C:\webserver\function\GrabStatus.php on line 7 up vote -2 down vote favorite I'm getting the error Parse error: syntax error, unexpected '.1' (T_DNUMBER) in C:\webserver\function\GrabStatus.php on line 7 in my websites php minecraft server ping http://stackoverflow.com/questions/29179416/parse-error-syntax-error-unexpected-1-t-dnumber-in-c-webserver-function script Here's the code I'm using: define( 'MQ_SERVER_ADDR', $ipandport[0]); define( 'MQ_SERVER_PORT', $ipandport[1]); define( 'MQ_TIMEOUT', 1 ); // Edit this <- // Display everything in browser, because some people can't look in logs for errors Error_Reporting( E_ALL | E_STRICT ); Ini_Set( 'display_errors', true ); require __DIR__ . '/MinecraftServerPing.php'; $Timer = MicroTime( true ); $Info = false; $Query = null; try { $Query = new MinecraftPing( MQ_SERVER_ADDR, MQ_SERVER_PORT, MQ_TIMEOUT ); $Info = $Query->Query( ); if( $Info === false ) { /* * If this server is older than 1.7, we can try querying it again using older protocol * This function returns data in a different format, you will have to manually map * things yourself if you want to match 1.7's output * * If you know for sure that this server is using an older version, * you then can directly call QueryOldPre17 and avoid Query() and then re
New? Today's Posts FAQ Rules Guidelines Search Advanced Search Forum :: Server side development PHP Syntax Error. http://www.codingforums.com/php/180293-syntax-error-parse-error-syntax-error-unexpected-t_dnumber.html Parse error: syntax error (unexpected T_DNUMBER) If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to http://www.dreamincode.net/forums/topic/383314-syntax-error-unexpected-t-dnumber/ register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection syntax error below. Enjoy an ad free experience by logging in. Not a member yet? Register. Results 1 to 10 of 10 Thread: Syntax Error. Parse error: syntax error (unexpected T_DNUMBER) Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible 10-22-2009,04:36 PM #1 php syntax error Mujib View Profile View Forum Posts New Coder Join Date Jul 2009 Posts 21 Thanks 5 Thanked 0 Times in 0 Posts Syntax Error. Parse error: syntax error (unexpected T_DNUMBER) Hello, Im having a error (See Below). Code: Parse error: syntax error, unexpected T_DNUMBER in /home/assassin/domains/realdutchserver.nl/public_html/webformysql/mysql.php on line 2 And This is My Script (See Below) PHP Code: $host=217.18.70.82;
Please help me, Thanks in advance, Greets, Mujib Last edited by Mujib; 10-22-2009 at 05:29 PM. Reply With Quote 10-22-2009,05:02 PM #2 kbluhm View Profile View Forum Posts Senior Coder Join Date Apr 2007 Location Philadelphia, PA, USA Posts 1,511 Thanks 3 Thanked 258 Times in 254 Posts PHP Code:
$username=server5646;
$password=Password;
$database=server5646;
?> $host=<
Reply 13 Replies - 555 Views - Last Post: 20 October 2015 - 09:49 AM Rate Topic: #1 mudlight48 New D.I.C Head Reputation: 0 Posts: 26 Joined: 20-October 15 syntax error, unexpected T_DNUMBER Posted 20 October 2015 - 06:38 AM generate_token(); if($login->submit()) { $login->do_login(); } ?> error: Parse error: syntax error, unexpected T_DNUMBER in /home/a2644594/public_html/index.php on line 3 Is This A Good Question/Topic? 0 Back to top MultiQuote Quote + Reply Replies To: syntax error, unexpected T_DNUMBER #2 Dormilich 痛覚残留 Reputation: 4051 Posts: 12,578 Joined: 08-June 10 Re: syntax error, unexpected T_DNUMBER Posted 20 October 2015 - 06:40 AM typographical quotes are not string delimiters. you can only use straight quotes and Heredoc/Nowdoc to define strings. Was This Post Helpful? 1 Back to top MultiQuote Quote + Reply #3 mudlight48 New D.I.C Head Reputation: 0 Posts: 26 Joined: 20-October 15 Re: syntax error, unexpected T_DNUMBER Posted 20 October 2015 - 06:46 AM so your saying do it like this $db = new Mysqli('mysql6.000webhost.com', 'a2644594_admin', 'Ss3138ss', 'a2644594_123'); Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #4 Dormilich 痛覚残留 Reputation: 4051 Posts: 12,578 Joined: 08-June 10 Re: syntax error, unexpected T_DNUMBER Posted 20 October 2015 - 06:58 AM yep. now even the code highlighting shows it’s correct.btw. you must fix that in line #2 as well. Was This Post Helpful? 1 Back to top MultiQuote Quote + Reply #5 mudlight48 New D.I.C Head Reputation: 0 Posts: 26 Joined: 20-October 15 Re: syntax error, unexpected T_DNUMBER Posted 20 October 2015 - 07:09 AM Now i have another error now that I fixed the other Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in functions.php on line 55