Thank you very much for the response; however I now have an unusual problem in that when I change the 'to' variable to the last 6 characters in a text file I get a lot clutter at the end; thus my dest variable reads:
/home/Dad/hello/cut/78945P<@?????\
so the file created is not 78945P in the...
Hi: a real newbie trying to write a utility that copies a file from 1 directory to another; I get a lot of error messages
#include <fstream>
#include <ios>
#include <iostream>
using std::cout;
int main() {
const char* from = "cod.fil";
std::string dir ("/home/Dad/hello/cut/");
const char* to...
Hi there:
I am trying to write a program that renames all files beginning IMAG (from my camera) to a more descriptive name. I have written the renaming part but if the file name to which the originating file is renamed already exists then the renaming does not take place - and the IMAG file is...
To partially answer my own question:
I have used this to return the file, where $file is the text field of the pdf:
echo "<td bgcolor = '#CCFF25'><a href='" . $file . "'>Retrieve File</a></td>";
However, it would be a lot cleverer to NOT use the field "1234.pdf" but instead use the index field...
Hi there:
I am writing a php/mySql site that locates stored pdf documents.
There is a lot of data so I have a query that generates an html table from the database, to narrow down the search.Thus the visitor is presented with a table of documents from which to select that required.
I have a field...
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.