How unarchive file with password with PHP? [duplicate] - php

This question already has answers here:
How to extract a ZIP file that has a password using only PHP?
(2 answers)
Closed 8 years ago.
I need to unarchive *.rar file and extracte with password on PHP.
I found many decisions on PHP, but all they don't provide password in archive.
Should it do so through the exec ()?
My OS: Windows 8

Have you tried using rar_open()? It has an argument for password. I personally never used it, so can not vouch if it works well.
For Windows you need to have php_rar.dll enabled in php.ini.

Related

Get information about php [duplicate]

This question already has answers here:
Where does phpinfo() get its info?
(5 answers)
Closed 2 years ago.
I just started with programing in PHP
And i have a problem:
I'm just experimenting and discovering the language. I tried compressing a string and display the output. I get an some zlib error. I am just wondering if there is a function that returns information about extensions?
You should use
phpinfo();
to display the PHP configuration.

How could I download files without an extension using PHP [duplicate]

This question already has answers here:
using PHP to remove the extension from a file and then downloading it
(3 answers)
Closed 3 years ago.
This is a very weird question that I cannot see asked on this site but how could I just have PHP download a file (say it was a png file) and convert it to having no file extension at all? Before you ask why are you doing this, it's difficult to explain and I would just like to know if it is even possible to do this.
Thanks for the help in advance!
You can use the following:
file_put_contents("somepng", fopen("http://url/image.png", 'r'));

How can I download php file with source? [duplicate]

This question already has answers here:
Is it possible to download PHP script from a web page with wget?
(4 answers)
Possible to view PHP code of a website?
(3 answers)
Download PHP script instead of executing it
(5 answers)
Copy PHP file from other URL without executing the code
(1 answer)
Closed 3 years ago.
This is my demo url
http://www.example.com/example.php
If we want to download example.php file with source code how can we do it?Is it possible?
Simple answer, no. You cant download PHP Source Code without access to the host.

how to install the ID3 extension on Windows [duplicate]

This question already has answers here:
How to install php_id3 on wamp?
(4 answers)
Closed 9 years ago.
using this code:
$mp3_tags= id3_get_tag($mp3_file);
printr($mp3_tags);
but there is an error of calling undefined function did a search and found out that i had to enable the ID3 extension for PHP and im stuck doing it on windows.
The manual shows how to install and this extension (and all other standard ones too).
Unfortunately, it is not available as a compiled DLL on Windows. You can compile it if you wish.

Can we make EXE equivalent for PHP code so that the code can be protected? [duplicate]

This question already has answers here:
Best solution to protect PHP code without encryption
(11 answers)
Can you "compile" PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?
(14 answers)
Closed 9 years ago.
Not sure if this has been discussed before.
I was looking for a solution that can protect the PHP code.
So even if I put the code on my client's server if they decide to put another developer on it or try to resell my code they should not be able to do so.
Is that even remotely possible?
The .exe versions of desktop application thingy is something I am looking for, but for PHP.
There are options to "compile" code like phpcompiler also read another thread about this on stackoverflow

Categories