Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8862049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:38:05+00:00 2026-06-14T15:38:05+00:00

This is the context: I’ve got to write a source for an intranet site

  • 0

This is the context: I’ve got to write a source for an intranet site which allows users to import a csv file into MySQL database.

This import is very massive that’s why I wrote a C# program.

This program creates some thread which reads some lines of my csv file.

These thread control, change type and insert my data into MySQL database with SQL like this:

insert into table1 (fields) values (dataline 1 ), (data line 25),...,(data line n);

This request exists for 9 tables.

This program can be used by everyone because the source code is dynamic : example to insert data I write a dictionary which contain my 9 tables with all fields, types and the CSV header of the import file (which contains some accent and symbol, I’ve to change it because I can’t put them into fieldname in my database).

This dictionary can be create only with a file called MAP.csv

Example:

table   /   field     /    type  /   header

table 1  /  field1_table1 /string  / hêàder

table 1   / field2_table1/ int    /  header1

table 2   / field1_table2/ date   /  hêàder2

table 1  /  field3_table1/ string  / hêàder3

My C# program works very well when I execute the program.exe

But when I call it with php with exec("programpath.exe parameter1 parameter2",return,otherreturn) function this program can’t work.

In fact when I try to access to externfile like config.xml , MAP.csv, otherfile.txt/csv/.. with my c# program. The execution stop and there is a windows error which says "program.exe stop its work" ( program.exe à cessé de fonctionner in French).

So I try to write my problem simply: when I try to access into a file with my c# program called by php, there is a window problem which stop the traitment.

EDIT :
I found the solution, I just have to do a cd c:/path_program/
In fact when I start my website the current folder is not c:/ but the folder in which Symfony starts…
Was just a beginner error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:38:06+00:00Added an answer on June 14, 2026 at 3:38 pm

    Check Edit post for the solution

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From this context: import itertools lines = itertools.cycle(open('filename')) I'm wondering how I can implement
So, I'm making this context menus, which looks great in all major browsers, even
Context This is purely for education purposes. I want to write a primitive database.
I have code like this: context.HttpContext.Response.Clear(); context.HttpContext.Response.Write(htmlString); context.HttpContext.Response.End(); But when pages are loaded I
I have a Joomla plugin (not important in this context), which is designed to
LINQ to Entities allows this: context.User.Select(u => new Person { Name = u.Name, Parent
Just trying to do something simple like this: context.Users.Any(fun currentUser -> currentUser.UserName = userName)
I'm building web application (in this context the client) which talk with a different
This code doesn't work: return this.Context.StockTakeFacts.Select(stf => ((stf.StockTakeId == stocktakeid) && (stf.FactKindId == ((int)kind)))).ToList<IStockTakeFact>();
Is it bad practice to concatenate objects when used in this context: $this->template->head .=

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.