[PHP] GET HEADLINES FROM ANOTHER SITE
I´d like to know how to get certain headlines from another site. I already got the permission from the site owner, but I'm short on the programing. It would be something like, get the source code from the url: www.url.com and then remove all the html, and get only the part that I need. Does anybody can give a hand? Thanx, Rodrigo.
[PHP] Is there a way to retrieve an entire source code from a php file?
What I want to know is if it is possible to retrieve a source code from a url, with a php file. Something like this: There is a php file that retrieve the source code from the url www.url.com and this source is treated and you get content from this file and show it on the response page. Is this possible? Can anyone show me the right direction? Rodrigo.
[PHP] How to get a certain line from a file
How can I get a certain line from a file? If I get a file in this way: $f = fopen("http://www.url.com/index.htm","r";); How can I get a certain line of the file index.htm? I would need to get the line number 232, or lines from 232 to 238. How can I get this content? Thanx. Rodrigo
[PHP] How to remove the html Tags?
Hi guys, is there a function that will remove all the Html tags from a file? How should I do it? Thanks for any clues, Rodrigo
[PHP] Control what is going to be exibited on screen
Ok, guys this is it With th code bellow I can get the html file from a url and get the content without the html tags, but I wanna control the exibition of this content and only display the lines 1 to 4, and I can't seem to get how to do this. I thank any advice you can get me. Rodrigo // Get a file into an array. In this example we'll go through HTTP to get // the HTML source of a URL. $lines = file ('http://www.site.com'); // Loop through our array, show html source as html source; and line numbers too. foreach ($lines as $line_num => $line) { $notags = "Line #{$line_num} : " . strip_tags($line) . "\n"; echo $notags; }
[PHP] How to store a file in an array and access each line
How can I read a file in a url, into an array so that I can access each line by itself? Thanx Rodrigo
[PHP] Adding to a MySql Database
I have a field on a MySql database that is started with a 0, and I want to add 1 to this field every time a button is pressed on a form. So it should add one every time, like if there is 5 and you press it one time it would have 6.
[PHP] Drop down Menu
Hi, I need to do a drop down menu that loads the contents from a msql database. Like this: I need a select that has the name of every salesman of a certain department, and this info is dynamic and is recorded in a database (MySql). So what would the select have to be like? Also the load value is obvious diferent from the value that is sent from the form when the submit button is pressed, this value would be another column in the same table of the name. Thanks, Rodrigo