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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:50:10+00:00 2026-05-16T10:50:10+00:00

<? for ($i=0; $i<=9; $i++) { $b=urlencode($cl[1][$i]); $ara = array(http://anonymouse.org/cgi-bin/anon-www.cgi/, http%3A%2F%2Fanonymouse.org%2Fcgi-bin%2Fanon-www.cgi%2F); $degis = array(,

  • 0
<?  
for ($i=0; $i<=9; $i++) {


    $b=urlencode($cl[1][$i]);
    $ara = array("http://anonymouse.org/cgi-bin/anon-www.cgi/", "http%3A%2F%2Fanonymouse.org%2Fcgi-bin%2Fanon-www.cgi%2F");
    $degis   = array("", "");
    $t = str_replace($ara, $degis, $b);
    $c="$t";
    $base64=base64_encode($t);


    $y=urldecode($t);
    $u=base64_encode($y);
    $qwe = "http://anonymouse.org/cgi-bin/anon-www.cgi/$y";
    $ewq = "h.php?y=$u";
    $bul = ($qwe);
    $degistir = ($ewq);
    $a =str_replace($bul, $degistir, $ic);
}
?>

when i put $cl[1][0], $cl[1][1], $cl[1][2] works successfull but when i put $i its returning null. why is this happening?

**I’m trying to change EACH url to base64 codes that I received from remote url with preg_match_all **

  • 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-16T10:50:11+00:00Added an answer on May 16, 2026 at 10:50 am

    Have you checked that $c1[1] has 10 elements? (From $c1[1][0] to $c1[1][9] there are 10 elements, not 9.

    Maybe you are getting null for the last one $c1[1][9]. Try to do a var_dump($c1[1]) to check that it contains all the elements that you expect.

    Update:

    Change the this line

    for ($i=0; $i<=9; $i++) {
    

    into this

    for ($i=0; $i<9; $i++) {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I urlencode a string with special chars æøå? ex. urllib.urlencode('http://www.test.com/q=testæøå') I get
i'm trying to encode an url with the code below; var encodedUrl = HttpUtility.UrlEncode(http://www.example.com);
params = urllib.urlencode(data) headers = {Content-type: application/x-www-form-urlencoded, Accept: text/plain, } conn = httplib.HTTPConnection(self.base_url) conn.request('GET',
def URLRequest(url, params, method=POST): h = Http() res, content = h.request(url, method, urllib.urlencode(params)) r
I'm looking for the equivalent of a urlencode for terminal output -- I need
Without using plpgsql, I'm trying to urlencode a given text within a pgsql SELECT
if you use the php function urlencode encode a url, and then put the
What would the difference be between: HttpUtility.UrlEncode(some string with é and β and stuff)
I would like to use Server.UrlEncode in .ashx . I try with the following
I have some html that is output by PHP's urlencode - basically it's a

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.