Re: arg...zend tutorial problem
| From: | Lars Torben Wilson | Date: | Fri, 06 Oct 2000 01:52:24 +0000 |
| Subject: | Re: arg...zend tutorial problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18810@lists.php.net to get a copy of this message | ||
Kurth Bemis writes:
> i'm using http://www.zend.com/zend/tut/photogallery.php to
> make a simple
> foto gallery....i hit this problem....
>
> Parse error: parse error, expecting `')'' in
> /www/usaexpress/test/upload/picupload.php on line 35
>
> and line 35 is:
>
> 34 srand(microtime());
> 35 $id = sprintf("%c%d",ord(?A?)+rand(0,26),time());
^^^
I suspect that you cut-n-pasted this out of your browser, which had
converted the quotes into question marks. Change those to quotes (for
this purpose, either double or single will do) and you should be fine.
Make sure to check the rest of your code for similar problems.
> 36 $dirname = "$filepath/$id";
> 37 mkdir($dirname,0700);
>
> whats wrong?
>
> ~kurth
> Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer
Hope this helps,
Torben
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Netmill iTech|
|http://www.coastnet.com/~torben http://www.netmill.fi|
|Ph: 1 250 383-9735 torben@netmill.fi|
+----------------------------------------------------------------+