[PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded, but it's designed to have different parts of the import process run on different servers. I'm stuck at getting curl_exec() to return the data

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:24 AM, Tolas Anon tolas...@gmail.com wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded, but it's designed to have different parts of the import process run

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:32 AM, David Hutto smokefl...@gmail.com wrote: On Tue, Feb 8, 2011 at 7:24 AM, Tolas Anon tolas...@gmail.com wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Ashley Sheridan
On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded, but it's designed to have different parts of the import process run on different

[PHP] Paging and permissions

2011-02-08 Thread Arno Kuhl
I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in containers. An article can be assigned to only one category per container, but one or more containers. Access permissions can be set per article,

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:35 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems longwinded,

Re: [PHP] Paging and permissions

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:36 AM, Arno Kuhl ak...@telkomsa.net wrote: I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in containers. An article can be assigned to only one category per container,

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 1:35 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a javascript-php_on_apache-windows.bat-php_cli-curl-php_script invocation method. It seems

Re: [PHP] Paging and permissions

2011-02-08 Thread Ashley Sheridan
On Tue, 2011-02-08 at 14:36 +0200, Arno Kuhl wrote: I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in containers. An article can be assigned to only one category per container, but one or

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Ashley Sheridan
On Tue, 2011-02-08 at 13:50 +0100, Tolas Anon wrote: On Tue, Feb 8, 2011 at 1:35 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines,

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 8:02 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2011-02-08 at 07:59 -0500, David Hutto wrote: it's : javascript - php_on_apache - windows.bat - php_cli - php_daemon_script - curl_exec - php_script followed by calls-until-finished from javascript

Fwd: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
-- Forwarded message -- From: Tolas Anon tolas...@gmail.com Date: Tue, Feb 8, 2011 at 1:56 PM Subject: Re: [PHP] curl_exec won't return (any data) To: a...@ashleysheridan.co.uk On Tue, Feb 8, 2011 at 1:50 PM, Tolas Anon tolas...@gmail.com wrote: On Tue, Feb 8, 2011 at 1:35

Re: [PHP] Paging and permissions

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 1:36 PM, Arno Kuhl ak...@telkomsa.net wrote: I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in containers. An article can be assigned to only one category per

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 7:50 AM, Tolas Anon tolas...@gmail.com wrote: On Tue, Feb 8, 2011 at 1:35 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2011-02-08 at 13:24 +0100, Tolas Anon wrote: Hi.. For a set of media import routines, i'm using a

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Ashley Sheridan
On Tue, 2011-02-08 at 07:59 -0500, David Hutto wrote: it's : javascript - php_on_apache - windows.bat - php_cli - php_daemon_script - curl_exec - php_script followed by calls-until-finished from javascript that read the status of php_script via json files written to the server and thus

RE: [PHP] Secure monetary transactions

2011-02-08 Thread Bob McConnell
From: Paul M Foster I'm certain people on this list have set up this type of system for customers. So I have some questions: 1) Does the usual online store software (osCommerce or whatever) include secure pages for acceptance of credit cards? I know they have the capability to pass this

Re: [PHP] Secure monetary transactions

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 8:29 AM, Bob McConnell r...@cbord.com wrote: From: Paul M Foster I'm certain people on this list have set up this type of system for customers. So I have some questions: 1) Does the usual online store software (osCommerce or whatever) include secure pages for

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
ok, i've done another run, this time with both php_daemon_script and php_script allowed to run indefinitely, and i've triple-checked my results.. - all the calls to convert and import the +-2gb video file in php_script (the import-worker-script) complete just fine, they update a debug file on the

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
for completeness, i'll say that i'm using libcurl-7.21.3, and (again) that these import routines work without problems for smaller video files (tested with +-60mb vid file). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
also: the vid file itself is converted correctly too, and inserted into my db correctly. i can even view the converted flv and it has the correct length and everything! it's just that the frigging import won't continue with the rest of the files in the queue.. it's maddening! ;-) -- PHP General

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 3:39 PM, Tolas Anon tolas...@gmail.com wrote: also: the vid file itself is converted correctly too, and inserted into my db correctly. i can even view the converted flv and it has the correct length and everything! it's just that the frigging import won't continue

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
the one thing i can think of is that curl_exec() somehow stops listening for results and hangs the calling php script (php_daemon_script in this case) if it does not receive any data for more than a few minutes (converting the 60mb vid file takes about a minute, and the 2gb script well over 30

Re: [PHP] Paging and permissions

2011-02-08 Thread David Harkness
On Tue, Feb 8, 2011 at 4:36 AM, Arno Kuhl ak...@telkomsa.net wrote: But it might be an option if done once at the start of each search or list request, and then use that temporary modified result set for subsequent requests on the same set. Instead of serializing the articles, you only need

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Mujtaba Arshad
nice quintuple posting. On Tue, Feb 8, 2011 at 9:46 AM, Tolas Anon tolas...@gmail.com wrote: the one thing i can think of is that curl_exec() somehow stops listening for results and hangs the calling php script (php_daemon_script in this case) if it does not receive any data for more than a

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
Things I've checked in the meanwhile; curl_setopt($ch,CURLOPT_TIMEOUT, 0); and curl_setopt($ch,CURLOPT_TIMEOUT, 9); have the same freezing results as before I've used a packetsniffer to analyze the dataflow on my port 80, with all other http apps incl the browser not in memory/running, so i

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 7:01 PM, Tolas Anon tolas...@gmail.com wrote: Things I've checked in the meanwhile; curl_setopt($ch,CURLOPT_TIMEOUT, 0); and curl_setopt($ch,CURLOPT_TIMEOUT, 9); have the same freezing results as before I've used a packetsniffer to analyze the dataflow on my port

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
ok, did another run with a different packet analyzer, one that does not have winPcap under the hood like WireShark does. I chose microsoft network monitor 3.4 for the task. the launch of the 2gb vid import (only part by curl_exec): format: packetnumber[TAB] time_date_local_adjusted[TAB]

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 8:54 PM, Tolas Anon tolas...@gmail.com wrote: But in the meanwhile I found a new idea to try as well;        curl_setopt($ch, CURLOPT_HTTPHEADER, array(                        'Connection: Keep-Alive',                        'Keep-Alive: 300'        )); I already

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Steve Staples
On Tue, 2011-02-08 at 21:15 +0100, Tolas Anon wrote: On Tue, Feb 8, 2011 at 8:54 PM, Tolas Anon tolas...@gmail.com wrote: But in the meanwhile I found a new idea to try as well; curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Connection: Keep-Alive',

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 9:33 PM, Steve Staples sstap...@mnsi.net wrote: i've been sorta reading this (as I am sure most maybe stopped after the 4th consecutive post)... yea, i feel i gotta be complete so as to not waste the time of people who do wanna help. but what I am wondering is... why

Re: [PHP] Secure monetary transactions

2011-02-08 Thread Donovan Brooke
Paul M Foster wrote: [snip] In essence, my customer is not responsible for any confidential/secure information, which is all handled by the merchant gateway. For whatever unknown reason, my customer has been convinced they should go with a different merchant service company. However, this

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 3:47 PM, Tolas Anon tolas...@gmail.com wrote: On Tue, Feb 8, 2011 at 9:33 PM, Steve Staples sstap...@mnsi.net wrote: i've been sorta reading this (as I am sure most maybe stopped after the 4th consecutive post)... yea, i feel i gotta be complete so as to not waste the

[PHP] First PHP site - thanks - euca_phpmysql function library

2011-02-08 Thread Donovan Brooke
Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people do, the back-end (non-public) side of this site is perhaps the more interesting. However, here is the link to the

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
On Tue, Feb 8, 2011 at 11:01 PM, Tolas Anon tolas...@gmail.com wrote: Ok, another run, this time after adding the following to php_daemon_script;        curl_setopt($ch, CURLOPT_HTTPHEADER, array(                        'Connection: Keep-Alive',                        'Keep-Alive: 300'      

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
Ok, another run, this time after adding the following to php_daemon_script; curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Connection: Keep-Alive', 'Keep-Alive: 300' )); Exec-sum: No change whatsoever in behaviour, curl_exec still

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread Tolas Anon
The one thing that strikes me as odd, before i go, is that i saw no actual HTTP-KEEPALIVE traffic flowing... I might have missed it, but i don't think so.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl_exec won't return (any data)

2011-02-08 Thread David Hutto
On Tue, Feb 8, 2011 at 5:05 PM, Tolas Anon tolas...@gmail.com wrote: The one thing that strikes me as odd, before i go, is that i saw no actual HTTP-KEEPALIVE traffic flowing... I might have missed it, but i don't think so.. Welcome to programming. on /off true /false. -- PHP General