How can I display my php page on other sites? I also need to pass a variable to my php file. The php file will access mySQL database too.
I don't want to use iFrame. Here is what I came up with, but its not working.. I place this code on external SITE to try to call my PHP file. my pet.php page just calls the class in pet.class.php on "somedomain.com" so I'll just post the pet.class.php file Any ideas. If I call pet.php by itself. It will output my template which is just an image. ;]
You'll have to use a JavaScript file. In the JavaScript just output the HTML. You can't output PHP is has to be HTML.