copy web page
-
How to copy web page using php? I tried this But it is not working. Any Idea how to do this ?
It works for me. Check that the
allow_url_fopen
option is enabled and that you have permission to write to the output file. Manual page.[^] It's also possible that the server you're running it on is firewalled to prevent it accessing the remote address, so I would check that you can get to it from the server using something like lynx. -
It works for me. Check that the
allow_url_fopen
option is enabled and that you have permission to write to the output file. Manual page.[^] It's also possible that the server you're running it on is firewalled to prevent it accessing the remote address, so I would check that you can get to it from the server using something like lynx.Thanks for your help. it is working code but I am trying to copy all data. Open this link "http://nseindia.com/marketinfo/companyinfo/companysearch.jsp?cons=mll§ion=7" in your browser and then match the data with example.txt after that you can understand what i want to say.My question is how can i copy all data using php ? Thanks in advance.
-
Thanks for your help. it is working code but I am trying to copy all data. Open this link "http://nseindia.com/marketinfo/companyinfo/companysearch.jsp?cons=mll§ion=7" in your browser and then match the data with example.txt after that you can understand what i want to say.My question is how can i copy all data using php ? Thanks in advance.
I get exactly the same content if I save out the page as when I run the PHP script - a page with empty tables. I see what the problem is though - the data is loaded using Javascript, so isn't present in the page at all. If all you want is the data, I'd recommend finding out how it gets pulled onto the browser and reading that instead.
-
I get exactly the same content if I save out the page as when I run the PHP script - a page with empty tables. I see what the problem is though - the data is loaded using Javascript, so isn't present in the page at all. If all you want is the data, I'd recommend finding out how it gets pulled onto the browser and reading that instead.