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

  • Home
  • SEARCH
  • 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 880457
In Process

The Archive Base Latest Questions

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

Using php coding, I’m attempting to make a script which will grab content from

  • 0

Using php coding, I’m attempting to make a script which will grab content from another URL and give each word/number a php variable. I’m unsure whether this is possible, hence the reason why I’ve come onto stackoverflow and hoping for assistance from other members.

This is what I’ve currently got:

<?php

$searchdata = file_get_contents('http://www.example.com/dynamic.html');
echo $searchdata;

?>

The code grabs the data from the page titled “dynamic.html” and displays it. The content within dynamic.html is simply a line of text, each word is separated by a single space. The contents within the page looks something similar to:

92 AULLAH1 325 6523 37 1 12 5 #endofscript

I’ve said it looks similar to, as this is a dynamic page and varies all the time. The thing I’d like to do is give each number/word a php variable. E.G. 92, AULLAH1, 325, 6523, 37, 1, 12, 5 each should have a separate variable ($number, $text etc…). Notice I don’t require a variable for #endofscript.

How would I go about doing this? The document is a dynamic page, so the numbers may be different as well as “AULLAH1”.

Kind regards, and I appreciate every single response. 🙂

  • 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-15T12:06:06+00:00Added an answer on May 15, 2026 at 12:06 pm

    The number of data is fixed? Can you name them all?

    list($number, $text, $othernumber, $phone, $age, 
         $smth, $andd, $last) = explode(" ", $searchdata);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just to give a little background: I'm using Dreamweaver CS5 for coding php, XAMPP
Using php I am trying to get some data from a .csv file which
What's the best way to get content from an external website via php? Using
I m working on module in which i have to make pdf from php
Currently I am using YOURLS PHP URL shorterning script. In their functions.php, seems like
Hi i am using PHP to store the timezone.The timezone coming from dropdown and
I am coding a forum system using PHP. I am currently storing a threads
I am using PHP as server side coding, and i want a set of
I'm coding a form using PHP and jQuery. I have a file upload field
I am php beginner and I am trying to make e-commerce by using php.

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.