-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a number of files that contain data in a format I am not familiar with. All of the data files begin with the same byte sequence, presumably a file header, and the sequence is "URES". I'm assuming that these files are some kind of resource file, perhaps a collection of data or other files…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have two files:
fileA:
date >> /root/kvno.out
kvno serverXXX\$ >> /root/kvno.out
fileB:
foobar
I need to create a new file, fileC, with the same contents as fileA, except with the string XXX being replaced with the contents of fileB:
date >> /root/kvno.out
kvno serverfoobar\$…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've come across a question where a user is having difficulties accessing an image through a script (using cURL/file_get_contents()):
How to save an image from url using PHP?
The image link seems to return a 403 error when using file_get_contents() to request it. But in cURL, a more detailed error…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hello. im trying to echo YH if $url contains http://yahoo.com/ ! how can i do it? I've tried something like this;
$url = "'".$get['url']."'";
$needle = "http://yahoo.com/";
$contents = file_get_contents($url);
if(stripos($contents, $needle) !== false) {
$qqq = "YH";
}
but it's not working. can…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey All!
I am currently running into some problems with user's downloading a file stored on my server. I have code set up to auto download a file once the user hits the download button. It is working for all files, but when the size get's larger than 30 MB it is having issues. Is there a limit on…
>>> More