Closed Thread
Results 1 to 10 of 10

Thread: Como hacer que se carge primero un HTML en vez de un PHP

  1. #1
    alvyweb is offline x10Hosting Member alvyweb is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    Valladolid, Spain
    Posts
    37

    Como hacer que se carge primero un HTML en vez de un PHP

    Hola
    En mi web tengo el el inicio "/" index.php y index.html, los dos son necessarios, pero necesito conseguir que se carge primero el HTML en lugar del PHP

    es posible?

    Gracias:nuts:
    -alvYweb- EnterlandP2M ADMIN

  2. #2
    KainAngel's Avatar
    KainAngel is offline x10 Lieutenant KainAngel is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    In another world
    Posts
    423

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    A mi me carga primero el html que el php, no se a ti, no he visto mucho pero en tu cpanel creo puedes cambiar esa opcion, o si no podrias cambiarle de nombre a alguno de los dos y dejar con el nombre de "index" al que desees que cargue primero, saludos.

  3. #3
    sourcedominate is offline x10Hosting Member sourcedominate is an unknown quantity at this point
    Join Date
    Oct 2006
    Posts
    20

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    creo que no podrás cambiarlo. El .php carga antes que el .html, "en teoria", pero todo depende de la configuración del servidor. Saludos!

  4. #4
    Reclutador's Avatar
    Reclutador is offline Lord Of The Keys Reclutador is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    .: Spain :.
    Posts
    1,936

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    HTML carga antes que PHP. Si lo hace mal es porque no es realmente index.html , ya que la prioridad es html antes que php (si es index.htm otro gallo canta)


  5. #5
    Hadekone is offline x10 Sophmore Hadekone is an unknown quantity at this point
    Join Date
    Oct 2006
    Posts
    192

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    El .php carga antes que el .html,

    dnd escuchaste eso?

    si pones un index.html carga antes que nada ;)

  6. #6
    sourcedominate is offline x10Hosting Member sourcedominate is an unknown quantity at this point
    Join Date
    Oct 2006
    Posts
    20

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    Quote Originally Posted by Hadekone
    El .php carga antes que el .html,

    dnd escuchaste eso?

    si pones un index.html carga antes que nada ;)
    Como ya dije es por la configuración del servidor

  7. #7
    AnAcRe is offline x10Hosting Member AnAcRe is an unknown quantity at this point
    Join Date
    Oct 2006
    Location
    La Paz
    Posts
    82

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    Quote Originally Posted by Hadekone
    El .php carga antes que el .html,

    dnd escuchaste eso?

    si pones un index.html carga antes que nada ;)
    jajaja! XD
    Disculpa la risa, pero ... ¿cómo le preguntas algo así?

    Es como tener una viga en el ojo y querer sacarle la paja al prójimo.

    Él tiene mucha razón, todo depende de la configuración del módulo PHP en Apache y el orden de prioridad.

    En PHP 5.0 el orden por defecto es PHP, HTML, HTM, PHP3

    Pero ... por manejo, en x10hosting lo tienen HTML, HTM, PHP, PHP3 ... así que, no deberías tener problemas con el index.html a menos que (como dice Reclutador), definitivamente no se trate de un "index".

    Saludos.

  8. #8
    alvyweb is offline x10Hosting Member alvyweb is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    Valladolid, Spain
    Posts
    37

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    Gracias
    Todo solucionado

    Sois los mejores
    -alvYweb- EnterlandP2M ADMIN

  9. #9
    Kansy's Avatar
    Kansy is offline Community Advocate Kansy is an unknown quantity at this point
    Join Date
    Oct 2006
    Location
    Cork Cirty, Ireland
    Posts
    2,621

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    ...

    NAda k la he cagado posteando........

    ......
    Last edited by Kansy; 11-23-2006 at 08:33 AM.
    Si consideras que esto ha sido de ayuda, por favor no dudes en darme reputación usando el que encontrarás abajo a la izquierda del tema.

  10. #10
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: Como hacer que se carge primero un HTML en vez de un PHP

    *Cerrado*
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

Closed Thread

Similar Threads

  1. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  2. Como colocar ads en header de php nuke??
    By pes5champion in forum Soporte
    Replies: 8
    Last Post: 10-10-2006, 11:00 PM
  3. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  4. Include php into Html
    By Tyler in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 07-13-2005, 08:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers