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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:46:33+00:00 2026-06-14T11:46:33+00:00

The problem is that I downloaded a web page to my local server (via

  • 0

The problem is that I downloaded a web page to my local server (via ftp).
Now the browser displays some code instead of a page.
The website is running on smarty templates, but that may or may not be the issue.

I tried to track the issue and what I know already is that the displayed code is a part from main index.php file and looks like this:

=$_var['time'] && $output[$x]['tags']['state'][0][0]==1){ $_out['box']['promotions'][]=$output[$x]; } } else if ($_GET['state'] == 1) { if($output[$x]['tags']['state'][1][1]<=$_var['time'] && $output[$x]['tags']['state'][1][2]>=$_var['time'] && $output[$x]['tags']['state'][1][0]==1){ $_out['box']['news'][]=$output[$x]; } } } $_out['prodlimit']['news'] = 24; $_out['prodlimit']['promotions'] = 24; } else { for($x=0;$x=$_var['time'] && $output[$x]['tags']['state'][0][0]==1){ $_out['box']['promotions'][]=$output[$x]; } if($output[$x]['tags']['state'][1][1]<=$_var['time'] && $output[$x]['tags']['state'][1][2]>=$_var['time'] && $output[$x]['tags']['state'][1][0]==1){ $_out['box']['news'][]=$output[$x]; } } $_out['prodlimit']['news'] = 12; $_out['prodlimit']['promotions'] = 4; } // filtry $query1="select * from ".$_base[prefix]."mod_assortment_filters order by category,position,id"; $result1=mysql_query($query1); while($dane1=mysql_fetch_assoc($result1)){ $query2="select * from ".$_base[prefix]."images where module='assortment_filters' && parent='$dane1[id]' order by id limit 0,1"; $result2=mysql_query($query2); if($dane2=mysql_fetch_assoc($result2)){ $dane1[logo]=$dane2; } $_out[filters][strtolower($dane1[category])][]=$dane1; } //print_r($_out[filters]); // slideshow $query="select * from ".$_base[prefix]."mod_component_files where name like 'Slideshow:%' && visible='1'"; $result=mysql_query($query); while($dane=mysql_fetch_assoc($result)){ $_out[slideshow][]=$dane; } // smarty $smarty->assign("_out",$_out); $smarty->assign("informations",$informations); $smarty->assign('content_cell', $content_cell); $smarty->display("index.tpl"); ?>

The part before it in the index.php file is:

if(isset($_GET['state'])) {
for($x=0;$x<count($output);$x++){
    if ($_GET['state'] == 0) {
        if($output[$x]['tags']['state'][0][1]<

There are also some variable declarations earlier.
Actually any changes have no effect until I change something in the index.php – which generally results in the less code displayed by the browser.

Could this be some php version differences between my local server and the web server (web-server has older php version I guess)?

I am clueless – I need this working so I could restyle it – it is a e-commerce web page with database etc..

Thanks in advance.

  • 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-14T11:46:34+00:00Added an answer on June 14, 2026 at 11:46 am

    I found the solution. My php.ini was set to not allow short tag forms,

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

Sidebar

Related Questions

I have a problem that I'm working on for quite some time now. I
I have a page in JSP that list some file that could be downloaded
Weird problem this. I've got a web page that fades images in and out
Standard scenario: ajax-heavy web application with reports that can be downloaded as files. Problem:
I just downloaded the release version of MVC 2, pretty excited about that! Problem
Im currently facing the problem that when i try to set focus on some
I want a WYSIWYG html editor to create a static web page. After some
I'm using WebClient to download some text from a web-page, like this: WebClient wc
I've downloaded google_appengine version 1.3.1. Using some web tutorials, I've created basic django 1.1.1
I'm using this code to download a web page in my Metro Style app:

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.