i had a virus recently and needed to reformat. i have installed php and perl again but the php files no longer work in the cgi-bin directory. i only have 1 file i need to work, this was the working command

Code

system('roundimage.php');

i could do with this perl script calling the file in the htdocs folder. like so system('C:/"Program Files (x86)"/"Apache Software Foundation"/Apache2.2/htdocs/customers/$domainname/roundimage.php');

but this does not work, i am sure its just the sintax is incorrect as i can get the php file running from the browser

You're not making any sense. You need to provide more details and your code. However, if your code anything like what you posted in your earlier question, then don't bother, because I'm not going to waste my time troubleshooting that junk.

when i got to the url of the .pl script and run it, it just hangs like im connecting to a lagging server. just loading loading ect. but if i play with the code a bit i can get it to display "successfully changed" but check to see if the php script has done its job and it has not. and i can go to the php script url and it will run fine. i am researching the issue and some people say it may be the program files (86) being to long so i tried getting the short versions like progra~2 and that did not do anything either.

i wish i could just get an error message or something

i have recently installed windows, could it be some security settings or something i am not setting

when i go to the folder in cmd and open the script it just opens in notepad. im guessing i am not do this right. whats the sintax to run from dos i forgot to put php in front :) it runs perfectly fine from cmd

there is something strange i noticed, it worked fine when i navigated to the directory in cmd and the typed "php roundimage.php" but if i type " php C:/Progra~2/Apache~1/Apache2.2/htdocs/custom~1/firstt~1/roundimage.php"

then it does nothing with no error, which is what the system call is doing, any idea's

ok your right with the associate .php i have noticed about 50 notepads open in task manager. how do i associate with php as i right clicked and opened with c:\php\php.exe and it is still opening in notepad. is there something i have to do to make it an executable php

i have done all of those things and the file has the php logo on it but when i open the file it brings up a cmd screen for a split second and thats it, but i can still run it from cmd with the php command