Jump to content

yumico23

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

yumico23's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [code]// $file_dir = "/var/www/html/gsy/office/doculms/"; to web intranet // $file_dir = "./doculms/"; to web intranet //$file_dir = "/home/gsyglobal/htdocs/uploads/"; to web internet[/code] Have you commented $file_dir just for this post or have you done it in your code too ? [/quote] HI, I commented $file_dir after doing the testing. Also added this code but returned failed. It seems like can't change the folder permission. Can please advise me what to do? [code]   if (!chmod($file_path,0777))        $message = "change permission to 777 failed.";   else     $message = ($result)?"$file_name uploaded successfully." :                "Somthing is wrong with uploading a file."; [/code] Thanks alot!
  2. Hi, Can anyone advise me on file upload or copying to internal web-application? I have internal office leave management system for staff to do up their leaves. Problem is I can't perform a file upload. I browse any file from my local server and upload it to our LMS webserver and couldn't work. I tried both --> move_uploaded_file and copy function but couldnt work still. Is there any other functions that I could try? Currently the folder permission is drwxr-xr-x Owner: Root Group: Root Please advise..thank you so much! The codes are: $numoffile = 5; // $file_dir = "/var/www/html/gsy/office/doculms/"; to web intranet // $file_dir = "./doculms/"; to web intranet //$file_dir = "/home/gsyglobal/htdocs/uploads/"; to web internet if ($_POST) { for ($i=0;$i<$numoffile;$i++) { if (trim($_FILES['myfiles']['name'][$i])!="") { $newfile = $file_dir.$_FILES['myfiles']['name'][$i]; echo "Nwe File:". $newfile; move_uploaded_file($_FILES['myfiles']['tmp_name'][$i], $newfile); $j++; } } } if (isset($j)&&$j>0) print "Your file(s) has been uploaded.<br>"; print "<form method='post' enctype='multipart/form-data'>"; for($i=0;$i<$numoffile;$i++) { print "<input type='file' name='myfiles[]' size='30'><br>"; } print "<input type='submit' name='action' value='Upload'>"; print "</form>";
  3. [!--quoteo(post=366734:date=Apr 20 2006, 03:34 AM:name=wisewood)--][div class=\'quotetop\']QUOTE(wisewood @ Apr 20 2006, 03:34 AM) [snapback]366734[/snapback][/div][div class=\'quotemain\'][!--quotec--] I just found this... which might help you. If you can find the data/ directory you might get lucky. [/quote] Hi Wisewood, thank you so much for your findings. I manage to find how to access to the database now. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  4. [!--quoteo(post=366375:date=Apr 19 2006, 06:47 AM:name=wisewood)--][div class=\'quotetop\']QUOTE(wisewood @ Apr 19 2006, 06:47 AM) [snapback]366375[/snapback][/div][div class=\'quotemain\'][!--quotec--] if you look through the php files for where the connection is made, this will give you information such as "localhost", "username", "password". Have you tried running [a href=\"http://your_server/phpmyadmin\" target=\"_blank\"]http://your_server/phpmyadmin[/a] ? [/quote] ================================================================= Hi Wisewood, Thanks a lot for your reply. Ya I have tried running it [a href=\"http://your_server/phpmyadmin\" target=\"_blank\"]http://your_server/phpmyadmin[/a] and there is only one empty database called "test". I even do a file search in the whole C Drive and Network but still could not locate it. The whole scripts of the application can be located but the MYSQL DB could not. Is there any way / method to locate it? maybe a php script or syntax which I can run at the connection file to detect the location of the database? Inside the connection files, the hosting is "localhost". Thank you for you advice Wisewood. Yuli
  5. Hi, I have an Intranet application running on PHP and MySQL. It was written by another programmer and I can't seem to find the location of the MySQL Database. Is there PHP syntax that can detect the path directory to the MySQL database. Thank you Yuli
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.