|
ok,yeah,altmost the same question but the details make the difference: in this one i take the idea of any general php script,with the possibility of adding some new scripts using your application.
the cookies and sessions thing i asked there was referring to the fact that when you visit a webpage, this can put some cookies and some session info on your computer's temp folder and i know for a fact that both php and javascript are able to read/write these cookies and i was curious if c# may be capable of the same thing,giving me a good medium for transferring data between the php files present on the server and my project from my local computer.
as you advised me in your other comment, i will try google-ing it and see what comes!
thanks a lot, you even raised my moral!
|
|
|
|
|
Hi
I want to know all Operating System's usernames who are working under a particular domain.
I need to bind it to Dropdown..
Thanks in Advance..
|
|
|
|
|
And?? I assuming this is Active Directory, correct? You have to provide a bit more detail than what you already have. What code have you tried? Where did you run into a problem? Any error messages?
|
|
|
|
|
hi!
please tell me, can i request the running of a .php file located on a server via a C# program and maybe return some info some way?
i am really good at php but still suck at c# and need to finish a project for school and this would save alot of time...
thanks a lot in advance!!!
|
|
|
|
|
It's possible, so long as the .php code you're running does not put up a user interface or require user interaction at all. Look into the WMI Win32_Process class and you'll find that you can launch remote processes, with some restrictions. Running code on a remote box is a HUGE security risk, so it's not going to be a simple little process to do.
|
|
|
|
|
it is all for a school project so security is not one of my problems...
anyway,i only need php to do some basic operations on serverside like connecting to databases, adding-retrieving information and so on,and i understand that i cannot use any user interface.
thanx for the info, awaiting some more exact instructions.
i am grateful,though!
|
|
|
|
|
andyxfun wrote: awaiting some more exact instructions
I gave you everything you needed to do your own research and have a working concept in one or two hours (assuming you know nothing of WMI).
All you need are the classes in the System.Management namespace (covered in the MSDN documentation), the WMI Win32_Process class (a little Google goes a long way here), and some curiosity, imagination, and time. Anything beyond that is spoon feeding you the answers, and I'm not going to do you that injustice.
|
|
|
|
|
ok
thanks a lot for your answer
right now i have a little more time to do this so i can start the search.
and yes,you are right, i know nothing of wmi...
ill get documented and try to solve all this.
thanks a lot again!
|
|
|
|
|
FYI: you can run PHP code on your local Windows machine, all it takes is a package such as XAMPP[^]. That is what I use to develop and test my web site.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
|
|
|
|
|
thanks but...unfortunately, this is not the case...
i am a web developer and have a lot more experience than i have in C#...
i already have an apache server with a mysql database and php installed on my local machine, along with other tools but this project is meant to be run from any machine like a normal program, without the need of additional software installed,other than .net framework...
i have the possibility to use the advantage of server-side scripting,as this does not need the actual host of the program to own any other software packages.
thanks for trying though!
|
|
|
|
|
andyxfun wrote: i am really good at php but still suck at c# and need to finish a project for school and this would save alot of time...
Would it help if you could run PHP on .NET[^]? The website has some very cool examples I are Troll
|
|
|
|
|
thanks for answering,gonna try that out
|
|
|
|
|
damn!...seems to be some kind of extension to .net or something like that...(not really enough time to eat the whole information...)
unfortunately,i can't use no extensions for the project itself to work...
gonna keep as a last resort,though...
|
|
|
|
|
|
Hi All,
where is the more fast metod to write a txt file?
Thanks a lot.Alex
|
|
|
|
|
This depends upon what you are doing, and where the text is coming from.
In general you'll probably need to look at TextWriter class, or one of the StreamWriter subclasses.Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
|
|
|
|
|
Here is link[^] with similar discussion.
|
|
|
|
|
AlexB47 wrote: where is the more fast metod to write a txt file
Faster than what?
|
|
|
|
|
see below...Alex
modified on Wednesday, February 24, 2010 3:01 AM
|
|
|
|
|
Please reshape that, as I know less then before. And make some example (code), so that we can suggest even faster way if awaible
|
|
|
|
|
I need to read a data from a COM port and write this in a file txt.
In COM port I receive a continuos fast flow of data (100 sentences at second). For each sentence, i need to write this sentence and make several calculations. If i disable the write metod, all operate in real time ... but if i write, after a few minutes, the processed sentences is not the real sended to a com port (not work in real time)..Alex
|
|
|
|
|
Your reply makes no sense. There are various way of writing to a text file, and you haven't shown what you're using or why you need something faster.
|
|
|
|
|
I need to read a data from a COM port and write this in a file txt.
In COM port I receive a continuos fast flow of data (100 sentences at second). For each sentence, i need to write this sentence and make several calculations. If i disable the write metod, all operate in real time ... but if i write, after a few minutes, the processed sentences is not the real sended to a com port (not work in real time).Alex
|
|
|
|
|
Let me ask a few questions:
1) 100 sentences (how big?)
2) you asked for a fast method of writing to file, and in your explanation you tell us, that after a few minutes the processed data are not written to the COM port? file? where?
3) if you only need to write the file, WHY should it slow down after a few minutes? I´ve written terabytes of data to disk, an it was always fast, even after hours/days ... maybe an error in your writing/calculation logic?
|
|
|
|
|
AlexB47 wrote: If i disable the write metod, all operate in real time
This in no way means that the problem is with writing to the file.
WIthout seeing your code, it's impossible to tell you where it's going wrong.
|
|
|
|