0

I have the following <DIV>:

<div class="general">

Some content here

</div>

I want to do a PHP include just before

Is this possible in PHP?

1 Answer 1

4
<?php include "file.php"; ?>
<div class="general">

Some content here

</div>
Sign up to request clarification or add additional context in comments.

2 Comments

I need to include it dynamically, I dont have acess to the source of the main content of the page only the header.
I don't fully understand what you are asking...do you wish the replace the contents of the div with dynamically loaded content? If so you would need to use AJAX. Jquery is probably the easiest way to do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.