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 TouchToneTommy 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
  • Content: Threads
  • 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

    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...
  3. 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='#'...
  4. james0816

    fopen() problem - will not open a file

    very simple: <?php $fh=fopen("Logs/test.txt","r") or die ("can't open file"); ?> Doesn't open the file. blank screen. File is in the location. Am i missing the big picture here?
  5. james0816

    Opening files using PHP

    I've ran into a problem and have not figured out a way out of it. Not even sure if I'm coding correctly. I created a nice PHP web application for my company. Users sign on, pull up data and even access files. The opening of files is where I am stuck at. in my PHP page, i was programming...
  6. james0816

    Problem Accessing Files via HTTP:

    hello, i was just referred to this forum for my issue. I am using IIS for my webserver. I can access files using the following: FILE://<server>/<share>/test.pdf I CANNOT access files using this: HTTP://<server>/<share>/test.pdf. I've tried .DOC, .TXT and others with the same results. What...
  7. james0816

    Problem opening a file in IE Browser

    Not sure why this is occuring but I am having an issue opening PDF files on my local intranet via a webpage I just created. I can access them if I use FILE:// but not HTTP:// Example: FILE://<server>/<share>/test.pdf - I can open it this way HTTP://<server>/<share>/test.pdf - Page cannot be...
  8. james0816

    Return to previous page

    Is there an easier way to return to a previous page where you are passing variables instead of passing them to the next page and then passing them back? seems really tedious if you passing several variables to between pages. Example: Page1: <a href='page2.php?a=1&b=1&c=3'>click</a> Page2...
  9. james0816

    header('Refresh') Question

    when using the refresh....is it possible to pass a variable in the url that you are passing? I.e. $a1='test'; header('Refresh: 5; URL=test2.php?var1=$a1'); i get to the next page but the var1 is empty.
  10. james0816

    Problem with download script

    I am using the script below to download files. However, when I open the file i just downloaded regardless of the format, it has the webpage appended to the top. what gives? $filename = $row['name']; $filename = realpath($filename); $file_extension =...
  11. james0816

    how to display a php file in broswer

    I'm just messing around with PHP trying to learn it better. I created just a basic file named test.php and saved it at the root of C: (C:\test.php) code: <? echo "HI"; ?> How do I get it to display in my IE browser? every time I try to put the file name in it wants me to open or save the...
  12. james0816

    Any particular reason \n doesn't work?

    I thought this was for advancing a line yes/no? echo "HI!\n"; echo "BYE!"; should produce: HI! BYE! instead i get: HI! BYE!
  13. james0816

    Problem with fwrite()....Not writing

    I have created a text file and now am trying to write to it. Simple enough...so I thought...but nothing is getting written. $lfile=date("Ymd")."Out.txt"; if (file_exists($lfile)) { fopen($lfile,'w') or die ("Can't Open Log File"); $lstring="HI!"; fwrite($lfile, $lstring); fclose($lfile); }...
  14. james0816

    Get Max() value between two tables

    What is the best way to get the maximum value of a "like" field in two tables? (I.e. Table1 - Field1 - Values: 0002, 0003, 0005 Table2 - Field1 - Values: 0001, 0005 ) Result should be: 0005
  15. james0816

    Count Records from two tables

    I have two tables and I want to count the number of records where field1 = 1. tbl1 field1 1 2 1 0 tbl2 field1 0 0 1 Result should be 3 Can someone help with the right coding? thx
  16. james0816

    View Files from either browser or via the App

    I would like to access certain files from my webpage to view on the screen and not download them. I have a viewer installed already on the machine. As of now, I can physically go to that folder and open the file. However, if i try to access it from the webpage, it wants me to download it (it...
  17. james0816

    Viewing files in browser or associated application

    I would like to access certain files from my webpage to view on the screen and not download them. I have a viewer installed already. As of now, I can physically go to that folder and open the file. However, if i try to access it from the webpage, it wants me to download it. How can I change...
  18. james0816

    Problem with removing a folder

    All of a sudden I have developed an issue in removing a folder. The folder is empty. Have full rights to location (i can create the folder as well add and remove files in the folder). I coded a very simple test page to eliminate an issue with the variables: <?php $fl="\\\Server1\\Share1"...
  19. james0816

    Force Download Script....Actions After Execution

    I'm using the following script to download files from my server. how do you display a message (or can you) after it is done? I tried putting in an echo statement both before and after the code but it never executes. $filename = 'costos.pdf'; $filename = realpath($filename)...
  20. james0816

    Connect to Network Share and Create Folders and Files

    I have my site working just fine on the local machine. I'm able to create folders and upload files and such just fine on this machine. I would like to ramp it up another notch by being able to connect to another machine and do the same (create folders, upload, download,etc). Basically it is...

Part and Inventory Search

Back
Top