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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:33:51+00:00 2026-06-04T09:33:51+00:00

I have code as <img src=http://www.wiris.net/demo/editor/render.png?mml=<math xmlns=’http://www.w3.org/1998/Math/MathML’><mfenced open='[‘ close=’]’><mrow><mi>d</mi><mi>f</mi><mi>g</mi><mi>d</mi><mi>dipen</mi><mi>g</mi></mrow></mfenced></math>/> If i put this code

  • 0

I have code as

    <img src="http://www.wiris.net/demo/editor/render.png?mml=<math xmlns='http://www.w3.org/1998/Math/MathML'><mfenced open='[' close=']'><mrow><mi>d</mi><mi>f</mi><mi>g</mi><mi>d</mi><mi>dipen</mi><mi>g</mi></mrow></mfenced></math>"/>

If i put this code in browser i can able to see the one image. I need to store that image in my localhost. I tried GD,Copy(),Curl Image store but nothing helps me.

Please help me guys

Regards
Dipen

  • 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-04T09:33:52+00:00Added an answer on June 4, 2026 at 9:33 am

    Try this below functions:

    function grabLiveImage($imgUrl,$pathToSave,$filename='')
    {
        $data = file_get_contents($imgUrl);
        if($filename == '')
            $filename = getFilename($imgUrl);
        $fp  = fopen($pathToSave.$filename, 'w+');  
        fputs($fp, $data);
        fclose($fp);    
        return $filename;
    }
    function getFilename($url)
    {
        $basename = basename($url);
        $temp = explode('?',$basename);
        return $temp[0];
    }
    

    e.g.
    $url = ‘http://www.wiris.net/demo/editor/render.png?mml=%3Cmath%20xmlns=%27http://www.w3.org/1998/Math/MathML%27%3E%3Cmfenced%20open=%27[%27%20close=%27]%27%3E%3Cmrow%3E%3Cmi%3Ed%3C/mi%3E%3Cmi%3Ef%3C/mi%3E%3Cmi%3Eg%3C/mi%3E%3Cmi%3Ed%3C/mi%3E%3Cmi%3Edipen%3C/mi%3E%3Cmi%3Eg%3C/mi%3E%3C/mrow%3E%3C/mfenced%3E%3C/math%3E’;

    grabLiveImage($url,’test/’,’test.jpg’)

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

Sidebar

Related Questions

I have below code: <a href=# id=@item.Id name=vote ><img src=/Content/images/021.png style=float:left alt= /></a> which
I have the following code: <html xmlns=http://www.w3.org/1999/xhtml lang=en xml:lang=en> <head> <title>Image uploader</title> </head> <body>
i am surprised why these links have different color?here is code <html xmlns=http://www.w3.org/1999/xhtml xml:lang=ka-ge
I have this code: <header> <div id=title> <img alt=logo src=/Content/logo.gif /> </div> <nav> <ul
I have following PHP code $val=<div id=user.$row['cid']. userid=.$row['cid']. class=innertxt><img src=images/images.jpg width=50 height=50><strong>.$uname.</strong><ul> <li>Email: .$row['cemail'].</li>
I have this HTML code multiple times one after the other: <li> <img src=path/to/my/picture.jpg
I have this code: <script type=text/javascript> var url = http://www.xxxxx.xxx/xxxxxxxxx; var txt; var id1;
I have following code (php), it will match img-src and replace with new url
I have the following code in a textwidget <div class=social> <a href=http://www.facebook.com/peakit.nl target=_blank><img src=http://www.peaktest.nl/wp-content/uploads/facebook-icon.png
The website is http://www.ipalaces.org/support/ The code I use for the status indicators is <img

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.