PHP script in browser works fine, but Cron executes script only partially. Why?

Long story short – in PHP script I take values from MySQL database, then insert needed values into array and then insert values from array into MySQL other column. Everything works fine in browser when script is executing manually, but when Cron executes script, it works only partially. I have tried change permissions, users, execute…

Discover more

Custom function in Google Script doesn’t work when downloaded as Microsoft Excel

I am very new to JS. I wrote a simple function in Google Script. It worked well in Google Sheets. But, give an error when the sheet is downloaded as Microsoft Excel. My function if as below. function test(input){ var str = “”; for(i=0; i<input.length; i++){ for(j=0; j<input[i].length; j++){ var char0 = input[i][j].charAt(0).toUpperCase(); var sub…

Discover more

Jquery Ajax doesn’t send authorization header

I try to make basic authentication with Jquery Ajax. I add authorization header to ajax request like this. $.ajax({ headers: { “authorization”: “basic 123456”, }, crossDomain: true, type: “POST”, contentType: “application/json; charset=utf-8”, url: ‘http://example.com/Auth.asmx/Authorization’, data: null, dataType: “jsonp”, success: function (data, status) { console.log(“Success”); console.log(data); }, error: function (xmlRequest) { console.log(“Error”); console.log(xmlRequest); } }); Then…

Discover more

Run function in background and keep running default program flow

I have basic excel file maker function take 2 date arguments public void ExportToExcel(DateTime? start, DateTime? end) but thıs function take a long time and I don’t want to wait for this preparation time. I want this function to run in the background and not freeze my actionResult public ActionResult Listele(DateTime? dates, DateTime? datee,string submit)…

Discover more