[PHP] Re: shopping cart, inventory control, point of sale system
You may find something in www.oscommerce.com Daniel Negron/Kbe wrote: > can anyone point me in the direction of a good system that will cover all 3 > of these points (Shopping Cart, Inventory Control, and Point of Sale) ? > > > Thank you, > > **DAN** > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Register Globals Off in .htacces
Hi to Everyone, I just want to know if there is a way that i can have register_globals On in my php.ini file but for some application i can turn that Off perhaps with a .htacces file. Thx for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Register Globals Off in .htacces
Thx for your reply It is working. I also found from php.net that it's possible to set register_globals to "off" on a site-by-site basis via Apache, thus overriding the "global" setting of register_globals in php.ini: In httpd.conf: ServerName localhost DocumentRoot /var/www/html/mysite php_value register_globals 0 (or 1 for "on") That way, sites with old code can have register globals turned on, but for all new developments it will be disabled. Jon Haworth wrote: Hi, I just want to know if there is a way that i can have register_globals On in my php.ini file but for some application i can turn that Off perhaps with a .htacces file. In your .htaccess: php_flag register_globals on or php_flag register_globals off Manual pages at http://www.php.net/manual/en/configuration.changes.php Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Yet another question
Yes if you include the file include ("file"); then you can refer to any of the variables the file contains Trasca Ion-Catalin wrote: It's posible to call a variable from another file? -- Trasca Ion-Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Display character 'x' times
Hello to everybody, I just want to display a character like D x times like DDD where x is a $variable i get from the database i cannot make it work like it is on perl (i don't even know if it is working the same way) and i can't find a reference in the manual on php.net, maybe it's a silly question but i am stuck at this moment. Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Display character 'x' times - Solved
Great, That's exactly what i was looking for, thx to the other guys as well and sorry for not mentioning the whole problem which was that i wanted to pass the value to a variable. Steel wrote: Hi Tjoumaidis, Tuesday, November 19, 2002, 1:30:39 PM, I've got: TT> Hello to everybody, TT> I just want to display a character like D x times like DDD where x is a TT> $variable i get from the database i cannot make it work like it is on TT> perl (i don't even know if it is working the same way) and i can't find TT> a reference in the manual on php.net, maybe it's a silly question but i TT> am stuck at this moment. TT> Thx in advance. $str=str_repeat('D',$mult); This is the equivalent of Perl's "x" (repetition) operator, for eg. str_repeat("blah", 8) in PHP does the same thing as "blah" x 8 in Perl. Answer from PHP Manual. Comment by: [EMAIL PROTECTED] (25-Oct-2001 11:16) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php