RE: [PHP] removing an array from a compound array

2009-07-02 Thread Ford, Mike
> -Original Message- > From: Andres Gonzalez [mailto:and...@packetstorm.com] > Sent: 02 July 2009 00:46 > To: php-general@lists.php.net > Subject: [PHP] removing an array from a compound array > > I have a compound array, that is, an array of an array of an array, > etc, > that is about 5

Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-02 Thread Lester Caine
Jonathan Tapicer wrote: What version, VC6 or VC9, TS or NTS? I use VC6 TS and the dll is there... Of cause no one has asked yet which version you use if you have to test BOTH Apache and IIS ;) -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=conta

Re: RE: [PHP] removing an array from a compound array

2009-07-02 Thread zhoo
yes,i agree with Mike's method. 2009-07-02 zhoo 发件人: Ford, Mike 发送时间: 2009-07-02 15:12:20 收件人: Andres Gonzalez; php-general@lists.php.net 抄送: 主题: RE: [PHP] removing an array from a compound array > -Original Message- > From: Andres Gonzalez [mailto:and...@packetstorm.com]

Re: [PHP] Re: PHP 5.3.0 Released!

2009-07-02 Thread Nick Cooper
Does anyone have any further information on the PECL Binaries for 5.3, will they be released? 2009/6/30 pan > Lukas Kahwe Smith wrote: > >> Hello! > >> > >> The PHP Development Team would like to announce the immediate release > >> of PHP 5.3.0. This release is a major improvement in the 5.X ser

Re: [PHP] Re: PHP 5.3.0 Released!

2009-07-02 Thread Michael A. Peters
Nick Cooper wrote: Does anyone have any further information on the PECL Binaries for 5.3, will they be released? I don't, but I suspect it is just a matter of compile + test. On Linux (CentOS) I've only done testing with i386 but none of the pecl modules I personally am using w/ 5.2.9 failed

[PHP] Dom PDF Problem

2009-07-02 Thread Pravinc
Hey all, I am working with generating PDF using Dom PDF. My problem is when I generate a single PDF , Its working fine. But when I code it in a loop for generating more than one PDF it gives some error. $DomObj = new DOMPDF(); $DomObj->load_html_file($pth); $DomObj->

Re: [PHP] removing an array from a compound array

2009-07-02 Thread Andres Gonzalez
Duh! I should have known that. I actually tried that and had a problem so I thought unset() would not work on an array. Guess that problem was elsewhere. Thanks for the responses... -Andres Ford, Mike wrote: -Original Message- From: Andres Gonzalez [mailto:and...@packetstorm.com] Se

Re: [PHP] Dom PDF Problem

2009-07-02 Thread Paul M Foster
On Thu, Jul 02, 2009 at 04:29:01PM +0530, Pravinc wrote: > Hey all, > > I am working with generating PDF using Dom PDF. > > My problem is when I generate a single PDF , Its working fine. > > But when I code it in a loop for generating more than one PDF it gives some > error. > >$DomObj = n

[PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Govinda
Dear list-members I am using what I assume is a pretty standard cPanel setup (?) I would like to be able change the mime types/extension so that ".html" gets sent through the PHP interpreter, but I see the cPanel docs say "...(note that you can not alter the system defined mime type values

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Daniel Brown
On Thu, Jul 2, 2009 at 12:40, Govinda wrote: > > Can someone point me to this? Wrong list. ;-P In fact, check Google for .htaccess MIME aliasing. It's nothing to do with PHP, nor cPanel, really. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Michael A. Peters
Govinda wrote: Dear list-members I am using what I assume is a pretty standard cPanel setup (?) I would like to be able change the mime types/extension so that ".html" gets sent through the PHP interpreter, but I see the cPanel docs say "...(note that you can not alter the system defined mime

[PHP] namespace keyword

2009-07-02 Thread Martin Scotta
Hil all I'm a 5.2.0 user (WINXP) I have a class like this... Class IsThisBad { const NAMESPACE = 'something'; /* code */ function __construct( $other=self::NAMESPACE ) { /* do stuff */ } } Recently the version 5.3 was released, so... should I change the const "NAMESPACE" in t

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Govinda
If you have mod_rewrite installed - put the following in your .htaccess file: RewriteEngine on RewriteRule ^index\.html$ index.php [L] That will cause index.php to be called when index.html is requested. If you want it to forward to index.php then use [R] instead of [L] If you want all .htm

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Daniel Brown
On Thu, Jul 2, 2009 at 13:38, Govinda wrote: > > I must not have mod-rewrite installed (I am 98% uneducated about > apache/server admin). > I will save your post though MIchael, for when I get more to that level.. >  you gave a good lead. You've got mod_rewrite on there. If you're getting an

[PHP] Re: namespace keyword

2009-07-02 Thread Greg Beaver
Martin Scotta wrote: > Hil all > > I'm a 5.2.0 user (WINXP) > I have a class like this... > > Class IsThisBad > { >const NAMESPACE = 'something'; >/* code */ >function __construct( $other=self::NAMESPACE ) >{ > /* do stuff */ >} > } > > Recently the version 5.3 was relea

[PHP] Implode a 2D Array

2009-07-02 Thread salmarayan
Can any one tell me how can i implode a two D Array. i can implode normal arrays, but when i try to implode multidimensional Arrays, the result is empty. can some one tell me how to implode an array Like This $x=array ( [0] => array ( [side] => sell [stock_code] => AFMC.CA [quantity] => 200 ) ,

Re: [PHP] Implode a 2D Array

2009-07-02 Thread Shawn McKenzie
salmarayan wrote: > Can any one tell me how can i implode a two D Array. > i can implode normal arrays, but when i try to implode multidimensional > Arrays, the result is empty. > can some one tell me how to implode an array Like This > > > $x=array ( [0] => array ( [side] => sell [stock_code] =>

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Govinda
On Jul 2, 2009, at 11:40 AM, Daniel Brown wrote: On Thu, Jul 2, 2009 at 13:38, Govinda wrote: I must not have mod-rewrite installed (I am 98% uneducated about apache/server admin). I will save your post though MIchael, for when I get more to that level.. you gave a good lead. You've

Re: [PHP] cannot figure out permissions for fopen/fwrite

2009-07-02 Thread Waynn Lue
The tmp folder isn't accessible from the web though, right? Someone would first have to get access to your server for that. On 7/1/09, Mari Masuda wrote: > > On Jul 1, 2009, at 12:54, Shawn McKenzie wrote: > >> Mari Masuda wrote: >>> On Jul 1, 2009, at 12:20, Shawn McKenzie wrote: >>> Shawn

[PHP] Sessions

2009-07-02 Thread Jason Carson
Hello all, Do I have to add session_start() at the beginning of every page so that the $_SESSION variables work on all pages or do I use session_start() on the first page and something else on other pages? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Sessions

2009-07-02 Thread Daniel Brown
On Thu, Jul 2, 2009 at 23:27, Jason Carson wrote: > Hello all, > > Do I have to add session_start() at the beginning of every page so that > the $_SESSION variables work on all pages or do I use session_start() on > the first page and something else on other pages? Yes, unless you're using ses

Re: [PHP] cannot figure out permissions for fopen/fwrite

2009-07-02 Thread Mari Masuda
Yes, currently the tmp folder (or any folders in my Apache htdocs folder) is not accessible to the web due to the Mac's built-in firewall set to block all incoming traffic except network time and something installed by Adobe when I installed CS4 (e.g., Photoshop, InDesign, etc.). However,

[PHP] Encoding problems on IIS7 + FastCGI on windows server 2008

2009-07-02 Thread Jon Lau
Hi, The php scripts works OK on windows 2000 server ( it supports chinese, english & japanese - UTF-8 encoding) but it shows ??? ( non-english chars ) when copied to IIS7 + Fastcgi on windows 2008. Is there some settings to change in php.ini ? Regards, Jon Lau -- PHP General Mailing List

[PHP] memcache and security

2009-07-02 Thread Michael A. Peters
I'm looking into caching technologies. memcache looks straight forward, but seems to lack any security, which seems to indicate it should not be used with shared hosting where another user could read or alter the objects. Is there any way to at least do hostname based authentication with memc

Re: [PHP] memcache and security

2009-07-02 Thread Michael A. Peters
Michael A. Peters wrote: I'm looking into caching technologies. memcache looks straight forward, but seems to lack any security, which seems to indicate it should not be used with shared hosting where another user could read or alter the objects. Is there any way to at least do hostname based