Solved

Issues with back ticks operator

Posted on 2008-10-09
7
180 Views
Last Modified: 2010-04-21
Hi,

I am running a small application using php using the backtick operator (``). when I run the application outside PHP it runs fine and dumps the output in an output file in 1 minute

However when I run it from PHP, It keeps going forever. Also it does create the output files but does not write to it.

I went to process explorer and saw that the application executable is being run as a process under svchost.

It looks like windows or PHP is locking it.

Can anyone help ? Thanks a ton in advance
0
Comment
Question by:anshuma
  • 4
  • 3
7 Comments
 
LVL 25

Expert Comment

by:Marcus Bointon
ID: 22685563
This is probably a permissions problem. In each case it's running as a different user, so check that the PHP user has sufficient privileges for where it's writing to.
0
 

Author Comment

by:anshuma
ID: 22686768
Hi Squinky,

The folder its writing to has the following permissions

everyone - full control

regards
-anshu
0
 

Author Comment

by:anshuma
ID: 22687058
Hi Squinky,

Is there some kind of log that I can see. Which will tell me what could be the issues

thanks
-anshu
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 25

Accepted Solution

by:
Marcus Bointon earned 500 total points
ID: 22700872
I would have thought that any security violations would be logged somewhere, but I don't know exactly where. I'm not really the one to ask about Windows sysadmin...
0
 

Author Comment

by:anshuma
ID: 22705887
Thanks Squinky. it was the Application pool permissions in IIS.

you rock. thanks a ton
0
 

Author Closing Comment

by:anshuma
ID: 31504854
Thanks a ton
0
 
LVL 25

Expert Comment

by:Marcus Bointon
ID: 22707049
Thanks - that was my 1,000th question answered too!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question