Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- parse error: syntax error, unexpected T VARIABLE


Matthew1980 - 8:24 am on Aug 7, 2010 (gmt 0)


Hi there alertsfortraders,

What are you trying to achieve?

$handle = chmod('/dir/path','0777') fopen($filename, 'b');


your assigning too much to the 'handle' variable, fopen needs to be on its own line, and preferably setting it's read write directive to 'r+' (read and write) [uk3.php.net ]

And chmod() only needs to be set to 755, I have no idea why people try to give absolute full permissions to directories at all, 755 is plenty - at least that's what I usually do, but that's just my opinion :)

What is the format of the data in the CSV file (I know as it means comma separated, but you never know)

and:-

$string_to_add = $wpusername." ".$symbol." ".$type." ".$alert." ".$trigger." ".$price."\n";


I'm guessing as you will want spaces between the individual strings? Then again I am guessing..

If this is all in the same directory you will be fine, but I strongly suggest that you learn to define root folders so that you can make access a little more reliable...

Hope I haven't confused you too much.

Cheers,
MRb


Thread source:: http://www.webmasterworld.com/php/4183256.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com