Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6187993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:09:10+00:00 2026-05-24T02:09:10+00:00

In my actions class in symfony, i’m sending a curl_exec to a url like

  • 0

In my actions class in symfony, i’m sending a curl_exec to a url like this

$headerinfo = apache_request_headers();
curl_setopt($ch1, CURLOPT_URL, $returnurl);
curl_setopt($ch1, CURLOPT_HEADER, 0);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch1, CURLOPT_POSTFIELDS, $rtyinstance);
curl_setopt($ch1, CURLOPT_USERAGENT,$headerinfo['User-Agent']);
$result = curl_exec($ch1);
$responseCode = curl_getinfo($ch1, CURLINFO_HTTP_CODE);

It is executing but the execution runs indefinitely i want to execute this only for 5 minutes and then register into error log if it is not 200

I checked set_time_limit but it for the whole page or actions which i cannot use…..
Please tell me how to do that…….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:09:11+00:00Added an answer on May 24, 2026 at 2:09 am
    curl_setopt($ch1, CURLOPT_TIMEOUT, 5 * 60);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this Symfony Recepciones class which is related to a Obras_Sociales_Recepciones class as
So, I have a actions.class.php and have the function like that: public function executeGetHTML($request)
In Symfony 1.2, how do you create variables in actions.class.php so that they are
I have a class that I need to perform some actions on but I
I'm developing a utility class to handle Actions from Java Swing components; I would
I need to create a class with two properties: LogOutput ExceptionOutput These properties (Actions<>)
Cocos2D defines the static method 'actions' for the Sequence class as such: +(id) actions:
Background The Apache Action class is not thread-safe. However, this was only realized after
I'm still fairly new to symfony, so my apologies if this is a stupid
If I have a class (like below) and in a function I set a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.