Re: [PHP] Connection Handling - unreliable at best?

2011-02-20 Thread James Green
Hm. Commented out the line & re-tested. Absolutely no change whatsoever :( Even made it false. I'm really hoping I've been an idiot on this one. Makes no sense otherwise but this is where I am. Hope to hear further suggestions. James On 20 February 2011 03:05, Daniel Brown wrote: > On Fri, Fe

Re: [PHP] Connection Handling - unreliable at best?

2011-02-19 Thread Daniel Brown
On Fri, Feb 18, 2011 at 10:21, James Green wrote: > Been reading through > http://uk.php.net/manual/en/features.connection-handling.php and > trying to implement a solution using it. So far the documented > behaviour rarely occurs. > > This code is a minimal test case: http://codepad.org/GqNlcWiM

Re: [PHP] Connection error on URI

2009-01-28 Thread Jim Lucas
Skip Evans wrote: > Hey all, > > I'm working on someone else's code that tries to read an XML transaction > from a remote server with the following code. > > $url="http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=".$user_sass; > > // $url = urlencode($url); T

Re: [PHP] Connection error on URI

2009-01-28 Thread Skip Evans
Here's the output with the call to error_reporting(255); in place. Calling Sassnet... Warning: file_get_contents(http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=59) [function.file-get-contents]: failed to open stream: Connection timed out in /usr/sites/sassnet

Re: [PHP] Connection error on URI

2009-01-28 Thread Jan G.B.
2009/1/28 Skip Evans : > Hey all, > $url="http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=".$user_sass; > $xml_response = file_get_contents($url, true); > > But this transaction times out and returns an empty transaction, even with > the call to urlencode, which I t

Re: [PHP] connection error on file upload

2006-04-03 Thread tedd
At 10:20 AM -0500 4/3/06, Kenn wrote: Greetings. I'm having a problem with my upload handler. If I send small files (under 1M or so), it works fine. if I send larger files, I get the following error If nothing else works, send smaller segments. Nothing wrong with appending to a file, is the

Re: [PHP] connection error on file upload

2006-04-03 Thread Kenn
Jay Blanchard wrote: > [snip] > Jay Blanchard wrote: > >> [snip] >> That was my first thought, but two things: 1. the error occurs >> IMMEDIATELY, and 2. the max_execution_time = 6000 so I would think >> > that > >> arbitrarily high number would prevent that error? >> [/snip] >> >>

Re: [PHP] connection error on file upload

2006-04-03 Thread Kenn
neglected to mention: upload_max_filesize = 200M post_max_size = 250M Kenn wrote: > That was my first thought, but two things: 1. the error occurs > IMMEDIATELY, and 2. the max_execution_time = 6000 so I would think that > arbitrarily high number would prevent that error? > > > > Jay Blanchar

Re: [PHP] connection error on file upload

2006-04-03 Thread Kenn
That was my first thought, but two things: 1. the error occurs IMMEDIATELY, and 2. the max_execution_time = 6000 so I would think that arbitrarily high number would prevent that error? Jay Blanchard wrote: > [snip] > The connection was reset. > The connection to the server was reset while the

RE: [PHP] connection error on file upload

2006-04-03 Thread Jay Blanchard
[snip] The connection was reset. The connection to the server was reset while the page was loading. [/snip] Script timeout Max upload size -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Connection: close Always?

2005-12-22 Thread Curt Zirzow
On Thu, Dec 22, 2005 at 05:23:51PM -0500, Michael B Allen wrote: >... > > # > # KeepAlive: Whether or not to allow persistent connections (more than > # one request per connection). Set to "Off" to deactivate. > # > KeepAlive Off > > Mmm, why does the Fedora 4 apache package ship with keep-alive

Re: [PHP] Connection: close Always?

2005-12-22 Thread Michael B Allen
On Thu, 22 Dec 2005 17:16:03 -0500 Michael B Allen <[EMAIL PROTECTED]> wrote: > On Thu, 22 Dec 2005 09:42:08 +0100 > Jochem Maas <[EMAIL PROTECTED]> wrote: > > > Michael B Allen wrote: > > > Why does PHP always close the connection with Connection: close? I'm > > > using PHP 4.3.11 w/ Firefox 1.0

Re: [PHP] Connection: close Always?

2005-12-22 Thread Michael B Allen
On Thu, 22 Dec 2005 09:42:08 +0100 Jochem Maas <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: > > Why does PHP always close the connection with Connection: close? I'm > > using PHP 4.3.11 w/ Firefox 1.0.4. Requests are HTTP/1.1 and Connection: > > keep-alive is requested. > > > > a very sma

Re: [PHP] Connection: close Always?

2005-12-22 Thread Jochem Maas
Michael B Allen wrote: Why does PHP always close the connection with Connection: close? I'm using PHP 4.3.11 w/ Firefox 1.0.4. Requests are HTTP/1.1 and Connection: keep-alive is requested. a very small sum of money says that this is due to your webserver config and not php (check httpd.conf?)

RE: [PHP] Connection to Two databases simultaneously

2005-04-04 Thread Kim Madsen
> -Original Message- > From: HarryG [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 02, 2005 6:29 AM > I am connecting to two database in my index.php. If the 2 databases are on the same mysql server and the MySQL user has access to both databases, You can easily use join: Select name

Re: [PHP] Connection to Two databases simultaneously

2005-04-02 Thread Dan Rossi
both db's on the same host ? I would try select * from second_db2.theothertable :) On 02/04/2005, at 6:53 PM, Jochem Maas wrote: HarryG wrote: Hi, I am connecting to two database in my index.php. Here is how: @ $db = mysql_connect("localhost", USERLOGIN, USERDBPASS); if (!$db) { print "Error: Co

Re: [PHP] Connection to Two databases simultaneously

2005-04-02 Thread Jochem Maas
HarryG wrote: Hi, I am connecting to two database in my index.php. Here is how: @ $db = mysql_connect("localhost", USERLOGIN, USERDBPASS); if (!$db) { print "Error: Could not connect to database. Please try again later."; exit; } mysql_select_db(DATABASE); @ $userdb = mysql_connect("localhost"

Re: [PHP] connection pooling

2005-02-04 Thread Jochem Maas
Bosky, Dave wrote: What options are available regarding connection pooling using PHP? I understand how to accomplish this using Java but PHP is another language. for most db extensions there are persistent variants of the connect functions. e.g. ibase_pconnect() php is unlike java in that there is

Re: [PHP] connection parameters to db's

2004-07-03 Thread John W. Holmes
Dennis Gearon wrote: When I connect to a database on the same machine as the apache server us running under, that's server name "localhost", right? Yes. You can also use the IP address or computer name. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: T

Re: [PHP] Connection handling and output_buffering

2004-02-23 Thread Matt Matijevich
Was reading through: http://uk.php.net/manual/en/features.connection-handling.php And I was wondering how PHP handles script termination when you have 'output_buffering = On' in your php.ini? If I have a long script that does lots of database stuff for example, and is riddled with echo() fun

RE: [PHP] Connection AS400-Windows & PHP

2003-10-31 Thread James Lobley
1. Install IBM Client Access on your NT machine 2. Add details of your AS400 to Client Access 3. Create a Client Access data source in ODBC 4. Use ODBC calls within PHP, for example: $connect = odbc_connect("AS400", "username", "password"); $query = "SELECT free FROM

Re: [PHP] Connection pool extension?

2003-01-09 Thread michael kimsal
TED]> Sr. Software Designer Geodesic Information Systems Ltd. -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 1:00 PM To: 'Vinod Panicker'; [EMAIL PROTECTED] Subject: RE: [PHP] Connection pool extension? PHP suppo

RE: [PHP] Connection pool extension?

2003-01-08 Thread Vinod Panicker
er Geodesic Information Systems Ltd. -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 1:00 PM To: 'Vinod Panicker'; [EMAIL PROTECTED] Subject: RE: [PHP] Connection pool extension? PHP supports sockets check out

RE: [PHP] Connection pool extension?

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
PHP supports sockets check out: http://www.php.net/manual/en/ref.sockets.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Vinod Panicker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 5:31 PM > To: [EMAIL PROTECT

Re: [PHP] Connection string and Monday Morning blues

2002-11-25 Thread @ Edwin
Hello, There could be a lot of problems here but what *exactly* is the problem? No more coffee, perhaps? :) Post the error, if there's any. Or, take away the "@" sign and see what happens... - E "Paul Dionne" <[EMAIL PROTECTED]> wrote: > Ug, I hate Mondays. must drink more coffee. > > Anyway

Re: [PHP] connection

2002-09-29 Thread Justin French
You need to set the parameters to whatever your ISP granted you for use of MySQL... $dbcnx = mysql_connect("servername","username","password"); You should ask your ISP what these are. Justin French on 29/09/02 9:54 PM, DC ([EMAIL PROTECTED]) wrote: > Hi, > > OK I have my first php/mysql

Re: [PHP] Connection to Access 2000 mdb file on another computer.

2002-08-09 Thread salamander
Jason, One option you have is to install OpenLink's Multi-Tier driver, ODBC Agent, which will allow you to "piggyback" on DSNs on other machines, e.g: webserver with PHP, client side MT driver DSN (let's call it "local_dsn") with ODBC as ServerType, and IDS as Name db server with MS Access, s

