[PHP] A strange problem..

2005-04-03 Thread JoShQuNe \(TR\)
Hi, i have a strange problem. In my site i have to counters for file downloads. One is general, other is weekly. On the main page i display a list sorted according to weekly hits. The problem is there: i give this prompt mysql_query(SELECT * FROM table ORDER BY weekly_hits DESC LIMIT 15) to

[PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now: dl.php?rel=/files/somefile.zip, i want: dl.php?id=64b3j283) The file path and id is read from mysql table. System

Re: [PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
--- Richard Lynch [EMAIL PROTECTED] wrote: On Mon, March 21, 2005 3:45 pm, JoShQuNe \(TR\) said: Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now: dl.php

[PHP] How can i calculate total process time?

2005-03-15 Thread JoShQuNe \(TR\)
Hi, i wanna ask if anybody knows how to calculate the total process time of a script. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe

Re: [PHP] How can i calculate total process time?

2005-03-15 Thread JoShQuNe \(TR\)
Thnx for yr answers. I fixed it. Problem was the places of codes. They were line under line now i took to the beginning and itz calculating correctly.. The code was: //Beginning $mtime = explode( ,microtime()); $starttime = $mtime[1] + $mtime[0]; //Just before i print $mtime = explode(

[PHP] How can i calculate total process time?

2005-03-05 Thread JoShQuNe \(TR\)
Hi, i wanna ask if anybody knows how to calculate the total process time. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe that it is

[PHP] I really need help...

2004-12-19 Thread JoShQuNe \(TR\)
I really need help to solve this problem. Help me to solve, please do not say to ask someone else. My problem is i have .txt file size of 3-5 kb with long rows. I have a mysql table and a column type of longtext, name html. What I have to do is: I have to open .txt and read inside and insert