| Web Design and Hosting Creating sites, scripting, and hosting discussions. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
|
Guest
Posts: n/a
|
We have written a shopping cart script in php and have had major success with it, save one thing. Our Mac users have been unable to upload images to web servers, PCs are fine, and i cant figure out whats wrong. We have tried several different browsers for the mac and several different image types. Below is the code that is used to upload the images.
$date = date ("y-m-d-H:i:s"); $hash = md5 ($date); $product_id = substr ($hash, 0, 6); if ($_FILES [small_image][size] > 0) { if ($_FILES [small_image][type] == "image/pjpeg") { $file_extention = ".jpg"; } elseif ($_FILES [small_image][type] == "image/gif") { $file_extention = ".gif"; } else { $error++; } // create file name $image_file_name = $product_id.$file_extention; if (!copy ($_FILES [small_image][tmp_name], SMALL_IMAGE.$image_file_name)) { $error++; } } Just wondering if anyone had any clue at all as to why this will not work on a mac. If any would like to test it out I have set up a test site... http://gs2.lacefarms.com/admin/?page=add_products Am working on v2 but need to nip this problem in the bud. TIA Squid Last edited by squid; 10-27-2004 at 01:05 PM. |
| QUOTE Thanks | |
![]() Member Since: Feb 14, 2004
Location: South-East Texas
Posts: 1,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 21in Dual core 3 ghz iMac, 13in Macbook - Mountain Lion on both
|
|
| QUOTE Thanks | |
![]() Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: Pwnt
|
Perhaps you could print out different error messages for each step so you know exactly where the problem occurs?
I'm in your forums, writing sentences in a grammatically acceptable manner. |
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
|
| QUOTE Thanks | |
![]() Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: Pwnt
|
I meant different php echo statements for the different types of errors you get. But otherwise, no I don't know what's wrong with it. You could try posting a message to the apple web-dev mailing list: http://lists.apple.com/mailman/listinfo/web-dev
I'm in your forums, writing sentences in a grammatically acceptable manner. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Question about printing web pages | CaptainStandish | Switcher Hangout | 6 | 10-05-2004 07:43 PM |
| Very simple web question | ApplejustWorks | Web Design and Hosting | 3 | 09-26-2004 09:46 PM |
| Web Sharing issues | dpalxrc | OS X - Operating System | 0 | 08-31-2004 05:26 PM |
| Getting images to show up in Dreamweaver | dziner | Web Design and Hosting | 4 | 07-22-2004 04:11 PM |
| Uploading pics to web | shortbutkute | Web Design and Hosting | 3 | 02-15-2004 12:10 AM |
All times are GMT -4. The time now is 03:37 PM.
Powered by vBulletin