Go Back  
Reply
 
Thread Tools
Old 03-27-2012   #1
enosrasun
Member
 
enosrasun's Avatar
 
Join Date: Nov 2009
Posts: 190
Likes: 27
Liked 88 Times in 57 Posts
Mentioned: 11 Post(s)
Tagged: 0 Thread(s)
accessing ps3 directory trought php server

I have a php code to access and edit files on the server,is possible to make a php code on the server to see and download files from ps3??
enosrasun is offline   Reply With Quote
Old 03-27-2012   #2
H3avyRa1n
Senior Member
 
H3avyRa1n's Avatar
 
Join Date: Aug 2011
Posts: 1,270
Likes: 179
Liked 839 Times in 391 Posts
Mentioned: 61 Post(s)
Tagged: 0 Thread(s)
tbh don't see any advantage versus what you can do already through a ftp client..
H3avyRa1n is offline   Reply With Quote
Old 03-27-2012   #3
enosrasun
Member
 
enosrasun's Avatar
 
Join Date: Nov 2009
Posts: 190
Likes: 27
Liked 88 Times in 57 Posts
Mentioned: 11 Post(s)
Tagged: 0 Thread(s)
Originally Posted by H3avyRa1n View Post
tbh don't see any advantage versus what you can do already through a ftp client..
my brother ps3 is on ofw 4.11( I can't install a ftp client on it),so I think I can take out some files from it
enosrasun is offline   Reply With Quote
Old 03-27-2012   #4
OoZic
 
OoZic's Avatar
 
Join Date: Sep 2010
Location: Just ask Sony !!
Posts: 3,556
Likes: 1,186
Liked 1,755 Times in 1,027 Posts
Mentioned: 86 Post(s)
Tagged: 0 Thread(s)
You need Apache for that.... so you need Linux.... Call $ony and demand it back
__________________
Sony just lost the PS3's chastity belt keys, secret fun spots are open to explore ...
OoZic is offline   Reply With Quote
Likes: (1)
Old 03-27-2012   #5
hellsing9
Hired Gun
 
hellsing9's Avatar
 
Join Date: May 2011
Posts: 6,781
Likes: 2,570
Liked 3,310 Times in 1,839 Posts
Mentioned: 980 Post(s)
Tagged: 1 Thread(s)
Linux? he can mount an apache server on windows too.
hellsing9 is offline   Reply With Quote
Old 03-28-2012   #6
OoZic
 
OoZic's Avatar
 
Join Date: Sep 2010
Location: Just ask Sony !!
Posts: 3,556
Likes: 1,186
Liked 1,755 Times in 1,027 Posts
Mentioned: 86 Post(s)
Tagged: 0 Thread(s)
Originally Posted by hellsing9 View Post
Linux? he can mount an apache server on windows too.
I think the PS3 has to act as a PHP server? Just like with FTP?

I work with XAMPP on Windows for testing my webshop locally so I know I can use Apache on it
__________________
Sony just lost the PS3's chastity belt keys, secret fun spots are open to explore ...
OoZic is offline   Reply With Quote
Old 03-28-2012   #7
hellsing9
Hired Gun
 
hellsing9's Avatar
 
Join Date: May 2011
Posts: 6,781
Likes: 2,570
Liked 3,310 Times in 1,839 Posts
Mentioned: 980 Post(s)
Tagged: 1 Thread(s)
i tought he was refering to windows configuration...i messed up.
Yes it's like @OoZic said
hellsing9 is offline   Reply With Quote
Old 03-28-2012   #8
enosrasun
Member
 
enosrasun's Avatar
 
Join Date: Nov 2009
Posts: 190
Likes: 27
Liked 88 Times in 57 Posts
Mentioned: 11 Post(s)
Tagged: 0 Thread(s)
k ,I will explain

I have a web server (with apache,php ,mysql ) more simple xampp, on windows 7

I have a code and with it I can see,modify,copy,download files from local directory(from server),from another pc

I ask if there is a way so I can download ,and see files from ps3 when access my web server???


this is the code

<?php
$allowed_dir = "lang"; //Set the allowed path (Chmod them first)

//Allowed extensions
$valid_ext[1] = "php";
$valid_ext[2] = "PHP";
$valid_ext[3] = "html";
$valid_ext[4] = "HTML";

function directory($directory, $recursive) {
$me = basename($_SERVER['PHP_SELF']);
$array_items = array();

if ($handle = opendir($directory)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != $me && substr($file,0,1) != '.') {
if (is_dir($directory. "/" . $file)) {
if($recursive) {
$array_items = array_merge($array_items, directory($directory. "/" . $file, $recursive));
}
} else {
$file = $directory . "/" . $file;
$array_items[] = preg_replace("/\/\//si", "/", $file);
}
}
}
closedir($handle);
asort($array_items);

}
return $array_items;
}

$HTMLOUT ='';

$HTMLOUT .= "<form action='editor.php' method='post'>";
$HTMLOUT .= "<select name='target_file'><option value='0'>Please choose a file to open</option>";

$filelist = directory($allowed_dir, true);
foreach ($filelist as $file)
{
$ext = substr(strrchr($file, '.'), 1);
if (in_array($ext,$valid_ext) && is_writable($file)) {
$HTMLOUT .= "<option value=\"$file\">$file</option>";
}
}
$HTMLOUT .= "</select><input type='submit' class='btn' value='Select!' /></form>";

if (isset($_POST['file_to_edit'])){
$nombre_fichero = stripslashes($_POST['file_to_edit']);
$DescriptorFichero = fopen($nombre_fichero,"w");
$string = stripslashes($_POST['edit_file']);
fwrite($DescriptorFichero,$string);
@fclose($DescriptorFichero);
}

if (isset($_POST['target_file'])){
$target_file = stripslashes($_POST['target_file']);
$fichero_texto = fopen ($target_file, "r");
$contenido_fichero = @Fre ad ($fichero_texto, filesize($target_file));

$HTMLOUT .= "<div style='text-align:center;width:80%;border:none;'>
<div style='background:lightgrey;height:20px;'>
<span style='font-weight:bold;font-size:10pt;'>Editing File: {$target_file}</span></div></div><br/>";

$HTMLOUT .= "<form enctype='multipart/form-data' method='post' action='editor.php'>";
$HTMLOUT .= "<input type='hidden' name='file_to_edit' value='{$target_file}' />";

$HTMLOUT .= "<table class='main' width='80%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='embedded'>
<table width='100%' border='1' cellspacing='0' cellpadding='2'>
<tr><td align='center' class='colhead'><h2>File Editor</h2></td></tr>
<tr>
<td><textarea name='edit_file' rows='30' cols='117'>" . htmlspecialchars($contenido_fichero) . "
</textarea></td></tr>
<tr><td align='center'><input type='submit' class='btn' value='Edit!' /></td></tr></table>
</td></tr></table></form>";
}
print $HTMLOUT ;

Last edited by enosrasun; 03-28-2012 at 09:06 AM.
enosrasun is offline   Reply With Quote
Old 03-28-2012   #9
hellsing9
Hired Gun
 
hellsing9's Avatar
 
Join Date: May 2011
Posts: 6,781
Likes: 2,570
Liked 3,310 Times in 1,839 Posts
Mentioned: 980 Post(s)
Tagged: 1 Thread(s)
So i was right.
Your problem @enosrasun it's windows as far i see in the code i see no way to *browse* via your server to see the content of PS3.
If your console is with CFW/Jailbroken...it's another thing.

Another thing if you have a router like a WRT54G/L you can modd it and make it a Linux box. (i done it, to try to something similar to what you saying.).
hellsing9 is offline   Reply With Quote
Old 03-28-2012   #10
OoZic
 
OoZic's Avatar
 
Join Date: Sep 2010
Location: Just ask Sony !!
Posts: 3,556
Likes: 1,186
Liked 1,755 Times in 1,027 Posts
Mentioned: 86 Post(s)
Tagged: 0 Thread(s)
Originally Posted by enosrasun View Post
k ,I will explain

I have a web server (with apache,php ,mysql ) more simple xampp, on windows 7

I have a code and with it I can see,modify,copy,download files from local directory(from server),from another pc

I ask if there is a way so I can download ,and see files from ps3 when access my web server???
let me get this right:

You run a simple xampp on PC1 and you can access PC1 through PHP with another PC (PC2)?

If you want to do this with the PS3, the PS3 still has to act as server? Maybe simple on open Windows but impossible on closed PS3 OFW...
__________________
Sony just lost the PS3's chastity belt keys, secret fun spots are open to explore ...
OoZic is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 08:52 PM.