Re: [flexcoders] Re: AMFPHP problem

2009-11-11 Thread Tom Chiverton
On Wednesday 11 Nov 2009, gotgoose09 wrote:
 So you would suggest increasing the memory allocation for scripts in
 php.ini?  

Only if that's the problem :-)
What does the error log of you PHP application say ?

-- 
Helping to simultaneously negotiate out-of-the-box turn-key customers as part 
of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Re: AMFPHP problem

2009-11-11 Thread Pete
A quick check of my php.ini file and a default one, I spotted the 
following differences: -


max_execution_time = 1200 ; Maximum execution time of each script, 
in seconds
max_input_time = 1200; Maximum amount of time each script may spend 
parsing request data
memory_limit = 256M  ; Maximum amount of memory a script may consume 
(16MB)

implicit_flush = On
output_buffering = Off
post_max_size = 64M
upload_max_filesize = 64M ; I think this was done to enable an upload 
routine to work, not to allow amfphp to run


Also noticed [eAccelerator] block which was commented out, but I think 
that was so I could develop on this box, I think it's OK on deployment 
(though watch the memory again).


Please note that none of this is fine tuned, I tried it, it worked, I 
left it alone!  There was enough RAM on the servers in question to run 
with these settings...  Looking again, those execution times look way to 
big...


Regards,
Pete



gotgoose09 wrote:
 

So you would suggest increasing the memory allocation for scripts in 
php.ini? Are there any other settings I should check?


--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Pete pe...@... wrote:


 As you probably know, NetConnection.Call.BadVersion means that an error
 was thrown in the php script, usually a syntax error, but your script
 runs fine on other servers.

 I would suspect something in the php config on the server is causing 
you

 trouble.

 I have the same problem every time I move to a new server because I try
 and transfer too much info and not enough memory is allocated ro 
running

 php scripts on the server.

 Check your php.ini

 HTH
 Pete

 gotgoose09 wrote:
 
 
  I have been running my Flex applications just fine on my local
  computer and a remote server. I have been tasked with transferring
  them to a new server. Now whenever I execute a RemoteObject call I get
 
  [RPC Fault faultString=Send failed
  faultCode=Client.Error.MessageSend
  faultDetail=Channel.Connect.Failed error
  NetConnection.Call.BadVersion: : url:
  'https://server/path/to/gateway.php 
https://server/path/to/gateway.php
  https://server/path/to/gateway.php 
https://server/path/to/gateway.php']

 
  I know my PHP code works locally. I know it works on the old server.
  Even the AMFPHP service browser does not work and gives me the same
  issue. I know that the gateway.php works since I can view it in a web
  browser with no errors. I am wondering if the HTTPS is causing the
  problem, but I'm not sure.
 
  What can I do to solve this or figure out how to solve this? Any help
  would be greatly appreciated!
 
  - Ben