[PHP] Open-source browser-based POS system?

2003-09-02 Thread John Almberg
Anyone know of an open source, browser-based Point of Sale system?

-- John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Open-source browser-based POS system?

2003-09-02 Thread John Almberg
Hi Chris,

Yes, I found a number of systems on Source Forge. I should have made my 
question more specific . . . Anyone have any experience with an open 
source, browser-based POS system, and can recommend one or two for a 
collectable/hobby store with a large (20,000+) inventory of different 
items?

-- John

Chris Sherwood wrote:

a quick search on google revealed a few things

http://www.google.ca/search?q=browser+based+POSie=UTF-8oe=UTF-8hl=enmeta=

try that and see if any of those meet your requirements

Chris
- Original Message - 
From: John Almberg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 9:01 AM
Subject: [PHP] Open-source browser-based POS system?

 

Anyone know of an open source, browser-based Point of Sale system?

-- John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
   

 

--
Identry, LLC
Northport, NY 11768
Ph: 631.754.8440
Fx: 631.980.4262
Em: [EMAIL PROTECTED]
Member: Long Island Web Developers Guild


   Visit us at: www.identry.com
   Take control of your Web site



[PHP] Installing PHP and MySQL on Linux machine

2003-03-05 Thread John Almberg
I've got both MySQL and PHP working independantly on my Linux web 
server. That is, I can view PHP web pages via Apache and I can access 
MySQL from the command line, set up databases, tables, etc.

What I can't do is get them working together.

When trying to make a connection in the usual way:

$dbh = mysql_connect( $HOSTNAME, $USER, $PASSWORD ) or die (couldn't 
connect to database\n);

I get the following error:

Fatal error: Call to undefined function: mysql_connect() in 
/var/www/html/bt/index.php on line 13

I have poured over the documents, but it looks like mysql support has 
been compiled in, so I'm not sure what's going on.

You can view my configuration (via phpinfo printout) at:

http://www.beyondtranslations.com/

Any help/advice much appreciated.

Brgds: John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Problems with sessions

2003-02-07 Thread John Almberg
I've got an odd problem . . . I've got a PHP site (PHP 4.2.2, Apache 
1.3.26, Linux box) that uses sessions to track a user_id for each user. 
I use the user_id to grant various rights.

This works like a dream 95% of the time. But every once in awhile, the 
session information gets lost. It's so rare that I have only seen it 
happen once or twice, but my customer, who works on the site all day, 
sees it 4 or 5 times a day.

I added code to send me an email whenever it happens, with some 
debugging info. The session parameter (called $user_id), just ends up 
blank (actually, unset) at random times. I've tried to see some pattern, 
but there doesn't seem to be one. It can happen on any page at any time. 
 It doesn't seem to correlate to times of heavy usage, either.

I'm really at a loss for this. Any ideas would be mucho appreciated!


-- John


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] File upload via HTML forms

2001-04-02 Thread John Almberg

Howdy,

You should be able to read this file using the file system functions. The
PHP process (if it is set up properly) should have read access to this
directory. The problem you will have is *writing* it to your own directory,
as the PHP process probably *doesn't* have write access to your directory
structure. The way I got around this was to read the tmp file with the file
system, and write it using FTP (which can log in to your area.)

Hope this  helps.

John



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] This PHP list

2001-03-29 Thread John Almberg

True, but you have to remember that a lot of 'newbies' are actually superb
graphic designers with a lot of experience developing static websites. They
are grappling with new demands from their customers for more dynamic
features. If they don't quite grasp the difficulty of what they are trying
to do, you can't blame them for trying to meet their customer's needs.

I know this, because I am working with a number of web designers who have a
hell of a lot more experience than I do with web sites, but they don't have
the programming background. Putting the shoe on the other foot, I could mess
with Photoshop for a hundred years and never get good at designing graphics.
So I have a lot of respect for what these guys do. Personally, I think it's
a great symbiotic relationship: programmers and graphics designers. Both
creative, but in entirely different ways.

I do agree that designers with paying gigs would do better to farm out the
programming stuff to a real programmer, but that's something that they need
to learn on their own, perhaps. Meanwhile, it doesn't hurt to answer a dumb
question or two, even if the answer has to be a respectful "you don't know
how big a question that is!"

Just my opinion.

John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Permission denied

2001-03-23 Thread John Almberg

Hi all,

I'm trying to upload a file from a client browser to my server.

On the client side, I've got:

FORM ENCTYPE="multipart/form-data" ACTION="upload.php" METHOD=POST
!-- INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000" --
Send this file: INPUT NAME="userfile" TYPE="file"
INPUT TYPE="submit" VALUE="Send File"
/FORM

On the server side, I've got:

