Jump to content

Looking for install.exe solution to upload 1 file and insert 2 rows into sql db for easy client install using their ftp details


Recommended Posts

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?


Link to comment
Share on other sites

  • 4 weeks later...

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.


Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.