Skip to content
Advertisement

Powershell to PHP script

I’m on a PowerShell script which return me information from distant servers I want to enter this information in a database by passing it to PHP

PowerShell:

JavaScript

and on PHP:

JavaScript

But when I go to the website page I have an error saying that non reachable values (my code)

How can I fix this?

Advertisement

Answer

hello everyBody i found finally something very powerfull ! with Powershell v3 we could use directly POST method !! $URL = “http://example.com/foo/bar.php

$postparam = @{TESTID= “524”; sitename = $localname; comp = 4; stream = “foo” }

JavaScript

Thanks i hope this will help someone !

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement