PHP warning

PHP warning

Use of undefined constant PHP_SELF - assumed 'PHP_SELF' (this will throw an Error in a future version of PHP)

/home/benafrutticom/public_html/topo.php(2)

01 <?
02 $url_base = parse_url($_SERVER[PHP_SELF]);
03 @$menu = next(
04 explode("/",
05 str_replace(
06 str_replace("/index.php","",$url_base[path]),"",$_SERVER['REQUEST_URI'])
07 )
08 );
09 ?>
10 
11 <div class="conteudo topo">
12   <div class="container">
13     <div class="row bg-branco">
14       <div class="col-md-2 col-sm-2 col-xs-12 logo">

Stack Trace

#0
+
–
 /home/benafrutticom/public_html/contato.php(30): include("/home/benafrutticom/public_html/topo.php")
25     <?php include("header.php"); ?>
26     <title>Benafrutti</title>
27 </head>
28 <body>
29     <div id="wrapper">
30         <?php include("topo.php"); ?>
31         <div class="conteudo">
32             <div class="parallax-contato" data-parallax="scroll" data-image-src="img/banner3.jpg">
33                     <div class="wow fadeInUp m-t-20"> <img class="img-responsive center-block" src="img/frutas-contato.png" alt="" /></div>
34                     <div class="container">
35                         <div class="row frase wow fadeInDown m-t-20" data-wow-delay="0.1s"><h1><img class="img-responsive center-block" src="img/frase-banner-gestao-contato.png" alt="" /></h1></div>
#1
+
–
 /home/benafrutticom/public_html/RequestManager.php(132): require_once("/home/benafrutticom/public_html/contato.php")
127     public function run($routes){
128         $this->setRoutes($routes);
129         $return = $this->defineRoute();
130         
131         if($return['status']){
132             require_once($return['file']);
133             exit;
134         }
135         
136         require_once("404.php");
137         //header('location: '.$this->getBaseUrl().DIRECTORY_SEPARATOR.$this->default_route);
#2
+
–
 /home/benafrutticom/public_html/index.php(37): RequestManager->run(array("/" => "inicial.php", "/index" => "inicial.php", "/inicial" => "inicial.php", "/empresa" => "empresa.php", ...))
32     '/modelos'=>'modelos.php',
33     '/realizacao'=>'realizacao.php',
34     '/contato'=>'contato.php',
35     '/modelos/(?P<modelo>\d+)'=>'detalhes.php',
36 );
37 $request_manager->run($rotas);
2022-05-18 22:21:00 Apache Yii Framework/1.1.13