Click here to Skip to main content
15,894,343 members

Comments by Abed Al Rahman Hussien Balhawan (Top 38 by date)

Abed Al Rahman Hussien Balhawan 1-Apr-24 9:01am View    
Hello Pete, the code that generates this file is working fine, the file is also working fine in the server, only when using the readfile function this Is happening.
Abed Al Rahman Hussien Balhawan 1-Apr-24 6:54am View    
when I download the file I see the size is correct. The extension type too, however when I try to access it returns a warning message(Excel cannot open the file 'generated_BOQ1.xlsx'because the file format or file extension is not valid, verify that the file has not been corrupted and that the file extension matches the format of the file.)
Abed Al Rahman Hussien Balhawan 29-Mar-24 10:14am View    
Hello Andre, thank you for your response,I will try the script you provided and let you know,

please note that the purpose of my script is that users upload an excel file from his machine to the server path
'C:\\xampp\\htdocs\\HTML\\SSProcess\\ExcelFiles' by a button called "upload" in HTML scrip
bellow is part of code I did not include at the beginning of my question:

if(isset($_POST['upload'])){
$targetDir="C:\\SSProcess\\ExcelFiles\\";
$excel_path = $targetDir . basename ($_FILES["excelFile"][name]);

if (move_uploaded_file($_FILES["excelFile"]["tmp_name"], $excel_path)) {
echo "The file ". basename( $_FILES["excelFile"]["name"]). " has been uploaded.";
echo "file path = ", $excel_path, " .";

the idea is after the file is uploaded, the VBScript should be then executed all happening in the server side only, and yes office 365 are installed on the servers.

also, this is only one of 15 vbscripts to be executed, if there is an alternative way instead of changing the entire logic to jvscript I will be glad.

much thanks.
Abed Al Rahman Hussien Balhawan 29-Mar-24 4:47am View    
Hello the application runs in a server in xaamp file, the user uploads an excel file from him local PC to xaamp using a PHP script and then VBScript and python script are executed inside the server and after execution the PHP sends the file back to the user as a download.

please let me know if this is possible to achieve
Abed Al Rahman Hussien Balhawan 15-Mar-20 11:59am View    
Yes a last table called branch(branch_name,branch_city,assets)