echo ("$userfilebr");
echo ($HTTP_POST_FILES['userfile']['name'] ."br");
echo ($HTTP_POST_FILES['userfile']['type'] ."br");
echo ($HTTP_POST_FILES['userfile']['size'] ."br");
echo ($HTTP_POST_FILES['userfile']['tmp_name']  ."br");

if (move_uploaded_file($userfile,
"/home/jalmberg/public_html/qiksys/images/temp.jpg"))
print("moved file");
else
print("couldn't move file!");

When I try to use this, I get:

=
/tmp/phpa21470
test.jpg
image/pjpeg
21917
/tmp/phpa21470

Warning: Unable to create
'/home/jalmberg/public_html/qiksys/images/temp.jpg': Permission denied in
/home/jalmberg/public_html/qiksys/upload.php on line 57

Warning: Unable to move '/tmp/phpa21470' to
'/home/jalmberg/public_html/qiksys/images/temp.jpg' in
/home/jalmberg/public_html/qiksys/upload.php on line 57
couldn't move file!
==

I check the php.ini file and safe mode is turned off. I've also tried with a
text file, same result. I have permission to access the above directory . .
. the php files working this magic are located in
/home/jalmberg/public_html/qiksys.

Probably there is a simple answer to this question, but I'm out of ideas!
Any help???

Thanks in advance.

John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Permission denied

2001-03-23 Thread John Almberg

Hi Adam,

thanks for your quick repsonse. I'm just renting space on a (Linux/Apache)
server, so I don't have any control over how PHP is configured on the
machine. Perhaps there is a way for me to change my 'local' PHP
configuration? I don't know much about this aspect of PHP, obviously. I'm
just trying to ask obvious questions.

Alternatively, can my PHP application log-in, and thus obtain permission?

John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Permission denied

2001-03-23 Thread John Almberg

Adam,

Just ran phpinfo and you are correct: the Apache User/Group is "nobody".

H'. This sounds like a problem. Hope there is an answer!

- John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Permission denied

2001-03-23 Thread John Almberg

Whoopee!!!

After two days of propeller-spinning, I finally uploaded a file
successfully!!!

I had to use an FTP connection to do it, because my PHP process didn't have
permission to write files to my directory, but that's fine.

Here's the code snippet that worked the trick, with my
servername/username/password changed to protect the innocent (me!)

Thanks to Adam for putting me on the right track, vis-a-vis file
permissions.

John

=

echo ("$userfilebr");
echo ($HTTP_POST_FILES['userfile']['name'] ."br");
echo ($HTTP_POST_FILES['userfile']['type'] ."br");
echo ($HTTP_POST_FILES['userfile']['size'] ."br");
echo ($HTTP_POST_FILES['userfile']['tmp_name']  ."br");

//=
// FTP
//=
$ftp_server = "server.name.com";
$ftp_user_name = "username";
$ftp_user_pass = "password";

// open source file
if ($fd = fopen($userfile, "r") or die ("Can't open file $srcbr"))
print("opened file $userfilebr");
else
die("couldn't open src file $srcbr");

// set up basic FTP connection
$conn_id = ftp_connect("$ftp_server");

// login with username and password
$login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass");

// check connection
if ((!$conn_id) || (!$login_result))

echo "Ftp connection has failed!br";
echo "Attempted to connect to $ftp_server for user $userbr";
die;
} else {
echo "Connected to $ftp_server, for user $ftp_user_namebr";
}

if (ftp_fput($conn_id, "testfile.txt", $fd, FTP_BINARY)) {
print("ftp_fput success!!!br");
} else {
print("ftp_put failure!!!br");
}

ftp_quit($conn_id);
fclose($fd);
//


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] I need an expert to tell me what I am doing wrong

2001-03-23 Thread John Almberg

You don't say where the failure is, but I'm guessing its when you do the
mysql_query. Your INSERT statement looks a bit odd.
Try:

 $sql = "INSERT INTO orders (product,name,email)
   VALUES ($product,$name,$email)";

John



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Problems uploading Files

2001-03-22 Thread John Almberg

Hello Sebastian,

What a timely posting! I am trying to figure out how to allow a user (using
any internet-connected pc) to upload a file to my PHP-enabled server. I am
trying to use PHP and the FTP functions, but can't figure out how to address
the file on the user's machine. Any hints from anyone as to how to do this?
Or am I on the wrong track, altogether? Someone else suggested that I use an
HTML 'upload', but I can't find anything about this in my HTML
documentation.

Any help much appreciated!!!

John

 -Original Message-
 From: Renzi, Sebastian [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 22, 2001 1:18 PM
 To: PHP General List
 Subject: [PHP] Problems uploading Files


 Hello again ! , i have a script that uploads a file , when i use the
 function move_uploaded_file() an error raises ,"Permission denied ."
 ,but if i upload the same file thru an ftp client it works correctly !


 Sebastin Renzi
 Consultora  Desarrollo de Sistemas.
 CODES S.A


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]