![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Yup, it's me
|
[SOLVED] Use PHP from a local folder?
I have a small store and I needed a better POS program. The best one I found is a PHP web-based one. I really don't want to have to use it over an internet connection. Is there a way to use PHP from a folder on the computer?
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
Yep there is, you can install your own server on your PC... I suggest something nice and easy to use; XAMPP...
Step1) Install XAMPP Step2) Copy the PHP files into the XAMPP/htdocs folder Step3) Clone the origional database(Google is your friend) This is only useful if you're only using it on a single computer, if not then i suggest you have one internal server(set up one computer to run the server, drag the files from that server and so on). How many tills/comps do you want to use? what size store? and what sort of tasks are most regular? (e.g. is it just a selling+stock count job or are there more advanced ordering jobs, and so on)... Also which POS system was it you've found? Cheers, Jamey |
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
Hey, okay... Basics of XAMPP;
1) Go to the XAMPP Installation Folder 2) Copy the POS system's PHP/HTML/whatever files into the "htdocs" folder. (Pre-3, i suggest you back up the files in HTDocs or move them to another subfolder of the HTDocs folder) 3) Rename the homepage of the POS system to "index" (leaving the extension how it is). 4) Open up the XAMPP control panel (Start->XAMPP->XAMPP) 5) Click Start next to "Apache" and "MySQL" 6) Open your web browser, in the address bar "http://127.0.0.1/" or "http://localhost" and press enter 7) The POS system should show. If for whatever reason you have troubles sorting this out i'll give you a hand. Cheers, Jamey |
|
|
|
|
|
#6 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
apache takes longer to start.... A few things to try though:
- Is "SVC" next to apache ticked? if not, tick it, you want this to be a windows service, it makes life easier. - (If it's already ticked) Click "SCM", this will bring up windows' Services manager... In this, find the "Apache" (+sometimes you have a version no.) service, right click on that service and chose properties... The easiest way to make this work is to change the "Startup Type" dropdown to "Automatic" then click apply. Then find the "mysql" service and do the same. Once you've done that restart the computer and continue at step 6 (The services should have automatically started when windows did[a way to check this is to open the XAMPP control panel]). Give that a go, if it doesn't work then post back. Cheers, Jamey |
|
|
|
|
|
#8 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
Okay, sorry, missed a step; setting up the database. Give me a minute to have a look at the system and see what it says. I will post back ASAP.
|
|
|
|
|
|
#9 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
Hey again:
This is from the readme of the file, this is the bit i missed(emboldened): Code:
1. Unzip the Program and place the folder onto a web-server with PHP and MYSQL. 2. In a browser go to: http://Yourwebserver.com/Path To Point Of Sale/install/index.php/ YOUR DEFAULT USERNAME IS : admin YOUR DEFAULT PASSWORD IS:pointofsale 3. Fill out the information and click install 4. The tables will be created in your selected database. 5. You will be redirected to login (admin/pointofsale) 6. Add customers, brands, categories, suppliers, and items and you are ready to start selling! *** Make sure the database you choose is already created! ** Make sure you add brands, categories, and suppliers first then add items. * Make sure the settings.php file is writable Cheers, Jamey |
|
|
|
|
|
#11 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
That's because your database is controlled by mySQL not access, do as the instructions say (visit http://localhost/install/index.php, and follow the instructions). It will create the database (in your mySQL server) itself. Then you should be able to go back to the origional homepage.
Cheers, Jamey |
|
|
|
|
|
#17 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
XAMPP is a pre-packaged exe containing Apache, MySQL, PHP and Perl.
The problem right now is installing the database that the POS system needs to use. As for installing the database Mattman86; What is the file structure of your POS system under the HTDOCS folder? e.g. is it set up to be htdocs\index.php(the homepage) and htdocs\install\index.php(the install page) or is there another folder under the HTDocs folder in which the POS system resides? if there is then navigate to http://localhost/thatfolder/install/index.php and you should see a page entitled "PHP POS Install"... Fill in the details required, and click Install, you should then be greeted by a install successful message or an error (if you get the error post what it is)... Cheers, Jamey |
|
|
|
|
|
#18 (permalink) |
|
Yup, it's me
|
Re: Use PHP from a local folder?
it is set up to be htdocs\index.php(the homepage) and htdocs\install\index.php(the install page).
When I fill out the little form and tell it a database to use, it just says that there is an error connecting to the database. When I check, the database file is there. |
|
|
|
|
|
#19 (permalink) |
|
Yup, it's me
|
Re: Use PHP from a local folder?
it is set up to be htdocs\index.php(the homepage) and htdocs\install\index.php(the install page).
When I fill out the little form and tell it a database to use, it just says that there is an error connecting to the database. When I check, the database file is there. |
|
|
|
|
|
#20 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Use PHP from a local folder?
Okay, next thing to check, Go to Start-> XAMPP -> Make sure that MySQL is running, if it's not. Start it. Then try and fill in the form again.
If not then check the form is filled in correctly: Database Server: localhost Database Name: (Try a random name, if that doesn't work then use:) "phpmyadmin" (without the quotes) Database Username: root Database Password: (blank) That should tag the database onto the phpmyadmin database(an XAMPP out of the box installed database). Post back with how you get on, if this still doesn't work i'll post a method of creating the database from scratch(hopefully as easily as i can get it to). Cheers, Jamey |
|
|
|
![]() |
| Thread Tools | |
|
|