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
Convert JS for PHP
Moderator: General Moderators
Re: Convert JS for PHP
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
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