Write a PHP program that accepts a link to a given website and parses that site for every link to other pages available

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a PHP program that accepts a link to a given website and parses that site for every link to other pages available

Post by answerhappygod »

Write a PHP program that accepts a link to a given website and
parses that site for every link to other pages available from the
page loaded by the initial link. This program should only search
for links to other pages (not links to images embedded within) and
it should work recursively, meaning that for each link it finds, it
should automatically run another iteration with the new link
replacing the one entered by the user. It should keep doing this
recursively until it is no longer able to find new links (duplicate
links should be ignored).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply