php - Alternative to file_get_contents or curl for remote file -


I am trying to include a specific line html text in my site's page. I have 20 sites which I want to use so that I am trying to specify Site 1 1 line and site 2 line 2, etc. This code is not currently working to include any row. Can anyone help me to do this work? The end result is that with 20 different sites, 20 different lines of text are shown to draw data from a remote file.

The file gets content or it is included on my server so I need to work around. (

And I have to put this code where I want the data.

  & lt ;? Php $ data = url_get_contents ("http: // mydomain com / mytextfile.txt"); If ($ data) {$ lines = explosion ("\ n", $ data); Resonate lines [0]; }? & Gt;  Edit:  I got the solution The above code works now and calls from a distance and sets the line in resonance. 


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -