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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:09:14+00:00 2026-06-11T18:09:14+00:00

I have upgraded PHP from v5.3 to v5.4 and I am now getting the

  • 0

I have upgraded PHP from v5.3 to v5.4 and I am now getting the following error:

Strict standards: Only variables should be passed by reference

Code:

$filename = array_pop(explode("/", $_SERVER['SCRIPT_FILENAME']));

How to fix this?

  • 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-11T18:09:15+00:00Added an answer on June 11, 2026 at 6:09 pm

    Breaking the code apart would resolve the error

    $filename = explode("/", $_SERVER['SCRIPT_FILENAME']);
    $filename = array_pop($filename);
    
    echo $filename ;
    

    Demo Break Apart

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

Sidebar

Related Questions

I've just upgraded from PHP 5.3.10 to 5.4, now I get the following when
Recently I have been getting the following error on my feeds in Simplepie: Warning:
I have just upgraded from php 5.1 to 5.3 and had previously been using
Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have
I have upgraded one of my projects in c# from visual studio 2005 to
I have upgraded my grails app from 1.3.7 to 2.0.1. I had few static
I have upgraded projects to .net framework 4.0 (VS 2010) and I am getting
In my rails application I have upgraded in the past from rails 3.0 to
I have a website which employs a PHP script to load some data from
I upgraded my ubuntubox from 10.10 to 11.04 and after that i have 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.