mgs019 Posted September 19, 2007 Share Posted September 19, 2007 Hi, I am trying to embed the resulting html page from a php page on another server in a website. I want it to be hardcoded so search engines can find it so i will ideally use a <?php include ?> type thing. I have an ajax method which uses a http proxy php page to fetch the page and update a <div> and I know I could chop that up and skip the javascript bit. Is there an easy way to do this? I want the imported page to be processed rather than as php as there is an sql database query thing going on and I want to display the results on any old website without giving out my db password etc. Any ideas would be great. Thanks, Martin Quote Link to comment Share on other sites More sharing options...
Sorthy359 Posted September 19, 2007 Share Posted September 19, 2007 im sorry im not quite sure i understand what your trying to do. how would your sql password be displayed to the public? im advanced intermediate with php..not so much with ajax. so it might just be me. lol Quote Link to comment Share on other sites More sharing options...
JJohnsenDK Posted September 19, 2007 Share Posted September 19, 2007 i cant figure out what you want to do either... can you plz me more specific or just retype your post? Quote Link to comment Share on other sites More sharing options...
mgs019 Posted September 19, 2007 Author Share Posted September 19, 2007 I have a .php/sql information page on my server which I want people to be able to embed in their site. ideally they would just have to add a line or two of code and maybe a file or two to their site and my page will be displayed in an SEO friendly way. I.e. it will be visible in view source. The password thing is because I know that the easy way to do this is give a .php page with the sql database stuff in it. I think that my database would last about 3 seconds if I did this though. Does this make sense? Martin Quote Link to comment Share on other sites More sharing options...
mgs019 Posted September 19, 2007 Author Share Posted September 19, 2007 Hello? I am guessing I may need to use a php proxy page on the recipients server but this seems pretty complicated. Anyone know an easy way? Martin Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted September 19, 2007 Share Posted September 19, 2007 if you want to embed parts of another page into a local page and have that local page readable for search engine spiders, you'll probably need to look at the PHP curl functions for every site that is going to pull in the info. however, curl is often not compiled into PHP or it is disabled by the host. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.