PHP is server side. Anylink JS Dropdown Menu is client side. So they really have little to do with each other.
All that's required is that once the HTML and javascript get to the browser is that they be reasonably valid, reasonably error free and that they reasonably follow the instructions for the script.
One great tool for checking this is the browser's 'view source'. Once you have your PHP page setup, load it into the browser and hit its 'view source'. That will show you what the server is sending. If it doesn't conform to what the script requires, then changes to how the PHP is setup for that page need to be made.
Things to do/consider:
- When using PHP you must have a PHP enabled server, otherwise none of the PHP code gets interpreted.
- When using included files in PHP, avoid duplicating things like the DOCTYPE, HTML, head and body tags. Failing to do so can result in unexpected results visa vis javascript and layout.
- Make sure the paths in any included files are still correct for the location of the PHP file into which they are included.
- Sometimes, like if using a template on a blog server, you don't have full control over the PHP. In cases like that it can be difficult, perhaps even impossible to get things to work out correctly for a given script.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks