> > 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
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
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
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
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
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.
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 .
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
"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
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
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
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
[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
"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
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) {
>
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
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
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
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
>
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
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
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
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
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
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
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
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'
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
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
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 "
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
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
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
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? =)
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
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 .
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
37 matches
Mail list logo