Por favor Me ajude a Encontrar o erro de sintaxe nas string!
05/09/2018
0
Salve galera, Sou novo em php e estou tentando executar um script php, mas está me retornando o seguinte erro:
( ! ) Parse error: syntax error, unexpected ''". '' (T_CONSTANT_ENCAPSED_STRING) in C:\\\\wamp64\\\\www\\\\ml\\\\mercado\\\\install\\\\install.php on line 49
No entanto, não estou conseguindo ver onde está a falha, alguém pode me ajudar? A Seguir o Código Correspondente.
$content = "<?php \\\\n".
" \\\\n".
"/* Database Host Name */ \\\\n".
"\\\\$db_host = ''" . $post_details[''db_host''] . "''; \\\\n".
" \\\\n".
"/* Database Username */ \\\\n".
"\\\\$db_username = ''" . $post_details[''db_username''] . "''; \\\\n".
" \\\\n".
"/* Database Login Password */ \\\\n".
"\\\\$db_password = ''" . $post_details[''db_password''] . "''; \\\\n".
" \\\\n".
"/* Database and Session prefixes */ \\\\n".
"define(''DB_PREFIX'', ''" . $post_details[''table_prefix''] . "''); ## Do not edit ! \\\\n".
"define(''SESSION_PREFIX'', ''probid_''); \\\\n".
" \\\\n".
"/* Database Name */ \\\\n".
"\\\\$db_name = ''" . $post_details[''db_name''] . "''; \\\\n".
"?>";
( ! ) Parse error: syntax error, unexpected ''". '' (T_CONSTANT_ENCAPSED_STRING) in C:\\\\wamp64\\\\www\\\\ml\\\\mercado\\\\install\\\\install.php on line 49
No entanto, não estou conseguindo ver onde está a falha, alguém pode me ajudar? A Seguir o Código Correspondente.
$content = "<?php \\\\n".
" \\\\n".
"/* Database Host Name */ \\\\n".
"\\\\$db_host = ''" . $post_details[''db_host''] . "''; \\\\n".
" \\\\n".
"/* Database Username */ \\\\n".
"\\\\$db_username = ''" . $post_details[''db_username''] . "''; \\\\n".
" \\\\n".
"/* Database Login Password */ \\\\n".
"\\\\$db_password = ''" . $post_details[''db_password''] . "''; \\\\n".
" \\\\n".
"/* Database and Session prefixes */ \\\\n".
"define(''DB_PREFIX'', ''" . $post_details[''table_prefix''] . "''); ## Do not edit ! \\\\n".
"define(''SESSION_PREFIX'', ''probid_''); \\\\n".
" \\\\n".
"/* Database Name */ \\\\n".
"\\\\$db_name = ''" . $post_details[''db_name''] . "''; \\\\n".
"?>";
George Lucas
Curtir tópico
+ 0
Responder
Posts
Clique aqui para fazer login e interagir na Comunidade :)