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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

require script

Status
Not open for further replies.

ibidris2003

Programmer
Aug 1, 2003
3
0
0
NL
require in first line
I have a website with a lot of php files. I need to to have the line (where "requiredfile.php"' should be a valid reference to the requiredfile.php in the top directory):
require "requiredfile.php" as first line in every php file. The requiredfile.php will be in the top dir and the line I mentioned must contain a valid reference to the requiredfile.php. PLease help me with a script for this task. Thanks.
 
man find
man sed (or man ex)

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top