Search found 14 matches
- Mon Feb 04, 2008 8:19 pm
- Forum: PHP - Code
- Topic: How to download a file (with browser) using fsockopen() ?
- Replies: 2
- Views: 1889
Re: How to download a file (with browser) using fsockopen() ?
I just need help doing the fsockopen bit, i just can't figure out how to get a remote file to download in my browser using this function and HTTP 1.0. 
- Sun Feb 03, 2008 10:30 am
- Forum: PHP - Code
- Topic: How to download a file (with browser) using fsockopen() ?
- Replies: 2
- Views: 1889
How to download a file (with browser) using fsockopen() ?
Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on how to use fsockopen() to fetch a file on a remote server, and t...
- Fri Nov 30, 2007 10:31 am
- Forum: PHP - Code
- Topic: remove index.php from url (http://domain.com/?dir=/etc )
- Replies: 7
- Views: 913
Believe it or not, I think I am beginning to understand the concept. :lol: What you as PHP experts, are explaining to me, is as difficult for me to understand as it is for me to explain myself to you. If i am not mistaken, are you saying that there is no such thing as 'removing' index.php via PHP? T...
- Thu Nov 29, 2007 9:10 pm
- Forum: PHP - Code
- Topic: remove index.php from url (http://domain.com/?dir=/etc )
- Replies: 7
- Views: 913
what i mean is that if you download any common directory indexer out there (e.g. PHP AutoIndexer) you will find that if you look in the addressbar as you browse directories, the url is always http://localhost/AutoIndex/index.php?dir=. Also, if you look on forums or other things, there is usually in ...
- Thu Nov 29, 2007 5:29 pm
- Forum: PHP - Code
- Topic: remove index.php from url (http://domain.com/?dir=/etc )
- Replies: 7
- Views: 913
/?foo=bar is equivalent to /index.php?foo=bar -- just make sure your links use the former format. You can add a couple lines to the top of index.php to check $_SERVER['REQUEST_URI'] and redirect if index.php is in the uri i know it's equivalent, but let's say i open a directory in a folder (for exa...
- Thu Nov 29, 2007 4:33 pm
- Forum: PHP - Code
- Topic: remove index.php from url (http://domain.com/?dir=/etc )
- Replies: 7
- Views: 913
remove index.php from url (http://domain.com/?dir=/etc )
hello everyone i am trying to modify a directory indexing script and i would like to know if there is a way to 'remove' the /index.php?file= format type from a url so there is just /?file= (e.g. a question mark after a slash which automatically points to an index.php file. i would like to do this wi...
- Thu Nov 29, 2007 12:52 pm
- Forum: PHP - Code
- Topic: PHP download resume functionality - please help with code!
- Replies: 5
- Views: 614
- Sun Nov 25, 2007 7:28 pm
- Forum: PHP - Code
- Topic: Monitor ip bandwidth transfer via php - how to make code?
- Replies: 6
- Views: 960
Wait wait.. You want to block users from using bandwidth after they've used a certain amount?? Why would you want to do that? By the way, you can't reliably retrieve the user's IP address, and some users IP addresses change. I'm fully aware of the IP pitfalls! I simply want to know the code so I ca...
- Sun Nov 25, 2007 6:45 pm
- Forum: PHP - Code
- Topic: Monitor ip bandwidth transfer via php - how to make code?
- Replies: 6
- Views: 960
What about image files, CSS files, and JavaScript files? I think you should look more into monitoring bandwidth via the server rather than PHP. Yes thanks, but I'm using shared hosting so this is the only way to do it (in PHP anyway); and it's purely the transfer of certain filetypes i'm concerned ...
- Sun Nov 25, 2007 5:47 pm
- Forum: PHP - Code
- Topic: Monitor ip bandwidth transfer via php - how to make code?
- Replies: 6
- Views: 960
- Sun Nov 04, 2007 6:56 pm
- Forum: PHP - Code
- Topic: PHP download resume functionality - please help with code!
- Replies: 5
- Views: 614
- Thu Nov 01, 2007 1:54 pm
- Forum: PHP - Code
- Topic: PHP download resume functionality - please help with code!
- Replies: 5
- Views: 614
- Thu Nov 01, 2007 12:47 pm
- Forum: PHP - Code
- Topic: PHP download resume functionality - please help with code!
- Replies: 5
- Views: 614
PHP download resume functionality - please help with code!
Please can somebody tell me why this isn't returning the index page? It is technically supposed to, and if somebody can get it to work I can then use remote download resume functionality in my site. According to http://www.answers.com/http, it is a HTTP 1.1 request that supposedly should work...I ca...
- Sat Oct 20, 2007 1:13 pm
- Forum: PHP - Code
- Topic: Monitor ip bandwidth transfer via php - how to make code?
- Replies: 6
- Views: 960
Monitor ip bandwidth transfer via php - how to make code?
After a considerable amount of googling, I basically was left with these two scripts, with some (but not much) of an idea on how to integrate them. The first one: This one seems to do what I want, but I don't know how to add to it to store the bandwidth usage (based on ip). <?php function CalcBandwi...