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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:47:12+00:00 2026-06-16T08:47:12+00:00

The below code is running a portion of my code file and this file

  • 0

The below code is running a portion of my code file and this file is running perfect in my server whereas when I am trying to run this code in my own system using WAMP server I am getting Parse error: syntax error, unexpected end of file whereas I copied the code in NetBeans IDE and lots of PHP syntax checking online tools but no error was detected by them. However unless I remove the below code I am unable to run the code file. I have two questions

  1. Is it possible to disable the Parse Error in PHP settings so as it runs as the same way running in my server.

  2. Can anyone point out what’s wrong in the below code.

.

<?php 
                if ($current_main == "admin")
                {
            ?>
                <li><a href="<?php echo base_url();?>admin/addsite" title="Administrator">Administrator</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "admin_addsite")
                {
            ?>
                <li><a href="<?php echo base_url();?>admin/addsite" title="Add Sites">Add Sites</a></li>
            <?
                }
            ?>


            <?php 
                if ($current_main == "reportmanager")
                {
            ?>
                <li><a href="<?php echo base_url();?>report/view" title="Report Manager">Report Manager</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "viewreport")
                {
            ?>
                <li><a href="<?php echo base_url();?>report/view" title="View Report">View Report</a></li>
            <?
                }
            ?>


            <?php 
                if ($current_main == "listsitemanager")
                {
            ?>
                <li><a href="<?php echo base_url();?>listsite/view" title="List Site Manager">List Site Manager</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "addlistsite")
                {
            ?>
                <li><a href="<?php echo base_url();?>listsite/add" title="Add List Site">Add List Site</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "viewlistsite")
                {
            ?>
                <li><a href="<?php echo base_url();?>listsite/view" title="View List Site">View List Site</a></li>
            <?
                }
            ?>

            <?php 
                if ($current_main == "projectmanager")
                {
            ?>
                <li><a href="<?php echo base_url();?>project/view" title="Project Manager">Project Manager</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "addproject")
                {
            ?>
                <li><a href="<?php echo base_url();?>project/add" title="Add Project">Add Project</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "viewproject")
                {
            ?>
                <li><a href="<?php echo base_url();?>project/view" title="View Project">View Project</a></li>
            <?
                }
            ?>


            <?php 
                if ($current_main == "jobmanager")
                {
            ?>
                <li><a href="<?php echo base_url();?>job/view" title="Job Manager">Job Manager</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "addjob")
                {
            ?>
                <li><a href="<?php echo base_url();?>job/add" title="Add Job">Add Job</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "viewjob")
                {
            ?>
                <li><a href="<?php echo base_url();?>job/view" title="View Job">View Job</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "importjob")
                {
            ?>
                <li><a href="<?php echo base_url();?>job/import" title="Import Job">Import Job</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "editjob")
                {
            ?>
                <li><a href="#" title="Edit Job">Edit Job</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "importrss")
                {
            ?>
                <li><a href="<?php echo base_url();?>job/importrss" title="Import Jobs from RSS Feed">Import Jobs from RSS Feed</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "viewrss")
                {
            ?>
                <li><a href="<?php echo base_url();?>job/viewrss" title="View RSS Feed">View RSS Feed</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_main == "home")
                {
            ?>
                <li><a href="<?php echo base_url();?>usercp" title="Home">Home</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "dashboard")
                {
            ?>
                <li><a href="<?php echo base_url();?>usercp" title="Dashboard">Dashboard</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "buypoints")
                {
            ?>
                <li><a href="<?php echo base_url();?>usercp/buypoints" title="Buy Points">Buy Points</a></li>
            <?
                }
            ?>
            <?php 
                if ($current_sub == "payment")
                {
            ?>
                <li><a href="<?php echo base_url();?>usercp/payment" title="Payment Transaction">Payment Transaction</a></li>
            <?
                }
            ?>
  • 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-16T08:47:14+00:00Added an answer on June 16, 2026 at 8:47 am

    You need to use full PHP tags.

    Change every instance of <? in your file to <?php and the problem will disappear.

    See this for more information. Note that the real solution here is to use full tags – it may be tempting to enable short open tags but you should avoid this for maximum compatibility and portability.

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

Sidebar

Related Questions

I wanted to generate a list view using below code. But after running this
I am extening AsyncTask in class and running below code in run method using
I am running below code as root and using python2.6.1, platform is linux >>>
I am using the below code to find the base address of a running
I have a number of nodejs applications running on Express using the code below.
In the below code the fputs(...) throws an assert when running on Windows Server
I get this message when running the code below: There is an error in
The below code I'm trying to produce is trying to do this: What I'm
I am trying to capture from a Sony Handicam DCR-HC38, running the code below,
I am trying to troubleshoot this code and am running into a dead-end, so

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.