tag:blogger.com,1999:blog-35239346.post5874227965477885674..comments2023-12-27T19:34:11.118+01:00Comments on TronProg: Programming and Computers: Grab the content of the html body in Phpbettohttp://www.blogger.com/profile/16462664783219149049noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-35239346.post-24333211982942372862019-09-18T22:45:53.933+02:002019-09-18T22:45:53.933+02:00I remember exactly how I started my first work wit...I remember exactly how I started my first work with HTML. Unfortunately, I stopped at this step and now fortunately there are special companies that provide IT solutions. At the moment I have already used the services of <a href="https://grapeup.com/services/application-development/" rel="nofollow">grapeup.com/services/application-development</a> so I know what good work of applications in the cloud means.Steve Broadcasternoreply@blogger.comtag:blogger.com,1999:blog-35239346.post-70365677966148274572016-07-01T11:55:08.127+02:002016-07-01T11:55:08.127+02:00thank you very much for the script, it is working ...thank you very much for the script, it is working for me !!<br />AlexAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-35239346.post-42727008371019301012014-02-23T22:48:09.121+01:002014-02-23T22:48:09.121+01:00How would you handle this now that eregi_replace h...How would you handle this now that eregi_replace has been deprecated. <br /><br />I've struggled trying to replicate this using preg_replace because it is looking for delimiters.<br /><br />Any clues?Adendumnoreply@blogger.comtag:blogger.com,1999:blog-35239346.post-80422282082948855002011-08-15T22:40:05.655+02:002011-08-15T22:40:05.655+02:00very nice code....
as far as Anonymous question.....very nice code....<br /><br />as far as Anonymous question....you can not have php code inside a html document .... you must save it as .php and then run the getbody() <br /><br />;)cafeinenoreply@blogger.comtag:blogger.com,1999:blog-35239346.post-88493261826699132752008-10-22T15:36:00.000+02:002008-10-22T15:36:00.000+02:00you're right about that, but I don't know a soluti...you're right about that, but I don't know a solution for this case...bettohttps://www.blogger.com/profile/16462664783219149049noreply@blogger.comtag:blogger.com,1999:blog-35239346.post-53736237054378980622008-07-22T09:35:00.000+02:002008-07-22T09:35:00.000+02:00echo getbody("page.html");this is not equal to inc...echo getbody("page.html");<BR/><BR/>this is not equal to <BR/><BR/>include("page.html");<BR/><BR/>If you have php code inside page.html, this code is not processed!<BR/><BR/>is there a method for this case?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-35239346.post-47550188242940547832008-01-07T01:03:00.000+01:002008-01-07T01:03:00.000+01:00All you need to do is to create a php file (say ex...All you need to do is to create a php file (say example.php) with the following content:<BR/><BR/>... copy the function getbody ...<BR/><BR/>echo getbody("http://domain.com/test.html");<BR/><BR/>remember to put anything between the php tags (i.e., < ? php and the closing ? > I cannot put it into this post since the system does not allow it)<BR/><BR/>is this what you needed?bettohttps://www.blogger.com/profile/16462664783219149049noreply@blogger.comtag:blogger.com,1999:blog-35239346.post-10134129159734285132007-12-27T16:57:00.000+01:002007-12-27T16:57:00.000+01:00Thanx Bretto,But I am a real newbe... :(Isn't it p...Thanx Bretto,<BR/><BR/>But I am a real newbe... :(<BR/><BR/>Isn't it possible to include a little script in the HTML of my own page. So just a few lines in the html of the page example.php?<BR/><BR/>Where do I have to place the "http://domain.com/test.html"?<BR/><BR/>Thanx again!Anonymoushttps://www.blogger.com/profile/15733888066023300931noreply@blogger.comtag:blogger.com,1999:blog-35239346.post-76810449702235169992007-12-27T15:21:00.000+01:002007-12-27T15:21:00.000+01:00well... you just need to call the above function i...well... you just need to call the above function in a php script...bettohttps://www.blogger.com/profile/16462664783219149049noreply@blogger.comtag:blogger.com,1999:blog-35239346.post-35714730766228847132007-12-27T13:54:00.000+01:002007-12-27T13:54:00.000+01:00Thanx,I am not very good in PHP, but would love to...Thanx,<BR/><BR/>I am not very good in PHP, but would love to grab a body from another server. For example, if a would like to grab the body of: "http://domain.com/test.html" , how will the PHP code look like????<BR/><BR/>Could you help me and give this in an example? Thanx,<BR/><BR/>StijnAnonymoushttps://www.blogger.com/profile/15733888066023300931noreply@blogger.com