Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ejecutar codigo php solo en página principal
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Reynaldo G. R.  
View profile   Translate to Translated (View Original)
 More options Oct 11 2012, 7:42 am
From: "Reynaldo G. R." <reynaldo1...@gmail.com>
Date: Thu, 11 Oct 2012 04:42:04 -0700 (PDT)
Local: Thurs, Oct 11 2012 7:42 am
Subject: Ejecutar codigo php solo en página principal

Hola a todos,

*Pregunto:* Existe alguna funcion en la que yo pueda definir si muestro
alguna informacion o no, dependiendo si es la pagina principal del sitio o
cualquier otra?

por ejemplo algo así:

*if(pagina_principal)
{
echo "mi texto";

}

else
{
echo "cualquier otra cosa";


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maximiliano Churichi  
View profile   Translate to Translated (View Original)
 More options Oct 11 2012, 8:46 am
From: Maximiliano Churichi <mchuri...@gmail.com>
Date: Thu, 11 Oct 2012 09:45:46 -0300
Local: Thurs, Oct 11 2012 8:45 am
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal
Reynaldo,
primero deberias definir a que le decis "pagina principal" para que te
podamos ayudar, depende totalmente de diseño del sitio, si estas
usando un framework, etc, etc, etc.

Saludos.

Maximiliano Churichi
<mchuri...@gmail.com>

El día 11 de octubre de 2012 08:42, Reynaldo G. R.
<reynaldo1...@gmail.com> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Reynaldo G. R.  
View profile   Translate to Translated (View Original)
 More options Oct 11 2012, 9:00 am
From: "Reynaldo G. R." <reynaldo1...@gmail.com>
Date: Thu, 11 Oct 2012 09:00:28 -0400
Local: Thurs, Oct 11 2012 9:00 am
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal
estoy utilizando joomla, por lo general se utiliza una sola pagina que
es la index.php, ahi se cargan todos los contenidos, pero lo que
quiero es que solo se ejecute un codigo si se encuentra en la pagina
principal o sea en la pagina de inicio del sitio web. que se cargue en
la  index.php y no en
index.php?option=com_content&view=article&id=5&Itemid=2 por ejemplo...

El 11/10/12, Maximiliano Churichi <mchuri...@gmail.com> escribió:

--
Reynaldo G. R.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maximiliano Churichi  
View profile   Translate to Translated (View Original)
 More options Oct 11 2012, 9:04 am
From: Maximiliano Churichi <mchuri...@gmail.com>
Date: Thu, 11 Oct 2012 10:03:33 -0300
Local: Thurs, Oct 11 2012 9:03 am
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal
No he desarrollado bajo Joomla, pero con una rapida busca en google
encontre esto que creo puede servirte:
http://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_fr...

Saludos.

Maximiliano Churichi
<mchuri...@gmail.com>

El día 11 de octubre de 2012 10:00, Reynaldo G. R.
<reynaldo1...@gmail.com> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Mazur  
View profile   Translate to Translated (View Original)
 More options Oct 12 2012, 10:06 pm
From: Christian Mazur <chma...@gmail.com>
Date: Fri, 12 Oct 2012 23:06:37 -0300
Local: Fri, Oct 12 2012 10:06 pm
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal

Desde el código, podrías probar con:

if(basename($_SERVER['PHP_SELF']) == 'index.php') {
   echo "mi texto";

}else{

   echo "cualquier otra cosa";

}

slds,

ch.-

El 11 de octubre de 2012 10:03, Maximiliano Churichi
<mchuri...@gmail.com>escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Reynaldo G. R.  
View profile   Translate to Translated (View Original)
 More options Oct 13 2012, 6:24 am
From: "Reynaldo G. R." <reynaldo1...@gmail.com>
Date: Sat, 13 Oct 2012 06:24:07 -0400
Local: Sat, Oct 13 2012 6:24 am
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal
precisamente esto era lo que necesitaba, Muchas gracias.!

El 11/10/12, Maximiliano Churichi <mchuri...@gmail.com> escribió:

--
Reynaldo G. R.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ricardo Luis Mender  
View profile   Translate to Translated (View Original)
 More options Oct 13 2012, 6:26 am
From: Ricardo Luis Mender <ricutt...@gmail.com>
Date: Sat, 13 Oct 2012 07:26:20 -0300
Local: Sat, Oct 13 2012 6:26 am
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal

Pero en joomla siempre se ejecuta el archivo index.php

Ricardo Luis Mender

El 13 de octubre de 2012 07:24, Reynaldo G. R. <reynaldo1...@gmail.com>escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Reynaldo G. R.  
View profile   Translate to Translated (View Original)
 More options Oct 13 2012, 6:30 am
From: "Reynaldo G. R." <reynaldo1...@gmail.com>
Date: Sat, 13 Oct 2012 06:30:26 -0400
Local: Sat, Oct 13 2012 6:30 am
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal
si pero en joomla el resultado siempre va a ser index.php.

El 12/10/12, Christian Mazur <chma...@gmail.com> escribió:

--
Reynaldo G. R.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maximiliano Churichi  
View profile   Translate to Translated (View Original)
 More options Oct 13 2012, 12:56 pm
From: Maximiliano Churichi <mchuri...@gmail.com>
Date: Sat, 13 Oct 2012 13:55:27 -0300
Local: Sat, Oct 13 2012 12:55 pm
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal
Es mas q recomendable usar funciones especificas del framework/CMS si
no queres usar algun workaround
Probaste las del link que te pase?

Saludos.

Maximiliano Churichi
<mchuri...@gmail.com>

El día 13 de octubre de 2012 07:30, Reynaldo G. R.
<reynaldo1...@gmail.com> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Reynaldo G. R.  
View profile   Translate to Translated (View Original)
 More options Oct 13 2012, 1:21 pm
From: "Reynaldo G. R." <reynaldo1...@gmail.com>
Date: Sat, 13 Oct 2012 13:21:32 -0400
Local: Sat, Oct 13 2012 1:21 pm
Subject: Re: [php-arg] Ejecutar codigo php solo en página principal
si, te comentaba que eso era lo que necesitaba, gracias nuevamente.

El 13/10/12, Maximiliano Churichi <mchuri...@gmail.com> escribió:

--
Reynaldo G. R.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »