Say i have a .html file that contains a web design and has variables in it like $time $comment $title.
how would i enter them variables from a php file
Sorry i cannot really explain it well enough but i hope somebody understands
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well.. I’ll just guess what you want. Since the question isn’t very clear.
In a PHP script, load the HTML in with something like file_get_contents, then use str_replace to replace the ‘variables’ in the HTML, then echo the new HTML.
Or, don’t use an HTML file, use a PHP file, and just use echo where you want the variables to be.
Or… use something like smarty templates which is probably more advanced than you’re looking for.