Can anyone tell me what the best option for getting the dynamic title AND dynamic meta description on my particular site setup would be?

I have an index.php but all of the individual page content is stored in a subdirectory called \html\ it's stored as .html files and is called up as index.php?page=client_comments for example.

Recommended Answers

All 2 Replies

You may get meta details from database, or may get meta details from array of config information in a php file.
It is better to display meta tags on the index.php itself based on which page it is. And to comment out this meta tag parts if exists in html files.

You can also use php html parser.
Which will fetch title tag, metadata keyword and description from URL.

So in index page you can display this fetched title and metadata dynamically from html file, without saving or storing any information.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.