Solved

Issues with back ticks operator

Posted on 2008-10-09
7
181 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

840 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