2rsGarry Posted June 6, 2021 Share Posted June 6, 2021 Hi all I have just had completed for me an addition to my traffix exchange site which im looking at making available for other other 2000+ owners of the same php script. I;m looking for a way or app that will allow me to make an easy install.exe file so that it will upload 1 php file to the public/html folder and then add 2 rows, 1 into each table of required values into the sql database. Only one i have come across at the moment is the ioncube solution which will make the install.exe for me but at a price just for 1 page. Does anyone know of any solutions for opensource that will cover my needs? 2rsGarry Quote Link to comment https://forums.phpfreaks.com/topic/312868-looking-for-installexe-solution-to-upload-1-file-and-insert-2-rows-into-sql-db-for-easy-client-install-using-their-ftp-details/ Share on other sites More sharing options...
portfox Posted June 29, 2021 Share Posted June 29, 2021 What about a powershell script for the ftp part of it? Not exe, but ps1 $source = "c:\source" $destination = "ftp://username:password@example.com/destination" $webclient = New-Object -TypeName System.Net.WebClient $files = Get-ChildItem $source foreach ($file in $files) { Write-Host "Uploading $file" $webclient.UploadFile("$destination/$file", $file.FullName) } $webclient.Dispose() The SQL part of it, may be have a 3rd php file that can be executed after the ps1 file has completed. I know its not one smooth process, but free. Quote Link to comment https://forums.phpfreaks.com/topic/312868-looking-for-installexe-solution-to-upload-1-file-and-insert-2-rows-into-sql-db-for-easy-client-install-using-their-ftp-details/#findComment-1587681 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.