Re: [PHP] Shopping Cart Schema - Sessions

2001-01-10 Thread Teodor Cimpoesu
Hi Jason! On Wed, 10 Jan 2001, Jason Beebe wrote: Hey, I'm looking for little information from those who have coded their own shopping cart apps. what would you say the best way to setup a cart would be? more specificly, the method for adding items to the cart. eww, lost wrapping ...

Re: [PHP] Cannot send session cache limiter - headers already sent Cannot send session cookie - headers already sent by

2001-01-11 Thread Teodor Cimpoesu
Hi JB! On Wed, 10 Jan 2001, JB wrote: actually.. still give me the same error after i fixed that. new code as follows along with the error: if (!session_is_registered('cart')) { $cart = array(); session_register('cart'); } else { session_start(); } any other ideas? =) be sure

Re: [PHP] ?= was born when?

2001-01-12 Thread Teodor Cimpoesu
Hi Toby! On Thu, 11 Jan 2001, Toby Butzon wrote: Manual suggests 3.0.3, but I can't find any proof of it in the changelogs... it is not in 3.0.12 for sure. So probably from later (I guess 3.0.15). -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Teodor Cimpoesu
Hi Philip! On Wed, 17 Jan 2001, Philip Olson wrote: Short open tags won't work with xml. Therefore they won't work with xhtml. They conflict with where the Web is going. Aha! Yet another reason not to use ?= :-) you can always use % and %= instead. No XML problems, and you may

Re: [PHP] Session, register_globals, $HTTP_SESSION_VARS???

2001-01-17 Thread Teodor Cimpoesu
Hi Andrew! On Wed, 17 Jan 2001, Andrew Sitnikov wrote: Hello , sess.php ? $var_name = 'TEST_VAR'; session_register($var_name); if (isset($HTTP_SESSION_VARS[$var_name])){ $HTTP_SESSION_VARS[$var_name] ++; }else{ $HTTP_SESSION_VARS[$var_name] = 0; } echo

Re: [PHP] ? PHP vs. ?

