Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9177663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:22:39+00:00 2026-06-17T17:22:39+00:00

I am trying to figure out a php script to check a bunch of

  • 0

I am trying to figure out a php script to check a bunch of links from a separate text file and if anyone of them is showing 404 then the script should trigger a php file, which will send sms notification. I already have sms file ready and just need to trigger it.

For example, there are several links in links.txt (which is also uploaded on the server), such as

http://example.com/link1
http://example.com/link2
http://example.com/link3

These links are not necessarily offline, they may be redirecting to a non-existent page, while the main site is alive.

If example.com/link1 is down smsnotice1.php should be triggered
If example.com/link2 is down smsnotice2.php should be triggered
If example.com/link3 is down smsnotice3.php should be triggered

The reference to smsnotice1.php, smsnotice2.php, smsnotice3.php can be either in the main script or another php file.

If none of the links is down, then no notice should be sent.

I can run this script from a php server on a cron for frequent check.
Thank you very much for the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:22:40+00:00Added an answer on June 17, 2026 at 5:22 pm
    1. Use cURL to request a copy of the page.
    2. Check the HTTP status returned with $http_status = curl_getinfo($http, CURLINFO_HTTP_CODE);
    3. If it’s anything other than 200 send yourself an alert.

    As for how to send an SMS, pretty much all mobile providers have an email domain that you can use to send an SMS to your phone, ie: 1235555555@mymobile.tld

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Really struggling to figure this out. Just trying to take in data from php
Trying to figure out why File Attachment isn't showing on a custom content type.
Basically, I'm trying to figure out how PHP can be called from a web
I trying to figure out how to output my php to echo for my
trying to figure out why this is happening - I have an input text
I'm trying to figure out why the mail function in PHP fails when called
I'm trying to have a php script run when the user navigates away from
I've been trying to figure out what's wrong with my ipn script. I've tried
I'm trying to figure out how to get a server to accept a file
does anyone know how to background ffmpeg if executed from a PHP script? i've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.