[PHP] problems with system()

2002-01-24 Thread John Gurley
Hello, I am in a bit of a pickle and would greatly appreciate any help. I have code which writes inputs to a txt file. These inputs are used as inputs to a c program. What I am trying to do is use the redirect command to run the code from php. The command is: ./a.outtest.txt through

[PHP] using eregi

2002-01-31 Thread John Gurley
Hello, Just wondering if there is a way to print out parts of a text file (i.e from line x to line y) using php, the way it is being done now is using eregi and comparing strings, but it would be alot better if I could specify which lines to print. Thanks a million.

[PHP] printing files

2002-02-13 Thread John Gurley
Just a quick question, is there a way to echo in your php code lines of a file that you specify. i.e. you want to output lines 1,4,7 of a certain text file Thanks John _ Join the world’s largest e-mail service with MSN Hotmail.

[PHP] stupid problem

2002-02-18 Thread John Gurley
I am getting a variable from a web page ($inst) which is looked at by the loop: if ($inst == 2) { do stuff } the problem is that no matter what the value of $inst the code enters the loop. I know it is some thing small and stupid, but any help would be appreciated. john

[PHP] response

2002-02-18 Thread John Gurley
here is the html part of the code:: h3 align=center Instrument/h3 center select name=inst option selected value=1Beeps/option option value=2Violin/option /select /center and the php:: echo($inst); if($inst == 2) { } cheers

[PHP] code

2002-02-18 Thread John Gurley
not trying to be sneaky or hide anything, the only thing is that it is a long code and what ever is wrong with what I am using it will not let me paste the code over!?! when I echo $inst i get the expected result (i.e. 1 or 2) but even if the result is 1 it goes into the loop...and yes the

[PHP] got the code

2002-02-18 Thread John Gurley
here is a larger chunk of the code: html body background = backgrnd.gif text = ff8c00 link = ff vlink = 00 /body /html ? $f=fopen(/home/jgurley/www/test.txt,w); ? html center h1WEB BASED MUSIC COMPOSITION/h1 hr font size =6 Enjoy the Tune /font hr br font size = 4Tone Row:/font

[PHP] permissions

2002-03-04 Thread John Gurley
Can someone pleas tell me if there is something funny when it comes to unix permissions and PHP When php creates a file in unix the owner is nobodydoes this raise any issues, and if it does could someone please tell me a web site where I could read more about this Thanks alot John

[PHP] question

2002-03-12 Thread John Gurley
don't know exactly if anybody will understand what I am asking, but any help would be appreciated. I am taking a value off a web page, posting this value to another web page, where more values are taken and submitted to a php page. The problem is that the first value (taken from the initial

[PHP] input

2002-03-13 Thread John Gurley
hello, Someone was kind enough to give me this code for sending a value from one page to another, but it doesn't work. I wonder if anyone can see anything wrong: ?php echo ' input name=inp type=hidden value=', $_POST['inp'], ' '; ? I want to pass $inp to another pagee. Thanks In advance

[PHP] passing values

2002-03-13 Thread John Gurley
this is still not working for passing a value from one page to another: ?php echo ' input name=inp type=hidden value='. $_POST['inp']. ' '; ? When I look at the source this appears: input name = inp type = hidden value = which I take to mean that it does not know what $inp is. could it be

[PHP] RE: passing values

2002-03-13 Thread John Gurley
Ray, I am using the post method, and the $_POST is inside FORM/FORM, but the value is still not passed. Although I'm not sure what you mean by You will need to set the value with a post inorder to access it with the predefined variable $_POST Could you explain this please. Thanks again

[PHP] re: passing inputs

2002-03-13 Thread John Gurley
Sorry, Didn't mean to keep everyone in the dark here is the code: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN !-- saved from url=(0031)http://godel/jgurley/form1.html -- HTMLHEADTITLEUntitled Document/TITLE META content=text/html; charset=iso-8859-1 http-equiv=Content-Type

[PHP] re: passing values

2002-03-13 Thread John Gurley
Thanks everyone for the help. Finally got it working using this: ?php echo 'input name = inp type = hidden value ='; echo ($_POST '$inp'); echo ''; ? Don't hhave a clue why this worked and the others didn't?!?!? thanks John _

[PHP] use of system/exec

2001-10-24 Thread John Gurley
Hello, Could someone please show me an example of code using system or exec. Would be great if the string was a unix command. Cheers John _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --