[PHP] File Upload Problem

2004-10-20 Thread Nathan Mealey
This file upload problem has me very confused. The code is: $upload_dir = '/articles_store/'; $uploadfile = $upload_dir . basename($_FILES['userfile']['name']); if (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)) { } else { die ("Cannot upload file"); } (this code is practically ve

Re: [PHP] A better way to do this in php???

2004-10-20 Thread trenton
Why not use the date function? date("g:i a"); Trenton > I need to find the exact time of day using "minutes since midnight". > > What is the easiest and/or better way to do this in php? > > This is how I'm doing it now. > > // $iMinutes is the total number of minutes since midnight/12am > // 0 =

Re: [PHP] A better way to do this in php???

2004-10-20 Thread Robert Cummings
On Wed, 2004-10-20 at 19:37, [EMAIL PROTECTED] wrote: > Why not use the date function? > > date("g:i a"); The OP wants to get the time based on a value indicating the number of minutes since midnight. He doesn't want the current time. The following should give him what he needs: $iMinutes =

Re: [PHP] File Upload Problem

2004-10-20 Thread Robby Russell
On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote: > This file upload problem has me very confused. > > The code is: > > $upload_dir = '/articles_store/'; > $uploadfile = $upload_dir . basename($_FILES['userfile']['name']); > > if (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadf

Re: [PHP] File Upload Problem

2004-10-20 Thread Robby Russell
On Wed, 2004-10-20 at 17:00 -0700, Robby Russell wrote: > On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote: > > This file upload problem has me very confused. > > > > The code is: > > > > $upload_dir = '/articles_store/'; > > $uploadfile = $upload_dir . basename($_FILES['userfile']['name'])

RE: [PHP] url

2004-10-20 Thread Zareef Ahmed
-Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 10:38 PM To: PHP General List Subject: [PHP] url I have this old script I wrote 2-3 years back. I gets arguments from the url. index.php?area=blah Dear, you forgot to update yourself

RE: [PHP] Send variable in include()

2004-10-20 Thread Zareef Ahmed
-Original Message- From: Pete [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 10:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Send variable in include() I'm trying to send a variable an include that is recieve from another page: - navi.php- http://www.example.com/view.php?off

<    1   2