Re: [PHP] connection speed?

2002-03-11 Thread Samuel Ottenhoff
There aren't too many elegant ways to do this, that I know of. You can create a flash movie with a big chunk of nothing in it... With a couple of calls, you can find how long it took to load So if it took 4 secs to load 200k You can sort of figure out their connection speed. But unfortun

Re: [PHP] RE: Php connection with mysql?

2001-11-28 Thread Erik Price
On Wednesday, November 28, 2001, at 05:40 PM, Fred wrote: > >> The browser has no direct connection to MySQL, so you are correct -- >> "those privilege tables are not helping to check on the privileges if >> the client is from browser". >> > > I find this a bit misleading. Yes, I did too -- bu

Re: [PHP] RE: Php connection with mysql?

2001-11-28 Thread Fred
> The browser has no direct connection to MySQL, so you are correct -- > "those privilege tables are not helping to check on the privileges if > the client is from browser". > I find this a bit misleading. The privilege tables still work exactly as they are intended. That is, they check for a v

Re: [PHP] RE: Php connection with mysql?

2001-11-28 Thread Erik Price
Basically, you don't "log on to mysql" through the internet browser. You are using the internet browser only to request a file that is on a web server. The web server is handing the request to PHP, and PHP is accessing the MySQL database. PHP is accessing MySQL as whatever host and user has

