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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:41:26+00:00 2026-05-17T18:41:26+00:00

Well,my current situation is like this. When i search something on my site for

  • 0

Well,my current situation is like this.

When i search something on my site for ex. http://example.org/web-search.phtml?search=SEARCHED+TEXT the respective content is shown.

As you can see I’m using a GET form to get the data from the previous form.So the first thing i want to do is open a file with the same as SEARCHED+TEXT.So now i want to open and save file in

http://example.org/web-search/SEARCHED+TEXT.html

So each time a person searches a page like http://example.org/web-search.phtml?search=SEARCHED+TEXT a respective .html file should be created in the respective folder

And no.2

Now i want the whole source of http://example.org/web-search.phtml?search=SEARCHED+TEXT to be copied into http://example.org/web-search/SEARCHED+TEXT.html

So how do i do this ?

NOTE: If i copy the whole source including the code for copying and creating file then each time the person creates http://example.org/web-search/SEARCHED+TEXT.html a new HTML file will be Opened..

So i hope you got my BIG BIG question !!

I’m not saving the results.I’m just saving the iframe source.So technically its not static

  • 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-17T18:41:27+00:00Added an answer on May 17, 2026 at 6:41 pm

    You can use file_put_contents() and the $_GET to do the operations you want.

    Firstly you can get the filename of the file by calling :

    $filename = $_GET['search'] . '.html';
    

    That would return your value, SEARCHED+TEXT

    Secondly you can use file_put_contents($filename, $some_source_content) to create the file.

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

Sidebar

Related Questions

I'm trying to do this: $('li').eq(newCurrent).addClass('current'); I've tried index() as well but I'm certainly
well i have a configuration like this in the components part of my config
Hey, well I don't really know how to describe this but here's my current
I having a problem with my current situation, I searched through any solution on
Lots of words below, sorry - but I wanted to explain this situation well:
My current SOAP1.1 Message is working well and generating appropriate results. However, SOAP message
Well, my website can not redirect to https://www.facebook.com/QuaFootSpa from http://quafootspa.com/ I have tried redirection
I looked through previous questions to this effect, but my situation is slightly different...
I'm running into this situation where I need to parse a String into an
This may be a few questions bundled into one, but here is the situation.

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.