hellonoko Posted April 2, 2009 Share Posted April 2, 2009 I am trying to automate retrieval of mediafire links. Does anyone know how I would even start to go about this? Example link: http://www.mediafire.com/?mlmthzwomzj Quote Link to comment https://forums.phpfreaks.com/topic/152263-allowing-javascript-to-execute-before-following-a-link/ Share on other sites More sharing options...
papaface Posted April 2, 2009 Share Posted April 2, 2009 Javascript is a client side script. So far as I am aware this cant be processed or "seen in action" by PHP. Quote Link to comment https://forums.phpfreaks.com/topic/152263-allowing-javascript-to-execute-before-following-a-link/#findComment-799678 Share on other sites More sharing options...
.josh Posted April 2, 2009 Share Posted April 2, 2009 yep. you would have to do that all clientside. You would have to be more specific than "follow the link" to get a more detailed answer, but for instance, if you don't want the link to be displayed until some js is executed, you could a) put the js into an onload call in your body tag or a document.load event listener, have the link display by document.write after the js code executes, b) have js change the visibility of the link (by making some div around it visible or something, once it is done executing. But no, you cannot have that logic in php. php looks at js as plain text to be sent to the browser. Quote Link to comment https://forums.phpfreaks.com/topic/152263-allowing-javascript-to-execute-before-following-a-link/#findComment-799686 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.