Search found 4 matches

by Brent
Fri Aug 11, 2006 1:27 pm
Forum: PHP - Code
Topic: Calling XP control panel applets from php
Replies: 5
Views: 357

Seems your PHP script would need an absolute path to the program (not sure what that would be). The php-cgi.exe and obviously control.exe are in the PATH. The bat file resides in the same directory as the php page it is being run from, although I have tried specifying the complete path with no resu...
by Brent
Fri Aug 11, 2006 1:12 pm
Forum: PHP - Code
Topic: Calling XP control panel applets from php
Replies: 5
Views: 357

Calling XP control panel applets from php

I am able to directly call control panel applets using the command prompt i.e. "control desk.cpl". The problem is that when using php or even javascript to run the command the applet never appears. I have tried running a batch file to execute the command. I have tried using CALL. It works ...
by Brent
Fri Aug 04, 2006 1:20 pm
Forum: PHP - Code
Topic: explode() not splitting string data
Replies: 2
Views: 270

I've been messing with this for 15 minutes now, mainly because I couldn't remember the HTML tag lol. <?php echo '<pre>'; system('ipconfig'); echo '</pre>'; Never used system() before, what a weird function. It actually automatically prints the command results. If you try to set an output var to sto...
by Brent
Fri Aug 04, 2006 12:26 pm
Forum: PHP - Code
Topic: explode() not splitting string data
Replies: 2
Views: 270

explode() not splitting string data

I am using system('ipconfig', $output) to display the output in a browser window. $output displays as one continuous line since all the line breaks are stripped out so I am trying to break the data back up into a readable format using explode() but it doesn't split the string. system('ipconfig', $ou...