Re: [PHP] Opensource webshop

2005-09-22 Thread Vince LaMonica
On Fri, 23 Sep 2005, Jasper Bryant-Greene wrote: } > > There are probably dozens of free open source PHP carts already out } > > there. Not to mention the ones written in Perl. } > > } > Are there many in just PHP to? } } As he said, there are probably dozens. Four of the PHP-based ones are lis

Re: [PHP] Re: splitting CSV rows into multiple SQL inserts?

2005-06-22 Thread Vince LaMonica
uld be an array of arrays, key would be ordernumber } again, then the sub array would be the line number. You can set to 1, then } increment until you detect a new ordernumber The contents of the detail sub } array contains $item_num, $quan, $desc. Loop through this this array to } produce your d

Re: [PHP] Re: splitting CSV rows into multiple SQL inserts?

2005-06-22 Thread Vince LaMonica
On Wed, 22 Jun 2005, Sergey wrote: } You can insert file data in DB first, using LOAD DATA INTO FILE, after it'll } be easy to manipulate this DB table with a help of php-script. Actually, I can't, as the CSV contains fields for two different tables. I may have explained it better here: I have

[PHP] splitting CSV rows into multiple SQL inserts?

2005-06-21 Thread Vince LaMonica
I sent this note off to the php-db list last night, but the more I thought about it, the more I figured this was a general looping question rather than a mysql-specific one. I am attempting to take a CSV file that has order header and line item data on each line and split it into mulitple inse

[PHP] readfile() and 401 pages

2004-01-16 Thread Vince LaMonica
a PHP error stating that HTTP/1.1 Authorization Required in line 2 of the above page. Does readfile() not pass along 401s to the browser? I know I can do an alias in apache's setup, which is what I plan on doing if readfile() can't be made to work. But I am curious if this is a limitation or de

[PHP] using fwrite to create PHP files

2003-09-05 Thread Vince LaMonica
Hi all, I wish to use fwrite() to create a small PHP file. So far, when I attempt to do this, php parses the contents of the file that fwrite needs to create. Eg, I have this: $new_id = mysql_insert_id(); // create brand new file $new_file = fopen("/var/www/html/$sitename/$submitted_url", "w"); $

Re: [PHP] problem matching multiple times

2003-07-18 Thread Vince LaMonica
before you } save it, parse it for all the special tags you have and keep track of it } somewhere. That way when you output it (in this script) you only need } to apply the necessary pattern/replacements before outputing it to the } browser. Good idea! Thanks very much! Thanks again for your h

Re: [PHP] Using href as a submit for a form

2003-07-18 Thread Vince LaMonica
that the values submitted by the user are valid. register_globals being off is a step, but there are a lot of error correction functions you should run before submitting form data into a db. HTH, /vjl/ -- Vince LaMonica UC Irvine, School of Social Ecology W3 Developer

Re: [PHP] problem matching multiple times

2003-07-18 Thread Vince LaMonica
On Fri, 18 Jul 2003, Curt Zirzow wrote: } btw, you know you can do this in one step: } } $message = preg_replace("/\[(i|b)\](.*?)\[\/(i|b)\]/si", "<\$1>\$2", $message); Doh! Thanks for the tip...that'll save some lines of code :) } > $patterns[3] = "#\#\#\#Image(.*?)\#\#\##si"; } > // this mat

[PHP] problem matching multiple times

2003-07-17 Thread Vince LaMonica
it makes. I'm sure I need a while loop in there somewhere, but I can not figure out where. I know the code is looping through the other substitutions ok, since all text that should be bold is, and all links that need to be made into valid URIs are. The db query does run fine if running

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Vince LaMonica
'filename']['type'] varible [note that "filename" is the name passed from your form - "type" is the actual string you need to use to access the mimetype. Read http://us.php.net/manual/en/features.file-upload.php for more info on this. HTH, /vjl/ -- Vin

[PHP] HTTP_POST_FILES and Mozilla 0.9.9

2002-04-17 Thread Vince LaMonica
x27;tmp_name' is assigned properly]. Is this a browser/gecko bug, or a PHP bug? TIA, /vjl/ [who noticed bugs #11198, 10602, 16426 and 13863, but all are closed] -- Vince LaMonica UC Irvine, School of Social Ecology W3 Developer <*> 116 Social Ecology I,