2001-01-19 Thread Teodor Cimpoesu
Hi Alex! On Thu, 18 Jan 2001, Alex Black wrote: xml problems? _what_ xml problems? I was refering to whole story of using `?' in xml docs. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] XML dillema

2001-01-22 Thread Teodor Cimpoesu
Hey, I've been playing w/ DOM functions (not very documented, but cool :) and had the following: [categories.xml] ?xml version="1.0"? catalog category id="db" name="Databases" topic nameMySQL/name descriptionMySQL Manual/description

Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Teodor Cimpoesu
Hi Todd! On Mon, 22 Jan 2001, Todd Cary wrote: Rasmus - I am running Apache on my notebook so that I can do some development while I am "on-the-road". My code needs to obtain the URL and SERVER and I do this with $HTTP_SERVER_VARS. However, under Apache (I use IIS on the Win 2K server

[PHP] Re: XML dillema

2001-01-22 Thread Teodor Cimpoesu
Hi Brinkman,! On Mon, 22 Jan 2001, Brinkman, Theodore wrote: Maybe I'm missing something, but I'm thinking it's giving the correct output. The 'TEXT' that is showing up just seems to be some sort of indication as to what type of data it found. ELEMENT catalog //the

Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Teodor Cimpoesu
Hi Todd! On Mon, 22 Jan 2001, Todd Cary wrote: Teo - That works great for Apache but not for my ISAPI installation that is using IIS on a Win 2K platform. Is there a way to tell if I am using an ISAPI server or not? Otherwise I will put that in my parameter file. Yap, I think it's

[PHP] Re: [PHP-DEV] vchkpw qmail

2001-01-23 Thread Teodor Cimpoesu
Hi php4! On Tue, 23 Jan 2001, [EMAIL PROTECTED] wrote: Is anyone doing anything with PHP and vchkpw? There isn't much about it in the archives, but I'd hate to wast a bunch of time and find out there is already something in progress. I just built a mail server using these packages, and

Re: [PHP] Modulus

2001-01-26 Thread Teodor Cimpoesu
Hi Mike! On Thu, 25 Jan 2001, Mike P wrote: I know i'm a liitle slow but why does 2%4 = 2 and not 0 or 1 cause 4*0+2=2 thanks Mike [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] header problems

2001-01-26 Thread Teodor Cimpoesu
Kurth Bemis wrote: when i put this header('location: $url'); i get this http://domain.com/$url what the hell am i doing wrong? erm, header ("Location: $url"); [double quotes, so PHP will consider your dollars, yens or whatever] --teodor -- PHP General Mailing List

Re: [PHP] PEAR?

2001-01-30 Thread Teodor Cimpoesu
Jonathan Sharp wrote: I came across http://pear.php.net/ So what is this? I found this in the PHP Developers Cookbook by SAMS...Right now it only has a few documentation and coding standards...are there more plans for this? It comes (and installs by default) in every PHP distribution for

Re: [PHP] Variable Problem when UPGRADING...

2001-01-30 Thread Teodor Cimpoesu
James Smith wrote: Alright, when i was programming with PHP3, I would use if statements like this: if(!$submit) { // display form } else { // display signup complete } to make multiple pages. Or I would do this: if($action == "signup") { if(!$submit) { //display

Re: [PHP] Cookie with Netscape

2001-01-30 Thread Teodor Cimpoesu
"Eugene Yi (InfoSpace Inc)" wrote: Thank you for your feedback! I tried it but it didn't make a difference. I printed the var right after the set and it returns null. setcookie("cbcookie1",$domain,0,"/","mydomain.com"); $domain = $HTTP_COOKIE_VARS["cbcookie1"];

Re: [PHP] strings

2001-01-30 Thread Teodor Cimpoesu
[EMAIL PROTECTED] wrote: How can i make http://www.something.com/blah/blah.zip into blah/blah.zip http://www.somethingcom is a constant.. always the same thing how can i cut it out? what comes to my mind right now is str_replace ('http://www.../','',$url) where $url is the

Re: [PHP] HowTo: IBM DB2 w/PHP

2001-01-30 Thread Teodor Cimpoesu
Hi Karl! On Tue, 30 Jan 2001, Karl J. Stubsjoen wrote: Hello, We have succesfully installed the IBM DB2 RDMS on our Linux box and have successfully made a connection to our AS400. All through command line though. I am new to PHP, and am wondering: How do I instantiate the IBM DB2 in

Re: [PHP] session question

2001-01-30 Thread Teodor Cimpoesu
Hi Mark! On Wed, 31 Jan 2001, Mark Green wrote: How about this: session_start(); session_register($funky_session_var); $funky_session_var ++; print $funky_session_var; the order doesn't matter (as it did in PHPLib sessions). If it doesn't work I guess it's because you have

Re: [PHP] [Q] Domxml: unlink() method?

2001-02-01 Thread Teodor Cimpoesu
Peter Sabaini wrote: hello, i am rather desperately trying to figure out how to delete a node object from the DOM. say i have a node $node by manually traversing the DOM tree or by an xpath_eval() function call. i can access the children ($node-children()) or the parent

Re: [PHP] passing arrays of objects

2001-02-01 Thread Teodor Cimpoesu
"Conover, Ryan" wrote: I was wondering if I can pass an array that has serialized objects to next page via url encoding $foo //array with serialized objects in it with the following encoding something/something/foobar.php?foo=echo($foo) and be able too unserialize $foo on the

[PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Teodor Cimpoesu
What's the difference between these two functions? from the manual I couldn't figure any: get_cfg_var -- Get the value of a PHP configuration option. ini_get -- Get the value of a configuration option is ini_get just an alias to get_cfg_var() or vice versa somehow? dunno :) TIA -- teodor

Re: [PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Teodor Cimpoesu
Hi Zeev! On Fri, 02 Feb 2001, Zeev Suraski wrote: get_cfg_var() is an old PHP 3.0 era function, that returns the value for a directive in the php.ini file. This value may be valid or invalid, depending on whether it was overwritten by other configuration methods (e.g., httpd.conf or

Re: [PHP] try - catch ?

2001-02-03 Thread Teodor Cimpoesu
Alain Fontaine wrote: Hi, Are there any plans on implementing something like Exception handling into future versions of PHP? That would be great. I do remember Zeev saying it is considered for future implementation. I don't remember if it was on this list or php-dev one, though. --

Re: [PHP] HTTP compression

2001-02-04 Thread Teodor Cimpoesu
Alain Fontaine wrote: Sean, Thanks, I see. How about headers ? Do they need to be compressed, too; in other words, do headers "belong" to the output ? a HTTP response is made of response header(s) and the response body. Only the body is compressed, and this is signaled in the headers so

Re: [PHP] Newbie:Cannot send session cookie...

2001-02-04 Thread Teodor Cimpoesu
james wrote: 1. Cannot send session cookie - headers already sent by (output started at c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program files/apache group/apache/htdocs/index.php4 on line 11 What does it mean? Any hints? the error message is quite explicit.

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Teodor Cimpoesu
Lux wrote: Where do I make a formal request for a feature? In Perl or Ruby, I could have said: foo ({ 'var1' = 'value', 'var2' = 'value'}); and it is so much more elegant than having to say: $hash = array ( 'var1' = 'value', 'var2' = 'value' ); foo ($hash); elegance

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Teodor Cimpoesu
foo ($hash = array('var1'='value', 'var2'='value')); should work. You don't need the $hash in that function call unless you need to use it later on in your main program, so you can just say: foo (array('var1'='value', 'var2'='value')); that won't work (Lux's complaint) when