Convert JS for PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thiagoafc
Forum Newbie
Posts: 1
Joined: Sun Dec 25, 2011 5:26 pm

Convert JS for PHP

Post by thiagoafc »

I have the following code in javascript, I would like to rewrite it in PHP, if someone can help thank you very much.

my code: http://pastebin.com/Jnt8RiYj
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Convert JS for PHP

Post by twinedev »

You have things like document.getElementsByTagName("A")

PHP cannot interact with what is displayed in a web browser directly, so you would have to specify more on what this needs to do. Will PHP be outputting the page and you need this functionality to work to change what would actually get sent out, or would you need it to read another site and do the changes to the source of that page?

The more details you can give, the more help you can get.

-Greg
Post Reply