I don't know why the /* is in there. The conf file has been like that on the server for a while.
I've removed it now and will have to wait and see what happens. As I said - it's intermittent so it's not clear cut if there is a mistake in httpd.conf which causes the problem.
This is what is in the main part of httpd.conf:
-------------------------------
DocumentRoot "/home/mysite/public_html"
DirectoryIndex index.html index.htm index.php
IndexOptions FancyIndexing SuppressColumnSorting SuppressDescription SuppressLastModified SuppressSize SuppressIcon SuppressRules...
I have a problem where Apache will intermittently display either the directory index, or serve the correct index.html
I open up a new IE browser and go to http://www.mysite.co.uk/
Sometimes I will either get the correct index.html page displayed, sometimes a directory listing is returned.
If...
I have a routine which scans a directory looking for TXT files ready for parsing.
How can I ensure that the files are read in a certain sequence?
If the filenames are generated sequentially:
file1.txt 10:14 21-May
file2.txt 10:17 21-May
file3.txt 10:20 21-May
Then they are read in the...
Yes it's two tables Oldnames and Newnames. There is a relation linking the two.
I have tried the straight replace oldnames->name with newnames->names
It does update the database, but does not update the 2nd column on the screen. In other words the screen is not refreshing with the new data.
Two databases Oldnames and Newnames.
I have a table with two columns. What I want to do is to scroll down the list and if I press F1 I want the data in column 1 to be copied to column 2. i.e. the name in Oldnames to be Newnames
....
oColumn := TBColumnNew("Old Name", FieldWBlock("NAME", 2)...
OK, how about this next conundrum?
Think of this more like a stock inventory. How do I list those manufacturers who have 2 or more models in stock?
e.g.
Ford, Taurus
Ford, Taurus
Ford, Escort
Ford, Taurus
Ford, P350
Ford, Escort
Mitsubishi, Evo-7
Mitsubishi, Evo-7
Nissan, 350Z
Nissan, 350Z...
Let me try this one next.
Same as above, but only listing those manufacturers with 2 or more models.
Should return only:
Ford 3 models
Nissan 2 models
I tried
SELECT manufacturer,COUNT(DISTINCT model)
FROM cars
GROUP BY manufacturer
HAVING COUNT(DISTINCT model) > 1
but that's not right.
Hmm, all that does is give me the totals for each manufacturer - not their number of unique models.
I forget to add that the cars database contains many records:
Ford, Taurus
Ford, Taurus
Ford, Escort
Ford, Taurus
Ford, P350
Ford, Escort
Mitsubishi, Evo-7
Mitsubishi, Evo-7
Nissan, 350Z
Nissan...
I have a database which lists car manufacturers and their models. How can I retrieve data such that each manufacturer is listed as well as the number of models?
Data
-----
Ford, Taurus
Ford, Escort
Ford, P350
Mitsubishi, Evo-7
Nissan, 350Z
Nissan, Skyline GT-R
Required Report
---------------...
I don't know why I stuck with plain clipper 5.2 and vanilla rtlink over the past few years. I wish I had discovered xHarbour early. It certainly does fly. A few tests on some of my code sees a 3x speed increase.
I have a few questions though.
1) Where is the support? I can only find an xH...
Clipper runs much slower on Pentium systems than on equivalent AMD systems. I believe this is to do with changes to P4's which deprecated the use of 16-bit apps.
Is there a way around this? Is it just a matter of using a better compiler / linker?
In another thread Xharbour is mentioned. Does...
I'm trying to select data from within the last 28 days using PHP.
I don't think I'm getting the right results. This is either due to incorrect select or because of the leap year?
$date28 = date("Y-m-d", strtotime("-28 day"));
Is that correct or is there another way to do it?
If you mean that the server is showing 97% memory usage then thats normal - don't worry about it.
Unused ram is wasted ram. All Linux is doing is using your free ram as buffer or caching.
Even if you add another gig you'll find that you'll still have 9x% used.
What you need to look at is if...
I couldn't get the Net Use method to work. On investigation I found the following.
If you are using a networked printer, and the pc you are printing from hasn't got the printer attached e.g.
PC-A = usb printer
PC-B networked as peer to peer with PC-A
Then you still need to have the LPT1 port...
I solved this by removing MySQL 4 and installing version 3.23. This created the correct libraries which are required for dbfmysql.
Once compiled, I could then remove 3.23 and install 4 again. But also need to install mysql-shared-compat-4.x as this includes libmysqlclient10 files which are...
I'm trying to compile dbf2mysql 1.14 and I'm getting:
server:/temp/dbf2mysql # make
gcc -O2 -Wall -s -L. -L/usr/lib/mysql -o dbf2mysql dbf2mysql.o -ldbf -lmysqlclient -lm
dbf2mysql.o(.text+0x1046): In function `do_inserts':
: the use of `tempnam' is dangerous, better use `mkstemp'...
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.