Share software from one system to another using PHP - php

I have installed a window executable software in my linux machine(local not in the web server). I need to share that .exe file to other system using IP address. Can it be done with PHP?

Assuming you got LAMP installed.
You can just put your file in a folder inside apache root folder (usually /www).
/www/sharedfiles/yourfile.exe
You can then access your file in other computer using your IP address in a browser:
yourip/sharedfiles/yourfile.exe

Related

Command for downloading all website project files

I have access to server of our company's website. I access it using Putty.
I want to download all files(index.php, any jpg files for favicons, etc.) used for deployment of the web project. When I told to programmer of website to share the full script(HTML,CSS,PHP, jquery plugins), he said that I can access the entire code from server.
When I enter the server via Putty(private key+ssh), and then I type "ls" I see that there are "index.php" and "mysql" files, the full contents of which I cannot download.
What are the useful resources for list of commands?
Which command should I use to download the project folder containing all files with code and without code?
P.S. I do not know if this information is necessary, but the website was deployed using DigitalOcean.
As you are using Putty, I'll assume you are working on Windows. There is a GUI tool called WinSCP that works similar to Putty (i.e. over SSH and uses private keys and stuff) and can be used to access the remote server's filesystem. It has a pretty simple to understand UI which will be divided into you local filesystem and the server filesystem. Once you're connected and have reached the files you need you can just drag and drop the files into your local filesystem side.
If you would like to explore some command line options, its basically any tool that does scp. I think Putty comes with scp or pscp installed already. You can check by just typing in the command in your cmd/powershell.
You can download pscp.exe from PuTTY website and then:
Open cmd.exe and type:
pscp your_username_here#yourcompany.com:/path/to/file C:\Path\To\The\New File

Access to files outside the Web Environment, soft link; looking for canonical alternative

I have a shared directory using samba on my ubuntu server at this path:
/home/user/share/
I use it to share some installation software on the intranet, mainly files: msi and exe (for windows end user)...
on the same server I have a web server in the root path like:
/var/www/html/
but I want to create a link in the OS that can provide an access for php to the shared folder (if I want to distribute the programs as a download on the intranet, since not everyone knows how to access a network disk) and create a web download of the installer (s):
ln -s /home/user/share/installer /var/www/html/sl-soft
I tried to use a soft link but I get a blank page when I try to navigate.
Does anyone have a canonical answer that by using php / apache / linux can fix this problem?

How to make "portable" web app with Apache, Php, and Mysql?

I want to run a web application on a Windows computer but because of some reasons, I don't want to install a web stack like Xampp on that machine.
The web app is placed in a folder and inside of it, there are Apache, PHP, the database like MySQL or PostgreSQL, and the web source. If we want to access it, there is just a shortcut in the Desktop, and when we click that, the browser is opened and point to an URL with a particular port like localhost:8888. And the web app is opened.
I just want to put that folder in an installer. And the installer just extracts it to system folder and create a shortcut on the desktop.
I ask this because I have ever seen stuff like this. It used PostgreSQL. Simply like what I've just explained above.
If you know how to make it works, you may want to help me. Your answers will be appreciated.
You have three way to provide your web application as a software application
you can create portable server in pen drive server start by your application present on desktop icon.
you can create installer using Microsoft Installer which install all the requirement in one go then point ini file to your source code folder. This will let desktop icon to start xammp and run your application.(only applicable for window)
write python script to install web server using CMD and Terminal. then python script point ini to your source folder . Generate shortcut for server start command and launch browser with url.
we already provide Lab application in pen drive based server

uhttpd & PHP access files on sd card

I'm trying to make my php filemanager to be able to manage files outside the web-root. I'm using a router with OpenWRT. I have PHP5 and uhttpd (default Luci webserver) installed. The files are stored on a USB drive that's not always plugged in. The index.php is located in /www and the files are stored (when mounted) in /mnt/sda1.
I've been playing around with the permissions and user/groups with nog success.
Is there a way to do this? I don't want the filemanager itself running from the USB drive.
It seemingly isn't possible without a second webserver (different port) so I'm going to use a samba server that directs to a symlink to the /mnt/sda1 and use php to access the samba server.

Sharing files between PC and remote web server via FTP

This may have been asked before, but I could not find the answer.
I am looking to share a folder/files on my desktop/local machine with a specific folder/files on my web server, similar to box.net.
In this folder:
I can give another person access to this remote folder and we can
share these files between us.
All the files will get automatically sent to the server when they are saved on the local machine.
Both myself and the user can see the files on the remote server.
I could do this manually with FTP, but I only want specific remote folders and to have this automated.
Thanks in advance.
You can mount a Remote Folder as local using SSH on Linux ...
Both server & local pc must using linux OS ....
This is a great tutorial ...
http://www.howtogeek.com/howto/ubuntu/how-to-mount-a-remote-folder-using-ssh-on-ubuntu
Hope this to help you

Categories