Profile

Cover photo
Nikola Novakovic
Works at simplemachines
Attends Ekonomski fakultet Beograd
Lived in Belgrade
68 followers|24,652 views
AboutPostsPhotosYouTube

Stream

 
#php #phpdevelopment Hey there. I need a way to display information from a text file stored on server to html, but based on a specific line in the file itself. For example, I want to display content of line 5. Is that possible, and can someone suggest me how to do that? Thanks! :)
1
Chris Dempsey's profile photo
 
Will fgets do what you need? See example #2
http://www.w3schools.com/php/func_filesystem_fgets.asp

You could count the loops, grab the value of the fifth then exit and close the file.

Or can you use an XML file and use simpleXML to go straight to the value of the fifth element by name?
Add a comment...

Nikola Novakovic

Need Help (QnA)  - 
 
Hey there. I need a way to display information from a text file stored on server to html, but based on a specific line in the file itself. For example, I want to display content of line 5. Is that possible, and can someone suggest me how to do that? Thanks! :)
1
Jesus M. Castagnetto's profile photoNikola Novakovic's profile photoSeth Webster's profile photoCharles Torvalds (AskApache)'s profile photo
8 comments
 
$ sed -n '5p'
Add a comment...
Have him in circles
68 people
Dobrica Dzabic's profile photo
Keith Baird's profile photo
David Tile's profile photo
Magdalena Simanovic's profile photo
Matthew Kerle's profile photo
Lazar Mitrović's profile photo
Steve Barker's profile photo
chandan chatterjee's profile photo
Mario Stjepanović's profile photo

Communities

12 communities
People
Have him in circles
68 people
Dobrica Dzabic's profile photo
Keith Baird's profile photo
David Tile's profile photo
Magdalena Simanovic's profile photo
Matthew Kerle's profile photo
Lazar Mitrović's profile photo
Steve Barker's profile photo
chandan chatterjee's profile photo
Mario Stjepanović's profile photo
Communities
12 communities
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Belgrade - Valjevo
Work
Occupation
Programming, coding, chiling :)
Skills
Project Management, programming, html, php, css, planning
Employment
  • simplemachines
    2011 - present
Education
  • Ekonomski fakultet Beograd
    present
Basic Information
Gender
Male
Other names
Dzonny
Apps with Google+ Sign-in