Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what's wrong w/ `echo $str >> file`;

Status
Not open for further replies.

jimbojames5645

Programmer
Joined
Dec 12, 2003
Messages
36
Location
US
what's wrong w/ this :`echo $str >> file`; nothing shows up in the file, however when i do `echo "bubba" >> file`;, it works fine.
 
This script:

Code:
<?php
$str = 'foo';
`echo $str >> thefile.txt`;
?>

Works fine for me, both through a web page and through the command-line.

What version of PHP are you running on what platform?


Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top