Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: james0816
  • Order by date
  1. james0816

    Virtual Directory Question

    can you download files from a virtual directory or does it have to come from the physical directory?
  2. james0816

    fopen() problem - will not open a file

    this is true....i am in a strictly IE environment and since this is for a local intranet, i know the machines that will be accessing the webpage will have all the helpers needed. that's the plus side of course. now if it were on the internet where there are different browsers, helpers and...
  3. james0816

    fopen() problem - will not open a file

    it just takes a fresh mind...i have believe i have it working now....use inline to display the file in a browser window (providing of course you have a plugin installed) and attachment to force the download. i just need to add a few more lines of code with a case statment and i believe i can...
  4. james0816

    fopen() problem - will not open a file

    <?PHP $filename="spcc.doc"; $path="C:\\"; header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.$filename.'"'); header('Content-Length: ' . filesize($path.$filename)); readfile($path.$filename) or die("cannot open file"); ?> ok....i got this code...
  5. james0816

    fopen() problem - will not open a file

    i tried that ... the dialog box that opens is asking me open or save the php page...not the file.
  6. james0816

    fopen() problem - will not open a file

    ok..one last question on this...then its just time to move on. TIF files. I have a viewer installed on the machine. how do i get the content-type in there to open these files?
  7. james0816

    fopen() problem - will not open a file

    Is there a default context type or string to use that it will prompt you to download the file if the appropriate plug in is not available.
  8. james0816

    Query Question

    thx..that's the way i had it. just thought there might be a better way.
  9. james0816

    Window.Open - Name the window

    unfortunately i cannot do that as the page is php code do a file retrieval. it messes with the code if do. already tried that.
  10. james0816

    Query Question

    two tables...TableA and TableB. Both tables have the following common field names but not data: Field1, Name, Location Field1 is unique so that there will be no duplicate values between tables. I want to seach both tables for a value in Field1 and retrieve the Name and Location fields only...
  11. james0816

    Window.Open - Name the window

    Doesn't the window.open give you the option of naming the new window? it does open the new window however the window name is the filepath/name. I want to name it something else. Thx very basic: <script> function openwin() { window.open ('openit.php', 'newwindows') } </script> <a href='#'...
  12. james0816

    fopen() problem - will not open a file

    well duh!! lol see...i am soooo frustrated at this. i was thinking it had to come from the second page. DOH! time for beer....then back to coding.
  13. james0816

    fopen() problem - will not open a file

    ok...just did the easy one again (standard text file). i got it to open...now to try the pdf again. very quick question...i notice that it opens in the same window as the code. can it open in a new window?
  14. james0816

    fopen() problem - will not open a file

    ok...let me drop back 20 yards and punt. what would/should be the correct code to open a file in a new browser window without prompting to open or save? we'll keep it simple and just say a standard word document. I'm going to completely start from scratch.
  15. james0816

    fopen() problem - will not open a file

    yeah...definately not a permission problem. the interesting this is....i've copied code from my download page...and it doesn't work from the new page either. I don't get prompted to save or anything. Granted...I dont want to ask the user to open or save most files (I.e. word, excel, pdf...
  16. james0816

    fopen() problem - will not open a file

    sorry all...trying every which way this side of sunday...but having absolutely no luck. It is possible to open these files in the browser this way correct? I'm just really curious at this point with all the code changes and it still not working.
  17. james0816

    fopen() problem - will not open a file

    that didnt get it either....sry
  18. james0816

    fopen() problem - will not open a file

    i tried both ways...having all in there and also commenting all but msword
  19. james0816

    fopen() problem - will not open a file

    modified code: $filename="spcc.doc"; $path="C:\\"; header("Cache-Control: private",false); header('Content-Type: application/octet-stream'); header("Content-Type: image/jpeg"); header("Content-Type: application/pdf"); header("Content-Type: application/msword"); header("Content-Type...
  20. james0816

    fopen() problem - will not open a file

    sry...no luck

Part and Inventory Search

Back
Top