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...
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...
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=\"" ...
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()...
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...
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
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.
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...
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)...
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...
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 "short_open_tag = off" as the default in php.ini. This means that any script that uses the "<?" instead of "<?php"...
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...
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?
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...
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...
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 "Virtual Machine" similtaneously with Windows.
Therefore, I would like to uninstall GRUB. How do I do this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.