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 compla

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

Re: [PHP] HTTP compression

2001-02-04 Thread Teodor Cimpoesu
Carsten Gehling wrote: > > From: "Teodor Cimpoesu" <[EMAIL PROTECTED]> > Sent: Sunday, February 04, 2001 7:08 PM > > > a HTTP response is made of response header(s) and the response body. > > Only the body > > is compressed, and this is signaled

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 expl

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 header

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] 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 .

[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] 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 $fo

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 ($n

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 regis

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

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

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] 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) { >

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 fo

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 (h

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-ma

Re: [PHP] Zend hit (Encoder price)

2001-01-25 Thread Teodor Cimpoesu
Hi Sander! On Thu, 25 Jan 2001, Sander Pilon wrote: > > > > > Hello, > > > > What do you think about Zend position? > > http://php.weblogs.com/ > > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277 > > > > I think that if Zend wants to sell it for $6000, then they have all right >

[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 package

Re: [PHP] Re: HTTP_USER_AGENT and preg_match

2001-01-23 Thread Teodor Cimpoesu
Hi John! On Tue, 23 Jan 2001, John Hinsley wrote: > Got it in the end. It should be: > > > > > if ((preg_match("/Mozilla/i", "$agent")) && (preg_match("/Gecko/i", > "$agent"))) { > $result = "You are using Netscape 6 or a later version of Mozilla."; > > > > But the thought occurs t

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: 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

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 ser

[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] MySQL MySQL Manual PostgreSQL PostgreSQL Manual

Re: [PHP] url hide

2001-01-22 Thread Teodor Cimpoesu
Hi AJDIN! On Mon, 22 Jan 2001, AJDIN BRANDIC wrote: > OK, I don't have access to the server (except ftp). All I can use is PHP > or JavaScript. I just thought that I could use some thing that will just > hide it. Like that NoRightClick javascript script where if you try to > view the source

[PHP] Re: XML Processing Instruction ( was "

2001-01-22 Thread Teodor Cimpoesu
Brian White wrote: > > At 10:50 AM 1/19/12 +0200, Teodor Cimpoesu wrote: > > >I was refering to whole story of using ` > Part of the problems is that multiple different applications > can use PI's, so they need to be able to tell which ones are > their'

Re: [PHP]

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 `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

Re: [PHP]

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 y

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] fetch html-page without file()

2001-01-12 Thread Teodor Cimpoesu
Hi mailing_list! On Fri, 12 Jan 2001, [EMAIL PROTECTED] wrote: > Hi! > > Something strange: > A script, that uses file("http://xyz.com") does work on one sever! > Then I copied it to another server (physically more far away from the > server from which I fetch the html-page with file()) - same P

Re: [PHP]

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 PR

Re: [PHP] Shopping Cart Schema - Sessions

2001-01-12 Thread Teodor Cimpoesu
Hi Alexander! On Thu, 11 Jan 2001, Alexander Wagner wrote: > Paul K Egell-Johnsen wrote: > > When in doubt, follow the stream... Check out this, Amazon uses cookies, > > Amazon does a lot of business. Do you really feel that Amazon misses out > > on a lot of customers? Do you know of any large we

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? =)

Re: [PHP] Shopping Cart Schema - Sessions

2001-01-10 Thread Teodor Cimpoesu
Hi JB! On Wed, 10 Jan 2001, JB wrote: > ok, this all looks good, but then I again I am having a problem figuring out > that code you wrote below. the code i'm attempting to write isn't going to > be complex. there's maybe 10 or 15 items going to be sold. it would be very > rare if the customer ev

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] PHP vs. qmail

2001-01-10 Thread Teodor Cimpoesu
Hi Nicklas! On Tue, 09 Jan 2001, Nicklas af Ekenstam wrote: > I have a server running qmail and php on which I'm trying to do some php > processing of incoming e-mail. > I have a virtual domain set up like this: > > '.qmail-virtualdomain.com-default' > which contains the following: > '|/usr/loc