[PHP-DB] PHP login with MYSQL Question?

2005-11-18 Thread JeRRy
Hi, Okay I created a user/pass login area. I created the following code. Now I want the secure area to send a cookie to the users PC we can track so I can make multiple pages without the need for the user to login to each page individually. I want to know what is the best method/code

RE: [PHP-DB] PHP login with MYSQL Question?

2005-11-18 Thread Bastien Koert
$_SESSION is better than $_COOKIE ( more secure) Bastien From: JeRRy [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] PHP login with MYSQL Question? Date: Fri, 18 Nov 2005 22:34:08 +1100 (EST) Hi, Okay I created a user/pass login area. I created the following code. Now I

[PHP-DB] Can't Upload ram file

2005-11-18 Thread Mohamed Yusuf
the script I am using can upload images like, jpg, gif or png to the server, but it can't upload music file to the server like ram and rm. any help?

RE: [PHP-DB] Can't Upload ram file

2005-11-18 Thread Bastien Koert
show code, maybe checks are being done to only allow images or certain extensions... Bastien From: Mohamed Yusuf [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] Can't Upload ram file Date: Fri, 18 Nov 2005 06:19:24 -0800 the script I am using can upload images like, jpg, gif

Re: [PHP-DB] Can't Upload ram file

2005-11-18 Thread Mohamed Yusuf
? $uploadDir = 'media/'; if(isset($_POST['upload'])) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; // the files will be saved in filePath $filePath = $uploadDir . $fileName;

Re: [PHP-DB] Can't Upload ram file

2005-11-18 Thread Mohamed Yusuf
here is the code ? $uploadDir = 'media/'; if(isset($_POST['upload'])) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; // the files will be saved in filePath $filePath =

Re: [PHP-DB] Can't Upload ram file

2005-11-18 Thread Micah Stevens
Perhaps it's not file type that is the problem, but file size? -Micah On Friday 18 November 2005 6:19 am, Mohamed Yusuf wrote: the script I am using can upload images like, jpg, gif or png to the server, but it can't upload music file to the server like ram and rm. any help? -- PHP

[PHP-DB] Mailer issue with PHP and MySQL

2005-11-18 Thread Chris Payne
Hi Guys, I'm using PHP with MySQL data to send a very important email to clients when they enter the recipients email address into the system. On the whole it works for ME, to either my yahoo email address or any of my own domains email addresses that I have, However, when my WIFE gets it

Re: [PHP-DB] Mailer issue with PHP and MySQL

2005-11-18 Thread Micah Stevens
you're not setting the mime types correctly, and your boss probably has some spam filter that tosses incorrect email. I suggest using the PEAR Mail extension, it will automatically set this all up for you. It's very easy and nice to use. -Micah On Friday 18 November 2005 10:32 am, Chris

RE: [PHP-DB] Mailer issue with PHP and MySQL

2005-11-18 Thread Bastien Koert
try phpmailer Note, check with your host to ensure they have a proper domain to send the emails from that matches your site...many MTAs now kill mails from localhost or a host that doens't match the orgiinal domain bastien From: Chris Payne [EMAIL PROTECTED] To: php-db@lists.php.net

[PHP-DB] Drag and Drop with PHP and MySQL

2005-11-18 Thread Chris Payne
HI there everyone, I have a file upload system where you select via requester the file to upload, it then uploads it with PHP and stores the info in a MySQL database. Is there an interface / programming method I can use which I can DRAG a file from the desktop into an area in a form just as if