php-windows Digest 13 Sep 2002 09:14:14 -0000 Issue 1337

Topics (messages 15788 through 15796):

Re: Newbie to the news!
        15788 by: David Hollister
        15789 by: Constantin Baciu
        15790 by: dash php
        15791 by: Michael Baron

apache 2 error
        15792 by: Christian Calloway
        15793 by: Michael Baron

Re: Variable error
        15794 by: George Nicolae

problems with exec function
        15795 by: Christian Pichler

help me with this extension
        15796 by: Svetoslav Velichkov

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
That depends if you would rather subscribe to posts, post to subscribes, or
just post-subscribe.  

Ok, ok....  Newsgroups and mailing lists are not the same thing.  If might
be easier for you to simply access the php.windows postings from:
http://groups.google.com/groups?group=php.windows .  That way you can deal
with it when you want to and the messages won't come to your mailbox (at
least not when you don't want them to).  

-----Original Message-----
From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Newbie to the news!

But if I am not subscribed, I cannot post....

"David Hollister" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> unsubscribe from the mailing list @ php.net
>
> -----Original Message-----
> From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Newbie to the news!
>
> Hello...
>
> Do I really have to get ALL the messages in the mailbox? Isn't it enough
to
> subscribe to the NNTP server?..
>
>
> THX!
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
All I want to do is connect to the lists with Outlook Express...
I want to be able to read the posts and to post my own messages on the
server, but I DO NOT want to receive the messages in my mailbox.....

I hope that you understand.... now..

"David Hollister" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That depends if you would rather subscribe to posts, post to subscribes,
or
> just post-subscribe.
>
> Ok, ok....  Newsgroups and mailing lists are not the same thing.  If might
> be easier for you to simply access the php.windows postings from:
> http://groups.google.com/groups?group=php.windows .  That way you can deal
> with it when you want to and the messages won't come to your mailbox (at
> least not when you don't want them to).
>
> -----Original Message-----
> From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie to the news!
>
> But if I am not subscribed, I cannot post....
>
> "David Hollister" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > unsubscribe from the mailing list @ php.net
> >
> > -----Original Message-----
> > From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 12, 2002 3:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Newbie to the news!
> >
> > Hello...
> >
> > Do I really have to get ALL the messages in the mailbox? Isn't it enough
> to
> > subscribe to the NNTP server?..
> >
> >
> > THX!
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
I see what you're saying - it is hard to post just via the newsgroup.

Would it work if you set up some rules in Outlook Express to filter out the
messages? Or, you could subscribe to the digest version of the list and only
have one email to deal with... then post via the newsgroup.

-Dash

