Solved

Issues with back ticks operator

Posted on 2008-10-09
7
177 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:Squinky
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
Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 25

Accepted Solution

by:
Squinky 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:Squinky
ID: 22707049
Thanks - that was my 1,000th question answered too!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now