AYUDA - ¿Cómo puedo encontrar el código HTML en PHP diseñado un sitio web?

  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Julio 1st, 2009, 5:50 am

TODO,

¿Qué debo hacer como HTML / CSS / Dreamweaver diseñador localizar los archivos HTML para actualizar o editar la página web que sólo muestra php.index archivos? Sé que hay archivos HTML en algún lugar dentro de la raíz de las carpetas, pero no puedo localizarlos. Este proyecto necesita actualizaciones de texto e imagen y estoy atascado tratando de encontrar el camino correcto para el derecho a la carpeta de archivo de la derecha a la derecha línea de código. Por favor, cualquier ayuda que significaría mucho.

cgfX
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Julio 1st, 2009, 5:50 am

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • Avatar de Usuario
  • Registrado: Jul 25, 2005
  • Mensajes: 2735
  • Loc: Nashville, TN
  • Status: Offline

Nota Julio 1st, 2009, 6:06 am

¿Por qué suponer que hay archivos HTML en alguna parte? ¿Ha estudiado los archivos PHP para ver si el contenido en?
I'd love to change the world, but they won't give me the source code.
  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Julio 1st, 2009, 6:20 am

Sí se puede ver el código HTML de codificación en una red browers, y editar el código con herramientas como FireFox Fuego error, pero cuando la descarga de los archivos y entrar en las carpetas que no he sido capaz de localizar el código HTML.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • Avatar de Usuario
  • Registrado: Jul 25, 2005
  • Mensajes: 2735
  • Loc: Nashville, TN
  • Status: Offline

Nota Julio 1st, 2009, 6:51 am

Sí, eso puede ser el caso, pero eso no significa que los archivos PHP no son la fuente. Echa un vistazo en el ejemplo de código PHP a continuación:

HelloWorld.php
Código: [ Select ]
<html>
<?php         
    echo "<head><title>Hello World!</title></head>";
?>
<body>
<?php 
    echo "<span style=\"font-color:#333;\">Hello World!</span>";
?>
</body>
</html>
  1. <html>
  2. <?php         
  3.     echo "<head><title>Hello World!</title></head>";
  4. ?>
  5. <body>
  6. <?php 
  7.     echo "<span style=\"font-color:#333;\">Hello World!</span>";
  8. ?>
  9. </body>
  10. </html>


Como puede ver, usted puede mezclar HTML en archivos php, ya sea directamente o por hacerse eco de ella como de salida. Al ver la fuente, todo lo que vemos es un archivo HTML plano (véase más abajo). Eso es porque PHP es un lenguaje de servidor. Odio ser el portador de malas noticias, pero lo que busca es, probablemente, dentro de archivos. archivos PHP, por lo que recomiendo que se ejecuta a través de algunos cebadores rápida de PHP y luego ir a buscar. Uno de nuestros miembros, Bogey, ha escrito un tutorial de 4-parte en el aprendizaje de PHP que puede que le interese de inicio con la parte 1: http://www.ozzu.com/php-tutorials/tutorial-learning-php-part-t86307.html

salida:
Código: [ Select ]
<html>
<head><title>Hello World!</title></head>
<body>
<span style="font-color:#333;">Hello World!</span>
</body>
</html>
  1. <html>
  2. <head><title>Hello World!</title></head>
  3. <body>
  4. <span style="font-color:#333;">Hello World!</span>
  5. </body>
  6. </html>
I'd love to change the world, but they won't give me the source code.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • Avatar de Usuario
  • Registrado: Jul 25, 2005
  • Mensajes: 2735
  • Loc: Nashville, TN
  • Status: Offline

Nota Julio 1st, 2009, 10:31 am

Hilo trasladado a la programación foro - su appare no para mí que la cuestión está relacionada con PHP y OP inició un dup, por lo que este se encargará de esto.

CGFX: Por favor, continuar el debate aquí en vez de duplicar a partir de hilos, gracias.
I'd love to change the world, but they won't give me the source code.
  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Julio 1st, 2009, 10:35 am

UPSGuy,

Gracias.

cgfX
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • Avatar de Usuario
  • Registrado: Jul 25, 2005
  • Mensajes: 2735
  • Loc: Nashville, TN
  • Status: Offline

