|
|
 |
|
 |
|
x10Hosting Member
Join Date: Aug 2007
Posts: 39
Credits:
887
|
|
03-24-2008, 07:13 PM
|
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. 
|
|
|
|
♫ ¤- Spanish Sr AM -¤ ♫
Join Date: Jan 2008
Posts: 3,570
Credits:
24,454
Location: university
|
|
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
Last edited by GM Punk; 03-24-2008 at 07:45 PM.
|
|
|
|
x10Hosting Member
Join Date: Aug 2007
Posts: 39
Credits:
887
|
|
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
|
|
|
|
♫ ¤- Spanish Sr AM -¤ ♫
Join Date: Jan 2008
Posts: 3,570
Credits:
24,454
Location: university
|
|
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
|
|
|
|
x10Hosting Member
Join Date: Aug 2007
Posts: 39
Credits:
887
|
|
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
|
|
|
|
♫ ¤- Spanish Sr AM -¤ ♫
Join Date: Jan 2008
Posts: 3,570
Credits:
24,454
Location: university
|
|
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
Last edited by GM Punk; 03-26-2008 at 04:42 PM.
|
|
|
|
x10 Lieutenant
Join Date: May 2006
Posts: 391
Credits:
10,312
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
|
|
|
|
♫ ¤- Spanish Sr AM -¤ ♫
Join Date: Jan 2008
Posts: 3,570
Credits:
24,454
Location: university
|
|
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
|
|
|
|
VIP User
Join Date: Aug 2007
Posts: 210
Credits:
2,687
Location: Sweden
|
|
03-27-2008, 08:15 AM
|
|
Re: PHP line in *.html File
Quote:
Originally Posted by oregonsv
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
|
|
|
|
VPS User
Join Date: Oct 2006
Posts: 2,131
Credits:
13,403
Location: Sabadell, Barcelona
|
|
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...
|
|
|
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
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
Myspace Layouts | Loans | Loans | Europe Hotel | Mobile Phone deals
| |