Re: [PHP] in_array breaks down for 0 as value

2008-11-19 Thread Lars Torben Wilson
2008/11/19 Yashesh Bhatia <[EMAIL PROTECTED]>:
> Hi.
>
>  I wanted to use in_array to verify the results of a form submission
> for a checkbox and found an interesting
> behaviour.
>
> $ php -v
> PHP 5.2.5 (cli) (built: Jan 12 2008 14:54:37)
> $
>
> $ cat in_array2.php
>  $node_review_types = array(
>   'page'   => 'page',
>   'story'  => 'story',
>   'nodereview' => 'abc',
>   );
>
> if (in_array('page', $node_review_types)) {
>  print "page found in node_review_types\n";
>  }
> if (in_array('nodereview', $node_review_types)) {
>  print "nodereview found in node_review_types\n";
>  }
>
> ?>
> $ php in_array2.php
> page found in node_review_types
> $
>
> This  works fine. but if i change the value of the key 'nodereview' to
> 0 it breaks down.
>
> $ diff in_array2.php in_array3.php
> 6c6
> <'nodereview' => 'abc',
> ---
>>'nodereview' => 0,
> $
>
> $ php in_array3.php
> page found in node_review_types
> nodereview found in node_review_types
> $
>
> Any reason why in_array is returning TRUE when one has a 0 value on the array 
> ?
>
> Thanks.

Hi Yasheed,

It looks like you've found the reason for the existence of the
optional third argument to in_array(): 'strict'. In your second
example (in_array3.php), what happens is that the value of
$node_review_types['nodereview'] is 0 (an integer), so it is compared
against the integer value of the first argument to in_array(), which
is also 0 (in PHP, the integer value of a string with no leading
numerals is 0). In other words, in_array() first looks at the first
element of $node_review_types and finds that it is a string, so it
compares that value as a string against the string value of its first
argument ('nodereview'). Same goes for the second element of
$node_review_types. However, when it comes time to check the third
element, in_array() sees that it is an integer (0) and thus compares
it against the integer value of 'nodereview' (also 0), and returns
true.

Make any sense? The problem goes away if you give a true value as the
third argument to in_array(): this tells it to check the elements of
the given array for type as well as value--i.e., it tells in_array()
to not automatically cast the value being searched for to the type of
the array element being checked.


Torben

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] in_array breaks down for 0 as value

2008-11-19 Thread Yashesh Bhatia
Hi.

  I wanted to use in_array to verify the results of a form submission
for a checkbox and found an interesting
behaviour.

$ php -v
PHP 5.2.5 (cli) (built: Jan 12 2008 14:54:37)
$

$ cat in_array2.php
 'page',
   'story'  => 'story',
   'nodereview' => 'abc',
   );

if (in_array('page', $node_review_types)) {
  print "page found in node_review_types\n";
 }
if (in_array('nodereview', $node_review_types)) {
  print "nodereview found in node_review_types\n";
 }

?>
$ php in_array2.php
page found in node_review_types
$

This  works fine. but if i change the value of the key 'nodereview' to
0 it breaks down.

$ diff in_array2.php in_array3.php
6c6
<'nodereview' => 'abc',
---
>'nodereview' => 0,
$

$ php in_array3.php
page found in node_review_types
nodereview found in node_review_types
$

Any reason why in_array is returning TRUE when one has a 0 value on the array ?

Thanks.

Yashesh

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] fread() behaviour

2008-11-19 Thread Craige Leeder

Rene Fournier wrote:
So my question is, why does fread wait if there is nothing more to 
read? Shouldn't it return immediately? (That's what I want.) And as 
for the delay, it's there so that if the incoming data is a little 
slow, it has time to catch up with fread. Thanks.


...Rene


I do believe:

No, because fread reads to EOF, which is not present. Just because there 
is no text being sent over the steam, does not mean EOF is present.


I could be wrong, but that's the general idea if I recall correctly.

- Craige

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Jim Lucas

Terion Miller wrote:

Actually it did at one point have bannersize[#] # being the numbers
1-however many were there
I've since gotten rid of that and made it a select.
and gotten rid of the implode all together because it wouldn't work in
either case and the more I read the more confused I got.
Terion



Why don't you show us a snippet of code that is the form page for this.

Let us see what you are trying to describe to us.

Even if you switched it to a  the name attribute still needs to contain the 
brackets if you expect to pass more then one  field in the same form.


--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] fread() behaviour

2008-11-19 Thread Rene Fournier
I'm trying to understand something about fread(). I'm using fread() on  
an incoming socket stream that will send, for example, 26630 characters:


while ( ($buf=fread($read[$i], 8192)) != '' ) {
$sock_data .= $buf;
usleep(1000);
echo ".";
}
echo ",";


As soon as the socket client sends the data, immediately the server  
will echo:




Then wait nearly a minute, and echo:

,

So my question is, why does fread wait if there is nothing more to  
read? Shouldn't it return immediately? (That's what I want.) And as  
for the delay, it's there so that if the incoming data is a little  
slow, it has time to catch up with fread. Thanks.


...Rene

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] while-question

2008-11-19 Thread Shawn McKenzie
bruce wrote:
> interesting points regarding college and programming..
> 
> my degrees bsee/msee covered alot more than pure programing.. as a double 
> ee/cs, the ability to articulate an issue/problem, and bring to mind a cogent 
> thought process was valuable. the ability to understand how different 
> algorithms worked, and how code actually played with the lower intracacies of 
> the processor where quite valuable. 
> 
> and no.. i'm no longer the engineer i was a time ago..
> 
> so.. interesting...
> 

They must have been case-insensitive languages, unlike English.  :-)

-Shawn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread tedd

At 7:44 PM + 11/19/08, Luke Slater wrote:


What kind of thing is under Unknown?


Well, if it was known, it wouldn't be unknown, right?

Cheers,

tedd


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-19 Thread Rene Fournier

On 19-Nov-08, at 12:52 PM, Nathan Rixham wrote:


Rene Fournier wrote:

Hi,
I have four identical command-line PHP scripts running, and each  
will frequently fetch some data from another server via  
file_get_contents(). By frequently, I mean on average, every second.
Periodically, one of the processes (command-line PHP scripts), will  
fail on file_get_contents(), with the error message:


first thing that springs to mind is some form of hardware  
limitation, quite sure it's not php - could be a firewall with flood  
protection (or even your own isp's anti malware set-up)
to combat it try binding the outgoing request to a random ip each  
time (if you have multiple ip's on the box) [context: socket ->  
bindto]


That could explain it, except that all the traffic is on the same LAN.  
There's no firewall between Server A and Servers B and C.


next up (very unlikely) but possibly outgoing port conflict where  
the previous local port is still closing whilst trying to be re- 
opened.


That's interesting. I will look into that.

to get an ideal fix though you'll want to move away from  
file_get_contents() as you're not doing things


Yes, I've also read that CURL is preferred to file_get_contents for  
reasons of performance and security. I'm going to try that too.



the most efficient way; HTTP/1.1 allows you to keep a port open and  
make multiple requests through the same socket/connection, simply  
keep the socket open and don't send a connection: close header after  
the request. (i say simply but you'll be needing to make you're own,  
or find a good, http handler that allows you to write raw requests  
and decode the raw http responses that come back)


best of luck; feel free to post your code incase anything jumps out  
as obvious.





I will let you know how it goes. Thanks for the advice!

...Rene


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Nathan Rixham

Alice Wei wrote:
Hi, 
 
  I am inquiring on this list to see if it is possible to create a script that takes multiple update statements without my having to write one "SQL" statement for each of the updates. 
 
  I have a scenario of which I create a table of some sort with some existing information using Flex, and what I am told by my client is that no matter how many records there are on the screen, the users should be able to update any up to all the entries by simply pushing a button. I use Microsoft SQL, which I think that it does allow multiple update query execution. The problem is that I might have to come up with some method to accept all the "POST" variables the user provides into the script. 
 
   Could anyone please give me some guidance on what kind of function I might use, or whether or not it is possible I can create a script that accepts as many "POST" variables as the users POST? 
 
Thanks a lot for your help.
 
Alice


_
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG


aaa I've just read that one again..

I used to work with a group of russian programmers, one day a client 
asked a question and for some functionality such as you just described, 
to which sasha (the webshop manager) said "sure thing, we'll just do 
some jiggery pockery and make it work" (in a russian accent). Then 
dmitry (one of the programmers) started to converse and discuss this 
with the client, 20 seconds later sasha slapped him, stood up and 
shouted "DMITRY, never EVER explain to a client what jiggery pockery is".


the point.. you're client wants to be able to click a button and update 
multiple rows on a form - front end wise that's simple, especially in 
flex - what happens at the back end doesn't matter, that jiggery pockery 
is your's to do with as you please, and there is no need to do all the 
updates in a single transaction when you could just as easily do an sql 
execute for each row.


just my two pennies, unless you've got a good reason to do it all in one 
or some decent performance gain by doign so, leave it out and have the 
front end functionality as per the clients requirements.


regards

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Robert Cummings
On Wed, 2008-11-19 at 19:49 +, Ashley Sheridan wrote:
> On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote:
> > I am still getting the Invalid arguement error on this implode:
> > 
> > if (isset($_POST['BannerSize'])){$BannerSize =
> > implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}
> > 
> > I have moved the ',', from the beginning to the end of the statement and
> > nothing works is there any other way to do this, basically there is a form
> > and the people entering work orders can select different sized banners they
> > need, which goes into the db as text so...argh...
> 
> As mentioned quite a few times before, you cannot change the order of
> the arguments, it will not work! There is no indicator in the PHP Manual
> page for this function either that says you can switch the orders, so
> I'm not sure why you think you can.

In PHP 5.2.6 and in PHP 4.4.9 I get the same output for the following:



I believe, that a long time ago it was added as a feature so that PHP
would detect inverted parameter order on this particular function and
output appropriately.

It is probably undocumented so as to encourage a single documented
order.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: anchor name on URL

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 1:43 PM
> To: Boyd, Todd M.
> Cc: PHP General Mailing List
> Subject: RE: [PHP] Re: anchor name on URL
> 

---8<---

> > > Don't forget Konqueror in that list ;) It's not exactly the same
> > engine
> > > after Apple forked it from KHTML, but it's quite close, and both
> > > Konqueror and Safari are said to be working a little more closely
> than
> > > before to share the work done to the rendering engines since the
> fork.
> > >
> > > I'm waiting for the day when Firefox starts using Google's V8
> > scripting
> > > engine!
> >
> > Firefox will probably go with their own improvements a la Minefield
> > (instead of V8). As for WebKit, I think you guys are
forgetting--it's
> an
> > APPLE product. Do you seriously think they're going to let Microsoft
> use
> > it in their web browser after they've hacked it to pieces and strung
> it
> > back together into some bloated, inefficient monster?
> >
> > Well... maybe if the price is right.
> >
> The Webkist engine afaik is licensed under the GPL, because of the use
> of the code from the original KHTML. I'm not sure how this fits with
M$
> proprietary plan however...

On that note... they're bringing jQuery (OSS Javascript framework) into
the ASP.NET paradigm UNALTERED! That's right--they've admitted that they
can't do better than the jQuery folks, and they're going to adopt it
AS-IS.

That made me very excited... especially since I've recently fallen in
love with jQuery, and I am forced to use ASP.NET at work (though, to the
chagrin of this list, I will admit: I like the .NET framework. A lot).

Anyway, just thought I'd put the idea out there that not every person at
Microsoft follows the "find idea, FUBAR idea, repackage idea" mindset.
:) Their ASP.NET/VS crew has actually been pretty forward-thinking as of
late.

*cough* ... but, you know... PHP rules, too, and junk.


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Bastien Koert
On Wed, Nov 19, 2008 at 2:51 PM, Ashley Sheridan
<[EMAIL PROTECTED]>wrote:

> On Wed, 2008-11-19 at 18:51 +, Alice Wei wrote:
> > Hi,
> >
> >   I am inquiring on this list to see if it is possible to create a script
> that takes multiple update statements without my having to write one "SQL"
> statement for each of the updates.
> >
> >   I have a scenario of which I create a table of some sort with some
> existing information using Flex, and what I am told by my client is that no
> matter how many records there are on the screen, the users should be able to
> update any up to all the entries by simply pushing a button. I use Microsoft
> SQL, which I think that it does allow multiple update query execution. The
> problem is that I might have to come up with some method to accept all the
> "POST" variables the user provides into the script.
> >
> >Could anyone please give me some guidance on what kind of function I
> might use, or whether or not it is possible I can create a script that
> accepts as many "POST" variables as the users POST?
> >
> > Thanks a lot for your help.
> >
> > Alice
> >
> > _
> > Check the weather nationwide with MSN Search: Try it now!
> > http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
> When I'm stuck on queries I always fall back to see how phpMyAdmin would
> treat it. Do a dummy run in there by updating a few rows of information
> at once, and then see what the SQL it produces looks like. You can
> perform multiple queries by using semicolons. Bear in mind that the
> queries are still treated as separate, so you may want to do them as a
> transaction if you need to fall back in-case of a problem.
>
>
> Ash
> www.ashleysheridan.co.uk
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
One thing to watch there is that you don't exceed the max query size limit
(which looks to be about 64K in size) for the sql string

-- 

Bastien

Cat, the other other white meat


