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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:28:17+00:00 2026-05-31T20:28:17+00:00

i got one page from curl which contain <?xml version=1.0 encoding=UTF-8?> <ipinfo xmlns=http://data.quova.com/1 xmlns:xs=http://www.w3.org/2001/XMLSchema-instance>

  • 0

i got one page from curl which contain

<?xml version="1.0" encoding="UTF-8"?>
<ipinfo xmlns="http://data.quova.com/1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">

i want to delete this header
so need help how to do that .

i tried str_replace function but no success

$find1='/<?xml version="1.0" encoding="UTF-8"?>/';
$find2='/<ipinfo xmlns="http://data.quova.com/1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">/';
$contentx = str_replace($find1, '', $data,$count);
  • 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-31T20:28:18+00:00Added an answer on May 31, 2026 at 8:28 pm

    You don’t need to use ‘/ /’ delimiters with str_replace, only with regular expression functions. Remove the slashes at start and end.

    In other words:

    $find1='<?xml version="1.0" encoding="UTF-8"?>';
    $find2='<ipinfo xmlns="http://data.quova.com/1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">';
    $contentx = str_replace($find1, '', $data,$count);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to wordpress and i want to transfer data from one page
I've got a html page which loads another html page into one of its
Trying to scrape a Y! Group and I can get data from one page
WPF, Browserlike app. I got one page containing a ListView. After calling a PageFunction
I've got a series of Excel spreadsheets, each with at least one page of
I've got a pretty simple site (around 8 pages) with only one way page
I have a one-page website with sliding panels, some of which have external links.
I am trying to use this simple function from this page: http://www.haskell.org/haskellwiki/99_questions/Solutions/2 But when
I want to redirect JSP page from one servlet. All JSP pages are under
I've got 2 ASP pages. I do a request to the first page from

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.