Reply to Re: global variables???

Your name:

Reply:


Posted by Lexinho on 09/21/05 16:24

"Patrick" <psmith@marine.usf.edu> escreveu na mensagem
news:dgckps$il5$1@news1.usf.edu...
>
>
> $ZZZdataFile = "/DATA2/BUOY/ZZZdata.dat";
> if (!($fpZZZa = fopen($ZZZdataFile, "r")))
> exit("Unable to open $ZZZdataFile.");
> while (!feof($fpZZZa))
> {
> // Assign variables to optional arguments
> $buffer = fscanf($fpZZZa, "%s %s %s %s %s %s",
> $ZZZdate $ZZZtime, $ZZZlat, $ZZZlon);
> }
> fclose ($fpZZZa);
>
>

I can't try it out here (no PHP installed), but as far as I remember:

$ZZZ = "C10";

${$ZZZ."dataFile"} = "/DATA2/BUOY/".$ZZZ."data.dat";
if (!(${"fp".$ZZZ."a"} = fopen(${$ZZZ."dataFile"}, "r")))
etc.

Was this your question?

---
lex

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация