Jump to content

Moron

Members
  • Posts

    369
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Moron's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. As the title says.... we have an old SCO OpenServer box with a database that contains archived info. We can't shut it down for this reason. I found an old database export from years ago in .DBF format, which I can easily convert to an Excel spreadsheet. But the problem is that it's the newest export we have and it's from 2006. I need one that covers through 2013 after they stopped inputting data. Is there a way to either: 1. Run another export? 2. Connect to it via ODBC (I have the root credentials)? If I can somehow get this database into Windows in whatever format, we can shut this box down. Another "option" is to virtualize it, but that's complicated and it sounds like putting lipstick on a pig to me. All help is appreciated.
  2. Yes, I'm using a relative path. If I use the full path (http://server/folder/subfolder, etc.....), it crashes.
  3. No, From Windows Explorer, they open in Notepad. From the browser, they open in a browser window. You can hover the mouse over each file listed and look at the bottom bar of the browser, and it will be pointing to a different file name. That's why they aren't matching.
  4. Aha! For some crazy reason, it will display one file name, but point to a different one! So where's the bug?
  5. Now there's a weird problem. I navigate to the folder in Windows Explorer and click a file, it has tons of information. I click it from this PHP page and it has just a couple of lines. It's obviously a different file, but the names match exactly. This is total Twilight Zone. Ideas?
  6. Ah. You're absolutely right I ot momentarily confused by the file names. Thanks a ton! .
  7. Thanks. That's closer, but it's sorting by file name (descending) and I need it to sort by file modified date (also descending, newest on top).
  8. In other words, my code does exactly what I want except for the sorting.
  9. Sorry to be so dense, but I don't write PHP every day. How do I integrate this into my existing code?
  10. I'm displaying the contents of a folder, with each file clickable. I can't seem to get it to sort by file date, with the most current on top (descending). What am I missing here? <?php echo "<h1>File Listing</h1>"; $content_array = array(); $path = "../FOLDER/Subfolder/"; $dh = opendir($path); $handle=opendir($dirname); $i=0; while (($file = readdir($dh)) !== false) { if ($file != "." && $file != "..") { $content_array[$i][0] = $file; $content_array[$i][1] = date ("Y m d", filemtime($dirname."/".$file)); $i++; } foreach($content_array as $res) $sortAux[] = $res[1]; array_multisort($sortAux, SORT_DESC, $content_array); echo "<a href='$path/$file' target=\"\_blank>$file</a><br />"; } closedir($dh); ?>
  11. Just wanted to let you know that I'm still here. I had a family emergency earlier in the week and finally got to revisit this yesterday. There are two php.ini files on this server (2008 R2, IIS 7.0); one in C:\Windows and one in C:\Program Files (x86)\PHP\v5.3\php.ini. I made your recommended changes to BOTH because I'm still confused between "Configuration File (php.ini) Path," which points to C:\Windows, and "Loaded Configuration File," which points to C:\Program Files (x86)\PHP\v5.3\php.ini. As in, which is the "real" one? Anyway, after making your recommended changes to BOTH php.ini files, I not only stopped and restarted the website through Internet Services Manager, I also stopped and restarted the World Wide Web Publishing Service. Still, phpinfo() shows exactly ZERO changes; error_reporting is still set to "22527" and display_errors is still set to "Off," pretty as you please. So until I can figure out what this boneheaded crap is, I can't implement your suggestions. And quite frankly, this is making me feel like a total idiot.
  12. Also, the Results page is back to showing me the full page code if I View Source. Help.....
  13. Okay, I have an update and it gets weirder by the minute. I replaced the "<?" tags with "<?php." All fine and good. Except......I can't do this on the very first tag. If I use the short tag, I get this: I know the data is there (and plenty of it), yet it shows me nothing. If I use the long tag, only on this first tag at the top, I get a blank page.
  14. Thanks, everyone, and sorry about my delayed response. What a day. Okay, from the top..... I went back and removed all of the suppressors (@) from the code. PFM, you are correct. I did exactly that, searched and replaced "<?" with "<?php." I'll go back in and fix that. For some reason, it no longer displays the php code when I right-click and View Source. I don;t know what "fixed" that. And again, I appreciate everyone's suggestions.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.