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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:07:46+00:00 2026-05-30T08:07:46+00:00

i have a problem. I have made a PHP proxy to get json data

  • 0

i have a problem. I have made a PHP proxy to get json data from an external server using this code :

<?php 
$url = $_GET['url'];

$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
$data = curl_exec($ch);
curl_close($ch);

echo("<h1>".$url."</h1>");

echo (substr($data,0,-1));

?>

But i have to pass this link “http://isohunt.com/js/json.php?ihq=ubuntu&sort=age&#8221; and since i have an & in there my php script can’t properly evaluate the link. How i solve the issue?

  • 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-30T08:07:47+00:00Added an answer on May 30, 2026 at 8:07 am

    Before passing the target URL to the script via the url GET parameter, encode it with urlencode() (or an equivalent depending on where the target URL enters the situation).

    The encoding will be automatically reversed when you retrieve $_GET['url'], leaving you with the original (desired) URL. (Kudos to Quentin for correcting me here).

    Hope this helps.

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

Sidebar

Related Questions

I have a problem with a javascript set of functions that I made. This
I have a slight problem... we made a change to our url structure the
I'm using xampp for my php. And I have download a code igniter and
I have to use MS SQL Server 2008 to store data of PHP CAKE
So I have this problem in PHP, I have a class called unit that
I have small problem with name spaces in php 5.3. I've made declaration for
I have problem with php's preg_match.I want to make something like this : When
Here's my problem: I have an unmanaged dll that I made.I'm calling one of
I have made a swings application but there is one problem in that which
I have made a very simple AppleScript to close tabs in Safari. The problem

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.