x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Closed Thread
 
LinkBack Thread Tools Display Modes
x10Hosting Member

Join Date: Aug 2007
Posts: 39
Credits: 887
oregonsv is on a distinguished road
 
03-24-2008, 07:13 PM
Unhappy PHP line in *.html File

Hello again,
well this time i have my page prueba.html but inside of it, i would like to put a php line. like <? echo "Hello friends"?> but when i run it, it does not show me anything.
but if i put that line in a php file like prueba.php then it show me "Hello friends"
can you help me please, i need to run the php line in my html file.

thank u again.

oregonsv
El Salvador, CA.
oregonsv is offlineReport Post
♫ ¤- Spanish Sr AM -¤ ♫

GM Punk's Avatar

Join Date: Jan 2008
Posts: 3,570
Credits: 24,454
GM Punk has a spectacular aura about
Location: university

Send a message via MSN to GM Punk
 
03-24-2008, 07:44 PM
Re: PHP line in *.html File

ok, i dont understand your problem at 100% but, can be caused because you have the basic php version, check it in: x10hosting.com/account and if you use the basic, solicit the intermediate php version ^^

and i have one question...
what's your main language?
XD this question is because you writte here in english but in your web say: prueba XD


grettings
salu2
__________________

Importante:
☻A toda la comunidad hispana, lean atentamente: "Nuevo Sistema de Soporte"☻

About Me | Sobre Mi
× PM × E-Mail × Donar ×
Tambien pueden contactarme cuando me vean en IRC.

Last edited by GM Punk; 03-24-2008 at 07:45 PM.
GM Punk is offlineReport Post
x10Hosting Member

Join Date: Aug 2007
Posts: 39
Credits: 887
oregonsv is on a distinguished road
 
03-26-2008, 02:45 PM
Re: PHP line in *.html File

Hello, my main languge is spanish, but i don't want to use it, 'couse last time i read in the forum rules, that all treats must be written in english. thats why.
About my question, the problem that i have is in my computer not in the web server.
i'll try to explain you again, in a file .html i wrote a php line like
<?php echo "Hola Mundo"?> but when i run it, it does not show me anything, but if i write that line in a .php file. it works.

Gracias.

OREGONSV
El Salvador, SV
oregonsv is offlineReport Post
♫ ¤- Spanish Sr AM -¤ ♫

GM Punk's Avatar

Join Date: Jan 2008
Posts: 3,570
Credits: 24,454
GM Punk has a spectacular aura about
Location: university

Send a message via MSN to GM Punk
 
03-26-2008, 02:54 PM
Re: PHP line in *.html File

Quote:
Hello, my main languge is spanish, but i don't want to use it, 'couse last time i read in the forum rules, that all treats must be written in english. thats why.
but in this forum (español-spanish) you can use the spanish language XD

About your problem, mmm, its very rare, because I would think that is your php version (basic) but if you can read the php line in .php file i dont think that the problem can be caused for your php version, so, you can try to change it, and then try to use the .html file again.
The link to change the php version its: x10hosting.com/account


grettings and good luck
salu2 y buena suerte
__________________

Importante:
☻A toda la comunidad hispana, lean atentamente: "Nuevo Sistema de Soporte"☻

About Me | Sobre Mi
× PM × E-Mail × Donar ×
Tambien pueden contactarme cuando me vean en IRC.
GM Punk is offlineReport Post
x10Hosting Member

Join Date: Aug 2007
Posts: 39
Credits: 887
oregonsv is on a distinguished road
 
03-26-2008, 04:32 PM
Re: PHP line in *.html File

Ok,
haceme un favor, crees que podes crear un archivo cualquiera con extencion .html y luego en ese archivo pone la siguiente linea.
<?php echo "Hola mundo"?>
y me contas si te funciona.
por que ahi es donde no me funciona a mi.

Gracias por tu apoyo. y a ver si no me dicen nada por que estoy escribiendo en español.... jajaja.

Saludes.

OregonSV
El Salvador
oregonsv is offlineReport Post
♫ ¤- Spanish Sr AM -¤ ♫

GM Punk's Avatar

Join Date: Jan 2008
Posts: 3,570
Credits: 24,454
GM Punk has a spectacular aura about
Location: university

