473,383 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

What does this PHP code do?

39
Can someone please explain this php code. I would be grateful

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. // --------------- file tape2matlab2php.php
  3.  
  4. // NOTE: if web-server and matlab server are NOT located on the same mashine please use share name.
  5.  
  6. $path_data ="\MB_data\Field_Signals\";
  7. $path_out_file ="MB_dataout";
  8. $path_descr ="MB_datadesc";
  9. $path_MB_def ="MB_dataMB_def";
  10. $path_HDF ="MB_dataout";
  11.  
  12. ?>
  13.  
  14.  
  15.  
  16.  
  17. <?php
  18.  
  19. if (!isset($mode)) {
  20. $mode="init";
  21. }
  22. switch ($mode) {
  23. case 'init':
  24. include('inc_init_page.php');
  25. break;
  26. case 'run':
  27. ?>
  28. <form action="/cgi-bin/matweb.exe" method="POST">
  29. <input type="hidden" name="mlmfile" value="Tape2coord">
  30. <input type="hidden" name="dfname" value=" <?PHP echo $dfname ?>" >
  31. <input type="hidden" name="path_descr" value=" <?PHP echo $path_descr ?>" >
  32. <input type="hidden" name="path_data" value=" <?PHP echo $path_data ?>" >
  33. <input type="hidden" name="path_out_file" value=" <?PHP echo $path_out_file ?>" >
  34. <input type="hidden" name="path_HDF" value=" <?PHP echo $path_HDF ?>" >
  35. <p><input type="submit" name="Submit" value="Execute"></p>
  36. </form>
  37. <?PHP
  38. break;
  39. default:
  40. echo "End'";
  41. break;
  42. }
  43. ?>
  44. </BODY>
[Please use CODE tags when posting source code. Thanks! --pbmods]
Jun 16 '07 #1
2 1467
pbmods
5,821 Expert 4TB
Which part of it did you want to learn more about?
Jun 16 '07 #2
atlkhan
39
Which part of it did you want to learn more about?

Mostly the part where form inputs are given and what is going on in the swithc case statement.

Also, is it possible if I run this php script on my webserver . Where I am passing some inputs from the flash and this script pass those inputs to the matweb.exe program as its doing in this case.( My point is does it require any user interaction)
Jun 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
3
by: Chris Cioffi | last post by:
I started writing this list because I wanted to have definite points to base a comparison on and as the starting point of writing something myself. After looking around, I think it would be a...
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
3
by: mark | r | last post by:
is there an industry standard method of costing out a project the problem i have is that when talking to a developer they say "i dont know how long it will take" which just isnt acceptable #...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
35
by: GTO | last post by:
I do not believe that C# is the future of C++. I also do not believe that adding two thousand new library functions to the standard library is the future of C++. But what is the future of C++? Is...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.