Re: remote call - no return
| From: | Jason Wong | Date: | Wed, 21 May 2003 21:06:01 +0000 |
| Subject: | Re: remote call - no return | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148446@lists.php.net to get a copy of this message | ||
On Thursday 22 May 2003 04:53, Thomas Hochstetter wrote:
> Yes. Well, here is the scipt that is called to return the id ... maybe it
> does not return:
>
> [snip]
> $file = "v.txt";
> $data = $QUERY_STRING;
>
> function writevars($data,$file)
> {
> $fp = fopen ($file,"w"); // opens file for reading + writing
> if ($fp) //if the file exists (should always)
> {
> fputs($fp, $data);
> }
> fclose($fp);
> }
>
> writevars($data,$file);
> $id = md5(rand(2,12));
> ==> return $id;
> [snip]
I don't think 'return' does anything meaningful outside of a function.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Your mail is being routed through Germany ... and they're censoring us.
*/