Re: [PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
Actually it did at one point have bannersize[#] # being the numbers
1-however many were there
I've since gotten rid of that and made it a select.
and gotten rid of the implode all together because it wouldn't work in
either case and the more I read the more confused I got.
Terion

On Wed, Nov 19, 2008 at 1:59 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote:

> Ashley Sheridan wrote:
>
>> On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote:
>>
>>> I am still getting the Invalid arguement error on this implode:
>>>
>>> if (isset($_POST['BannerSize'])){$BannerSize =
>>> implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}
>>>
>>> I have moved the ',', from the beginning to the end of the statement and
>>> nothing works is there any other way to do this, basically there is a
>>> form
>>> and the people entering work orders can select different sized banners
>>> they
>>> need, which goes into the db as text so...argh...
>>>
>>
>> As mentioned quite a few times before, you cannot change the order of
>> the arguments, it will not work! There is no indicator in the PHP Manual
>> page for this function either that says you can switch the orders, so
>> I'm not sure why you think you can.
>>
>>
>> Ash
>> www.ashleysheridan.co.uk
>>
>>
> have you read the manual mate?
> "Note: implode() can, for historical reasons, accept its parameters in
> either order. For consistency with explode(), however, it may be less
> confusing to use the documented order of arguments."
>
> this one is a simple one though, his form is wrong (as stated before); html
> form should have multiple:
> 
> so that an array is passed, but it'll only have:
> 
> thus passing no array to $_POST['BannerSize'], thus implode won't work as
> neither param is an array.
>
> :p
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Invalid Arguements

2008-11-19 Thread Nathan Rixham

Ashley Sheridan wrote:

On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote:

I am still getting the Invalid arguement error on this implode:

if (isset($_POST['BannerSize'])){$BannerSize =
implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}

I have moved the ',', from the beginning to the end of the statement and
nothing works is there any other way to do this, basically there is a form
and the people entering work orders can select different sized banners they
need, which goes into the db as text so...argh...


As mentioned quite a few times before, you cannot change the order of
the arguments, it will not work! There is no indicator in the PHP Manual
page for this function either that says you can switch the orders, so
I'm not sure why you think you can.


Ash
www.ashleysheridan.co.uk



have you read the manual mate?
"Note: implode() can, for historical reasons, accept its parameters in 
either order. For consistency with explode(), however, it may be less 
confusing to use the documented order of arguments."


this one is a simple one though, his form is wrong (as stated before); 
html form should have multiple:


so that an array is passed, but it'll only have:

thus passing no array to $_POST['BannerSize'], thus implode won't work 
as neither param is an array.


:p

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Nathan Rixham

Luke Slater wrote:

On Wed, 19 Nov 2008, Ashley Sheridan wrote:


On Wed, 2008-11-19 at 09:50 -0500, tedd wrote:

Nathan Rixham wrote:

well that bubble should have popped..

from some of my sites:
Browser % visits
Firefox   88.43%
Internet Explorer 9.99%


and

At 12:25 PM + 11/19/08, Stut wrote:

Firefox is certainly gaining, as is Safari, but IE is still the
dominant player by far.


To all:

While IE may reign over the net generally, who visits your site often
depends on what you're providing -- for example:

Last week http://sperling.com (a general purpose site) had 1983
visits. The browser break down was:

Browser   Visits   %visits
Firefox   853   43.02%
IE   842   42.46%
Safari   183   9.23%
Chrome   46   2.32%
Opera   34   1.71%

Whereas last week http://xb--19g.com (a Mac specific site) had 3012
visits. The browser break down was:

Browser   Visits   %visits
Safari   2,837   94.19%
Firefox   133   42.46%
Camino   21   9.23%
Mozilla   6   0.20%
Opera   5   0.17%

In fact -- over the last two years that site has had over 49,000
visitors with only 186 using IE.

Browser   Visits   %visits
Safari   45,023   94.19%
Firefox   2,679   5.46%
Camino   893   1.82%
IE   186   0.38%%
Mozilla   134   0.27%

How cool is that?

In incidentally, the sperling.com site had an average time on site of
over 2 minutes whereas the Mac site had an average time of only 13
seconds. There are also other significant differences between the
sites.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com


Mine show a similar trend (Fx is really the more dominant of the two):

Firefox 327.84%
IE 7 25.75%
Firefox 214.07%
IE 6 13.47%
Unknown  8.98%
Google Chrome 0  5.09%
Mozilla 1.8  2.1%
Opera 9.51.2%
iPhone 0 0.6%
Snap 0   0.3%
Firefox 1.5  0.3%
Safari 3.1   0.3%


Ash
www.ashleysheridan.co.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




What kind of thing is under Unknown?


normally bot's, scrapers, forged headers, php/perl/language connections 
etc etc


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Ashley Sheridan
On Wed, 2008-11-19 at 19:44 +, Luke Slater wrote:
> On Wed, 19 Nov 2008, Ashley Sheridan wrote:
> 
> > On Wed, 2008-11-19 at 09:50 -0500, tedd wrote:
> >> Nathan Rixham wrote:
> >>> well that bubble should have popped..
> >>>
> >>> from some of my sites:
> >>> Browser % visits
> >>> Firefox   88.43%
> >>> Internet Explorer 9.99%
> >>
> >> and
> >>
> >> At 12:25 PM + 11/19/08, Stut wrote:
> >>> Firefox is certainly gaining, as is Safari, but IE is still the
> >>> dominant player by far.
> >>
> >> To all:
> >>
> >> While IE may reign over the net generally, who visits your site often
> >> depends on what you're providing -- for example:
> >>
> >> Last week http://sperling.com (a general purpose site) had 1983
> >> visits. The browser break down was:
> >>
> >> Browser   Visits   %visits
> >> Firefox   853   43.02%
> >> IE   842   42.46%
> >> Safari   183   9.23%
> >> Chrome   46   2.32%
> >> Opera   34   1.71%
> >>
> >> Whereas last week http://xb--19g.com (a Mac specific site) had 3012
> >> visits. The browser break down was:
> >>
> >> Browser   Visits   %visits
> >> Safari   2,837   94.19%
> >> Firefox   133   42.46%
> >> Camino   21   9.23%
> >> Mozilla   6   0.20%
> >> Opera   5   0.17%
> >>
> >> In fact -- over the last two years that site has had over 49,000
> >> visitors with only 186 using IE.
> >>
> >> Browser   Visits   %visits
> >> Safari   45,023   94.19%
> >> Firefox   2,679   5.46%
> >> Camino   893   1.82%
> >> IE   186   0.38%%
> >> Mozilla   134   0.27%
> >>
> >> How cool is that?
> >>
> >> In incidentally, the sperling.com site had an average time on site of
> >> over 2 minutes whereas the Mac site had an average time of only 13
> >> seconds. There are also other significant differences between the
> >> sites.
> >>
> >> Cheers,
> >>
> >> tedd
> >>
> >> --
> >> ---
> >> http://sperling.com  http://ancientstones.com  http://earthstones.com
> >>
> > Mine show a similar trend (Fx is really the more dominant of the two):
> >
> > Firefox 327.84%
> > IE 7 25.75%
> > Firefox 214.07%
> > IE 6 13.47%
> > Unknown  8.98%
> > Google Chrome 0  5.09%
> > Mozilla 1.8  2.1%
> > Opera 9.51.2%
> > iPhone 0 0.6%
> > Snap 0   0.3%
> > Firefox 1.5  0.3%
> > Safari 3.1   0.3%
> >
> >
> > Ash
> > www.ashleysheridan.co.uk
> >
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> What kind of thing is under Unknown?
> 
Well, it's unknown isn't it, how do I know? ;)

Actually, they are Mozilla versions, but I haven't updated my
browscap.ini in a while, so it's not correctly recognising the user
agent. I'll have to update them later, good job I was recording the
whole string!


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-19 Thread Nathan Rixham

Rene Fournier wrote:

Hi,

I have four identical command-line PHP scripts running, and each will 
frequently fetch some data from another server via file_get_contents(). 
By frequently, I mean on average, every second.


Periodically, one of the processes (command-line PHP scripts), will fail 
on file_get_contents(), with the error message:


PHP Warning: file_get_contents(http://.../): failed to open stream: 
HTTP request failed!


Sometimes it's a single failure, other times, it fails repeatedly for 
30-60 seconds, then starts working again. Strange, no?


At first, I thought maybe I've maxed out the server in question, but I'm 
not. This problem happens on both servers that the scripts fetch data 
from. And more significantly, while one process may fail at 
file_get_contents(), the other processes (running identical code) on the 
same box continue to execute the function (against the same servers) 
without incident.


My question is, is there some resource in Mac OS X Server 10.4 (or PHP 
5.2.4) that would limit a continuously running PHP script from executing 
file_get_contents()? And to be clear, the failure doesn't kill the 
script, and after the failure, it will start working again.


...Rene


first thing that springs to mind is some form of hardware limitation, 
quite sure it's not php - could be a firewall with flood protection (or 
even your own isp's anti malware set-up)
to combat it try binding the outgoing request to a random ip each time 
(if you have multiple ip's on the box) [context: socket -> bindto]


next up (very unlikely) but possibly outgoing port conflict where the 
previous local port is still closing whilst trying to be re-opened.


to get an ideal fix though you'll want to move away from 
file_get_contents() as you're not doing things the most efficient way; 
HTTP/1.1 allows you to keep a port open and make multiple requests 
through the same socket/connection, simply keep the socket open and 
don't send a connection: close header after the request. (i say simply 
but you'll be needing to make you're own, or find a good, http handler 
that allows you to write raw requests and decode the raw http responses 
that come back)


best of luck; feel free to post your code incase anything jumps out as 
obvious.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Ashley Sheridan
On Wed, 2008-11-19 at 18:51 +, Alice Wei wrote:
> Hi, 
>  
>   I am inquiring on this list to see if it is possible to create a script 
> that takes multiple update statements without my having to write one "SQL" 
> statement for each of the updates. 
>  
>   I have a scenario of which I create a table of some sort with some existing 
> information using Flex, and what I am told by my client is that no matter how 
> many records there are on the screen, the users should be able to update any 
> up to all the entries by simply pushing a button. I use Microsoft SQL, which 
> I think that it does allow multiple update query execution. The problem is 
> that I might have to come up with some method to accept all the "POST" 
> variables the user provides into the script. 
>  
>Could anyone please give me some guidance on what kind of function I might 
> use, or whether or not it is possible I can create a script that accepts as 
> many "POST" variables as the users POST? 
>  
> Thanks a lot for your help.
>  
> Alice
> 
> _
> Check the weather nationwide with MSN Search: Try it now!
> http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
When I'm stuck on queries I always fall back to see how phpMyAdmin would
treat it. Do a dummy run in there by updating a few rows of information
at once, and then see what the SQL it produces looks like. You can
perform multiple queries by using semicolons. Bear in mind that the
queries are still treated as separate, so you may want to do them as a
transaction if you need to fall back in-case of a problem.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Ashley Sheridan
On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote:
> I am still getting the Invalid arguement error on this implode:
> 
> if (isset($_POST['BannerSize'])){$BannerSize =
> implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}
> 
> I have moved the ',', from the beginning to the end of the statement and
> nothing works is there any other way to do this, basically there is a form
> and the people entering work orders can select different sized banners they
> need, which goes into the db as text so...argh...

As mentioned quite a few times before, you cannot change the order of
the arguments, it will not work! There is no indicator in the PHP Manual
page for this function either that says you can switch the orders, so
I'm not sure why you think you can.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Luke Slater

On Wed, 19 Nov 2008, Ashley Sheridan wrote:


On Wed, 2008-11-19 at 09:50 -0500, tedd wrote:

Nathan Rixham wrote:

well that bubble should have popped..

from some of my sites:
Browser % visits
Firefox   88.43%
Internet Explorer 9.99%


and

At 12:25 PM + 11/19/08, Stut wrote:

Firefox is certainly gaining, as is Safari, but IE is still the
dominant player by far.


To all:

While IE may reign over the net generally, who visits your site often
depends on what you're providing -- for example:

Last week http://sperling.com (a general purpose site) had 1983
visits. The browser break down was:

Browser   Visits   %visits
Firefox   853   43.02%
IE   842   42.46%
Safari   183   9.23%
Chrome   46   2.32%
Opera   34   1.71%

Whereas last week http://xb--19g.com (a Mac specific site) had 3012
visits. The browser break down was:

Browser   Visits   %visits
Safari   2,837   94.19%
Firefox   133   42.46%
Camino   21   9.23%
Mozilla   6   0.20%
Opera   5   0.17%

In fact -- over the last two years that site has had over 49,000
visitors with only 186 using IE.

Browser   Visits   %visits
Safari   45,023   94.19%
Firefox   2,679   5.46%
Camino   893   1.82%
IE   186   0.38%%
Mozilla   134   0.27%

How cool is that?

In incidentally, the sperling.com site had an average time on site of
over 2 minutes whereas the Mac site had an average time of only 13
seconds. There are also other significant differences between the
sites.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com


Mine show a similar trend (Fx is really the more dominant of the two):

Firefox 327.84%
IE 7 25.75%
Firefox 214.07%
IE 6 13.47%
Unknown  8.98%
Google Chrome 0  5.09%
Mozilla 1.8  2.1%
Opera 9.51.2%
iPhone 0 0.6%
Snap 0   0.3%
Firefox 1.5  0.3%
Safari 3.1   0.3%


Ash
www.ashleysheridan.co.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




What kind of thing is under Unknown?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: anchor name on URL

2008-11-19 Thread Ashley Sheridan
On Wed, 2008-11-19 at 08:27 -0600, Boyd, Todd M. wrote:
> > -Original Message-
> > From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 18, 2008 5:58 PM
> > To: Richard Heyes
> > Cc: Yeti; Boyd, Todd M.; PHP General Mailing List
> > Subject: Re: [PHP] Re: anchor name on URL
> > 
> > On Tue, 2008-11-18 at 23:51 +, Richard Heyes wrote:
> > > > Yeah, but it will mean that there will still be about 3 different
> > > > rendering versions of IE out there by the time it comes out; 7, 8
> > and 9
> > > > (I'm fairly sure 6 will have gone to that good ol' web in the sky
> > by
> > > > that time)
> > >
> > > Sure, but depending on how closely it follows WebKit, could make
> > > testing on IE9, Safari and Chrome a breeze.
> > >
> > > --
> > > Richard Heyes
> > >
> > > HTML5 Graphing for FF, Chrome, Opera and Safari:
> > > http://www.rgraph.org (Updated November 15th)
> > >
> > Don't forget Konqueror in that list ;) It's not exactly the same
> engine
> > after Apple forked it from KHTML, but it's quite close, and both
> > Konqueror and Safari are said to be working a little more closely than
> > before to share the work done to the rendering engines since the fork.
> > 
> > I'm waiting for the day when Firefox starts using Google's V8
> scripting
> > engine!
> 
> Firefox will probably go with their own improvements a la Minefield
> (instead of V8). As for WebKit, I think you guys are forgetting--it's an
> APPLE product. Do you seriously think they're going to let Microsoft use
> it in their web browser after they've hacked it to pieces and strung it
> back together into some bloated, inefficient monster?
> 
> Well... maybe if the price is right.
> 
> /shrug
> 
> 
> // Todd
> 
The Webkist engine afaik is licensed under the GPL, because of the use
of the code from the original KHTML. I'm not sure how this fits with M$
proprietary plan however...


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Ashley Sheridan
On Wed, 2008-11-19 at 09:50 -0500, tedd wrote:
> Nathan Rixham wrote:
> >well that bubble should have popped..
> >
> >from some of my sites:
> >Browser % visits
> >Firefox   88.43%
> >Internet Explorer 9.99%
> 
> and
> 
> At 12:25 PM + 11/19/08, Stut wrote:
> >Firefox is certainly gaining, as is Safari, but IE is still the 
> >dominant player by far.
> 
> To all:
> 
> While IE may reign over the net generally, who visits your site often 
> depends on what you're providing -- for example:
> 
> Last week http://sperling.com (a general purpose site) had 1983 
> visits. The browser break down was:
> 
> Browser   Visits   %visits
> Firefox   853   43.02%
> IE   842   42.46%
> Safari   183   9.23%
> Chrome   46   2.32%
> Opera   34   1.71%
> 
> Whereas last week http://xb--19g.com (a Mac specific site) had 3012 
> visits. The browser break down was:
> 
> Browser   Visits   %visits
> Safari   2,837   94.19%
> Firefox   133   42.46%
> Camino   21   9.23%
> Mozilla   6   0.20%
> Opera   5   0.17%
> 
> In fact -- over the last two years that site has had over 49,000 
> visitors with only 186 using IE.
> 
> Browser   Visits   %visits
> Safari   45,023   94.19%
> Firefox   2,679   5.46%
> Camino   893   1.82%
> IE   186   0.38%%
> Mozilla   134   0.27%
> 
> How cool is that?
> 
> In incidentally, the sperling.com site had an average time on site of 
> over 2 minutes whereas the Mac site had an average time of only 13 
> seconds. There are also other significant differences between the 
> sites.
> 
> Cheers,
> 
> tedd
> 
> -- 
> ---
> http://sperling.com  http://ancientstones.com  http://earthstones.com
> 
Mine show a similar trend (Fx is really the more dominant of the two):

Firefox 327.84%
IE 7 25.75%
Firefox 214.07%
IE 6 13.47%
Unknown  8.98%
Google Chrome 0  5.09%
Mozilla 1.8  2.1%
Opera 9.51.2%
iPhone 0 0.6%
Snap 0   0.3%
Firefox 1.5  0.3%
Safari 3.1   0.3%


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Alice Wei

Hi, Todd:

  Each of my query snippets look something in the following format:

  UPDATE product
  
SET product_name = 'SQL Tool UltraLight' AND price='1000' AND sales='200' AND 
export='299' AND import='399' ...
  WHERE id = '1001'

   I don't think I am allowed to JOIN these queries in the first place 
according to some of the resources I have been reading. I only think I am 
allowed to execute the queries one by one. 

  But, in PHP terms, if I have a data executed from somewhere and allow users 
to edit it, how can I pass along every single one of these variables to the 
POST? (Is this what you meant by this is not something easy to do?)

Thanks in advance.

Alice


> Subject: RE: [PHP] How to Execute Multiple SQL Updates Using PHP
> Date: Wed, 19 Nov 2008 13:11:48 -0600
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]; php-general@lists.php.net
> 
> > -Original Message-
> > From: Alice Wei [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 19, 2008 12:51 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] How to Execute Multiple SQL Updates Using PHP
> > 
> >   I am inquiring on this list to see if it is possible to create a
> > script that takes multiple update statements without my having to
> write
> > one "SQL" statement for each of the updates.
> > 
> >   I have a scenario of which I create a table of some sort with some
> > existing information using Flex, and what I am told by my client is
> > that no matter how many records there are on the screen, the users
> > should be able to update any up to all the entries by simply pushing a
> > button. I use Microsoft SQL, which I think that it does allow multiple
> > update query execution. The problem is that I might have to come up
> > with some method to accept all the "POST" variables the user provides
> > into the script.
> > 
> >Could anyone please give me some guidance on what kind of function
> I
> > might use, or whether or not it is possible I can create a script that
> > accepts as many "POST" variables as the users POST?
> > 
> > Thanks a lot for your help.
> 
> ...sounds like more of a structure question than a PHP question, to be
> honest. So, structurally speaking, I would build your app to name the
> fields in a manner that is easily packaged and transported. That way,
> you can just do a for-each loop on the $_POST array and extract them
> using hints in your packaging method to tell which row and columns (and
> values) are being placed in the SQL query. You can name your fields
> something like "customerName[0]", "customerName[1]", etc., and PHP will
> treat them as an array when they are unpackaged from the $_POST
> parameters.
> 
> As for multiple SQL statements in one query, I don't see why creating a
> TRANSACTION block with multiple statements (separated by a semicolon:
> ';') wouldn't be possible in PHP. I've never tried it personally, but
> you are theoretically just passing your SQL server a query string--it
> handles the rest. (Yes, it's a bit more complex than that... but that's
> the brass tacks.)
> 
> HTH,
> 
> 
> // Todd

_
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us

[PHP] How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Alice Wei

Hi, 
 
  I am inquiring on this list to see if it is possible to create a script that 
takes multiple update statements without my having to write one "SQL" statement 
for each of the updates. 
 
  I have a scenario of which I create a table of some sort with some existing 
information using Flex, and what I am told by my client is that no matter how 
many records there are on the screen, the users should be able to update any up 
to all the entries by simply pushing a button. I use Microsoft SQL, which I 
think that it does allow multiple update query execution. The problem is that I 
might have to come up with some method to accept all the "POST" variables the 
user provides into the script. 
 
   Could anyone please give me some guidance on what kind of function I might 
use, or whether or not it is possible I can create a script that accepts as 
many "POST" variables as the users POST? 
 
Thanks a lot for your help.
 
Alice

_
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Ashley Sheridan
On Wed, 2008-11-19 at 01:57 -0800, Yeti wrote:
> > Now I tend only to use it now for file management, FTP and testing
> > websites.
> Beware that Konqueror has changed with KDE4. Now its main purpose is
> to be a web browser, whereas the new program "Dolphin" is used for
> file management etc.
> 
I still use KDE3, Dolphin is just a lot slower, and not quite up to the
mark yet as a file manager, and KDE4 has nothing that appeals to me yet.
Give it a year and it may become stable enough to use for development
purposes.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Alice Wei [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 12:51 PM
> To: php-general@lists.php.net
> Subject: [PHP] How to Execute Multiple SQL Updates Using PHP
> 
>   I am inquiring on this list to see if it is possible to create a
> script that takes multiple update statements without my having to
write
> one "SQL" statement for each of the updates.
> 
>   I have a scenario of which I create a table of some sort with some
> existing information using Flex, and what I am told by my client is
> that no matter how many records there are on the screen, the users
> should be able to update any up to all the entries by simply pushing a
> button. I use Microsoft SQL, which I think that it does allow multiple
> update query execution. The problem is that I might have to come up
> with some method to accept all the "POST" variables the user provides
> into the script.
> 
>Could anyone please give me some guidance on what kind of function
I
> might use, or whether or not it is possible I can create a script that
> accepts as many "POST" variables as the users POST?
> 
> Thanks a lot for your help.

...sounds like more of a structure question than a PHP question, to be
honest. So, structurally speaking, I would build your app to name the
fields in a manner that is easily packaged and transported. That way,
you can just do a for-each loop on the $_POST array and extract them
using hints in your packaging method to tell which row and columns (and
values) are being placed in the SQL query. You can name your fields
something like "customerName[0]", "customerName[1]", etc., and PHP will
treat them as an array when they are unpackaged from the $_POST
parameters.

As for multiple SQL statements in one query, I don't see why creating a
TRANSACTION block with multiple statements (separated by a semicolon:
';') wouldn't be possible in PHP. I've never tried it personally, but
you are theoretically just passing your SQL server a query string--it
handles the rest. (Yes, it's a bit more complex than that... but that's
the brass tacks.)

HTH,


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-19 Thread Rene Fournier

Hi,

I have four identical command-line PHP scripts running, and each will  
frequently fetch some data from another server via  
file_get_contents(). By frequently, I mean on average, every second.


Periodically, one of the processes (command-line PHP scripts), will  
fail on file_get_contents(), with the error message:


	PHP Warning: file_get_contents(http://.../): failed to open stream:  
HTTP request failed!


Sometimes it's a single failure, other times, it fails repeatedly for  
30-60 seconds, then starts working again. Strange, no?


At first, I thought maybe I've maxed out the server in question, but  
I'm not. This problem happens on both servers that the scripts fetch  
data from. And more significantly, while one process may fail at  
file_get_contents(), the other processes (running identical code) on  
the same box continue to execute the function (against the same  
servers) without incident.


My question is, is there some resource in Mac OS X Server 10.4 (or PHP  
5.2.4) that would limit a continuously running PHP script from  
executing file_get_contents()? And to be clear, the failure doesn't  
kill the script, and after the failure, it will start working again.


...Rene

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 12:47 PM, Thiago H. Pojda
<[EMAIL PROTECTED]> wrote:
> On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote:
>>
>> On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda <[EMAIL PROTECTED]>
>> wrote:
>> > Guys,
>> >
>> > I have to access a WS that uses HTTP auth directly with PHP.
>> >
>> > I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't
>> > get it
>> > working. I believe it has something to do with the password containing a
>> > #
>> > (can't change it) and the browser thinks it's an achor or something.
>> >
>> > All I've seen were scripts to implement HTTP Auth in PHP, nothing about
>> > actually logging in with PHP.
>> >
>> > Is it possible to send the authentication headers the first time I
>> > access
>> > the link? I could send all necessary headers to the page I'm trying to
>> > access and retrieve it's content at once.
>> >
>> >
>> > Thanks,
>> > --
>> > Thiago Henrique Pojda
>> >
>>
>> You're passing the username and password as part of a URL, so
>> shouldn't the username and password be urlencoded? I'm thinking it
>> will work if you replace the '#' sign with %23.
>>
>> Andrew
>
> I only tried thworing urlencode on everything, which obviously didn't work.
>
> Both ways worked, using %23 for '#' and the snippet from Nathan.
>
>
> Thanks a lot everyone, I was about to build all the headers and stuff :P
>
> Regards,
> --
> Thiago Henrique Pojda
>

Yes. If you go that route, you have to separately urlencode each piece
of data rather than the whole URL because you don't want the valid
delimiters like the colon, @ symbol, slashes, etc. to get encoded.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Robert Cummings
On Wed, 2008-11-19 at 07:09 -0800, Yeti wrote:
> I think it's also interesting to know what browsers web developers prefer [1].

Opera, but Firefox with Firebug if the JavaScript gets sticky.

> Also what people would like to know more about [2].

Huh?

> Number 1: howto kiss

Depends... are we kissing our mothers or that hot broad sitting alone at
the bar? One requires tongue, the other doesn't... the correct answer is
left as an exercise to the reader.

> Number 5: howto hack (lol?)

I find a meat cleaver works best. Helps to get the chunks down to a size
that maximizes freezer space usage.

> [1] http://www.w3schools.com/browsers/browsers_stats.asp
> [2] http://www.google.com/intl/en/press/zeitgeist2007/mind.html

Oh.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Robert Cummings
On Wed, 2008-11-19 at 10:12 -0500, Andrew Ballard wrote:
> On Wed, Nov 19, 2008 at 9:32 AM, Craige Leeder <[EMAIL PROTECTED]> wrote:
> > Alain Roger wrote:
> >>
> >> Hi,
> >>
> >> how can i do to test if the row number (record number) sent by
> >> mysql_fetch_object is odd or even ?
> >> i mean that:
> >> while ($row = mysql_fetch_object($result))
> >>{
> >> if($row%2 == 1)
> >> {
> >>  ...
> >> }
> >>}
> >>
> >> the $row doesn't return a value... like 1, 2 or 6 for example...
> >> thx.
> >> F
> >>
> >>
> >
> > That's because $row is an object. Return your row uid (unique identifier;
> > primary key w/ auto increment) and do:
> >
> > while ( $row = mysql_fetch_object($result) )
> >   {
> >if( $row->UID % 2 == 1 )
> >{
> > ...
> >}
> >   }
> >
> >
> >
> > replacing UID with whatever you called the field in the database.
> >
> > Hope this helps,
> > - Craige
> >
> 
> That only works if the query returns rows with contiguous IDs, which
> is not always the case. If rows get deleted there will be gaps in an
> autonumber field. Even if no rows are deleted, it is quite common for
> a query to return rows with non-adjacent ID numbers because of the
> query conditions. It's better to use the counter approach that Nathan
> demonstrated.

It also doesn't work if the ID is anything but a number... such as an
MD5 hash. Nathan posted the correct solution.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Thiago H. Pojda
On Wed, Nov 19, 2008 at 2:49 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:

> > -Original Message-
> > From: Thiago H. Pojda [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 19, 2008 11:47 AM
> > To: Andrew Ballard
> > Cc: PHP-General List
> > Subject: Re: [PHP] HTTP Authentication [ SOLVED ]
> >
> > On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard <[EMAIL PROTECTED]>
> > wrote:
> >
> > > On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda
> > <[EMAIL PROTECTED]>
> > > wrote:
> > > > Guys,
> > > >
> > > > I have to access a WS that uses HTTP auth directly with PHP.
> > > >
> > > > I've tried using the usual http://user:[EMAIL PROTECTED]/ but I
> > couldn't
> > > get it
> > > > working. I believe it has something to do with the password
> > containing a
> > > #
> > > > (can't change it) and the browser thinks it's an achor or
> > something.
> > > >
> > > > All I've seen were scripts to implement HTTP Auth in PHP, nothing
> > about
> > > > actually logging in with PHP.
> > > >
> > > > Is it possible to send the authentication headers the first time I
> > access
> > > > the link? I could send all necessary headers to the page I'm
> trying
> > to
> > > > access and retrieve it's content at once.
> > > >
> > > >
> > > > Thanks,
> > > > --
> > > > Thiago Henrique Pojda
> > > >
> > >
> > > You're passing the username and password as part of a URL, so
> > > shouldn't the username and password be urlencoded? I'm thinking it
> > > will work if you replace the '#' sign with %23.
> > >
> > > Andrew
> > >
> >
> > I only tried thworing urlencode on everything, which obviously didn't
> > work.
> >
> > Both ways worked, using %23 for '#' and the snippet from Nathan.
> >
> >
> > Thanks a lot everyone, I was about to build all the headers and stuff
> > :P
>
> "All the headers," meaning 2? :) Glad to hear you've solved your
> problem, anyway..
>
>
> // Todd
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Haha, yes, 'all' those :)

I thought there were many more, thankfully it only needed Basic and the
other - which I forgot now.

Thank you too :)
-- 
Thiago Henrique Pojda


RE: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Thiago H. Pojda [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 11:47 AM
> To: Andrew Ballard
> Cc: PHP-General List
> Subject: Re: [PHP] HTTP Authentication [ SOLVED ]
> 
> On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard <[EMAIL PROTECTED]>
> wrote:
> 
> > On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda
> <[EMAIL PROTECTED]>
> > wrote:
> > > Guys,
> > >
> > > I have to access a WS that uses HTTP auth directly with PHP.
> > >
> > > I've tried using the usual http://user:[EMAIL PROTECTED]/ but I
> couldn't
> > get it
> > > working. I believe it has something to do with the password
> containing a
> > #
> > > (can't change it) and the browser thinks it's an achor or
> something.
> > >
> > > All I've seen were scripts to implement HTTP Auth in PHP, nothing
> about
> > > actually logging in with PHP.
> > >
> > > Is it possible to send the authentication headers the first time I
> access
> > > the link? I could send all necessary headers to the page I'm
trying
> to
> > > access and retrieve it's content at once.
> > >
> > >
> > > Thanks,
> > > --
> > > Thiago Henrique Pojda
> > >
> >
> > You're passing the username and password as part of a URL, so
> > shouldn't the username and password be urlencoded? I'm thinking it
> > will work if you replace the '#' sign with %23.
> >
> > Andrew
> >
> 
> I only tried thworing urlencode on everything, which obviously didn't
> work.
> 
> Both ways worked, using %23 for '#' and the snippet from Nathan.
> 
> 
> Thanks a lot everyone, I was about to build all the headers and stuff
> :P

"All the headers," meaning 2? :) Glad to hear you've solved your
problem, anyway..


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Thiago H. Pojda
On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote:

> On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda <[EMAIL PROTECTED]>
> wrote:
> > Guys,
> >
> > I have to access a WS that uses HTTP auth directly with PHP.
> >
> > I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't
> get it
> > working. I believe it has something to do with the password containing a
> #
> > (can't change it) and the browser thinks it's an achor or something.
> >
> > All I've seen were scripts to implement HTTP Auth in PHP, nothing about
> > actually logging in with PHP.
> >
> > Is it possible to send the authentication headers the first time I access
> > the link? I could send all necessary headers to the page I'm trying to
> > access and retrieve it's content at once.
> >
> >
> > Thanks,
> > --
> > Thiago Henrique Pojda
> >
>
> You're passing the username and password as part of a URL, so
> shouldn't the username and password be urlencoded? I'm thinking it
> will work if you replace the '#' sign with %23.
>
> Andrew
>

I only tried thworing urlencode on everything, which obviously didn't work.

Both ways worked, using %23 for '#' and the snippet from Nathan.


Thanks a lot everyone, I was about to build all the headers and stuff :P

Regards,
-- 
Thiago Henrique Pojda


RE: [PHP] while-question

2008-11-19 Thread bruce
interesting points regarding college and programming..

my degrees bsee/msee covered alot more than pure programing.. as a double 
ee/cs, the ability to articulate an issue/problem, and bring to mind a cogent 
thought process was valuable. the ability to understand how different 
algorithms worked, and how code actually played with the lower intracacies of 
the processor where quite valuable. 

and no.. i'm no longer the engineer i was a time ago..

so.. interesting...


-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2008 11:55 AM
To: tedd
Cc: php-general@lists.php.net
Subject: RE: [PHP] while-question


> Dabbling?
> 
> I think that making a living from it isn't dabbling, so I may not be 
> qualified to speak for the dabblers.
> 
> But for me, I was writing code before there were such courses. Later, 
> when I went to college I was taught adventures in keypunching and 
> received several "next to worthless" degrees.
> 
> I say "next to worthless" only because what they taught really wasn't 
> applicable to real world programming. As for management, clients, and 
> hr types, the degrees mattered, but not for much more than that.
> 
> In any event, I doubt if any college courses are keeping up with 
> current web technology -- there has always been a lag between what's 
> practiced and what's taught. What I've seen of college web sites, 
> seems to support that claim.
> 
> If I was taught in college all I needed to know, then what am I doing 
> with these dozens of web books scattered about my office? I probably 
> read a new book every other week.

I don't "dabble" in it either, unless you consider making my living from being 
a dabbler, in which case I'll continue to dabble and see the pay for it.  My 
alma-mater tried to stay current to some degree, but when they let someone who 
wrote the C++ book try to teach it, well they gave that person more rope then 
they needed.

Tedd, glad you got hooked on Phonics.  One of these days I hope from graduating 
from just looking at the pictures, but right now the pictures are oh so 
enticing!. ;)  

Wolf

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Scheduling scripts?

2008-11-19 Thread tedd

At 6:36 PM -0500 11/18/08, Daniel P. Brown wrote:

Strictly a public calendar, Tedd, or one with a full registration
and appointment-setting system?



Daniel:

The project is to tie students to classes for online registration.

The client was using Google's Calendar system, but is now wanting to 
do it internally.


So, I need a way to show a calendar of dates/times of classes 
available for registration and deal with the specifics.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Stut

On 19 Nov 2008, at 15:39, Terion Miller wrote:
I've been trying to catch on to php on the fly, I started with Cold  
fusion

years ago then did asp for a long time, for some reason php gives me
problems, it doesn't at all seem intuitive to me or even logical for  
that

matterguess I'm just used to the easy stuff.

when I use the var_dump as suggested I get:
*Parse error*: syntax error, unexpected '<' in *
C:\Inetpub\wwwroot\WorkOrderSystem\WorkOrder.php* on line *136*


My guess would be that you've pasted the code Todd gave you into an  
existing code block (think <% %> from ASP and use  instead for  
PHP). Remove the  from the code you pasted and try again.  
If that's still not right we'll need to see the code.


And might I suggest you find a beginners tutorial for PHP before  
continuing? This stuff is pretty fundamental and it would be well- 
worth your while taking the time to get the basics before you do any  
flying.


-Stut

--
http://stut.net/

On Wed, Nov 19, 2008 at 8:51 AM, Boyd, Todd M. <[EMAIL PROTECTED]>  
wrote:



Taking this back on-list...


From: Terion Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 8:44 AM
To: Boyd, Todd M.
Subject: Re: [PHP] Invalid Arguements

I don't know how to run is_array this is the problem I'm a designer  
that

is stuck doing a coders job


On Wed, Nov 19, 2008 at 8:36 AM, Boyd, Todd M. <[EMAIL PROTECTED]>  
wrote:

-Original Message-
From: Terion Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 8:32 AM
To: php-general@lists.php.net
Subject: [PHP] Invalid Arguements

I am still getting the Invalid arguement error on this implode:

if (isset($_POST['BannerSize'])){$BannerSize =
implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}

I have moved the ',', from the beginning to the end of the statement
and
nothing works is there any other way to do this, basically there  
is a

form
and the people entering work orders can select different sized  
banners

they
need, which goes into the db as text so...argh...


Take the time to read what people have suggested. I seem to remember
people asking you if you had run is_array() on your so-called array.
Well, if you didn't, and it's NOT an array, and therefore will NOT  
work

with implode(), then feel free to facepalm ahead of time.

---



I believe something to that effect was posted, with fully intact  
code,
on the list. Not to be rude, but if you're tasked with PHP  
programming

and you don't understand what it is to run a function, you should
probably bone up on procedural fundamentals and PHP in general before
you go much further... or you're going to SERIOUSLY screw something  
up
and be at a loss as to what you did (or how to fix it). Again--I'm  
not

trying to be rude. I am giving honest advice.

http://www.w3schools.com/php

Hope this helps (sincerely),


// Todd




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 10:39 AM, Terion Miller <[EMAIL PROTECTED]> wrote:
> I've been trying to catch on to php on the fly, I started with Cold fusion
> years ago then did asp for a long time, for some reason php gives me
> problems, it doesn't at all seem intuitive to me or even logical for that
> matterguess I'm just used to the easy stuff.
>
> when I use the var_dump as suggested I get:
> *Parse error*: syntax error, unexpected '<' in *
> C:\Inetpub\wwwroot\WorkOrderSystem\WorkOrder.php* on line *136*
>
>

Even ASP (VBScript) has the IsArray() function (I'm pretty sure ASP
using JavaScript supports instanceof) as a way of verifying that a
variable actually contains what you expect it to contain before you
use it. ColdFusion? ugh! DISCLAIMER: My only experience with it is
supporting one of the (worst written) commercial apps that we host. My
impression was that it was more of a templating language for
Dreamweaver/Java than what I am used to.

Back on topic, your latest error is a syntax error and isn't directly
related to the problem you've been talking about. I was going to
suggest something, but it looks like Yeti beat me to it while I was
typing.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Yeti
> when I use the var_dump as suggested I get:
> *Parse error*: syntax error, unexpected '<' in *
> C:\Inetpub\wwwroot\WorkOrderSystem\WorkOrder.php* on line *136*

I guess that means you tried something like this ...

EXAMPLE:


?>

Can you see what PHP does not like here?
It's the second "http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Invalid Arguements

2008-11-19 Thread Boyd, Todd M.
From: Terion Miller [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2008 9:39 AM
To: Boyd, Todd M.
Cc: PHP General Mailing List
Subject: Re: [PHP] Invalid Arguements

I've been trying to catch on to php on the fly, I started with Cold fusion 
years ago then did asp for a long time, for some reason php gives me problems, 
it doesn't at all seem intuitive to me or even logical for that matterguess 
I'm just used to the easy stuff.

when I use the var_dump as suggested I get: 
Parse error: syntax error, unexpected '<' in 
C:\Inetpub\wwwroot\WorkOrderSystem\WorkOrder.php on line 136

On Wed, Nov 19, 2008 at 8:51 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:
Taking this back on-list...


From: Terion Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 8:44 AM
To: Boyd, Todd M.
Subject: Re: [PHP] Invalid Arguements

I don't know how to run is_array this is the problem I'm a designer that
is stuck doing a coders job


On Wed, Nov 19, 2008 at 8:36 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:
> -Original Message-
> From: Terion Miller [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 8:32 AM
> To: php-general@lists.php.net
> Subject: [PHP] Invalid Arguements
>
> I am still getting the Invalid arguement error on this implode:
>
> if (isset($_POST['BannerSize'])){$BannerSize =
> implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}
>
> I have moved the ',', from the beginning to the end of the statement
> and
> nothing works is there any other way to do this, basically there is a
> form
> and the people entering work orders can select different sized banners
> they
> need, which goes into the db as text so...argh...

Take the time to read what people have suggested. I seem to remember
people asking you if you had run is_array() on your so-called array.
Well, if you didn't, and it's NOT an array, and therefore will NOT work
with implode(), then feel free to facepalm ahead of time.
---



I believe something to that effect was posted, with fully intact code,
on the list. Not to be rude, but if you're tasked with PHP programming
and you don't understand what it is to run a function, you should
probably bone up on procedural fundamentals and PHP in general before
you go much further... or you're going to SERIOUSLY screw something up
and be at a loss as to what you did (or how to fix it). Again--I'm not
trying to be rude. I am giving honest advice.

http://www.w3schools.com/php

---

Bottom posting will prevail, damnit! :D

As for your error, it is generally good list etiquette (and will help you, as 
well!) to post THE ACTUAL CODE that threw the error instead of "here's my error 
message and what line it happened on." We don't know the code on that line in 
question. We don't know the context (code surrounding it). As such, it is very 
difficult to derive anything whatsoever from your error message.

Details!

Also--if you're versed in Classic ASP, is PHP seriously all that different? 
Their function declarations and usage, opening/closing delimiters (<% and http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
I've been trying to catch on to php on the fly, I started with Cold fusion
years ago then did asp for a long time, for some reason php gives me
problems, it doesn't at all seem intuitive to me or even logical for that
matterguess I'm just used to the easy stuff.

when I use the var_dump as suggested I get:
*Parse error*: syntax error, unexpected '<' in *
C:\Inetpub\wwwroot\WorkOrderSystem\WorkOrder.php* on line *136*


On Wed, Nov 19, 2008 at 8:51 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:

> Taking this back on-list...
>
>
> From: Terion Miller [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 8:44 AM
> To: Boyd, Todd M.
> Subject: Re: [PHP] Invalid Arguements
>
> I don't know how to run is_array this is the problem I'm a designer that
> is stuck doing a coders job
>
>
> On Wed, Nov 19, 2008 at 8:36 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Terion Miller [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 19, 2008 8:32 AM
> > To: php-general@lists.php.net
> > Subject: [PHP] Invalid Arguements
> >
> > I am still getting the Invalid arguement error on this implode:
> >
> > if (isset($_POST['BannerSize'])){$BannerSize =
> > implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}
> >
> > I have moved the ',', from the beginning to the end of the statement
> > and
> > nothing works is there any other way to do this, basically there is a
> > form
> > and the people entering work orders can select different sized banners
> > they
> > need, which goes into the db as text so...argh...
>
> Take the time to read what people have suggested. I seem to remember
> people asking you if you had run is_array() on your so-called array.
> Well, if you didn't, and it's NOT an array, and therefore will NOT work
> with implode(), then feel free to facepalm ahead of time.
>
> ---
>
> if(is_array($myvar)) {
>$newvar = implode(',', $myvar);
>} else {
>echo 'Cats and dogs living together! Mass hysteria!';
>}
> ?>
>
> I believe something to that effect was posted, with fully intact code,
> on the list. Not to be rude, but if you're tasked with PHP programming
> and you don't understand what it is to run a function, you should
> probably bone up on procedural fundamentals and PHP in general before
> you go much further... or you're going to SERIOUSLY screw something up
> and be at a loss as to what you did (or how to fix it). Again--I'm not
> trying to be rude. I am giving honest advice.
>
> http://www.w3schools.com/php
>
> Hope this helps (sincerely),
>
>
> // Todd
>


RE: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Yeti [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 9:09 AM
> To: PHP General Mailing List
> Subject: Re: [PHP] Stats (was anchor name on URL)
> 
> I think it's also interesting to know what browsers web developers
> prefer [1].
> 
> Also what people would like to know more about [2].
> Number 1: howto kiss
> Number 5: howto hack (lol?)
> 
> [1] http://www.w3schools.com/browsers/browsers_stats.asp
> [2] http://www.google.com/intl/en/press/zeitgeist2007/mind.html

"who is god" ??!

I'm beginning to think people put a bit too much "faith" (no pun
intended) in Google. Ugh.


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTTP Authentication

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda <[EMAIL PROTECTED]> wrote:
> Guys,
>
> I have to access a WS that uses HTTP auth directly with PHP.
>
> I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get 
> it
> working. I believe it has something to do with the password containing a #
> (can't change it) and the browser thinks it's an achor or something.
>
> All I've seen were scripts to implement HTTP Auth in PHP, nothing about
> actually logging in with PHP.
>
> Is it possible to send the authentication headers the first time I access
> the link? I could send all necessary headers to the page I'm trying to
> access and retrieve it's content at once.
>
>
> Thanks,
> --
> Thiago Henrique Pojda
>

You're passing the username and password as part of a URL, so
shouldn't the username and password be urlencoded? I'm thinking it
will work if you replace the '#' sign with %23.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 9:32 AM, Craige Leeder <[EMAIL PROTECTED]> wrote:
> Alain Roger wrote:
>>
>> Hi,
>>
>> how can i do to test if the row number (record number) sent by
>> mysql_fetch_object is odd or even ?
>> i mean that:
>> while ($row = mysql_fetch_object($result))
>>{
>> if($row%2 == 1)
>> {
>>  ...
>> }
>>}
>>
>> the $row doesn't return a value... like 1, 2 or 6 for example...
>> thx.
>> F
>>
>>
>
> That's because $row is an object. Return your row uid (unique identifier;
> primary key w/ auto increment) and do:
>
> while ( $row = mysql_fetch_object($result) )
>   {
>if( $row->UID % 2 == 1 )
>{
> ...
>}
>   }
>
>
>
> replacing UID with whatever you called the field in the database.
>
> Hope this helps,
> - Craige
>

That only works if the query returns rows with contiguous IDs, which
is not always the case. If rows get deleted there will be gaps in an
autonumber field. Even if no rows are deleted, it is quite common for
a query to return rows with non-adjacent ID numbers because of the
query conditions. It's better to use the counter approach that Nathan
demonstrated.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Yeti
I think it's also interesting to know what browsers web developers prefer [1].

Also what people would like to know more about [2].
Number 1: howto kiss
Number 5: howto hack (lol?)

[1] http://www.w3schools.com/browsers/browsers_stats.asp
[2] http://www.google.com/intl/en/press/zeitgeist2007/mind.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: HTTP Authentication

2008-11-19 Thread Nathan Rixham

Thiago H. Pojda wrote:

Guys,

I have to access a WS that uses HTTP auth directly with PHP.

I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it
working. I believe it has something to do with the password containing a #
(can't change it) and the browser thinks it's an achor or something.

All I've seen were scripts to implement HTTP Auth in PHP, nothing about
actually logging in with PHP.

Is it possible to send the authentication headers the first time I access
the link? I could send all necessary headers to the page I'm trying to
access and retrieve it's content at once.


Thanks,


use the Authorization http header and create a stream context with it in:

http://example.com/';
$user = 'user';
$pass = 'pass';

$key = base64_encode($user . ':' . $pass);
$headers = 'Authorization: Basic '. $key . "\r\n";
$contextOpts = array('http'=>array('header'=>$headers));
$context = stream_context_create($contextOpts);
$page = file_get_contents($url, false, $context);

print_r( $page );
?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Invalid Arguements

2008-11-19 Thread Boyd, Todd M.
Taking this back on-list...


From: Terion Miller [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2008 8:44 AM
To: Boyd, Todd M.
Subject: Re: [PHP] Invalid Arguements

I don't know how to run is_array this is the problem I'm a designer that
is stuck doing a coders job 


On Wed, Nov 19, 2008 at 8:36 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:
> -Original Message-
> From: Terion Miller [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 8:32 AM
> To: php-general@lists.php.net
> Subject: [PHP] Invalid Arguements
>
> I am still getting the Invalid arguement error on this implode:
>
> if (isset($_POST['BannerSize'])){$BannerSize =
> implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}
>
> I have moved the ',', from the beginning to the end of the statement
> and
> nothing works is there any other way to do this, basically there is a
> form
> and the people entering work orders can select different sized banners
> they
> need, which goes into the db as text so...argh...

Take the time to read what people have suggested. I seem to remember
people asking you if you had run is_array() on your so-called array.
Well, if you didn't, and it's NOT an array, and therefore will NOT work
with implode(), then feel free to facepalm ahead of time.

---



I believe something to that effect was posted, with fully intact code,
on the list. Not to be rude, but if you're tasked with PHP programming
and you don't understand what it is to run a function, you should
probably bone up on procedural fundamentals and PHP in general before
you go much further... or you're going to SERIOUSLY screw something up
and be at a loss as to what you did (or how to fix it). Again--I'm not
trying to be rude. I am giving honest advice.

http://www.w3schools.com/php 

Hope this helps (sincerely),


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Arguements

2008-11-19 Thread Yeti
if you



what do you get?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Stats (was anchor name on URL)

2008-11-19 Thread tedd

Nathan Rixham wrote:

well that bubble should have popped..

from some of my sites:
Browser % visits
Firefox   88.43%
Internet Explorer 9.99%


and

At 12:25 PM + 11/19/08, Stut wrote:
Firefox is certainly gaining, as is Safari, but IE is still the 
dominant player by far.


To all:

While IE may reign over the net generally, who visits your site often 
depends on what you're providing -- for example:


Last week http://sperling.com (a general purpose site) had 1983 
visits. The browser break down was:


Browser   Visits   %visits
Firefox   853   43.02%
IE   842   42.46%
Safari   183   9.23%
Chrome   46   2.32%
Opera   34   1.71%

Whereas last week http://xb--19g.com (a Mac specific site) had 3012 
visits. The browser break down was:


Browser   Visits   %visits
Safari   2,837   94.19%
Firefox   133   42.46%
Camino   21   9.23%
Mozilla   6   0.20%
Opera   5   0.17%

In fact -- over the last two years that site has had over 49,000 
visitors with only 186 using IE.


Browser   Visits   %visits
Safari   45,023   94.19%
Firefox   2,679   5.46%
Camino   893   1.82%
IE   186   0.38%%
Mozilla   134   0.27%

How cool is that?

In incidentally, the sperling.com site had an average time on site of 
over 2 minutes whereas the Mac site had an average time of only 13 
seconds. There are also other significant differences between the 
sites.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] HTTP Authentication

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Craige Leeder [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 8:35 AM
> To: Thiago H. Pojda
> Cc: PHP-General List
> Subject: Re: [PHP] HTTP Authentication
> 
> Thiago H. Pojda wrote:
> > Guys,
> >
> > I have to access a WS that uses HTTP auth directly with PHP.
> >
> > I've tried using the usual http://user:[EMAIL PROTECTED]/ but I
couldn't
> get it
> > working. I believe it has something to do with the password
> containing a #
> > (can't change it) and the browser thinks it's an achor or something.
> >
> > All I've seen were scripts to implement HTTP Auth in PHP, nothing
> about
> > actually logging in with PHP.
> >
> > Is it possible to send the authentication headers the first time I
> access
> > the link? I could send all necessary headers to the page I'm trying
> to
> > access and retrieve it's content at once.
> >
> >
> > Thanks,
> >
> 
> 
> Why don't you let yourself in regardless of the credentials and print
> them out to make sure they're being evaluated as you expect.

Well... he said he needs to access a WS, not that he administrates it or
has any control over the authentication, etc.

As for the Basic Authentication, I believe you can send the
authentication info in the headers (instead of the URL). If you have
problems implementing that in straight PHP, perhaps cURL could be of
some assistance.

http://www.httprevealer.com/article_basic_authentication.htm - this
outlines the header formats, etc... just remember--you will need to
Base64 encode "username:password" for the "Authorization" header.

HTH,


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTTP Authentication

2008-11-19 Thread Thiago H. Pojda
On Wed, Nov 19, 2008 at 11:34 AM, Craige Leeder <[EMAIL PROTECTED]> wrote:

> Thiago H. Pojda wrote:
>
>> Guys,
>>
>> I have to access a WS that uses HTTP auth directly with PHP.
>>
>> I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get
>> it
>> working. I believe it has something to do with the password containing a #
>> (can't change it) and the browser thinks it's an achor or something.
>>
>> All I've seen were scripts to implement HTTP Auth in PHP, nothing about
>> actually logging in with PHP.
>>
>> Is it possible to send the authentication headers the first time I access
>> the link? I could send all necessary headers to the page I'm trying to
>> access and retrieve it's content at once.
>>
>>
>> Thanks,
>>
>>
>  Why don't you let yourself in regardless of the credentials and print them
> out to make sure they're being evaluated as you expect.
>
> - Craige
>

I can' t change the WebService, it's not mine. If it were, I could manage to
test some stuff but now all I can do is type it's address in my browser,
login and see the content I want my app to see.


Thanks,
-- 
Thiago Henrique Pojda


RE: [PHP] Invalid Arguements

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Terion Miller [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 8:32 AM
> To: php-general@lists.php.net
> Subject: [PHP] Invalid Arguements
> 
> I am still getting the Invalid arguement error on this implode:
> 
> if (isset($_POST['BannerSize'])){$BannerSize =
> implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}
> 
> I have moved the ',', from the beginning to the end of the statement
> and
> nothing works is there any other way to do this, basically there is a
> form
> and the people entering work orders can select different sized banners
> they
> need, which goes into the db as text so...argh...

Take the time to read what people have suggested. I seem to remember
people asking you if you had run is_array() on your so-called array.
Well, if you didn't, and it's NOT an array, and therefore will NOT work
with implode(), then feel free to facepalm ahead of time.


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTTP Authentication

2008-11-19 Thread Craige Leeder

Thiago H. Pojda wrote:

Guys,

I have to access a WS that uses HTTP auth directly with PHP.

I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it
working. I believe it has something to do with the password containing a #
(can't change it) and the browser thinks it's an achor or something.

All I've seen were scripts to implement HTTP Auth in PHP, nothing about
actually logging in with PHP.

Is it possible to send the authentication headers the first time I access
the link? I could send all necessary headers to the page I'm trying to
access and retrieve it's content at once.


Thanks,
  



Why don't you let yourself in regardless of the credentials and print 
them out to make sure they're being evaluated as you expect.


- Craige

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Craige Leeder

Alain Roger wrote:

Hi,

how can i do to test if the row number (record number) sent by
mysql_fetch_object is odd or even ?
i mean that:
while ($row = mysql_fetch_object($result))
{
 if($row%2 == 1)
 {
  ...
 }
}

the $row doesn't return a value... like 1, 2 or 6 for example...
thx.
F

  
That's because $row is an object. Return your row uid (unique 
identifier; primary key w/ auto increment) and do:


while ( $row = mysql_fetch_object($result) )
   {
if( $row->UID % 2 == 1 )
{
 ...
}
   }



replacing UID with whatever you called the field in the database.

Hope this helps,
- Craige

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Invalid Arguements

2008-11-19 Thread Terion Miller
I am still getting the Invalid arguement error on this implode:

if (isset($_POST['BannerSize'])){$BannerSize =
implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}

I have moved the ',', from the beginning to the end of the statement and
nothing works is there any other way to do this, basically there is a form
and the people entering work orders can select different sized banners they
need, which goes into the db as text so...argh...


RE: [PHP] Re: anchor name on URL

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 18, 2008 5:58 PM
> To: Richard Heyes
> Cc: Yeti; Boyd, Todd M.; PHP General Mailing List
> Subject: Re: [PHP] Re: anchor name on URL
> 
> On Tue, 2008-11-18 at 23:51 +, Richard Heyes wrote:
> > > Yeah, but it will mean that there will still be about 3 different
> > > rendering versions of IE out there by the time it comes out; 7, 8
> and 9
> > > (I'm fairly sure 6 will have gone to that good ol' web in the sky
> by
> > > that time)
> >
> > Sure, but depending on how closely it follows WebKit, could make
> > testing on IE9, Safari and Chrome a breeze.
> >
> > --
> > Richard Heyes
> >
> > HTML5 Graphing for FF, Chrome, Opera and Safari:
> > http://www.rgraph.org (Updated November 15th)
> >
> Don't forget Konqueror in that list ;) It's not exactly the same
engine
> after Apple forked it from KHTML, but it's quite close, and both
> Konqueror and Safari are said to be working a little more closely than
> before to share the work done to the rendering engines since the fork.
> 
> I'm waiting for the day when Firefox starts using Google's V8
scripting
> engine!

Firefox will probably go with their own improvements a la Minefield
(instead of V8). As for WebKit, I think you guys are forgetting--it's an
APPLE product. Do you seriously think they're going to let Microsoft use
it in their web browser after they've hacked it to pieces and strung it
back together into some bloated, inefficient monster?

Well... maybe if the price is right.

/shrug


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] HTTP Authentication

2008-11-19 Thread Thiago H. Pojda
Guys,

I have to access a WS that uses HTTP auth directly with PHP.

I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it
working. I believe it has something to do with the password containing a #
(can't change it) and the browser thinks it's an achor or something.

All I've seen were scripts to implement HTTP Auth in PHP, nothing about
actually logging in with PHP.

Is it possible to send the authentication headers the first time I access
the link? I could send all necessary headers to the page I'm trying to
access and retrieve it's content at once.


Thanks,
-- 
Thiago Henrique Pojda


RE: [PHP] Re: anchor name on URL

2008-11-19 Thread Boyd, Todd M.
> -Original Message-
> From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 18, 2008 5:09 PM
> To: Yeti
> Cc: Boyd, Todd M.; PHP General Mailing List
> Subject: Re: [PHP] Re: anchor name on URL
> 
> On Tue, 2008-11-18 at 14:58 -0800, Yeti wrote:
> > > I look forward to the day when markup isn't so bloated
> > > due to the inability of certain web browser franchises to "get it
> right."
> >
> > Although I usually look at the future through an optimistic point of
> > view, that day may never come.
> >
> You say that, have you heard the latest for IE9? They're already
> planning it, and apparently it's going to use the Webkit engine!

I've heard folks at Microsoft say, basically, "Speed/efficiency was not
a consideration."

Ugh. Still waiting on Mozilla Minefield.


// Todd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] NetBeans & xdebug

2008-11-19 Thread Craige Leeder

Gishaust wrote:

Are using  linux as an os  because if you are I am having trouble with getting 
xdebug to talk to netbeans
  

Nope, sorry. Vista

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mysql_fetch_object and modulo %

2008-11-19 Thread Nathan Rixham

Alain Roger wrote:

Hi,

how can i do to test if the row number (record number) sent by
mysql_fetch_object is odd or even ?
i mean that:
while ($row = mysql_fetch_object($result))
{
 if($row%2 == 1)
 {
  ...
 }
}

the $row doesn't return a value... like 1, 2 or 6 for example...
thx.
F


$i = 0;
while ($row = mysql_fetch_object($result))
{
 if(++$i%2 == 1)
 {
  ...
 }
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Alain Roger
Hi,

how can i do to test if the row number (record number) sent by
mysql_fetch_object is odd or even ?
i mean that:
while ($row = mysql_fetch_object($result))
{
 if($row%2 == 1)
 {
  ...
 }
}

the $row doesn't return a value... like 1, 2 or 6 for example...
thx.
F


Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
Richard Heyes wrote:

>> although the crapness of firefox 3 may change that a bit..
> 
> Keh? FF3 is great IMO.
> 

FF2 and FF# are not 100% compatible which made some of our web
interfaces look wrong in FF3.  I haven't been able to find the problem
yet:

FF2:  http://jessen.ch/images/sam-menu-ff2.jpeg
FF3:  http://jessen.ch/images/sam-menu-ff3.jpeg

Notice how the fonts are really quite different, in FF3 they make the
long orange menu line spill over the page margin.  No FF3 around here
for a while yet.


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham

Richard Heyes wrote:

although the crapness of firefox 3 may change that a bit..


Keh? FF3 is great IMO.



I thought that at first as well, then I noticed it was a bit unstable on 
 windows xp/media center/tablet edition, on all my machines, then 
talked to workmates, friends, partner etc and they where finding the 
same, great feature set but more prone to "crashing" more than ff2 
(regardless of clean installs, upgrades etc)


however, on vista ultimate at home it's great and v stable..

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Richard Heyes
> although the crapness of firefox 3 may change that a bit..

Keh? FF3 is great IMO.

-- 
Richard Heyes

HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 15th)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham

Per Jessen wrote:

Nathan Rixham wrote:


Per Jessen wrote:

Nathan Rixham wrote:


i never understand this, if i was makign a browser I'd be "where's
the rfc's" then code it to implement those rfc's - why people choose
not to is beyond me?

World domination is part of the reasoning ...


/Per Jessen, Zürich


well that bubble should have popped..

from some of my sites:
Browser % visits
Firefox   88.43%
Internet Explorer 9.99%

Firefox   46.89%
Internet Explorer 37.66%
Opera 7.36%
Safari 5.39%
Chrome 2.17%

Firefox 46.80%
Internet Explorer 42.45%
Safari 5.36%
Opera 3.07%
Mozilla 1.22%


I have not looked at any of my own stats for quite a while, but yours
are just too good to be true :-)


/Per Jessen, Zürich



they're all music sites for the above..
site 1 = trance news, charts etc
site 2 = radio station
site 3 = mp3 download site

was suprised myself the stats are inline with my techy sites which 
consitently sit around 60% firefox, 25% ie


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Stut

On 19 Nov 2008, at 12:01, Nathan Rixham wrote:

from some of my sites:
Browser % visits
Firefox 88.43%
Internet Explorer 9.99%

Firefox 46.89%
Internet Explorer 37.66%
Opera 7.36%
Safari 5.39%
Chrome 2.17%

Firefox 46.80%
Internet Explorer 42.45%
Safari 5.36%
Opera 3.07%
Mozilla 1.22%

although the crapness of firefox 3 may change that a bit..


Browser stats depend greatly on the content of the site, as indicated  
by the differences between your three examples. One of the sites I  
manage appeals to Joe Public more than any other site I'm involved in,  
and the stats reflect the fact that most people use what comes with  
their computer, probably because they don't think there's a "better"  
option.


Internet Explorer 80.86%
Firefox   14.56%
Safari 2.51%
Mozilla0.85%
Opera  0.61%
Chrome 0.43%
Playstation 3  0.07%
SeaMonkey  0.02%
Playstation Portable   0.01%
Netscape   0.01%

Firefox is certainly gaining, as is Safari, but IE is still the  
dominant player by far.


The greatest accuracy for something like this comes from Hitwise,  
Comscore and similar companies. It's unfortunate that Google stopped  
publishing their stats as those would probably be as accurate as they  
could get.


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
Nathan Rixham wrote:

> Per Jessen wrote:
>> Nathan Rixham wrote:
>> 
>>> i never understand this, if i was makign a browser I'd be "where's
>>> the rfc's" then code it to implement those rfc's - why people choose
>>> not to is beyond me?
>> 
>> World domination is part of the reasoning ...
>> 
>> 
>> /Per Jessen, Zürich
>> 
> 
> well that bubble should have popped..
> 
> from some of my sites:
> Browser % visits
> Firefox   88.43%
> Internet Explorer 9.99%
> 
> Firefox   46.89%
> Internet Explorer 37.66%
> Opera 7.36%
> Safari 5.39%
> Chrome 2.17%
> 
> Firefox 46.80%
> Internet Explorer 42.45%
> Safari 5.36%
> Opera 3.07%
> Mozilla 1.22%

I have not looked at any of my own stats for quite a while, but yours
are just too good to be true :-)


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham

Per Jessen wrote:

Nathan Rixham wrote:


Though I always script to W3 Standards, I could care less if
browsers follow those standards, so long as we wind up closer and
closer to a general set of rules we can obide by.

Uh, only as long as that general set of rules is well documented.


/Per Jessen, Zürich


i never understand this, if i was makign a browser I'd be "where's the
rfc's" then code it to implement those rfc's - why people choose not
to is beyond me?


World domination is part of the reasoning ... 



/Per Jessen, Zürich



well that bubble should have popped..

from some of my sites:
Browser % visits
Firefox 88.43%
Internet Explorer 9.99%

Firefox 46.89%
Internet Explorer 37.66%
Opera 7.36%
Safari 5.39%
Chrome 2.17%

Firefox 46.80%
Internet Explorer 42.45%
Safari 5.36%
Opera 3.07%
Mozilla 1.22%

although the crapness of firefox 3 may change that a bit..

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
Nathan Rixham wrote:

>>> Though I always script to W3 Standards, I could care less if
>>> browsers follow those standards, so long as we wind up closer and
>>> closer to a general set of rules we can obide by.
>> 
>> Uh, only as long as that general set of rules is well documented.
>> 
>> 
>> /Per Jessen, Zürich
>> 
> 
> i never understand this, if i was makign a browser I'd be "where's the
> rfc's" then code it to implement those rfc's - why people choose not
> to is beyond me?

World domination is part of the reasoning ... 


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham

Per Jessen wrote:

Craige Leeder wrote:


Micah Gersten wrote:

I'd rather all the engines follow the W3C standards so that you just
have to make sure your web page is compliant.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com

  

Though I always script to W3 Standards, I could care less if browsers
follow those standards, so long as we wind up closer and closer to a
general set of rules we can obide by.


Uh, only as long as that general set of rules is well documented.  



/Per Jessen, Zürich



i never understand this, if i was makign a browser I'd be "where's the 
rfc's" then code it to implement those rfc's - why people choose not to 
is beyond me?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Lester Caine

Yeti wrote:

Just battling that fiasco myself. Konqueror and Dolphin combination just
does not work for me which is a pity - and KDE4 . I was pointed to xfce
which seems to be much more practical :)

Having ditched the Windows 'development machine' everything is now on a nice
linux box, but I was pulling my hair out with KDE4 


I think one has to look at KDE4 as the bloaded windows manager many
Windows switchers are looking for. With all its handy apps one does
not have to worry about how to get programs one had pre-installed
under Windows. For many unexperienced users it should make life alot
easier. Whereas for the other 25% KDE still is a great window manager,
but one should choose the "must-haves" before compiling it. With all
its useless tools/apps or whatever it takes alot of time to compile
(compare that to the linux kernel lol) and speaking for me, I don't
want 2 Gigs of never used data on my disk.


Forgot to hit - reply all - again :(
List emails should reply to the list :)
I think you have hit the nail on the head. Except that the 25% have 
problems finding things that have moved ...
The one thing I needed was 'marbles' which was supposed to be KDE4 only, 
but it works fine under xfce, so I'm slowly culling anything else I 
don't need


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
Craige Leeder wrote:

> Micah Gersten wrote:
>> I'd rather all the engines follow the W3C standards so that you just
>> have to make sure your web page is compliant.
>>
>> Thank you,
>> Micah Gersten
>> onShore Networks
>> Internal Developer
>> http://www.onshore.com
>>
>>   
> Though I always script to W3 Standards, I could care less if browsers
> follow those standards, so long as we wind up closer and closer to a
> general set of rules we can obide by.

Uh, only as long as that general set of rules is well documented.  


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Yeti
> Now I tend only to use it now for file management, FTP and testing
> websites.
Beware that Konqueror has changed with KDE4. Now its main purpose is
to be a web browser, whereas the new program "Dolphin" is used for
file management etc.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php