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]
 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 arrays
 deep. I currently search thru all of these arrays, and based on some
 criteria, I want to delete
 one of the arrays (along with all of its sub-arrays) in the middle.
 
 What is the easiest way to delete such an embedded array?
If you know all the keys leading to the subarray you want to remove
(which you probably do if you've just searched your way to it), then a
simple unset() should work, similar to:
Unset($array[$key1][$key2][$key3]);
Cheers!
Mike
 --
Mike Ford,  Electronic Information Developer,
C507, Leeds Metropolitan University, Civic Quarter Campus, 
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom
Email: m.f...@leedsmet.ac.uk
Tel: +44 113 812 4730
To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: RE: [PHP] MAIL Error

2009-04-21 Thread zhoo

you don't include the mail class?

or the include path is incorrect .


2009-04-21 



zhoo 



发件人: Warren Vail 
发送时间: 2009-04-21  15:41:25 
收件人: ramesh.marimu...@wipro.com; php-general@lists.php.net 
抄送: 
主题: RE: [PHP] MAIL Error 
 
Isn't mail a function and not a class?
Warren 
 -Original Message-
 From: ramesh.marimu...@wipro.com [mailto:ramesh.marimu...@wipro.com] 
 Sent: Tuesday, April 21, 2009 12:29 AM
 To: php-general@lists.php.net
 Subject: [PHP] MAIL Error
 
 Hi All,
 
 While using $m=new MAIL; I get an error Fatal error: Class 
 'MAIL' not found in
 
 Can anyone help on this?
 
 regards,
 -ramesh
 
 P Save a tree...please don't print this e-mail unless you 
 really need to
 
 
 Please do not print this email unless it is absolutely necessary. 
 
 The information contained in this electronic message and any 
 attachments to this message are intended for the exclusive 
 use of the addressee(s) and may contain proprietary, 
 confidential or privileged information. If you are not the 
 intended recipient, you should not disseminate, distribute or 
 copy this e-mail. Please notify the sender immediately and 
 destroy all copies of this message and any attachments. 
 
 WARNING: Computer viruses can be transmitted via email. The 
 recipient should check this email and any attachments for the 
 presence of viruses. The company accepts no liability for any 
 damage caused by any virus transmitted by this email. 
 
 www.wipro.com
 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: [PHP] $_FILES empty, trouble with uploading

2009-03-05 Thread zhoo

yes,I agree with Ash ,you can test it on a local testing server or the other 
server.

if it work ,then you can sure it's environment problem.


2009-03-05 



zhoo 



发件人: Ashley Sheridan 
发送时间: 2009-03-05  04:10:02 
收件人: Karl St-Jacques 
抄送: php-general 
主题: Re: [PHP] $_FILES empty, trouble with uploading 
 
On Wed, 2009-03-04 at 09:02 -0500, Karl St-Jacques wrote:
 Hello people. 
 
 I have some trouble with an upload script. It was working until the last 2 
 weeks. 
 
 Whenever I tried to upload a file to a remote server, the $_FILES array is 
 empty. I print global at start of the script there's nothing. 
 
 Here's the form
 
 form action=http://random.server.com/video/upload.php; method=post 
 enctype=multipart/form-data
 input type=hidden name=sessid value=yada
 input type=hidden name=ugroup value=xfr
 input type=hidden name=memberid value=25798
 input type=hidden name=referrer value=server.com
 labelTitle:/labelinput type=text name=video_title value=N/A 
 size=20 maxlenght=30
 labelDescription:/labelinput type=text name=video_desc value=N/A 
 size=20 maxlenght=255
 labelCategory:/label
 select name=video_category
  option value=1yada/option
  option value=5yada2/option
 /select
 input type=hidden name=MAX_FILE_SIZE value=209715200 /
 input name=vid_files type=file size=30 /br /
 input type=submit name=upload class=sbtn value=Go! /
 /form
 So it's a basic form, I do have the enctype. 
 
 the print_r($GLOBALS) return me [_FILES] = Array
 (
 )
 
 PHP Version 5.2.6file_uploads is On
 post_max_size 200M
 upload_max_filesize 200M
 upload_tmp_dir no value (it use /tmp)
 
 the /tmp folder is writable by apache (chmod 777) with 197G of space left. 
 
 So, obviously, I'm lost as why I can't upload file anymore. 
 
 Anyone had a similar problem ? What could I do to find/fix the problem ? 
 Is it even related to PHP ? 
 
 Thanks, 
 Karl
 
 
 _
 Share photos with friends on Windows Live Messenger
 http://go.microsoft.com/?linkid=9650734
Has your php.ini file been changed at all? If the max upload setting and
memory settings have been reduced, it will affect uploads. How large is
the file you are trying to upload? And lastly, does the script work on a
local testing server?
Ash
www.ashleysheridan.co.uk
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php