Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Getting data from SQL database

$
0
0

Hi

 

I am stil trying to get some basic information stored in a database table on my SQL Server.

 

I can do this by embedding an Applescript do carry out the shell command 'curl' as below:

 

myFullScriptString = "do shell script \"curl -0  localhost/asset.php?asset_id="+assetID+"\"";

myForceError = app.doScript(myFullScriptString, ScriptLanguage.APPLESCRIPT_LANGUAGE);

return(myForceError);

 

but I dont want to be limited to OSX.

 

Is there a way this can be put into a native socket comment using a structure as below?

 

reply = "";

conn = new Socket();

conn.open("192.168.91.184:8888");

conn.write(" GET /myfile.php?" + variousVariable + " HTTP/1.0\n\n");

reply = conn.read(999999);

conn.close;

 

Cheers

 

Roy


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>