[PHP] swaping numerical index for keys

2005-11-25 Thread Pooly
Hi,

I've an array :
$ls_statfields=array(
rfile =0,
file =1,
dev =2,
ino =3,
mode =4,
nlink =5,
uid =6,
gid =7,
rdev =8,
size =9,
atime =10,
mtime =11,
ctime =12,
blksize =13,
blocks =14
);

Which is the correspondance between the numerical and keys for stat
before PHP 4.0.6 :
http://uk.php.net/manual/en/function.stat.php

What would be the fastest solution to transform the result from stat
to the one with the keys (before 4.0.6 :-) ? (i.e. Exchanging
numerical indexing the for hash keys in the ls_statfields ?)

--
Pooly
Webzine Rock : http://www.w-fenec.org/

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



Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Pooly
2005/9/13, Ryan A [EMAIL PROTECTED]:
 Hi,
 I work for a company that makes websites and does custom programming for
 private indviduals and
 companies, I also freelance (like many on this list)
 
 I'm a bit curious, so far I have had no need to upgrade my skills or use the
 slightly different format /
 functions of PHP 5.x.infact I have not seen all that many hosts actually
 having support for it, so I
 thought of this little poll :-)
 
 Simply cross all the boxes that applies and reply to the list (along with
 your name on top)
 eg:
 [x] blah blah
 
 
 [] I am still working on PHP 4
 [] I never work with PHP 4 anymore, all my work is with PHP 5
 [] Oops, call me old fashioned but i am still with 3!
 
 [] I have no problems finding a host with PHP 5 support
 [] I can handle PHP 5, but I only work with PHP 4
 [] Nah, will wait till PHP 6 is out, theres not much diff between 4 and 5
 [] PHP 5 sounds / looks too hard to learn
 

[x] I use a layer above PHP which is independant of whether it's PHP4
or PHP 5, which is running Migration from 4.x to 5.0.3 was as
simple as changing a DNS record :-)
http://templeet.org/

-- 
Pooly
Webzine Rock : http://www.w-fenec.org/

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



Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Pooly
but you can actually put an header saying don't cache this page...



2005/8/18, Jay Blanchard [EMAIL PROTECTED]:
 [snip]
  how to clear the contents of cache in Internet explorer
 using php.If any one finds the solution do reply.
 [/snip]
 
 You cannot do this with PHP as PHP is server-side and you would need a
 client-side doohickey to clear the client's cache.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
Webzine Rock : http://www.w-fenec.org/

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



[PHP] class and global

2005-03-19 Thread pooly
Hi,
I'm trying to use a global object (declared at a upper level), but all I 
got is :
Call to a member function on a non-object in 
/home/pooly/public_html/templeet/modules/freedb.php on line 16

part of the code is :
$freedb = new freedbaxs();
Function return_freedb_search($array)
{
global $freedb;
[snip]
$freedb-freedb_search($txt);
so, can I access an object allocated outside a function ? this 
functionis meant to be a wrapper for that class, because I cannot access 
directly.
thanks for you help,

--
Pooly ;)
http://www.w-fenec.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] global and object

2005-03-19 Thread pooly
Hi,
I'm trying to use a global object (declared at a upper level), but all I 
got is :
Call to a member function on a non-object in 
/home/pooly/public_html/templeet/modules/freedb.php on line 16

part of the code is :
$freedb = new freedbaxs();
Function return_freedb_search($array)
{
global $freedb;
[snip]
$freedb-freedb_search($txt);
so, can I access an object allocated outside a function ? this 
functionis meant to be a wrapper for that class, because I cannot access 
directly.
thanks for you help,

--
Pooly ;)
http://www.w-fenec.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php