Page 1 of 1

Error in Starting

PostPosted: 20. November 2013 10:45
by ahmadsami
Hello ,,

I have website with php lang , but when try work on my PC there not working and I have message


Image

but the website is working online , how I can solve this problem ,

you can check our website online (www.gch-saudi.com)

Regards

Re: Error in Starting

PostPosted: 20. November 2013 11:13
by Nobbie
You probably used "short tag"

<?

instead of


<?php

Re: Error in Starting

PostPosted: 20. November 2013 11:34
by ahmadsami
I changed on header and index file , still not working ,

Re: Error in Starting

PostPosted: 20. November 2013 13:38
by Altrea
circumstances had changed.
We need again the up to date action and reaction of what you think is not the correct behavior.

"not working" is no qualified error reporting.

Re: Error in Starting

PostPosted: 20. November 2013 14:01
by ahmadsami
Altrea wrote:circumstances had changed.
We need again the up to date action and reaction of what you think is not the correct behavior.

"not working" is no qualified error reporting.



so what I can do ?

Re: Error in Starting

PostPosted: 20. November 2013 15:07
by Nobbie
Which file is shown, when localhost/gch is requested (that is not a file, but a folder)? Show us the source of that file.

Re: Error in Starting

PostPosted: 20. November 2013 15:31
by ahmadsami
Nobbie wrote:Which file is shown, when localhost/gch is requested (that is not a file, but a folder)? Show us the source of that file.


the file request is index.php include header , you can show index.php here

Code: Select all
<?php
include("header.php");
if($_GET[module]!="")
$general_obj->website_general_information[website_title]=$general_obj->website_general_information[website_title];
   if($_GET[module]=='')
   $_GET[module]="home";
   $original_module=$_GET[module];   
   
   
   if($_GET[p]!='')
   $_GET[module].="_".$_GET[p];
   
   if($original_module!="clients_details" && $original_module!="recruitment_form")
   {
      $main_data=template("gch_".$_GET[module]);
      eval("\$main_data = \"$main_data\";");
   }
   
   $announcement_box_data=template("gch_announcements_box");
   eval("\$announcement_box_data = \"$announcement_box_data\";");
   
   $news_box_data=template("gch_news_box");
   eval("\$news_box_data = \"$news_box_data\";");

   if($_GET[module]=="home")
   {
      $clients_data=template("gch_clients");
      eval("\$clients_data = \"$clients_data\";");
   }
   
   if($original_module=="contact_us")
   include("contact_us.php");
   
   if($original_module=="careers")
   include("careers.php");
   
   if($original_module=="recruitment_form")
   include("recruitment_form.php");

   $confirm_data=$general_obj->confirm_data();
   $_GET[module]=$original_module;   

   if($_GET[module]=="our_team" && $_GET[c]!="")
   {include("our_team_details.php");}
   else
   if($_GET[module]=="clients_details")
   {include("clients_details.php");}
   else
   if($_GET[module]=="home" && $_GET[language]!="" && $_GET[language]!=$_SESSION[SESSION_PREFIX."language"])
   {include("templates/gch_home_".$_GET[language].".tpl");}
   else
   if($_GET[module]=="staff_login")
   {include("templates/gch_staff_login.tpl");}
   else
   if($_SESSION[SESSION_PREFIX."language"]=="en")
   {
      include("templates/main.tpl");
   }
   
   ?>