Send a message via MSN to GM Punk
 
03-26-2008, 04:38 PM
Re: PHP line in *.html File

jaja no te preokupes para eso es el foro en español ^^ en fin dejame ver lo subo y lo miras XD


salu2


Edit:
lol ami tampoco me lo muestra jaja
mira el link aqui
pide la version advanded de php en http://x10hosting.com/account es probable ke sea por eso XD aunke kien sabe XD


salu2
__________________

Importante:
☻A toda la comunidad hispana, lean atentamente: "Nuevo Sistema de Soporte"☻

About Me | Sobre Mi
× PM × E-Mail × Donar ×
Tambien pueden contactarme cuando me vean en IRC.

Last edited by GM Punk; 03-26-2008 at 04:42 PM.
GM Punk is offlineReport Post
x10 Lieutenant

Join Date: May 2006
Posts: 391
Credits: 10,312
eZakto will become famous soon enough
Location: Salta, Argentina.

 
03-26-2008, 07:22 PM
Re: PHP line in *.html File

Para que cualquier código php sea interpretado como tal, debe estar en un archivo cuya extensión sea php, php4, php5, etc.
__________________
eZakto
eZakto is offlineReport Post
♫ ¤- Spanish Sr AM -¤ ♫

GM Punk's Avatar

Join Date: Jan 2008
Posts: 3,570
Credits: 24,454
GM Punk has a spectacular aura about
Location: university

Send a message via MSN to GM Punk
 
03-26-2008, 08:04 PM
Re: PHP line in *.html File

no presisamente, yo eh instertado codigos php en archivos .html ^^
solo ke en otros hosters XD


salu2
__________________

Importante:
☻A toda la comunidad hispana, lean atentamente: "Nuevo Sistema de Soporte"☻

About Me | Sobre Mi
× PM × E-Mail × Donar ×
Tambien pueden contactarme cuando me vean en IRC.
GM Punk is offlineReport Post
VIP User

LadyAnna's Avatar

Join Date: Aug 2007
Posts: 210
Credits: 2,687
LadyAnna is on a distinguished road
Location: Sweden

 
03-27-2008, 08:15 AM
Re: PHP line in *.html File

Quote:
Originally Posted by oregonsv View Post
Hello, my main languge is spanish, but i don't want to use it, 'couse last time i read in the forum rules, that all treats must be written in english. thats why.
About my question, the problem that i have is in my computer not in the web server.
i'll try to explain you again, in a file .html i wrote a php line like
<?php echo "Hola Mundo"?> but when i run it, it does not show me anything, but if i write that line in a .php file. it works.

Gracias.

OREGONSV
El Salvador, SV
the webserver software would not know to use the php interperator f you have a .html file, and since <?php... ?> is NOT a valid html tag it would be skipped
LadyAnna is offlineReport Post
VPS User

Kansy's Avatar

Join Date: Oct 2006
Posts: 2,131
Credits: 13,403
Kansy will become famous soon enough
Location: Sabadell, Barcelona

Send a message via AIM to Kansy Send a message via MSN to Kansy Send a message via Skype™ to Kansy
 
03-27-2008, 10:26 AM
Re: PHP line in *.html File

Para que funcione la única manera es llamar al archivo con extension .php .

Si insertas php en algun html este AUTOMATICAMENTE debes cambiarlo a .php porque si es .html el explorador no reconoce las tags <? etc... del php.

Cambiale el nombre del archivo a .php y verás como funciona...
__________________

Por favor utiliza la opcion Buscar antes de preguntar
Lee las noticias | Leete las Preguntas frequentes
Quieres soporte por voz/chat?
Llámame

Kansy is offlineReport Post
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two very simple php file upload scripts-Free Symbian.Ankit Scripts & 3rd Party Apps 2 02-20-2008 10:55 AM
php version loveispoison Free Hosting 10 11-21-2007 11:53 AM
Fantastico: Problem moncheeyuson Free Hosting 10 09-22-2007 11:57 AM
Converting a .RMVB file SEÑOR Off Topic 7 06-19-2006 03:20 PM


All times are GMT -5. The time now is 05:31 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Myspace Layouts | Loans | Loans | Europe Hotel | Mobile Phone deals