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 strongm 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: *

  1. GeckoNZ

    Filename variable points to temp file

    Thanks sleipnir214. I now have it all working beautifully thanks to you pointing me in the right direction. [thumbsup2]
  2. GeckoNZ

    Filename variable points to temp file

    I guess that my real problem is in trying to pass the filename twice, i.e. to one function and then another. First get the filename thru the form with an input type of "file" so that I get the ability to browse the local file system. I pass the filename to a function that checks the file...
  3. GeckoNZ

    Filename variable points to temp file

    Thanks for the link, it has helped me make some progress. I am able to get the filename from the file upload array $_FILES['LoadFile']['name'] but this is just the filename, not the full path name. Any idea how I can get the Directory element of the full path, it doesn't seem to be an element...
  4. GeckoNZ

    Filename variable points to temp file

    Hi, I am trying to select a file from a form and then pass this filename to another function for processing. The the filename seems to end up as something like ... /tmp/php123XYZ snippets of code : (from the form) echo " <form method=\"post\" ENCTYPE=\"multipart/form-data\" action=\"" ...
  5. GeckoNZ

    control M (^M) characters in text

    Found the answer ... You can replace the carriage returns as follows : $text = str_replace(chr(13),' ',$text)
  6. GeckoNZ

    control M (^M) characters in text

    I am extracting data from an MSSQL database and output to a pipe (|) delimited text file. However, I am getting "^M" characters in my output file. I believe that this is because there must be carriage returns in on of the database fields. How can I remove them? I have tried the strtr()...
  7. GeckoNZ

    Nested queries gets &quot;Warning: SQL error: , SQL state&quot;

    I'll look into the native MSSQL support option. I used the informix specific functions in php whenever accessing the informix databases. thanks
  8. GeckoNZ

    Nested queries gets &quot;Warning: SQL error: , SQL state&quot;

    Here's a dump from "PHPinfo" which shows sections of the apache support for the different databases. So I guess, looking at that, that there is "native" support for the other databases ? odbc ODBC Support enabled Active Persistent Links 0 Active Links 0 ODBC library iodbc ODBC_INCLUDE...
  9. GeckoNZ

    Nested queries gets &quot;Warning: SQL error: , SQL state&quot;

    yes, the second query is OK. I can paste it into MS Query Analyser & it runs fine. The problem has something to do with the nesting of queries and I can replicate the error by trying to run any query when looping through a previous result set array. thanks
  10. GeckoNZ

    Nested queries gets &quot;Warning: SQL error: , SQL state&quot;

    see P.S. on original post. The example is a simplified query & I know I could do a join. The second query does not produce a result set. It fails with the SQL State error.
  11. GeckoNZ

    Nested queries gets &quot;Warning: SQL error: , SQL state&quot;

    If I try to run a query while looping through a result set from another query e.g. : $act = " SELECT account_number acct "; $act .= " FROM acct_master "; $Xresult = odbc_exec($conn,$accts); while(odbc_fetch_row($Xresult)) { $x_acct = odbc_result($Xresult,"acct"); $tran = " SELECT...
  12. GeckoNZ

    Excel can't open some files, no error message

    I've run out of ideas on this one. I have excel files that were originally generated by a Crystal Info Server. Most workstations on the network (150) can open the files without problems. My workstation (Windows XP Professional, Office 2000) and at least 1 other (Windows 2000, Office 2000)...
  13. GeckoNZ

    MS Word read modify write

    I've tried reading an MS Word document fread(), replacing text e.g. <<Placeholder>> with a str_replace() and writing it back. A bit like a poor man's mailmerge. But the document isn't readable after the operation. I've tried the same thing with a text editor and replacing just 1 character has...
  14. GeckoNZ

    Linux/PHP setup ?

    I had similar problems when upgrading a server from RH7.2 to RH8. The final gotcha, that meant some of my code no longer worked, was the setting of &quot;short_open_tag = off&quot; as the default in php.ini. This means that any script that uses the &quot;<?&quot; instead of &quot;<?php&quot...
  15. GeckoNZ

    Printing disappears into the ether RH 8

    I have 2 machines running RedHat 8. One of them was upgraded from RH7.2 and has an HP LaserJet attached. This machine acts as a print server to a couple of Windows2000 workstations using Samba. This still works fine. The second RH8 machine will not print. I set the printer up using the KDE...
  16. GeckoNZ

    Promiscuous mode ...

    Promiscuous mode is ususally used by network monitoring tools, packet sniffers etc. It means that the Ethernet device will capture all packets, not just ones addressed to this station. Have you installed a monitoring tool of some sort that might account for this?
  17. GeckoNZ

    Upgrade Apache, PHP, RedHat 7.2 to RedHat 8

    Thanks so far. One of the other reasons to upgrade my develop/test box is because the final product is hosted externally. I find that my host site is right up there with the PHP module at ver 4.3.1, but running Apache 1.3.27. Rather than Apache 2 that seems to be bumdled with the latest...
  18. GeckoNZ

    Upgrade Apache, PHP, RedHat 7.2 to RedHat 8

    I've been running a RH7.2 server for some time specifically as a web server with PHP as a PHP development/test platform. I want to use some session control features of PHP but find that they are only supported after PHP 4.2. My server is running 4.0.6. The more I looked into upgrading the PHP...
  19. GeckoNZ

    GRUB, removing

    I have a machine set up to boot either Red Hat or Windows. I installed the GRUB boot loader. I now want to want to try setting up VMware so that I can have Red Hat running in a &quot;Virtual Machine&quot; similtaneously with Windows. Therefore, I would like to uninstall GRUB. How do I do this?
  20. GeckoNZ

    MS Project import/export

    Thanks again Chris, it looks like a project in it's early stages but definately worth monitoring. ..Geoff

Part and Inventory Search

Back
Top