[PHP] RE: Php connection with mysql?

2001-11-28 Thread Wee Chua
the client host IP? -Original Message- From: Ryan Fox [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 4:44 PM To: Wee Chua; MySQL (E-mail) Subject: Re: Php connection with mysql? In your situation, MySQL sees the client to be the web server, as it is the box that conne

Re: [PHP] connection problème!

2001-04-21 Thread Plutarck
Not enough "}". Change it to: -- Plutarck Should be working on something... ...but forgot what it was. ""Francois Boucher"" <[EMAIL PROTECTED]> wrote in message 9bsk0h$r2e$[EMAIL PROTECTED]">news:9bsk0h$r2e$[EMAIL PROTECTED]... > I wrote this code but nothing append. If i look de code in

Re: [PHP] connection problème!

2001-04-21 Thread Sigitas Paulavicius
I suggest you should check if the mysql server is running. And also you should check if there is a user "php" with password "php" and with access from "localhost" granted on your mysql server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] Connection with a Palm

2001-04-19 Thread Daniel Tryba
On Wed, Apr 18, 2001 at 09:22:32AM -0500, Plutarck wrote: > Hm...can't say I've seen many subjects about this, but you might want to > look around for information on WAP/WML. > > Maybe someone else would know more though, because I have no experiance with > non-PC browsers. For Palm/PocketPC/bla

Re: [PHP] Connection with a Palm

2001-04-18 Thread Plutarck
De: Plutarck [SMTP:[EMAIL PROTECTED]] > Enviado el: miércoles 18 de abril de 2001 10:42 > Para: [EMAIL PROTECTED] > Asunto: Re: [PHP] Connection with a Palm > > "exporting data to a palm" is far too vague. > > PHP can produce data in a format suitable for saving on a Palm

Re: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Plutarck
pg_exec( $conn, ... What do you think about this way ? > -Message d'origine- > De: Johannes Janson [SMTP:[EMAIL PROTECTED]] > Date: mercredi 18 avril 2001 12:42 > À: [EMAIL PROTECTED] > Objet: Re: [PHP] Connection to postgresql DB used by 2 scripts ? > > Hi, > >

RE: [PHP] Connection with a Palm

2001-04-18 Thread Renzi, Sebastian
Thank you ,where i can download more info about this ? > -Mensaje original- > De: Plutarck [SMTP:[EMAIL PROTECTED]] > Enviado el: miércoles 18 de abril de 2001 10:42 > Para: [EMAIL PROTECTED] > Asunto: Re: [PHP] Connection with a Palm > > "exporting

Re: [PHP] Connection with a Palm

2001-04-18 Thread Plutarck
"exporting data to a palm" is far too vague. PHP can produce data in a format suitable for saving on a Palm, or you can have it interpret data from a Palm. To physically save data from a webpage to a palm requires client-side scripting. -- Plutarck Should be working on something... ...but forgo

RE: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Picard, Cyril
vril 2001 12:42 > À:[EMAIL PROTECTED] > Objet: Re: [PHP] Connection to postgresql DB used by 2 scripts ? > > Hi, > > put: include("connect.php"); at the beginning of query.php. > > Johannes > > ""Picard, Cyril"" <[EMAIL PROTE

Re: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Johannes Janson
Hi, put: include("connect.php"); at the beginning of query.php. Johannes ""Picard, Cyril"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I would like to query a postgresql db with the php language. > Today I wrote a script (connectandquery.php) perfor

RE: [PHP] connection id

2001-03-24 Thread Jonathan Sharp
TIA, What you described is not possible. When you create that connection to the mysql server, that connection dies when the script ends... As far as persistent connections go, you will always call the code to create the connection, but that connection lives on in that apache child process until t

Re: [PHP] Connection error

2001-03-02 Thread php3
Addressed to: <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from <[EMAIL PROTECTED]> Fri, 2 Mar 2001 15:59:55 -0500 > > Hi, > > When I run the code: > >mysql_connect ("LOCALHOST","webmaster2","hironsc0"); > ?> > > I got error message: > Fatal error: Call to unsupp

RE: [PHP] Connection error

2001-03-02 Thread David Smith
Try this... You need to set a variable for the connection. Also you might be careful when sending examples of your code as you have given everyone on this list your username/password to your database. "; exit; } ?> -Original Message- From: Shaohua Qu [mailto:[EMAIL PROTECTE