?
Solved

PHP 4.3, Apache2.2 issue

Posted on 2011-05-10
6
Medium Priority
?
205 Views
Last Modified: 2012-05-11
We are using curl with a php4.1.3 app.  It was running fine, connecting to another server.  This past weekend, they migrated the other server now, I am getting several CURL errors such as:

2011-05-10 08:15:45 --> Account Id =1249, CURL Error No: 7, CURL Error: socket error: 111
2011-05-10 08:15:45 --> KT Response: OP - GetProjectTemplateList
 

2011-05-10 08:15:45 --> ERROR : OP  GetProjectTemplateList - Empty response

The errors are sporadic, sometimes they work and sometimes they don't so we want to try adding a while loop to see if that will get it to work if it tries more than once, so I think want I want to do is have to, if error message ="CURL Error No: 7", run the code again, 4 more times.  Does that make sense of it there another/better way to do this?
0
Comment
Question by:justmelat
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:betopa
ID: 35732710
Most hosters are blocking several ports, sockets, functions... etc. for "security" reasons. Ask the "other server" hoster if they could be blocking cURL functions and ask them to allow cURL at laest for your virtual host. I recommend to solve this directly in the configuration servers, your code solution works fine por me, but its not the most optimal.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 35733844
Good grief!  Get OFF of PHP 4.x completely and ASAP.  It has not been supported for ages.  After you do that, please post a copy of the script that is getting the errors, thanks.
0
 
LVL 1

Author Comment

by:justmelat
ID: 35735096
Ray_Paseur:

I wish that were an option,but right now it is not.  Too many clients with custom app on that version of php.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 1

Accepted Solution

by:
justmelat earned 0 total points
ID: 35923367
After much digging, the server admin discovered that Apache had cached some data that caused the conflict.  Still not sure why it did not happen ever time, but he cleared the cache, restarted the server and all was fine.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 35923431
Too many clients with custom app on that version of php. - you might want to tell them that they have serious security exposures as a result of being on a PHP4 application, and give them a cost based proposal to purchase the new, PHP 5 version of the custom app.  Just a thought...
0
 
LVL 1

Author Closing Comment

by:justmelat
ID: 35953981
Server admin finally figured this one out.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month16 days, 17 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question