Skip to content

u/1137

In this archive from Apr 2010 to Apr 2014

1
posts
130
comments
1
media
561
score

But thats request time right? If you want to be accurate with execution time you'd want to grab a timestamp in the first line after the server did its work and actually started running the script, which could be a wee bit after the server request time.

Ignoring that OP should also be using microtime (true);

2 points

It's very simple, use pear, and put it in your project. Update the include path as needed so you don't worry about what system they're on and what version might be there.

Or check the Zend stuff, there's a bit of overlap and theirs is much more up to date.

1 points

I have nothing against Python, but PHP CLI scripts work wonderfully for moving files around, massaging data, and outputting other files, be it HTML, CSV, XML, JSON, whatever.

What precisely makes Python better for this job in your opinion? Please be specific.

  • Data goes onto a FeeNAS box in the lab from the instruments
  • That is moved over ssh by a cron job to a server on the intranet
  • That server has a php script that rebuilds a nice static index page for all the data and posts it's availability to our internal instance of laconica.

I am asking because I am curious what you view as disadvantages here.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.