I'm new at php. I just installed lamp to my ubuntu server. Ubuntu server is on the digitalocean. I can connect server with ssh and i can write some easy things to /var/www/html .Is there any easy way to upload whole php application?
You can connect via FTP if this service is installed on your machine.
For example you can use FileZilla as FTP Client, login with given username and password, select the php project and upload to server.
If Digital Ocean provided you a Management Panel like cPanel/Parallels/.. you can log in that and upload via a builtin file manager.