You are here: Re: Stuck on Tutorial « All PHP « IT news, forums, messages
Re: Stuck on Tutorial

Posted by Jerry Stuckle on 11/27/07 11:45

Wyngs wrote:
> According to a tutorial, the five lines at the bottom are all that's
> needed to cause a file named testFile.txt to be created. I put those 5
> lines in a page called study.php, uploaded it to my server, and changed
> all the permissions to 777. (And later experimented with some others).
> The result is always this error:
>
> Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or
> '$' in /home/nyghtwyn/public_html/study/study.php on line 3
>
> Stymied at this point. Any help will be appreciated.
>
>
>
> <?php
> $ourFileName = "testFile.txt";
> $ourFileHandle = fopen($0urFileName, 'W') or die("can't open file");
> fclose($ourFileHandle);
> ?>
>

$ourFileName is NOT $0urFileName.

Also, 'W' needs to be 'w'.

PHP is case sensitive in variable names, and fopen()'s second parameter
is case sensitive.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this 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

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