Welcome Guest, Not a member yet? Register   Sign In
upload on server
#1

Hello,
on my server (localhost) the site works great. when i upload it to an external server it reports an error


Code:
Error
Class 'App\libraries\AuthLibrary' not found

APPPATH/Controllers/Auth.php at line 29

SimpleAuth application
Reply
#2

(02-27-2021, 03:31 AM)vojkoz Wrote: Hello,
on my server (localhost) the site works great. when i upload it to an external server it reports an error


Code:
Error
Class 'App\libraries\AuthLibrary' not found

APPPATH/Controllers/Auth.php at line 29

SimpleAuth application

AuthLibrary - look at the case of letters.. The point is that it doesn't matter under win. You need to bring paths, files to the same form. 
Reply
#3

PHP Code:
use App\libraries\AuthLibrary;

// should be this one see the lowercase l should be uppercase
use App\Libraries\AuthLibrary
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

(This post was last modified: 02-28-2021, 05:26 AM by vojkoz.)

(02-27-2021, 01:49 PM)InsiteFX Wrote:
PHP Code:
use App\libraries\AuthLibrary;

// should be this one see the lowercase l should be uppercase
use App\Libraries\AuthLibrary
this work tnx..

when I write domain.com/user in the browser does not work, domain.com/User works normally

both work on localhost.
Reply
#5

The character case depends on the Computer Operating System Windows Does not care about case.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

(This post was last modified: 02-28-2021, 12:13 PM by vojkoz.)

some sites are working.
domain.com/Register or domain.com/register
it is better if I always use domain.com/Register?
Reply
#7

You should always use the correct charter case of the filenames.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB