Discuss Hard disk total space!!!!! in the PHP Development forum on Dev Shed. Hard disk total space!!!!! PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Posts: 21
Time spent in forums: 5 h 27 m 59 sec
Reputation Power: 0
Just noticed that other thread was closed. I agree with the other posters that your looking for others to make the solution for you rather than provide pointers.
But since I already said I would share an idea...
If you have shell access to both the local web server and the network server, mount a volume from your network server to a folder on your local web server.
Then call disk_free_space ( "path/to/remote/volume/mounted/as/local/folder" )
I'm not sure it would work, but it's worth a shot.
NOTE: SSH sessions and mounting volumes are no trivial task for someone who's never done it before. It's likely not worth your time to ask follow up questions unless you've spent quite a bit of time reading already written tutorials/man pages and come back with specific questions, asked in the appropriate forum.
Posts: 464
Time spent in forums: 2 Weeks 2 Days 58 m 41 sec
Reputation Power: 216
From your other thread that was CLOSED
Quote:
Originally Posted by E-Oreo
You cannot determine how much disk space a remote machine on the network has without involving some type of networking protocol. There is no single function in any programming language that will do this for you. Posts 7 and 17 contain suggestions for ways of programming this, but every solution to this problem will involve quite a bit more than just calling a single function. No one on this board will write the code for you.
You can research the recommended solutions and pick one to implement. If you run into problems with the implementation, you can create another thread and ask for assistance with that specific implementation. If you create another thread for this, please indicate specifically which approach you have decided to take, and post at least an initial attempt at writing the code for it.
You should probably expect this thread to be closed soon...as you don't seem to have taken any of the other IDEAS seriously AND just seem to want to continue to ask for MORE and MORE instead of acting upon any of the other Ideas.
Posts: 7,944
Time spent in forums: 2 Months 10 h 16 m 54 sec
Reputation Power: 7053
Here is a list of questions you must ask yourself to determine which approach you can use to solve this problem:
1) What operating systems are the remote systems running?
2) What operating system is the system with the PHP script running?
3) What services are already available on the remote systems (ex: HTTP, SSH, SMB, PowerShell, NFS, etc.)
4) What services or programs are you allowed to install on the remote systems?
We cannot answer those questions for you. A solution to this problem cannot be programmed without knowing the answers.
If the answer to 3 and 4 is none, then you cannot solve this problem.
Posts: 1,874
Time spent in forums: 1 Month 2 Weeks 2 Days 2 h 47 m 52 sec
Reputation Power: 813
Quote:
Originally Posted by p_grahambel
more and more.
You are the f*cking Count Dracula of help vampires ...
I don't think anybody can help you. There just isn't any progress on your part. People keep telling you things and making suggestions, but all you ever do is cry for help.
I'm sorry, but we cannot help you learning. If you just cannot understand the basics of your operating system, why not ask a more experienced collegue or friend to help you with your task? That's certainly better than starting the same useless discussion all over again.