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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:19:40+00:00 2026-05-31T22:19:40+00:00

My website shows recommend pages for users. Right now, I suppose to send a

  • 0

My website shows recommend pages for users. Right now, I suppose to send a query to get a URL addresses. It will be annoying to my server to get every single URL addresses. So, I would like to get 5 URL addresses from db and store them in to session as array.

array (
  url[0] => google.com/1
  url[1] => google.com/2
  url[2] => google.com/3
  url[3] => google.com/4
  url[4] => google.com/5
)

It would like to store like this, and I would like to remove the first value after a user visits.

array (
  url[0] => google.com/2
  url[1] => google.com/3
  url[2] => google.com/4
  url[3] => google.com/5
)

It will be like this after first step.

array (
  url[0] => google.com/5
)

At the end, there will be only one left in the session. After this, the server will send a query to get 5 different URL addresses. So, can you give me an idea how to set this up?

  • 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-31T22:19:41+00:00Added an answer on May 31, 2026 at 10:19 pm

    Take a look at array_shift

    Example use:

    $array = array("google.com/1", "google.com/2", "google.com/3");
    array_shift($array);
    print_r($array);
    

    output:

    Array
    (
        [0] => google.com/2
        [1] => google.com/3
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a website that shows recommend pages for users. Users only click
I will have to send mails from a php website via smtp. The smtp
I have a website that shows galleries. Users can upload their own content from
Basically i've a table for my users (it's nightclub website) and now i'm trying
can anyone recommend a website crawler that can show me all of the links
I'm making a website that shows you images. And special feature of site is
I'm looking for a tcpdump binary that runs on openwrt. The website only shows
On my website I have two jQuery UI dialogs. One dialog just shows gif
‹�����혱jÃ0†w=Å=AÜ ÂЃ)ÅKGÅ:¢En%¹©ß¾²Ý 7xèpußøãŸ~ÝöÇ®Ömót¨•îŸû®©îao‚½‘Í:ºR†æk@´huõÃ(]­;z:¼•Íö¾þ{¥•‚¾ímwi£_±Ä1)–ÄÇ�‡‘,‰%Ž#YKF²Ä²Ä8ŒèKF²$–88ŒdI,qpÉ’Xâà0’%±Ä1Àaþe–TïÆOŒ@ 2^ßÇhù¦`Î!뜄yœDü˜0e°Ó:ËË>e„ñʈfp.à(U®<œv¿ì;xñhRY3˜‹¡�ÞdŒ;Uºõ×R°WkÑ^Z÷¥¯Wß.Ò¤·�� That's exactly what shows up instead of my website in
Suppose I have a page on my website to show media releases for the

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.