Nota Julio 1st, 2009, 10:36 am

No hay problema, ¿ha tenido usted un vistazo a mi respuesta? Suerte en la localización de lo que está buscando todavía?
I'd love to change the world, but they won't give me the source code.
  • Bogey
  • Bogey
  • Genius
  • Avatar de Usuario
  • Registrado: Jul 14, 2005
  • Mensajes: 8212
  • Loc: USA
  • Status: Offline

Nota Julio 1st, 2009, 10:38 am

¿Te refieres a los archivos index.php? ¿Qué secuencia de comandos se usa? (Supongo que usted está utilizando un script de pre-hechos, ya que no puede encontrar un archivo).
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Julio 2nd, 2009, 7:43 am

Bogey,

Si hay un archivo index.php y si este sitio web http://www.yourpapertrail.net/ fue creada por otro diseñador y se ha asignado a mí para hacer cambios de texto y de imagen.

Hay dos páginas que necesita editar actualizaciones:

1. http://www.yourpapertrail.net/realtors/referral
En esta página sólo tienen que actualizar una línea de texto en el cuerpo de la caja verde derecha.

2. http://www.yourpapertrail.net/tellafriend
Usted puede ver que tengo que añadir tres imágenes

Tanto de las páginas anteriores parece haber subcarpetas dentro de la raíz, es decir / remisión y / tellafriend.
Pero sólo las subcarpetas en esta carpeta de la raíz son:

1. _Web de copia de seguridad 013009 2. cgi-bin 3. clases de 4. aduanera 5. Demo 6. Fuentes de la 7. Imágenes 8. JS 9. sistema 10. prueba 11. subir

Una vez más ninguna referencia en el nombre o la tellafriend, y búsquedas en el índice. php no ser capaz de encontrar el código HTML o una sugerencia para que el HTML puede ser localizado.

A continuación se muestra el código de index.php

Código: [ Select ]
<?php
/*
|---------------------------------------------------------------
| PHP ERROR REPORTING LEVEL
|---------------------------------------------------------------
|
| By default CI runs with error reporting set to ALL.  For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit:  http://www.php.net/error_reporting
|
*/
    error_reporting(E_ALL);
 
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same  directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
    $system_folder = "system";
 
/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
| For more info please see the user guide:
| http://codeigniter.com/user_guide/gener ... _apps.html
|
|
| NO TRAILING SLASH!
|
*/
    $application_folder = "application";
 
