w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
PHP POS (Point Of Sale) not working under GoDaddy shared hosting

I will not expand on the GoDaddy webhosting "anomalies" here but this is what worked for me.

Lets say you put all your files into the folder /pointofsale

In the /pointofsale/application/config/config.php adjust the code as follows:

$config['base_url'] = 'http://mystore.com/pointofsale/';

$config['index_page'] = '';  // yes, keep it blank!

$config['uri_protocol'] = 'AUTO';

$config['allow_get_array']  = TRUE;
$config['enable_query_strings'] = FALSE;

$config['encryption_key'] =
'some_characters_to_sever_as_encryption_string';

In the /pointofsale/index.php file, keep the following setting:

$system_path = 'system';
$application_folder = 'application';

If the Ajax popup windows for adding/editting customers, items, users etc is giving you a hard time (or shows up blank) edit the file system/core/Input.php and try to comment out the LINE 731:

//exit('Disallowed Key Characters.');

Lastly, into your website document root (not in the /point of sale folder) add a .htaccess file with the following code:

RewriteEngine On
RewriteBase /pointofsale
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

I hope this helps someone, since the PHP POS seems to be very user friendly. Also, since my reputation number did not allow for adding more tags to this post than just PHP, feel fee to re-tag the post.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.