Cannot use [] for reading ???
Results 1 to 2 of 2

Thread: Cannot use [] for reading ???

  1. #1
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    Cannot use [] for reading ???

    I installed php4 in windows 2000, I am new in php, I found an example called Form2email using php3, so I configured httpd.conf to work with php3, but I got this error :
    Fatal error: Cannot use [] for reading in c:\apache\htdocs\form2email\form2email.php3 on line 153

    here is the line 153 :
    $return[];

    Please help.

  2. #2
    PHP and SQL Guru
    Join Date
    Jan 2001
    Posts
    1,031

    RE: Cannot use [] for reading ???

    That should say
    array $return;

    or $return[] = 'some value';

    It's a bug in the code. Looks like you'll have to break out the manual and fix it.

    Tom

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •