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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 07-04-2009, 03:30 PM   #1 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
[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?
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 07-06-2009, 07:04 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 06:11 PM   #3 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
Re: Use PHP from a local folder?

Hey,

Thanks for the reply. I downloaded and installed XAMPP but I can't figure out how to use it.

I'm only using it on one computer. The POS that I found is the first one on Download.com when you search for 'PHP POS'
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 06:20 PM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 06:53 PM   #5 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
Re: Use PHP from a local folder?

Thank you for the step by step guide. But I can only get to step 5. The MySQL service starts fine but the Apache service won't seem to start.
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 07:00 PM   #6 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 07:25 PM   #7 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
Re: Use PHP from a local folder?

Ok, the SCM thing worked... do you think you could take a look at the POS and tell me why it can't connect to my database?
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 07:35 PM   #8 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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.
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 07:42 PM   #9 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
So... Try that step... Go to http://127.0.0.1/install/index.php or whatever the directory is under "htdocs" and go from there.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 08:30 PM   #10 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
Re: Use PHP from a local folder?

Yeah, I saw that too. I opened Access and created a database and saved it in 'C:\xampp\htdocs'. When I setup the form, it doesnt work.
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 08:34 PM   #11 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 08:38 PM   #12 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
Re: Use PHP from a local folder?

How do I make a database in MySQL?
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 08:41 PM   #13 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Use PHP from a local folder?

Visit the address. The system will do it for you.
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 08:45 PM   #14 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
Re: Use PHP from a local folder?

It's not doing it.
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-11-2009, 09:32 PM   #15 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Use PHP from a local folder?

... Care to elaborate? what's going wrong?/how do you know?

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-12-2009, 08:18 AM   #16 (permalink)
Troubled
 
Join Date: May 2009
Posts: 71
OS: Computer = WXP, Server = linux w/ php 5


Re: Use PHP from a local folder?

try downloading apache
calthephenom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-12-2009, 08:49 AM   #17 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-12-2009, 12:58 PM   #18 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
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.
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-12-2009, 01:00 PM   #19 (permalink)
Yup, it's me
 
Join Date: Sep 2008
Location: Utah
Posts: 164
OS: Windows 7 Ultimate

My System

Send a message via AIM to Mattman86 Send a message via MSN to Mattman86 Send a message via Yahoo to Mattman86 Send a message via Skype™ to Mattman86
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.
Mattman86 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-12-2009, 04:34 PM   #20 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 06:45 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85