-----Original Message-----
From: Constantin Baciu [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 12, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Newbie to the news!


All I want to do is connect to the lists with Outlook Express...
I want to be able to read the posts and to post my own messages on the
server, but I DO NOT want to receive the messages in my mailbox.....

I hope that you understand.... now..

"David Hollister" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That depends if you would rather subscribe to posts, post to subscribes,
or
> just post-subscribe.
>
> Ok, ok....  Newsgroups and mailing lists are not the same thing.  If might
> be easier for you to simply access the php.windows postings from:
> http://groups.google.com/groups?group=php.windows .  That way you can deal
> with it when you want to and the messages won't come to your mailbox (at
> least not when you don't want them to).
>
> -----Original Message-----
> From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie to the news!
>
> But if I am not subscribed, I cannot post....
>
> "David Hollister" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > unsubscribe from the mailing list @ php.net
> >
> > -----Original Message-----
> > From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 12, 2002 3:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Newbie to the news!
> >
> > Hello...
> >
> > Do I really have to get ALL the messages in the mailbox? Isn't it enough
> to
> > subscribe to the NNTP server?..
> >
> >
> > THX!
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I was able to simply add the newsgroup and the first time I went to post 
a message, because I was not a subsriber, all they did was hold from 
posting my message until I received and responded to an email.  Now I 
can post and view, but do not receive everything via email.
Dash Php wrote:
> I see what you're saying - it is hard to post just via the newsgroup.
> 
> Would it work if you set up some rules in Outlook Express to filter out the
> messages? Or, you could subscribe to the digest version of the list and only
> have one email to deal with... then post via the newsgroup.
> 
> -Dash
> 
> -----Original Message-----
> From: Constantin Baciu [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 12, 2002 1:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Newbie to the news!
> 
> 
> All I want to do is connect to the lists with Outlook Express...
> I want to be able to read the posts and to post my own messages on the
> server, but I DO NOT want to receive the messages in my mailbox.....
> 
> I hope that you understand.... now..
> 
> "David Hollister" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 
>>That depends if you would rather subscribe to posts, post to subscribes,
> 
> or
> 
>>just post-subscribe.
>>
>>Ok, ok....  Newsgroups and mailing lists are not the same thing.  If might
>>be easier for you to simply access the php.windows postings from:
>>http://groups.google.com/groups?group=php.windows .  That way you can deal
>>with it when you want to and the messages won't come to your mailbox (at
>>least not when you don't want them to).
>>
>>-----Original Message-----
>>From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, September 12, 2002 3:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP-WIN] Newbie to the news!
>>
>>But if I am not subscribed, I cannot post....
>>
>>"David Hollister" <[EMAIL PROTECTED]> wrote in message
>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>
>>>unsubscribe from the mailing list @ php.net
>>>
>>>-----Original Message-----
>>>From: Constantin Baciu [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, September 12, 2002 3:00 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: [PHP-WIN] Newbie to the news!
>>>
>>>Hello...
>>>
>>>Do I really have to get ALL the messages in the mailbox? Isn't it enough
>>
>>to
>>
>>>subscribe to the NNTP server?..
>>>
>>>
>>>THX!
>>>
>>>
>>>
>>>--
>>>PHP Windows Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>--
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> 

--- End Message ---
--- Begin Message ---
I just downloaded and installed apache 2 on my winxp box (a dev and test
box). When I insert the following line into the config file, the apache
service refuses to start.

LoadModule php4_module c:/ApacheGroup/PHP/sapi/php4apache.dll

Obviously Im trying to get php4 mod to run, but its just puking all over me.
Im getting a server-specific error code 1, any ideas?


--- End Message ---
--- Begin Message ---
I had to use the php4apache2.dll instead from the latest CVS version of 
PHP to get mine to work.  Same set up: winXP Apache2
Christian Calloway wrote:
> I just downloaded and installed apache 2 on my winxp box (a dev and test
> box). When I insert the following line into the config file, the apache
> service refuses to start.
> 
> LoadModule php4_module c:/ApacheGroup/PHP/sapi/php4apache.dll
> 
> Obviously Im trying to get php4 mod to run, but its just puking all over me.
> Im getting a server-specific error code 1, any ideas?
> 
> 

--- End Message ---
--- Begin Message ---


--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Peter Silbermann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have an file application that works for some data but not other?? The
> error I'm getting causes an error on line 64
> for (reset($t1); $ti=current($tl)
i think the error is here       ^^^^^^
should be $tl or $t1 ($t(one)). u put the "l" caracter and you should put
the "1"-"one" digit.
replay me if it works.


> any thoughts??
> <?php
>
> include "npdata.php";
> include "mapfuncs.php";
> global $connID, $opid, $nextpage;
>
> $li = get_complete_lot_info($lot);
> $ops = implode($li['ops'], ",");
>
> // To by pass a lot of unnecessary questioning of the operator
> // (which run? which operation? fixtures? pallets?  yada yada
> // yada... I am going to pull the first operation that is identified
> // as being run on newport equipment in templateops.  Then check
> // sys_loads for load information, then scam the stuff from the
> // newport database
>
> if (empty($opid)) {
> $sql = "SELECT op.Operation_ID FROM operations AS op ";
> $sql .= "INNER JOIN runs AS r ON (op.Run_ID = r.Run_ID) ";
> $sql .= "INNER JOIN templateops AS top ON (r.Type =
> top.Test_Code) ";
> $sql .= "AND (top.Operation = op.Operation) ";
> $sql .= "WHERE op.Operation_ID IN ($ops) AND top.Equip =
> 'NP' ORDER BY op.Operation_ID;";
>
> $res = mysql_query($sql);
> $op = (mysql_num_rows($res)? mysql_result($res, 0, 0): 0);
> } else {
> $opid = intval($opid);
> $opid = ((empty($opid) || ($opid<0))? 0: $opid);
> $op = ($opid? $li['ops'][$opid-1]: 0);
> }
>
>
> if ($op) {
> $sql = "SELECT System, Fixture, Positions, Pallet, Dev_ndx,
> 0 AS Test_list FROM sys_loads WHERE Operation_ID=$op;";
> $res = mysql_query($sql);
> if (mysql_num_rows($res)) {
> while ($obj = mysql_fetch_object($res)) {
> $loads[] = $obj;
> }
> // All devices should be loaded in the same
> system...
> $sysid = $loads[0]->System;
> $connID = connect_to_np_system($sysid);
> // get list of steps for the ENTIRE lot (used to be
> just one run)
> $sql = "SELECT s.Step_ID, s.Step, s.Params ";
> $sql .= "FROM runs AS r INNER JOIN operations AS op
> ON (r.Run_ID = op.Run_ID) ";
> $sql .= "INNER JOIN steps AS s ON (op.Operation_ID =
> s.Operation_ID) ";
> $sql .= "WHERE r.Lot_ID = '$lot' ORDER BY
> s.Step_ID;";
> $res = mysql_query($sql);
> if (mysql_num_rows($res)) {
> while ($obj = mysql_fetch_object($res)) {
> $steps[] = $obj;
> }
> for (reset($steps); $step=current($steps);
> next($steps)) {
> $p = explode(",", $step->Params);
> $name = $p[count($p)-1];
> // echo "ID: $step->Step_ID, Name:
> $name<br>\n";
> $list1[] = "<option
> value='$step->Step_ID'>$step->Step_ID. $name</option>";
> }
> for ($i=0; $i<count($loads); $i++) {
> // Get tests for each load in
> 'Newport' operation...
> $list2 = array();
> $load = $loads[$i];
> $tl =
> get_tests_by_fixture($load->Fixture, $lot);
>   for (reset($tl); $ti=current($tl); next($tl)) {
> $ttype = ($ti[2]==0?
> "(LIV)": "(Burn-in)");
> $list2[] = "<option
> value='$ti[0]-$ti[1]'>$ti[0]-$ti[1] $ti[3] $ttype</option>";
> }
> $loads[$i]->Test_list = $list2;
> }
> echo "<table><tr><td
> width='120'>&nbsp;</td><td>";
> echo "<form name='frmTests'
> action='main.php' method='post'>\n";
> echo "<input type='hidden' name='page'
> value='$nextpage'>\n";
> echo "<input type='hidden' name='lot'
> value='$lot'>\n";
> echo "<input type='hidden' name='sysid'
> value='$sysid'>\n";
> echo "<input type='hidden' name='op'
> value='$op'>\n";
> echo "<table cellspacing='3' cellpadding='3'
> border='0'>\n";
> echo "<tr><td>Import Step:</td><td
> colspan='3'><select name='step'>\n";
> echo implode($list1, "\n");
> echo "</td></tr>\n";
>
> echo "<tr><td class='thdr'>Slot</td><td
> class='thdr'>Pallet</td>";
> echo "<td class='thdr'>Test(s)</td></tr>\n";
> $ptr=1;
> for (reset($loads); $load=current($loads);
> next($loads)) {
> echo
> "<tr><td>$load->Fixture</td>\n";
> echo "<td>$load->Pallet</td>\n";
> $nm = "tl" . $ptr++ . "[]";
> echo "<td><select name='$nm'
> multiple>\n";
> echo implode($load->Test_list,
> "\n");
> echo "</td></tr>\n";
> }
> echo "<tr><td>&nbsp;</td><td
> colspan='2'><input type='submit' value='Ok'></td></tr>\n";
> echo "</table>\n</form>\n";
> echo "</td></tr></table>\n";
> trav_set_focus('frmTests', 'step');
>
>
>
> } else {
> // No steps associated with lot.  HUH?
> // Major error...
>
>
> }
> } else {
> // no newport operation loaded in sys_load
>
> }
> } else {
> // No newport operation available, shouldn't be trying to
> import
> // from newport anyway...
>
> }
>
> Peter Silbermann
> Tyco Electronics Inc.
> Fiber Optic Buisness Unit
> Active Products Group
> Device Validation
> 908-704-3303 (Work)
> 610-570-2185 (Mobile)
> [EMAIL PROTECTED]
>
> ?>