/*
|===============================================================
| END OF USER CONFIGURABLE SETTINGS
|===============================================================
*/
 
 
/*
|---------------------------------------------------------------
| SET THE SERVER PATH
|---------------------------------------------------------------
|
| Let's attempt to determine the full-server path to the "system"
| folder in order to reduce the possibility of path problems.
| Note: We only attempt this if the user hasn't specified a
| full server path.
|
*/
if (strpos($system_folder, '/') === FALSE)
{
    if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
    {
        $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
    }
}
else
{
    // Swap directory separators to Unix style for consistency
    $system_folder = str_replace("\", "/", $system_folder);
}
 
/*
|---------------------------------------------------------------
| DEFINE APPLICATION CONSTANTS
|---------------------------------------------------------------
|
| EXT       - The file extension.  Typically ".php"
| FCPATH    - The full server path to THIS file
| SELF      - The name of THIS file (typically "index.php)
| BASEPATH  - The full server path to the "system" folder
| APPPATH   - The full server path to the "application" folder
|
*/
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');
 
if (is_dir($application_folder))
{
    define('APPPATH', $application_folder.'/');
}
else
{
    if ($application_folder == '')
    {
        $application_folder = 'application';
    }
 
    define('APPPATH', BASEPATH.$application_folder.'/');
}
 
/*
|---------------------------------------------------------------
| LOAD THE FRONT CONTROLLER
|---------------------------------------------------------------
|
| And away we go...
|
*/
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
 
/* End of file index.php */
/* Location: ./index.php */
  1. <?php
  2. /*
  3. |---------------------------------------------------------------
  4. | PHP ERROR REPORTING LEVEL
  5. |---------------------------------------------------------------
  6. |
  7. | By default CI runs with error reporting set to ALL.  For security
  8. | reasons you are encouraged to change this when your site goes live.
  9. | For more info visit:  http://www.php.net/error_reporting
  10. |
  11. */
  12.     error_reporting(E_ALL);
  13.  
  14. /*
  15. |---------------------------------------------------------------
  16. | SYSTEM FOLDER NAME
  17. |---------------------------------------------------------------
  18. |
  19. | This variable must contain the name of your "system" folder.
  20. | Include the path if the folder is not in the same  directory
  21. | as this file.
  22. |
  23. | NO TRAILING SLASH!
  24. |
  25. */
  26.     $system_folder = "system";
  27.  
  28. /*
  29. |---------------------------------------------------------------
  30. | APPLICATION FOLDER NAME
  31. |---------------------------------------------------------------
  32. |
  33. | If you want this front controller to use a different "application"
  34. | folder then the default one you can set its name here. The folder
  35. | can also be renamed or relocated anywhere on your server.
  36. | For more info please see the user guide:
  37. | http://codeigniter.com/user_guide/gener ... _apps.html
  38. |
  39. |
  40. | NO TRAILING SLASH!
  41. |
  42. */
  43.     $application_folder = "application";
  44.  
  45. /*
  46. |===============================================================
  47. | END OF USER CONFIGURABLE SETTINGS
  48. |===============================================================
  49. */
  50.  
  51.  
  52. /*
  53. |---------------------------------------------------------------
  54. | SET THE SERVER PATH
  55. |---------------------------------------------------------------
  56. |
  57. | Let's attempt to determine the full-server path to the "system"
  58. | folder in order to reduce the possibility of path problems.
  59. | Note: We only attempt this if the user hasn't specified a
  60. | full server path.
  61. |
  62. */
  63. if (strpos($system_folder, '/') === FALSE)
  64. {
  65.     if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
  66.     {
  67.         $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder;
  68.     }
  69. }
  70. else
  71. {
  72.     // Swap directory separators to Unix style for consistency
  73.     $system_folder = str_replace("\", "/", $system_folder);
  74. }
  75.  
  76. /*
  77. |---------------------------------------------------------------
  78. | DEFINE APPLICATION CONSTANTS
  79. |---------------------------------------------------------------
  80. |
  81. | EXT       - The file extension.  Typically ".php"
  82. | FCPATH    - The full server path to THIS file
  83. | SELF      - The name of THIS file (typically "index.php)
  84. | BASEPATH  - The full server path to the "system" folder
  85. | APPPATH   - The full server path to the "application" folder
  86. |
  87. */
  88. define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
  89. define('FCPATH', __FILE__);
  90. define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
  91. define('BASEPATH', $system_folder.'/');
  92.  
  93. if (is_dir($application_folder))
  94. {
  95.     define('APPPATH', $application_folder.'/');
  96. }
  97. else
  98. {
  99.     if ($application_folder == '')
  100.     {
  101.         $application_folder = 'application';
  102.     }
  103.  
  104.     define('APPPATH', BASEPATH.$application_folder.'/');
  105. }
  106.  
  107. /*
  108. |---------------------------------------------------------------
  109. | LOAD THE FRONT CONTROLLER
  110. |---------------------------------------------------------------
  111. |
  112. | And away we go...
  113. |
  114. */
  115. require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
  116.  
  117. /* End of file index.php */
  118. /* Location: ./index.php */


¡Gracias Bogey,

cgfx
  • Bogey
  • Bogey
  • Genius
  • Avatar de Usuario
  • Registrado: Jul 14, 2005
  • Mensajes: 8212
  • Loc: USA
  • Status: Offline

Nota Julio 2nd, 2009, 11:31 am

¿Qué versión de codeigniter tiene usted?

Comprobar codeigniter / system / application / visitas / directorio...Puedo estar equivocado, teniendo en cuenta lo que el hombre no existe. Compruebe la documentación codeigniter .
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • CGFX
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Oct 26, 2003
  • Mensajes: 160
  • Loc: Chicago, IL.
  • Status: Offline

Nota Julio 2nd, 2009, 11:42 am

Bogey,

Gracias por su tiempo y voy a regresar con usted lo antes posible.

cgfX

Publicar Información

  • Total de mensajes en este tema: 11 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 215 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC