Hello all.
I have a question;
I was wondering if you could go Up a directory with php? I would like to use this in a site transfer system I'm trying to make; also it will become part of my self-hecking script.
(This will nog be a vulnerable hacking script; as you already need to be able uploading to the host)
Also it should be able replacing a file uploaded in the same directory as the php script to several directories up.
Example:
Script/page are uploaded at:
Then you make a script that it will go up 2 directories; so you land here:
and it will replace the index2.html here:
and perhaps even transfer the 'index.html' standard page from the main directory up to the scripts directory.
Would this be possible?
And if so; which php commands should I use?
(I'll write the rest of the script myself)
Thanx in Advance;
~ Jerredk
I have a question;
I was wondering if you could go Up a directory with php? I would like to use this in a site transfer system I'm trying to make; also it will become part of my self-hecking script.
(This will nog be a vulnerable hacking script; as you already need to be able uploading to the host)
Also it should be able replacing a file uploaded in the same directory as the php script to several directories up.
Example:
Script/page are uploaded at:
| Code: |
|
www.website.com/directory1/directory2/script1.php www.website.com/directory1/directory2/index2.html |
Then you make a script that it will go up 2 directories; so you land here:
| Code: |
| www.website.com/ |
and it will replace the index2.html here:
| Code: |
| www.website.com/index2.html |
and perhaps even transfer the 'index.html' standard page from the main directory up to the scripts directory.
Would this be possible?
And if so; which php commands should I use?
(I'll write the rest of the script myself)
Thanx in Advance;
~ Jerredk
