Hello
I'm trying to run this system in php.
The game sends to the address in projectg (
$ _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:
change these links in your projectG.exe
Exe:
Can someone help me develop it?
Code upload.php
I'm trying to run this system in php.
The game sends to the address in projectg (
You must be registered to see links
) 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:
You must be registered to see links
You must be registered to see links
You must be registered to see links
change these links in your projectG.exe
Exe:
You must be registered to see links
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
Last edited: