Jump to content
php.lv forumi

CI kļūda uzliekot uz servera


xfr33
 Share

Recommended Posts

Labdien!

Ir lapa, kas veidota uz CodeIgniter frameworka bāzes. Uz lokālā servera viss strādā, bet uzliekot uz publiskā bezmaksas server - 000webhost.com - parāda, ka ir sintakses kļūda:

 

Parse error: syntax error, unexpected T_EXIT in /home/a1211648/public_html/application/helpers/fancyupload_helper.php on line 1

 

Un tā faila pirmā rinda ir php atverošais tags.

 

Ceru uz palīdzību.

Link to comment
Share on other sites

Iepostē visu to fancy.php kodu.

 

http://paste.php.lv/0d389251cef78339cb3323e2aebb0bf9?lang=php

 

 

PHP ir tāda dīvaina lieta ka 99,9% jāskatās nākamā koda rindiņa ...

 

 

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 

man liekas, ka kļūdas tur īsti nav.

 

 

Kura PHP versija ir uz servera? Un kura ir minimālā versija CI freimam?

 

CI minimālā PHP versija ir 4.3.2

Servera PHP versija ir 5.2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...