[PHP-DB] String pictures in MySQL

2005-03-17 Thread Bunmi AKinmboni
I want to store picture in a MySQL field. What type do I call the field and any guide or link on the net to tell me how to store the picture? Bunmi from Lagos -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: redirecting function

2005-03-17 Thread Bunmi AKinmboni
Ha, I see Ben and Ken have dealt with the most common cause with the header statement especially Ben. Hope you're okay now? Bunmi from Lagos Yemi Obembe wrote: hi folks, who knows any function that can do this javascript trick window.location='<a href="http://so

[PHP-DB] Re: redirecting function

2005-03-17 Thread Bunmi AKinmboni
Can you state the exact error? Bunmi in Lagos Yemi Obembe wrote: hi folks, who knows any function that can do this javascript trick window.location='<a href="http://somewhere.com/">http://somewhere.com/</a>' tried header(location:http://somewhere.com/) but it g

Re: [PHP-DB] Help with file upload

2003-10-21 Thread bunmi
Hello Neil, I want to really thank you. You cracked my month long problem for me. The destination path was supposed to be the absolute path: /home/ayserve/public_html/fu/ It is working fine now. Regards, Bunmi Neil Smth wrote: At 18:44 16/10/2003 +, you wrote: From: Ruprecht Helms <[EM

Re: [PHP-DB] Help with file upload

2003-10-16 Thread Bunmi Akinmboni
HI Nitin, Is that not dangerous as it will affect the entire server structure? Bunmi Nitin wrote: permission is ok but it's got to be inside the home directory of web server, which is /var/www by default for apache Nitin - Original Message - From: "Bunmi Akinmboni" &l

Re: [PHP-DB] Help with file upload

2003-10-16 Thread Bunmi Akinmboni
Neil, The folder fu is not the root. I just created it for testing and it has 777 permission. My ultimate aim is to update a database upon successful uploading. Bunmi Neil Smth wrote: Bunmi, you need to understand Unix file permissions. Because you are running as the web server 'user /

Re: [PHP-DB] Help with file upload

2003-10-16 Thread Bunmi Akinmboni
Thanks Neil. My ultimate aim to update my database with the details of the upload after it uploads successfully, but I need to solve this problem first. The folder already has permission 777. Bunmi Neil Smth wrote: Bunmi, you need to understand Unix file permissions. Because you are running

Re: [PHP-DB] Help with file upload

2003-10-16 Thread Bunmi Akinmboni
ftp_chdir( $site , $folder ); ftp_site( $site , "chmod $mode $folder" ); } ftp_quit( $site ); "John W. Holmes" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] Bunmi Akinmboni wrote: Pls Help. I have done a lot of rea

Re: [PHP-DB] Help with file upload

2003-10-15 Thread Bunmi Akinmboni
ay ( [ufile1] => Array ( [name] => ayservenet.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpfJyDSw [error] => 0 [size] => 3030 ) ) I had experienced this also on Windows IIS now it is also coming on my Linux yet I have full access to the two servers. Bunmi John W. Holmes wrote: Bunmi A

Re: [PHP-DB] Help with file upload

2003-10-15 Thread Bunmi Akinmboni
So what could be the problem? I reaaly don't know. Bunmi John W. Holmes wrote: Bunmi Akinmboni wrote: Warning: move_uploaded_file(./ayservenet.jpg): failed to open stream: Permission denied in /home/ayserve/public_html/fu/fuprocess.php on line 6 PHP runs as the web server and it does not

Re: [PHP-DB] Help with file upload

2003-10-15 Thread Bunmi Akinmboni
y ( [ufile1] => Array ( [name] => ayservenet.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpfJyDSw [error] => 0 [size] => 3030 ) ) I had experienced this also on Windows IIS now it is also coming on my Linux yet I have full access to the two servers. Bunmi John W. Holmes wro

Re: [PHP-DB] Help with file upload

2003-10-15 Thread Bunmi Akinmboni
serve/public_html/fu/fuprocess.php on line 6 ayservenet.jpg DONE Array ( [ufile1] => Array ( [name] => ayservenet.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpfJyDSw [error] => 0 [size] => 3030 ) ) I had experienced this also on Windows IIS now it is also coming on my Linux yet I have

Re: [PHP-DB] Help with file upload

2003-10-15 Thread Bunmi Akinmboni
ho "Possible file upload attack. Filename: " . $_FILES['ufile1']['name']; echo " "; print_r($_FILES); } ?> Bunmi Bunmi Akinmboni wrote: Thanks John, I had done it before and still tried it again now. This is what I get: Warning: copy(.): failed to open stream: Is

Re: [PHP-DB] Help with file upload

2003-10-15 Thread Bunmi Akinmboni
age/pjpeg [tmp_name] => /tmp/php1tARiu [error] => 0 [size] => 3030 ) ) Bunmi John W. Holmes wrote: Bunmi Akinmboni wrote: Pls Help. I have done a lot of reading prior to this yet I just can't seem make it work. I wrote an upload program as seen below but the response I got was: Poss

[PHP-DB] subscribe me

2003-10-15 Thread Bunmi Akinmboni
-- 'Bunmi Akinmboni 5, Aibu Street, Off Bode Thomas Street, P.O. Box 6235, Surulere, Lagos, NIGERIA. Tel: (234) 1-813-3335 Fax: (234) 1-583-2585 (Nigeria Only) Fax: 1 (309) 285-2383 (International) Email: [EMAIL PROTECTED] Web site: http://www.budelak.com http://www.ayserve.net Web D

[PHP-DB] Help with file upload

2003-10-15 Thread Bunmi Akinmboni
27;]; if (is_uploaded_file($_FILES['ufile1']['name'])) { copy($_FILES['ufile1']['name'], "."); echo "$ufile1_name "; echo "DONE"; echo " "; print_r($_FILES); } else { echo "Possible file upload attack. Fi