--- End Message ---
--- Begin Message ---
Hey there,

My problem is following. I want to execute a PHP program (here: test2.php)
by another PHP program (here: test1.php) and get the return code of the
second executed PHP Program. But I always get the return code 0. Even if I
write 'return 50' in test1.php. But the rest of test1.php is working.
Because if I print the value of the output variable (test2.php), there's all
the output of test1.php. 

Does anybody know why this doesn't work?

Thanks in advance!

test1.php:
==========
<?php

$i = 0;

echo "Commandline - Parameter\n\n";
print("PHP-Version: " . phpversion() . "\n\n");

print("Result: \n\n");
print("Value of argc: " . $argc . "\n\n");

print("Value(s) of argv: \n");
for ($i = 0; $i < $argc; $i++) {
  print("argv[" . $i . "]: " . $argv[$i] . "\n");
}

return $argc;
?>

test2.php:
==========
<?php

$res = "";
$command = "c:\\php\\php.exe -f c:\\test1.php param1 param2 param3";
$output = array();
$retval = 0;

echo "Calling another one...\n\n";

$res = exec($command, $output, $retval);

print ("Following value was returned by exec: " . $retval . "\n");

?>

--- End Message ---
--- Begin Message ---
hi all !
here's my problem: how do i get proper php_mcrypt.dll,cause i cant copmpile one 
myself. 
If anyone has it please send. Thanks in advance.
--- End Message ---

Reply via email to