Search found 11 matches

by Regit
Wed Dec 20, 2006 4:05 pm
Forum: PHP - Code
Topic: simple net send
Replies: 6
Views: 785

:) ok i fixed the typo in the code but now it gives me

Code: Select all

Warning: shell_exec() [function.shell-exec]: Unable to execute 'net send tn-sys-386 test' in c:\Inetpub\wwwroot\testing fun\netsend.php on line 2
by Regit
Wed Dec 20, 2006 3:22 pm
Forum: PHP - Code
Topic: simple net send
Replies: 6
Views: 785

I am getting this error

Fatal error: Call to undefined function shell_exe() in c:\Inetpub\wwwroot\testing fun\netsend.php on line 2

is there something I need to add to the php.ini file? and i am not running php in safe mode
by Regit
Wed Dec 20, 2006 3:17 pm
Forum: PHP - Code
Topic: help with printer
Replies: 1
Views: 1009

help with printer

im trying the following and for some reason it will not work The code <?php print("testing the printer function"); $handle = printer_open("\\\\10.2.5.28\\Canon"); printer_set_option($handle, PRINTER_MODE, 'RAW'); printer_write($handle, "Testing"); printer_close("\\...
by Regit
Tue Dec 19, 2006 2:58 am
Forum: PHP - Code
Topic: simple net send
Replies: 6
Views: 785

simple net send

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Im having...
by Regit
Thu Oct 26, 2006 1:40 pm
Forum: PHP - Code
Topic: network drive
Replies: 6
Views: 1397

network drive

I have a mapped network drive (S) and im wanting to read in data from a file on this drive how can I do this with php? can i change directory to this mapped drive??? please help
by Regit
Thu Oct 19, 2006 4:03 pm
Forum: PHP - Code
Topic: php class not working
Replies: 3
Views: 319

We'll I figured out what I needed to do, so there is now no problem. Thx for trying to help though, i appreciate it
by Regit
Thu Oct 19, 2006 3:59 pm
Forum: PHP - Code
Topic: php class not working
Replies: 3
Views: 319

Yes sorry, All that happens is it prints

calcNPV(0.09, array(0,30,40,50,60,70)); } ?>

to the screen, it doesnt print the npv value
by Regit
Thu Oct 19, 2006 3:51 pm
Forum: PHP - Code
Topic: php class not working
Replies: 3
Views: 319

php class not working

I am trying to use the following class to produce the npv (Net Pressent Value) of some numbers. I am using this for a custom app for our accounting office. class npv { function calcNPV($rate, $values) { for ($i=0;$i<=count($values);$i+=1) { $npv = $values[count($values) - $i] + $npv / (1 + $rate); }...
by Regit
Tue Oct 10, 2006 8:59 am
Forum: PHP - Code
Topic: Changing the Drive
Replies: 1
Views: 165

Changing the Drive

How can I get access to a shared folder on my network ( i need to access some files in this folder to search through ) I have a user name and password that has access to this folder. How can I connect to it, I tried chdir but that didnt work, im assuming it has something to do with me not connecting...
by Regit
Tue Oct 10, 2006 8:19 am
Forum: PHP - Code
Topic: PHP File searching
Replies: 2
Views: 175

I figured it was a function I havent worked with yet, thanks for the help :) time to go get it working hehe
by Regit
Tue Oct 10, 2006 8:08 am
Forum: PHP - Code
Topic: PHP File searching
Replies: 2
Views: 175

PHP File searching

I am writting a small application and needing some help. I will be given a number and i have to do two things first go to the appropriate file directory example: if the number is 3800951 then the directory for that would be "38900951 Trunk Grey" or "3800951 Trunk Blue" im not tol...