php


php shell_exec takes longer than cli execution?


I have a php script that executes casperjs on my Centos6 as following:
set_time_limit(0);
echo shell_exec("casperjs /home/senrioro/senioro.js --url='".$_GET['url']."'");
When the script gets running from cli using php myfile.php command, It takes less than 3 sec but when i open that file using my browser it takes more than 30 sec and sometimes browser shows me a 504 error .
My Question is , is there any configuration that i need to do to make my browser php execution closer to cli ? any help would be appreciate.

Related Links

passing the variable
Remove Image background with php and save transparent png
Passing array variable from one page to another in php and joomla
How to handle current language? Always in URL, or session?
About Limiting Rss Feed
if query does not exist, redirect to another page
How to change the password input from letters to **** [closed]
How to capture full HTTP request data (headers and body) with PHP?
how to disable chrome cache when use chunked response
add two time values and comparing with other time
Codeigniter - No result after sending jQuery post data
Compare the size of dynamic output of a function to a destination file, and do a rewrite
displaying mysql data in marquee
How to solve “redirect loop” in Chrome?
Custom function with Ajax not working as expected
Upload image - refresh - uploaded again, damn

Categories

HOME
azure-functions
weblogic12c
windows-8.1
schema.org
risk-management
mongoid
nsis
gentelella
greasemonkey
vue-resource
flurry
tfs2010
cocotb
elastic-load-balancer
twitter-oauth
alljoyn
smartgwt
spring-jpa
django-rq
nest-api
clr
chronicle-queue
sipp
cell
unordered-multimap
crud
ruby-daemons
python-imageio
bobo-browse.net
docx4j
es6-modules
mongodb-3.4
caesar-cipher
kendo-listview
autoencoder
amazon-kms
grails-2.5
cups
text-decorations
assemblies
sbjson
export-to-pdf
optionaldataexception
elasticsearch-aggregation
httphandler
adblock
deployd
roracle
image-registration
knockout-2.0
ilrepack
deedle
http4s
nitrousio
gapi
yargs
ogg
yui3
e
jsf-2.3
groovyfx
currency-exchange-rates
jnlp
compositetype
ipod
innerhtml
python-c-extension
subview
htmltidy
dos2unix
datagridcomboboxcolumn
rebar
device-admin
qt5.4
back
lumia-imaging-sdk
webautomation
coding-efficiency
cpu-time
django-sites
smips
rikulo
semicolon
oembed
dojo-1.9
xcode4.5
arrow
image-formats
struts2-s2hibernate
quartz-core
uipasteboard
cewolf
suphp
outlook-2007-addin
icicles
3270
rootkit
webclient.uploaddata

Resources

Encrypt Message