On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote:
> On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling
> wrote:
>> That's correct, but to access those variables outside of their scope (such
>> as a function) you do via a SuperGlobal, namely $GLOBAL['whatever'].
>>
>> As such, there are no "
On Mar 10, 2012, at 12:20 PM, Maciek Sokolewicz wrote:
> function getAmountOfDaysInAMonth($month, $year) {
> $days = array(31, (($year%4==0 and ($year%100 > 0 or $year%400==0)) ? 29 :
> 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
> return $days[$month+1];
> }
I like that -- here's a small
> The best option is to sort it in the query.
yes, of course!, that makes sense.. I feel silly not thinking of that in the
first place.
Now I do not need to sort the array with PHP.. but glad you mentioned
array_multisort() as well.. so I could make a mental note of that function.
Thanks to S
On 03/10/2012 07:01 PM, Shawn McKenzie wrote:
> foreach ($query->result() as $row) {
>> $arr_cTree[$row->cID] = array($row->cPcID, $row->cL, $row->cName,
>> $row->cSeg, $row->cSort);
>> }
Actually, you may construct your array as follows to make sorting with
ksort():
foreach ($query->result
On 03/10/2012 06:42 PM, Govinda wrote:
> Hi Everyone
>
> I am newbie enough with the terminology around PHP arrays that I am slow to
> wrap my head around what I know is in the docs (what i am reading)... but
> just can't identify yet.
>
> I think it will be faster if someone can translate for
Hi Everyone
I am newbie enough with the terminology around PHP arrays that I am slow to
wrap my head around what I know is in the docs (what i am reading)... but just
can't identify yet.
I think it will be faster if someone can translate for me in terms of my
question:
I make an array by buil
On Sat, Mar 10, 2012 at 9:47 PM, tamouse mailing lists
wrote:
> I'm just a bit baffled why this isn't a standard library function.
Good question, but I think the problem here is that there are tons of
these small functions, and you got to make a choice on what to
implement and what not. I can thi
On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling wrote:
> On Mar 9, 2012, at 10:20 PM, Jim Giner wrote:
>> "tamouse mailing lists" wrote in message
>> news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
>>> On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling
>>> wrote:
On Fe
I'm just a bit baffled why this isn't a standard library function.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 10 March 2012 19:06, Matijn Woudt wrote:
> On Sat, Mar 10, 2012 at 6:20 PM, Maciek Sokolewicz
> wrote:
> > On 09-03-2012 14:11, Daniel Brown wrote:
> >>
> >> (To the list, as well. First day with my new fingers,
> apparently)
> >>
> >> On Fri, Mar 9, 2012 at 08:09, Daniel Brown wrot
On Sat, Mar 10, 2012 at 6:20 PM, Maciek Sokolewicz
wrote:
> On 09-03-2012 14:11, Daniel Brown wrote:
>>
>> (To the list, as well. First day with my new fingers, apparently)
>>
>> On Fri, Mar 9, 2012 at 08:09, Daniel Brown wrote:
>>>
>>> On Thu, Mar 8, 2012 at 21:23, Tedd Sperling
>>> wr
Hi, Lester
Can you give us some more information?
How is php called in your apache-configuration? (f)cgi, module or somehow else?
You said that the configuration should be the same ... can you
double-check that? Reload the services etc ...
What about the logs? There must be more info in there ..
On 09-03-2012 14:11, Daniel Brown wrote:
(To the list, as well. First day with my new fingers, apparently)
On Fri, Mar 9, 2012 at 08:09, Daniel Brown wrote:
On Thu, Mar 8, 2012 at 21:23, Tedd Sperling wrote:
This starts getting a bit off-topic from your original email, but
know
Hi, TR Shaw
I would next try curl as php-extension.
If that is working well, and you need it definitely with file() I'd use
Wireshark to check which request is sent to the remote machine.
Bye
Simon
2012/3/10 TR Shaw
> This is weird. This statement fails:
>
>$tlds = file("http://www.su
This is weird. This statement fails:
$tlds = file("http://www.surbl.org/tld/three-level-tlds";,
FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
Warning: file(http://www.surbl.org/tld/three-level-tlds): failed to open
stream: HTTP request failed! HTTP/1.0 502 Bad Gateway
also tried the
OK this has got to be some configuration problem!
I've two machines running fine Apache 2.2.15/PHP5.3.8 and two not with what
should be identical Apache/PHP setups.
All SUSE machines but 11.3, 11.4 and 12.1 with 11.3 and 11.4 machine running
fine ...
http://piwik.medw.org.uk/phpinfo.php has http:
"Tedd Sperling" wrote in message
news:315faa8f-3103-4661-b167-d30248952...@gmail.com...
On Mar 9, 2012, at 10:20 PM, Jim Giner wrote:
> "tamouse mailing lists" wrote in message
> news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
>> On Mon, Feb 13, 2012 at 2:39 PM, Tedd
On Mar 9, 2012, at 10:20 PM, Jim Giner wrote:
> "tamouse mailing lists" wrote in message
> news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
>> On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling
>> wrote:
>>> On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote:
On 13 Feb
18 matches
Mail list logo