[PHP] Include Paths
Hello, I am fairly new to PHP and so far I love it. One question I have is how to call include files outside of their directory without hard coding the real path to the file itself. Is there map path or a similar function in PHP? Also when i use readfile() or fpassthru() when I echo the result what I assume is the file size is added to the end of the line. i.e.( blah blah blah will produce a 14 at the end of the line ) I was curious as to if there is a flag i'm missing that is causing them to do that. Thank you for the help! Dylan Finney www.healthcoast.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Regular Expression Question
Hello, I was wondering if there is a way to match a pattern, then delete the entire line containing the pattern. I.E. (if I was searching for "pattern" in a file containing pattern:info:info:info pattern2:info:info:info pattern3:info:info:info is there a way to delete the entire, and only the first line?) or is there an easier way to just remove a line from a file? thank you Dylan Finney www.healthcoast.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]