Hi there,
I am trying to get a script to run in background no matter what, but I am
obviously doing it wrong.
Here is the entire code:
?php
//first instruction to be sure it is parsed
ignore_user_abort(TRUE);
set_time_limit(3600);
//sleep(10);
//this will send the HTTP code + headers + test
I need the PHP script to keep running until the end)
Until the end of what? Time? If you want your HTTP request to finish
and a script to continue regardless then use the method I suggested,
an start a shell process going.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
- if I use wget --spider (HEAD request) the script exits just after the
first output, all the functions below never get executed
This has nothing to do with any system command.
Then have your HTTP request trigger a system command that runs on
regardless. The HTTP request continues on after
On Tue, 04 Nov 2008 13:24:41 +0100, Jochem Maas wrote:
try testing for the request type (i.e. HEAD) and if found don't output
anything at all.
This is a nice workaround and works perfectly, thanks!
seems like apache (not the user) is shutting down the request as soon as
it recieves the
I have a file that looks like:
1. Some Text here
2. Another Line of Text
3. Yet another line of text
340. All the way to number 340
And I want to remove the Number, period, and blank space at the begining
of each line. How can I accomplish this?
Opening the file to modify it is easy, I'm
Hi all,
I'm trying to get my head around COM and interfaces and I'm making
slow progress but have hit a problem.
I have an IProduct interface and using com_print_typeinfo($iproduct) I
can see it has the following property (amongst others):
/* DISPID=1745027081 */
var
?php
$filename = .htaccess;
$fp =@ fopen($filename, r) or die (Couldn't open $filename);
// ENTER ENCODING HERE ..
$encoding = 'UTF-8';
if ($fp)
{
while (!feof($fp))
{
$thedata =@ fgets($fp);
// if every number is defonoodle separated by a dot ..
I have transactional records with the following structure
Records of what kind? Is it SQL?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 8:04 AM
To: PHP General list
Subject: [PHP] removing text from a string
I have a file that looks like:
1. Some Text here
2. Another Line of Text
3. Yet another line of text
340.
Joe,
Here is a simplified recursive version of your above statement.
?php
$dir = '.';
function displayDir($dir='.') {
$show = FALSE;
$results = glob($dir.'/*');
foreach ( $results AS $entry ) {
if ( is_dir($entry) !in_array($entry, array('.', '..'))
Adam Williams a écrit :
I have a file that looks like:
1. Some Text here
2. Another Line of Text
3. Yet another line of text
340. All the way to number 340
And I want to remove the Number, period, and blank space at the begining
of each line. How can I accomplish this?
Opening the file to
...
I was thinking more like this:
ltrim($line, '0123456789 .');
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 1st)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ltrim($line, '0123456789 .');
I am feeling a bit boneheaded now. How easy things can be.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Joe Schaeffer wrote:
Joe,
Here is a simplified recursive version of your above statement.
?php
$dir = '.';
function displayDir($dir='.') {
$show = FALSE;
$results = glob($dir.'/*');
foreach ( $results AS $entry ) {
if ( is_dir($entry)
Thanks Boyd, your code did exactly what I wanted!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Joe Schaeffer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 8:56 AM
To: Jim Lucas
Cc: php-general@lists.php.net
Subject: Re: [PHP] Recursive Directory Listing
?php
$dir = '.';
function displayDir($dir='.') {
$show = FALSE;
If it's a permissions issue, it's related to Windows. Is it a user
share or a system share? Can you access the shares when you log
directly into the windows box? Have you tried command line ssh to see
if it's specifically related to the PHP library?
Thank you,
Micah Gersten
onShore Networks
Thanks Boyd, your code did exactly what I wanted!
Y'know you could do this with ltrim()... :-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 1st)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Mon, 3 Nov 2008 13:01:14 -0200
[EMAIL PROTECTED] (John Coppens) wrote:
I'm confused... Can someone point me to some more tests I could do?
Solved.
Apparently the apachectl start/stop/restart script didn't work correctly,
or wasn't able to do its work. I _thought_ I had restart apache after
I think this may be what you are looking for, but I don't know how
much it helps:
http://www.marin.clara.net/COM/variant_type_definitions.htm
Andrew
Thanks Andrew - it's a start!
Alex
--
Alex Bovey
Web Developer | Alex Bovey Consultancy Ltd
Registered in England Wales no. 6471391 | VAT
Hi all
I have a php script which connects to a copssh server installed on a
Windows 2000 SP4 machine. However, the trouble is that I can not see
the contents of the shared network folders when connecting through
ssh2_exec. If I use putty instead, there is no problem seeing these
folders.
Hi Everyone,
Thanks for all the recommendation. Will explore them all.
Regards,
Feris
On Sun, Nov 2, 2008 at 7:52 PM, Eric Butera [EMAIL PROTECTED] wrote:
On Sun, Nov 2, 2008 at 5:03 AM, Richard Heyes [EMAIL PROTECTED] wrote:
Open id's really a toy at this point.
Now that MS and Google
On Tue, 04 Nov 2008 11:59:20 +, Richard Heyes wrote:
I need the PHP script to keep running until the end)
Until the end of what? Time?
Until the end of the script.
If you want your HTTP request to finish and
a script to continue regardless then use the method I suggested, an
start a
Is there any PHP functionality for sending mail and attaching a high
priority to the mail item ?
My htmlMimeMail code will do this for and, make it much easier too.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 1st)
--
PHP General
hi guys...
i've got a button that i want to select, and i want the app to process some
logic, and then return the user to the page. my question is how??
something like
base page:
a href=foo.phpbutton link/a
foo.php
-process logic
-return the user to the base page, with the same querystring
Is anything changing on the page? If not, AJAX might be the way to go,
http://xajaxproject.org
Otherwise, pass the parameters you want to foo.php and have it redirect
to the proper page with the proper arguments.
Another alternative, is to store the parameters in the session and pass
them from
On Tue, 2008-11-04 at 08:04 -0600, Adam Williams wrote:
I have a file that looks like:
1. Some Text here
2. Another Line of Text
3. Yet another line of text
340. All the way to number 340
And I want to remove the Number, period, and blank space at the begining
of each line. How can I
and what's the best way to do the redirect
sample code would be cool!
-Original Message-
From: Micah Gersten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 11:33 AM
To: bruce
Cc: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
Is anything changing
On Tue, 2008-11-04 at 09:56 -0500, Joe Schaeffer wrote:
Joe,
Here is a simplified recursive version of your above statement.
?php
$dir = '.';
function displayDir($dir='.') {
$show = FALSE;
$results = glob($dir.'/*');
foreach ( $results AS $entry ) {
On Tue, 04 Nov 2008 10:03:11 +, Richard Heyes wrote:
I am trying to get a script to run in background no matter what, but I
am obviously doing it wrong.
1. Have it executed via a shell command. 2. Redirect all output.
3. Append the ampersand.
This is not what I need, but thanks.
The
On Tue, 2008-11-04 at 07:51 -0800, Jim Lucas wrote:
Joe Schaeffer wrote:
Joe,
Here is a simplified recursive version of your above statement.
?php
$dir = '.';
function displayDir($dir='.') {
$show = FALSE;
$results = glob($dir.'/*');
foreach ( $results AS
Joe Schaeffer wrote:
Joe,
Here is a simplified recursive version of your above statement.
?php
$dir = '.';
function displayDir($dir='.') {
$show = FALSE;
$results = glob($dir.'/*');
foreach ( $results AS $entry ) {
if ( is_dir($entry) !in_array($entry,
-Original Message-
From: Micah Gersten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 1:33 PM
To: bruce
Cc: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
Is anything changing on the page? If not, AJAX might be the way to
go,
?php
header(location: pagetogoto.php);
?
There can be no output before this (even whitespace before open php
tags)
Kaleb
On Nov 4, 2008, at 1:41 PM, bruce wrote:
and what's the best way to do the redirect
sample code would be cool!
-Original Message-
From: Micah Gersten
On Tue, 2008-11-04 at 11:27 -0800, bruce wrote:
hi guys...
i've got a button that i want to select, and i want the app to process some
logic, and then return the user to the page. my question is how??
something like
base page:
a href=foo.phpbutton link/a
foo.php
-process logic
2008/11/4 bruce [EMAIL PROTECTED]:
and what's the best way to do the redirect
Header redirects are my preferred method, because of the Back button
on the browser.
sample code would be cool!
It is available at php.net/manual
--
Dotan Cohen
http://what-is-what.com
2008/11/4 Boyd, Todd M. [EMAIL PROTECTED]:
If you're going to go with AJAX (involving Javascript), you may as well
just use Javascript:
?php
# processing goes here
?
script type=text/javascript
history.go(-1);
/script
That will not work for users who browse without
hi guys...foo
i've got a button that i want to select, and i want the app to
process
some
logic, and then return the user to the page. my question is how??
something like
base page:
a href=foo.phpbutton link/a
foo.php
-process logic
-return the user to the base
-Original Message-
From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 1:40 PM
To: Adam Williams
Cc: PHP General list
Subject: Re: [PHP] removing text from a string
On Tue, 2008-11-04 at 08:04 -0600, Adam Williams wrote:
I have a file that looks
-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 1:49 PM
To: Boyd, Todd M.
Cc: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
2008/11/4 Boyd, Todd M. [EMAIL PROTECTED]:
If you're going to go with AJAX (involving
users who browse without Javascript enabled,
Heretics!
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 1st)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Replying to myself now.
On Tue, Nov 4, 2008 at 7:40 AM, Yeti [EMAIL PROTECTED] wrote:
ltrim($line, '0123456789 .');
I am feeling a bit boneheaded now. How easy things can be.
This would not work if the character string after the number started
with a number too.
EXAMPLE
?php
$line = '017.
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:28 PM
To: Richard Heyes
Cc: Dotan Cohen; php-general@lists.php.net; Boyd, Todd M.
Subject: Re: [PHP] basic php question...
Richard Heyes [EMAIL PROTECTED] wrote:
users who browse
2008/11/4 Wolf [EMAIL PROTECTED]:
Also remember, all US based sites have to be in compliance with ADA as well,
otherwise you'll spend a lot of time re-writing your stuff if it doesn't work
for someone to use a disabilities enabled browser to surf your site.
Is there a compliance test?
--
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:30 PM
To: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
Richard Heyes [EMAIL PROTECTED] wrote:
users who browse without Javascript enabled,
Heretics!
-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:34 PM
To: Wolf
Cc: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
2008/11/4 Wolf [EMAIL PROTECTED]:
Also remember, all US based sites have to be in compliance
Boyd, Todd M. schreef:
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:30 PM
To: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
Richard Heyes [EMAIL PROTECTED] wrote:
users who browse without Javascript enabled,
2008/11/4 Boyd, Todd M. [EMAIL PROTECTED]:
All U.S.-based GOVERNMENT and GOVERNMENT-RELATED sites (i.e., funded,
regulated, etc.) have to be in compliance. If I'm making a version of Simon
Says using PHP at my own leisure and putting it up for my friends and others
to play, or if I'm
-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:45 PM
To: Boyd, Todd M.
Cc: PHP General list
Subject: Re: [PHP] basic php question...
2008/11/4 Boyd, Todd M. [EMAIL PROTECTED]:
All U.S.-based GOVERNMENT and GOVERNMENT-RELATED
2008/11/4 Boyd, Todd M. [EMAIL PROTECTED]:
Is there a compliance test?
There's a link at the bottom of this page for an automated test:
http://pamil-visions.com/W3C-compliance.php
Thanks!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
hi Kaleb
looks like the header approach will work for my needs..
thanks
-Original Message-
From: Kaleb Pomeroy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 11:46 AM
To: bruce
Cc: 'Micah Gersten'; php-general@lists.php.net
Subject: Re: [PHP] basic php question...
Richard Heyes [EMAIL PROTECTED] wrote:
users who browse without Javascript enabled,
Heretics!
lynx works great!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The question here is: why a PHP script called via 'wget --spider' through
Apache/2 gets killed as soon as the HTTP reply code is sent, even if
ignore_user_abort() is set?
A script ending naturally is not the same as a user aborting.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and
Richard Heyes [EMAIL PROTECTED] wrote:
users who browse without Javascript enabled,
Heretics!
Also remember, all US based sites have to be in compliance with ADA as well,
otherwise you'll spend a lot of time re-writing your stuff if it doesn't work
for someone to use a disabilities
I am trying to get a script to run in background no matter what, but I am
obviously doing it wrong.
1. Have it executed via a shell command.
2. Redirect all output.
3. Append the ampersand.
eg. A commandx such as:
sleep 5 /dev/null 21
would become:
?php
exec('sleep 5 /dev/null 21
On Tue, 04 Nov 2008 11:37:15 +, Richard Heyes wrote:
The question here is: why a PHP script called via 'wget --spider'
through Apache/2 gets killed as soon as the HTTP reply code is sent,
even if ignore_user_abort() is set?
A script ending naturally is not the same as a user aborting.
Boyd wrote:
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:30 PM
To: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
Richard Heyes [EMAIL PROTECTED] wrote:
users who browse without Javascript
On Tue, Nov 4, 2008 at 4:48 AM, Richard Heyes [EMAIL PROTECTED] wrote:
Or ignorance. Even in the face of something that's blindingly obvious.
:%s/Even/Especially
--
/Daniel P. Brown
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated
On Mon, Nov 3, 2008 at 2:46 PM, Ashley Sheridan [EMAIL PROTECTED]wrote:
On Mon, 2008-11-03 at 15:56 +0100, Anders Norrbring wrote:
Anders Norrbring wrote:
I've been staring myself blind, so now I don't get anywhere, please
do
advice..
I have a web page printed with PHP,
On Tue, 2008-11-04 at 13:53 -0600, Boyd, Todd M. wrote:
-Original Message-
From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 1:40 PM
To: Adam Williams
Cc: PHP General list
Subject: Re: [PHP] removing text from a string
On Tue, 2008-11-04 at
On Tue, 2008-11-04 at 16:15 -0500, Wolf wrote:
Boyd wrote:
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:30 PM
To: php-general@lists.php.net
Subject: Re: [PHP] basic php question...
Richard Heyes [EMAIL
Martino Dell'Ambrogio schreef:
On Tue, 04 Nov 2008 11:59:20 +, Richard Heyes wrote:
I need the PHP script to keep running until the end)
Until the end of what? Time?
Until the end of the script.
If you want your HTTP request to finish and
a script to continue regardless then use the
Audit records from a financial application.
flx_l_rgb.JPG
Matthew Halpin
Systems Administrator Felix Resources Limited
Level 6, 316 Adelaide Street, Brisbane, Qld 4000
P: 07 3248 7903 F: 07 3211 7328 M: 0417 604 103
E: [EMAIL PROTECTED]
-Original Message-
From: Yeti
Which is why it's always best to remember one thing, especially in
programming: never underestimate the power of stupidity.
Or ignorance. Even in the face of something that's blindingly obvious.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org
Have you turned on error logging? What code are you using?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Jacob Overgaard wrote:
Thanks, Micah
I can access the share when I log directly in to the windows machine
with a bash shell. It seems isolated
I used dba-open (http://us2.php.net/manual/en/function.dba-open.php) to
create a simple database file. The linux file command tells me that the
file is just data:
# file test.db
test.db: data
I assume this is refered to a Constant Database or a DB2 file.
I'm able to insert, fetch, and
On Tue, 2008-11-04 at 17:41 -0500, Eric Wood wrote:
I used dba-open (http://us2.php.net/manual/en/function.dba-open.php) to
create a simple database file. The linux file command tells me that the
file is just data:
# file test.db
test.db: data
I assume this is refered to a Constant
Отличное предложение.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2008-11-04 at 18:05 +0200, feliks wrote:
Отличное предложение.
wtf?
Ash
www.ashleysheridan.co.uk
Ok, this looks quite databasey so I guess you will have a query like:
SELECT Rowid, Person, Timediff FROM transitional_records ORDER BY Timediff
I don't know what DB you use. let's say it is MySQL (the others are similar).
Always provide such things when asking for advice. Else it's not easy to
Command unkown. Make sure you typed it right.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi.
I'm trying to build a new admin interface for my cms, in a single screen.
I was thinking to have a tree-view on the left side of that screen,
something like
+Site-Name
+ UserGroups and Users (node-type section)
+ Administrators (node-type usergroup)
- administrator (node-type
Richard Heyes a écrit :
users who browse without Javascript enabled,
Heretics!
No, paranoid :D
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Do disability browsers support JavaScript?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday 05 November 2008 1:20:34 am Yeti wrote:
Do disability browsers support JavaScript?
This is not a PHP question, basic or otherwise.
However, the answer to your question is some do, some don't to varying
degrees, just to keep life interesting.
Search engines, however, do not. So
75 matches
Mail list logo