doesnt read my php
Posted 15 March 2014 - 02:12 PM
my html code has php code in it, but the php does not run at all . the php code run fine separatly from the html . any suggestion ?
i add my html plus a short php code(an echo cmd) in it just for you to understand and tell me what am i doing wrong ..
Posted 15 March 2014 - 04:05 PM Best Answer
The code should work provided the server is configured to parse .html files as PHP. If you do not have access to the server you'll need to rename the file to have a .php extension instead
Posted 15 March 2014 - 05:14 PM
hey man, im kind a begginer as you probably understand . im using my local host right now with xampp control panel, can you tell me more specific what should i config ? as i said the html file runs fine through the local host but without the php that in it .
appreciate it man
Posted 16 March 2014 - 08:40 AM
You are best of renaming your html files to end in a .php extension. Most servers are not configured to parse html files as php.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users