Home | How it works | Projects archive | Contact Us
Air Compressor Bot
 
The Career Path of Freelance Programming Jobs 

   Php/xpath/tidy Script

Bidding Time:
21/07/2008 13:52 - 24/07/2008 13:52
Budget:
N/A
Status:
Closed


Job Type:
PHP, XML, XHTML
Description:



I need a script that will (for example) go to this page:
http://www.zoolit.com/user/signup/
Once the script loads that page, it would run the contents through the php tidy
extension:
http://us2.php.net/manual/en/book.tidy.php
It would need to parse the page and then repair the page using this extension.
The script would then take that input and load it into the php simple xml
extension:
http://us2.php.net/manual/en/book.simplexml.php
It would then use an xpath to find any forms on the page.
It would store each form in an array (there should be at least one form on each
input page - if there isn't, return an empty array).
Once the form gets all of the forms, it will then get all of the attributes for
each form and store that data as well. I.E. Store the submit url, the name of
the form, etc.
It will then get any controls (including hidden controls) that are on the form
and any values and store them in the array as well.
All of the information above would be put into a class.
I have a little bit of code which you can see below. Note that this code
doesn't work currently (That's why I'm hiring you!).
function FixPage($Data)
{
$tidy = new tidy();
$options = array(
"clean" => true,
"add-xml-decl" => true,
"indent" => true,
"wrap" => 200,
"hide-comments" => true,
"quote-nbsp" => false);
$tidy->parseString($Data, $options);
$tidy->cleanRepair();
return (string)$tidy;
}
function ParsePage($Data)
{
$Data = preg_replace('%<head.*/head>%six','',$Data);
$Data = preg_replace('%<script.*/script>%six','',$Data);
$Data = FixPage($Data);
$objXML = simplexml_load_string($Data);
echo $objXML->form;
}
This isn't a complex task so I'm not expecting (i.e. I won't pick) bids over my
budget.
I'll pay promptly and expect a fast turnaround.
Thanks and good luck bidding!
G-Man
Additional Info (Added 7/21/2008 at 13:53
EST)...

Sorry - I forgot to enter the min/max bid.
I'm expecting this to come in around $50-$75.
G-Man

Start your work-at-home career for $7.00. Get direct access to thousands of freelance and home-based jobs. Click here to find work now.

Related Projects:
Forum writers needed
CRAIGSLIST VERIFIED ACCOUNTS
Openwengo customization for VOIP Provider
Copywriting for Kristen - second job
Cre loaded redesign for Sanjay 0708

This project is the proprietary information of . Click here to remove this project from OUR database.
Operating System:
N/A
Database System:
N/A
<<< back

Recent Projects Archive:

Friday - Thursday - Wednesday - Tuesday - Monday - Sunday - Saturday

View all freelance web projects

 
Home | Projects archive | RSS | Resources | Links | Contact Us © 2004-2008 ProjectsList.biz /0.672