Q&A > files
Description:I am trying to create a script which checks if a site is up or down by checking for a certain file on that domain. I have tried a few things but as it seems they are all for checking local file and to check for a remote file! Any suggestions?
|Answer: How do I check if a file exists on another (remote) domain?|
contributed by davorg
Use LWP::Simple and the head function.
Please (register and) log in if you wish to add an answer
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr