Jump to content

help and ideas needed


helraizer

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.