php-windows Digest 12 Jun 2003 06:48:04 -0000 Issue 1772

Topics (messages 20277 through 20280):

$GLOBALS
        20277 by: Mike

running a batch file from PHP
        20278 by: lanceq.uncle-eazy.com
        20279 by: DvDmanDT

running my head into php
        20280 by: Svensson, B.A.T. (HKG)

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 ---
When running the following code:

foreach($GLOBALS['photo'] as $photo)

I get:

Warning: Invalid argument supplied for foreach() on line 63

Would register globals have to be on for this code to work?  Am I using the
$GLOBALS clause wrong?  It would seem to me that this should work since you
can use post in the same fashion.
ie: foreach($_POST['photo'] as $photo)

~ Mike



--- End Message ---
--- Begin Message ---
Hello all,

I would like to run a batch file in the background, using PHP and Apache on
Win2k Server. I use ANALOG to generate usage stats for my different web
sites. Some of the web masters expressed that they would like to update the
usage whenever they want.

I've got batch files written that run the reports, filter the reports
through ReportMagic and copy the results to the appropriate directories.
These are run every night through Windows task scheduler.

Is there a way to do this with PHP? I've looked at exec and passthru, but
I'm still having trouble.

Thanks in advance,
Lance



--- End Message ---
--- Begin Message ---
$result = `batfile.bat`;

Would do the trick... Notice that it's ` (backtic), not single quote '....
<[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hello all,
>
> I would like to run a batch file in the background, using PHP and Apache
on
> Win2k Server. I use ANALOG to generate usage stats for my different web
> sites. Some of the web masters expressed that they would like to update
the
> usage whenever they want.
>
> I've got batch files written that run the reports, filter the reports
> through ReportMagic and copy the results to the appropriate directories.
> These are run every night through Windows task scheduler.
>
> Is there a way to do this with PHP? I've looked at exec and passthru, but
> I'm still having trouble.
>
> Thanks in advance,
> Lance
>
>



--- End Message ---
--- Begin Message ---
I am really in a desperate need to be able to execute
php, my entire project, carrier and life depends on it.

I been running my head several time into php, but I
still not seams to be able to execute it. I even had
tried to burnt the latest version on a CD-ROM and did
the reverse thing in order to see if it works  - e.g.
I been running CD-ROM's into my head all day long for
a weeks time now.

The cleaner has starts to complain about all the trash on
the floor. Not to mention my boss who starts to make
inquires about all the consumed CD-ROM at our department.


What may be wrong?



P.S. I suspect that this might be a bug with php. Am I right? D.S.

--- End Message ---

Reply via email to