Hello
I'm trying to run this system in php.
The game sends to the address in projectg (http://58.64.24.162:8090/upload/ucc/upload.asp) some info:
$ _POST values:
'ucctype => clothes
userid => usertest
type => 1
item_id => 792
key => 0
$ _FILES values:
uccfile => Array
name => m_pv_u01f01_d5e2908d.jpg
type => image / jpeg
tmp_name => C: \ WINDOWS \ Temp \ php31.tmp
error => 0
size => 24217
So we can send the image to the server. But I still need to know if something is returned or recorded in the database.
URLs for testing Pangya TH:
http://58.64.24.162:8090/upload/ucc/
http://58.64.24.162:8090/upload/ucc/upload.asp
http://58.64.24.162:8090/upload/ucc/ucc/clothes/
change these links in your projectG.exe
Exe: http://127.0.0.1/upload/ucc/upload.php
Can someone help me develop it?
Code upload.php
Code:<?php $file = isset($_FILES["uccfile"]) ? $_FILES["uccfile"] : FALSE; if($file){ preg_match("/\.(gif|bmp|png|jpg|jpeg){1}$/i", $file["name"], $ext); $image_name = $file['name']; $image_dir = "ucc/" . $image_name; move_uploaded_file($file["tmp_name"], $image_dir); } ?> ty



Reply With Quote![[Development] Self Design / Original Design](http://ragezone.com/hyper728.png)


