Exoon Posted September 15, 2011 Share Posted September 15, 2011 Hello, Im making a little script to grab some data from a website but the data loads up a Javascript popup and unless you click the link from the page you came from you get a 404 error. Is there any ways to able me to load up the page using php so i can access some of the data on the page. The page im trying to access has the following code in the head, Does that have anything to do why you cant directly access it? <META NAME="Robots" CONTENT="index,follow"> Hope this makes sense, If anyone knows a solution i would really appreciate it. Quote Link to comment https://forums.phpfreaks.com/topic/247224-file_get_contents-to-access-javascript-page/ Share on other sites More sharing options...
dougjohnson Posted September 15, 2011 Share Posted September 15, 2011 Show us your code. I'm very curious about this one. I don't think the META tag has anything to do with it. If I understand correctly, you are trying to get the contents of a specific web page, but instead you are getting the contents of a popup window? I've tried to duplicate this by putting an onload javascript popup in a page and then do a file_get_contents. I get the page contents NOT the popup contents. When you navigate to the page in a browser, do you get a popup? Quote Link to comment https://forums.phpfreaks.com/topic/247224-file_get_contents-to-access-javascript-page/#findComment-1269702 Share on other sites More sharing options...
web_craftsman Posted September 16, 2011 Share Posted September 16, 2011 Can you show us this site and data you need? Try: When you first get page content there is href that link, which need to be clicked. Grab this href and get page content from this address. It can be more difficult if AJAX works. Use Firebug to see details. Quote Link to comment https://forums.phpfreaks.com/topic/247224-file_get_contents-to-access-javascript-page/#findComment-1269796 Share on other sites More sharing options...
Exoon Posted September 24, 2011 Author Share Posted September 24, 2011 For example: http://romhood.com/category/Nintendo%20DS/5834_-_Pucca_Power_Up_USA_SUXXORS_6322.html I want to be able to access the Freakshare URL which shows after you press "Download, Freakshare.com eine url" Because the popup with the URL inside it only shows up when you visit it after youv'e visited the main page. If you put the direct URL in for the popup it says page not found. Ive tried to have the script visit the download page, then grab the popup URL and visit that but that dosen't work either. Is there a way around this? Quote Link to comment https://forums.phpfreaks.com/topic/247224-file_get_contents-to-access-javascript-page/#findComment-1272466 Share on other sites More sharing options...
Exoon Posted September 26, 2011 Author Share Posted September 26, 2011 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/247224-file_get_contents-to-access-javascript-page/#findComment-1272929 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.