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 824491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:06:29+00:00 2026-05-15T03:06:29+00:00

In php how would I grab all javascript from a page given it’s url?

  • 0

In php how would I grab all javascript from a page given it’s url? Is there a good regular expression to get the src of all javascript script tags or the script inside of them?

  • 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-05-15T03:06:30+00:00Added an answer on May 15, 2026 at 3:06 am

    You can use PHP Simple HTML DOM to traverse the DOM for <script> tags. You can grab inline scripts directly in a string and get the src attribute for externally linked scripts and download them directly with curl or something. It would require some coding, I don’t know if there is a ‘magic’ script that would do that automatically for you.

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

Sidebar

Related Questions

Using Php I would like to extract the current Url of a page including
Is there a query to run in php that would let you insert all
From this XML response: http://www.dreamincode.net/forums/xml.php?showuser=335389 I want to grab all of the users friends.
Im trying to grab all data(text) coming from a URL which is constantly sending
Using MySQL and php how would I, in a single query, grab all results
I'm not very good at PHP and would like to have a PHP function
I am pulling mp3 file locations from my mysql database using PHP and would
I have a PHP / Javascript page that automatically logs a user into different
Using php coding, I'm attempting to make a script which will grab content from
I'm still learning PHP regular expressions (and regular expressions in general), and would like

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.