Profile

Cover photo
Nikola Novakovic
Works at simplemachines
Attends Ekonomski fakultet Beograd
Lived in Belgrade
71 followers|26,075 views
AboutPostsPhotosVideos

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
71 people
Rastko Jovanovic's profile photo
Branislav Stojanovic's profile photo
Venerin San's profile photo
Milos Kovacevic's profile photo
Jovana Jakovljevic's profile photo
Zorica Djukic's profile photo
Matthew Kerle's profile photo
Виктория Невидомая's profile photo
Aleksandar-Jon Stefan's profile photo

Communities

13 communities
People
Have him in circles
71 people
Rastko Jovanovic's profile photo
Branislav Stojanovic's profile photo
Venerin San's profile photo
Milos Kovacevic's profile photo
Jovana Jakovljevic's profile photo
Zorica Djukic's profile photo
Matthew Kerle's profile photo
Виктория Невидомая's profile photo
Aleksandar-Jon Stefan's profile photo
Communities
13 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