Hi, I found by chance this site http://checkwebsite.erigami.com/accessibility.html and I would like to develop something like that. Could someone help me ? I have to ask for an url , then save into database the code and then to check. But in which format must I save the code. I mean what types of tables in SQL are required . Any help ?? Thanking you in advance! P.S. : The loading bar is perfect. Is this Ajax or something else ?
This is a really complex script. No one is going to do this for you. Something like this costs easily a few thousands... If you want to code this yourself, you gotta be more specific about which parts you need help with. (There are way too many features, no one is going to write down a detailed tutorial for each).
I am trying to save all images for example <?php if (!@mysql_connect('localhost', 'root', '')) { echo ": ".mysql_error(); exit; } elseif (!@mysql_select_db('Name')) { echo " : ".mysql_error(); exit; } $url="http://www.microsoft.com"; $file = file_get_contents($url); preg_match_all ( '#(?:<img )([^>]*?)(?:/?>)#is', $file, $imgtags, PREG_PATTERN_ORDER ); $imgcontents = array(); foreach ( (array) $imgtags[1] as $img ) { preg_match_all ( '#([a-zA-Z]*?)=[\'"]([^"\']*)["\']#i', $img, $attributes, PREG_PATTERN_ORDER ); $attrs = array(); foreach ( (array) $attributes[1] as $key => $attr ) { $attrs[$attributes[1][$key]] = $attributes[2][$key]; } $imgcontents[] = $attrs; } //var_dump ( $imgcontents ); foreach($imgcontents as $img => $key1) { $id = $img; $query = "INSERT INTO eikones (id) VALUES ('" .$id. "')"; mysql_query($query); foreach($key1 as $imgs => $key2) { if ($imgs == 'src') { $img = array_reverse(split('/', $key2)); $key2 = $img[0]; } $query = "UPDATE eikones SET " .$imgs. " = '" .$key2. "' WHERE id = '" .$id. "'"; mysql_query($query); } } mysql_close(); ?> Code (markup): But I don't know how can I find the line number of the image! Also I cannot catch images if the format is : <img border=0 width=3 src="">