hey.. found out what was wrong. didnt have Read permission of the file for others LOL. But yeah the C version of it, why does it work in Netscape and not IE?
primal
-----
Hey everyone!
Has anyone run into this before...
I'm creating a UNIX CGI program that will parse $QUERY_STRING and save... (1 Reply)
Hi
I run on a Unix webserver at my university. I have a couple of *.inc files which are include files used for php.
They are all in one folder without an index file. If you go to the folder, you get to see a list of files in that dir.
Some of the .inc have a question mark icon next to... (3 Replies)
There is a web API https://pi.ercot.com/contentproxy/publicList?folder_id=10001937
As soon as this is fired on the browser a page comes in which many files are listed for downloads
I want to download all the files ....is it possible to write a shell script which can download the files (1 Reply)
hi
plz help me in sending a mail with some data in body and an attachment as some txt file.
currently i am able to send mail with some body content, i need an example how to send the same along with attachment.
thanks in advance
-bali (2 Replies)
I have a shell script that takes a file and uses "syncsort" to sort contents.
I want to add a condition to check whether the input file is textual or binary format. If textual, the "syncsort" will be used to sort the files contents. Otherwise, the sorting process will be skipped.
Note that the... (3 Replies)
I am limited to using only libraries that come with the default install of ActivePerl. I'd like to be able to determine the content type of a file on the fly. I thought CGI.pm might do it, but it looks a little weird to me from the perldoc. If someone has a quick way to determine the type of... (4 Replies)
Hi,
I'm facing a problem in mailing attachments using uuencode in mailx.
I got to attach a couple of flatfiles. I'm able to attach and mail the files successfully.
But there is a problem in the format of the flatfiles when they are received as an attachemnt.
For Example :
Consider... (0 Replies)
Hi All,
I want to send the csv to an email address.
I have tried the below two approaches.
Approach1: Got error -ksh: uuencode: not found
$ uuencode test_file.csv test_file.csv | mailx -s "Attaching test" msdc.kiran@gmail.com </usr/home/test_file.csv
-ksh: uuencode: not found
Approach2:... (6 Replies)
Hi, Please see my code below i'm trying get an email send with attachment and html content in the body.
Using the code below will put the encoding for attachment in the body as well
SUBJECT="$(echo "XPI Monitoring "${tcnt}" transactions waiting \nContent-Type: text/html")"
cat... (3 Replies)
Discussion started by: bhoshan
3 Replies
LEARN ABOUT PHP
http_send_file
HTTP_SEND_FILE(3) 1 HTTP_SEND_FILE(3)http_send_file - Send fileSYNOPSIS
bool http_send_file (string $file)
DESCRIPTION
Sends a file with support for (multiple) range requests.
This functions behaviour and further action is dependent on the following INI settings: http.send.not_found_404 and http.log.not_found.
If the INI settinghttp.send.not_found_404 is enabled and the INI settinghttp.log.not_found points to a writable file, a log message is
written when the $file was not found.
PARAMETERS
o $file
- the file to send
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
A http_send_file(3) example
<?php
http_send_content_disposition("document.pdf", true);
http_send_content_type("application/pdf");
http_throttle(0.1, 2048);
http_send_file("../report.pdf");
?>
The above example will output:
HTTP/1.1 206 Partial Content
X-Powered-By: PHP/5.2.2
Accept-Ranges: bytes
Content-Length: 12345
Content-Range: bytes 0-12344
Content-Type: application/pdf
Content-Disposition: inline; filename="document.pdf"
%PDF...
SEE ALSO http_send_data(3), http_send_stream(3), http_throttle(3), http_send_content_type(3), http_send_content_disposition(3), the HttpResponse
class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_SEND_FILE(3)