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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:58:12+00:00 2026-05-23T10:58:12+00:00

SOLVED: var_dump revealed that that the issue was of & and & . Also

  • 0

SOLVED: var_dump revealed that that the issue was of & and & .

Also I would still like to know why curl fetched a page with missing divs. Would anyone be kind enough to explain ?

have been at this problem for 1.5hours now. Narrowed down to something that just doesn’t make sense to me. Please help . I am fetching a page using curl.
The problem is that when the following code is used:
a lot of div tags from the navigation to the left are missing from the fetched page,

$pageToParse = "http://www.themarketgrocer.com.au{$arrayLeftBar[$i]} " ;
                ;
//fetch target page
$curlFetched = http_get($pageToParse, "http://www.google.com") ; //fetched using a curl function
echo $curlFetched['FILE'];

the value of $arrayLeftBar[$i] is fetched from an html page using simplehtmldom. as echoed:

"/index.php?option=com_content&view=category&layout=blog&id=37&Itemid=92"

HOWEVER if

$pageToParse = "http://www.themarketgrocer.com.au{$arrayLeftBar[$i]} " ;

is changed to : (basically manually appending the value of $arrayLeftBar[$i] )

$pageToParse = "http://www.themarketgrocer.com.au/index.php?option=com_content&view=category&layout=blog&id=37&Itemid=92" ;

then the complete page is fetched.

WHY ?? I have echoed the values and they are identical. What silly little thing am I missing?

Edit:
THis is how the $arrayLeftBar is being populated: I am pretty sure the problem is here . Coz if I manually create a simple array. Things work.

foreach ($sublevelLinks as $link)
{
    $arrayLeftBar[] = $link->href ;
}
  • 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-23T10:58:13+00:00Added an answer on May 23, 2026 at 10:58 am

    SOLVED: var_dump revealed that that the issue was of & and & .
    html_entity_decode($arrayLeftBar[$i]) did the necessary conversion

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

Sidebar

Related Questions

SOLVED: Error in template file I have Smarty setup like this: require_once 'smarty/Smarty.class.php'; $smarty
Edit: I thought I solved it but I didn't. I have javascript that gathers
- Running PHP 5.3.8 on Linux- To start, we have solved this issue to
Best example would be to show you how is this solved in Javascript: var
SOLVED: added some java to the Page 1 code to read the URL parameters
SOLVED so i forgot to sudo apt-get php5-sqlite also. downvoters gonna downvote :D (fyi,
EDIT: Solved My problem is that I need to find a way to constantly
edit #2: Question solved halfways. Look below As a follow-up question, does anyone know
Following up on this question , it seems that the duplicate issue could be
When I do var_dump($punkty); I got something like this: array(1) { [0]=> array(4) {

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.