This does what you want, but i'm not sure how you would execute it from PHP. You could maybe spawn a process.
http://www.phantomjs.org/ I have to ask though, why would you use PHP to do this? I can think of a number of better platforms for this kind of task. On Sat, Mar 24, 2012 at 12:00 PM, michaelmc_s <[email protected]>wrote: > Hi > > I will crawl a website with java script content and analyse the output via > php. > > Example: > > Raw Code: > > <tr class="odd"><td><input type="checkbox" name="c21" id="row21" > value="141589638.240.64.14567908080" onclick="choice()" > /></td><td>148.240.64.145<script > type="text/javascript">document.write(":"+s+g+s+g)</script></td> > > > If the browser executes the js it writes to port nummber to the page: > > > <tr class="odd"><td><input type="checkbox" name="c21" id="row21" > value="141589638.240.64.14567908080" onclick="choice()" > /></td><td>148.240.64.145<script > type="text/javascript">document.write(":"+s+g+s+g)</script>8080</td> > > > Can I parse this on server side like the browser does? > > > Thx > > Michael > > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
