Recurro a ustedes por que ya no se que hacer y como hacerlo funcionar...
Aqui detallo todo...
Quiero implementar en mi web un sistema de comentarios el cual cogi de
Código:
Aqui detallo los pasos a seguir para su implementacion:http://www.gentlesource.com/comment-script/
Código:
//////Termina el proceso de instalaion en mi servidor, ya lo he configurado y se ha instalado todo correctamente.1. Connect to your web server using an FTP program. 2. Create a new folder on your server named i.e. comments. 3. Upload the whole script including all files and folders to your server into the new folder. Make sure the original file structure appears on the server. Read more details in chapter 4.2 Upload. 4. Make sure the script folder and the sub-folder cache are writable by the script (chmod 777). Read more details in the chapter 4.3 File and Folder Permissions. If those folders are not writable the installation will fail. 5. Call the admin area of the script in your browser: http://www.example.com/comments/admin/ 6. You are probably seeing now the installation screen of the script. Please make sure you have the database access data. Read more details in chapter 4.4 Database Access Data. 7. Choose a prefix for the database tables. Default value is c5t_ and there is actually no need to change that unless you want to have more than one installation of the script side by side. 8. Enter the information for the admin account you want to create and use, once the script is working. 9. Click the button Install Now. In case the installation was successful, you will be provided with a link to the login screen where you can use the account data you just entered. 4.2 Upload All files have to be uploaded in text mode (ASCII mode) except for the font file(s) in the folder /include/font/. The font file daft.ttf has to be transferred in binary mode. Otherwise the Captcha feature will not work properly. 4.4 Database Access Data You need following four items: • Database hostname • Database name • Database user name • Database password
El problema surje aqui:
Código:
El caso para incluirlo en mi PHP con codigo HTML5.1 Include into a PHP File You can include the script anywhere on your web server. Step-by-Step: 1. Copy the file include.php into the folder where your files reside you want to implement with Comment Script. 2. Add the PHP include statement at the very top of your existing PHP file. It is important that no output is made before the include statement. include './include.php'; In case you have HTML code in your PHP file, it would have to look like this: <?php include './include.php'; ?> <html> <head>[...]</head> <body>[...]</body> </html> 3. Move the variable $c5t_output from the new include.php file to the place in your existing PHP file where you want the Comment Script content to appear. echo $c5t_output; It is important that you delete the variable $c5t_output from include.php once you have moved $c5t_output to your existing web page. 4. The script should work now. If not, please check steps 1 and 2.
Arriba de mi codigo he incluido:
<?php include './include.php'; ?>
Dentro del:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php include './include.php'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>(Ejemplo de Web)</title>
</head>
<body>[...]</body>
</html>
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php include './include.php'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>(Ejemplo de Web)</title>
</head>
<body>
Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido
<p><? echo $c5t_output; ?></p>
Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido Contenido
</body>
</html>
Código PHP:
<?php
/**
* GentleSource Comment Script
*
* (C) Ralf Stadtaus http://www.gentlesource.com/
*/
define('C5T_ROOT', '{$server_script_path}');
include C5T_ROOT . 'comment.php';
echo $c5t_output;
?>
Código PHP:
<?php
/**
* GentleSource Comment Script
*
* (C) Ralf Stadtaus http://www.gentlesource.com/
*/
define('C5T_ROOT', '{$server_script_path}');
include C5T_ROOT . 'comment.php';
?>
Warning: include({$server_script_path}comment.php) [function.include]: failed to open stream: No such file or directory in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11
Warning: include({$server_script_path}comment.php) [function.include]: failed to open stream: No such file or directory in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11
Warning: include() [function.include]: Failed opening '{$server_script_path}comment.php' for inclusion (include_path='.:/usr/share/pear') in /misc/38/000/235/168/8/user/web/miweb.com/include.php on line 11
Entonces no me sale la tabla para poner los comentarios y estos errores arriba.
Y la pregunta del millon Que es lo que falla?
A ver si me days una respuesta del millon... porque yo soy nuevo en php... :(
saludos
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)