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

Some small Questions...Pls Help! 1

Status
Not open for further replies.

Forri

Programmer
Joined
Oct 29, 2003
Messages
479
Location
MT
Hi all

So i have a few questions would u mind:

1) When an error occurs an Error is givin..something like "notice: ....bla bla". I would like to know how i can capture that error so i can Log it in my Flat file!

2) How can i know the number of lines in the Flat Files. So i can keep a counter.

3) How can i go to the root (Alias source) of the page?


Thanks
Nick
 
1. see the manual
2. Read the entire file into an array and use the count($arrayName) to count the number of items in the array. Note that this may not produce the correct number if you have blank lines or need to process the data in some way.

3. Huh? What do you want here...to see the source of the page thru the browser?

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Seems good enough!

No the with the root i meant hemm likein asp it was Server.map or something similar! just so can have a clean access to the locations!

thanks
Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top