helraizer Posted March 29, 2008 Share Posted March 29, 2008 Hi folks, I apologise for the thread title, couldn't think of a more suitable one. At the moment I have made a mini shoutbox that can be used on myspace, or similar. The image is then shown on the user's myspace and the form to post a comment can also be included too. As a hidden field they will put their myspace URL, which means that as soon as they post it goes to mysite but instantaneously redirects them to their myspace page. At the moment it does post the comment to the shoutbox... The problem I have is that on the site it posts to, normally holds/hosts the image (myspace_image.php) that pull the information from the database and adds it the shoutbox image (the image that is on their myspace). So since it doesn't load this picture before it is redirected when they post from myspace, their comment doesn't appear on the image until someone views/loads the myspace_image.php file even on the shoutbox page on my site.. Does anyone know how I can get around this? It somehow needs to load the image before it/as it redirects to their myspace, so that the comment appears on it. I tried <?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = false; $browser->Navigate("http://www.helraizer.co.uk/mychatbox/mypsace_image.php5?uid=".$user_id); while ($browser->Busy) { com_message_pump(4000); } $browser->Quit(); ?> which should open up the page in a different browser/window, but that only works on a Windows server, mine is UNIX... so that doesn't work. Thanks for any suggestions, Sam Link to comment https://forums.phpfreaks.com/topic/98538-help-and-ideas-needed/ Share on other sites More sharing options...
helraizer Posted March 29, 2008 Author Share Posted March 29, 2008 Sorry for the double post. Fixed it now! Instead of using header() I sacrificed some speed and used a meta refresh to the redirect variable. So now it goes to my page, loads it - image and all, then goes back to their page, with the image all updated. Sam Link to comment https://forums.phpfreaks.com/topic/98538-help-and-ideas-needed/#findComment-504352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.