{"id":1721,"date":"2026-06-17T07:02:06","date_gmt":"2026-06-17T07:02:06","guid":{"rendered":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/"},"modified":"2026-07-25T15:38:13","modified_gmt":"2026-07-25T13:38:13","password":"","slug":"care-este-durata-maxima-de-rulare-a-unui-script-php","status":"publish","type":"docs","link":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/","title":{"rendered":"Care este durata maxim\u0103 de rulare a unui script PHP?"},"content":{"rendered":"<p>\u00cen mediul shared, resursele serverului sunt folosite \u00een comun. De aceea, un script web nu poate ocupa resursele pentru o perioad\u0103 prea lung\u0103: limita implicit\u0103 <code>max_execution_time<\/code> este de <strong>120 de secunde<\/strong> (ajustabil\u0103 din cPanel \u2192 Select PHP Version \u2192 Options, \u00een limita serverului).<\/p>\n<p>Ca principiu general, o aplica\u021bie web care necesit\u0103 mai mult de 0,5\u20131 secund\u0103 ar trebui optimizat\u0103.<\/p>\n<p>Pentru cron job-uri, dac\u0103 durata nu este suficient\u0103, ai dou\u0103 op\u021biuni:<\/p>\n<ol>\n<li>modific\u0103 scriptul astfel \u00eenc\u00e2t s\u0103 proceseze la fiecare execu\u021bie doar o parte din informa\u021bii (prin execu\u021bii repetate \u2014 ex. orar \u2014 se prelucreaz\u0103 treptat tot);<\/li>\n<li>dac\u0103 scriptul nu poate fi modificat, opteaz\u0103 pentru un <strong>VPS<\/strong>, unde po\u021bi configura PHP conform nevoilor aplica\u021biei.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u00cen mediul shared, resursele serverului sunt folosite \u00een comun. De aceea, un script web nu poate ocupa resursele pentru o perioad\u0103 prea lung\u0103: limita implicit\u0103 max_execution_time este de 120 de secunde (ajustabil\u0103 din cPanel \u2192 Select PHP Version \u2192 Options, \u00een limita serverului). Ca principiu general, o aplica\u021bie web care necesit\u0103 mai mult de 0,5\u20131 &#8230; <a title=\"Care este durata maxim\u0103 de rulare a unui script PHP?\" class=\"read-more\" href=\"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/\" aria-label=\"Cite\u0219te mai multe despre Care este durata maxim\u0103 de rulare a unui script PHP?\">Cite\u0219te mai mult<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"whmcs_kb_id":168,"footnotes":""},"doc_category":[169],"doc_tag":[227,335,226,247,270],"class_list":["post-1721","docs","type-docs","status-publish","hentry","doc_category-php","doc_tag-configurare","doc_tag-cron-job","doc_tag-performanta","doc_tag-php","doc_tag-vps"],"year_month":"2026-11","word_count":116,"total_views":"26","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian Firican","author_nicename":"techeditor1","author_url":"https:\/\/www.hostx.ro\/kb\/author\/techeditor1\/"},"doc_category_info":[{"term_name":"PHP","term_url":"https:\/\/www.hostx.ro\/kb\/docs-category\/php\/"}],"doc_tag_info":[{"term_name":"configurare","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/configurare\/"},{"term_name":"Cron Job","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/cron-job\/"},{"term_name":"performan\u021b\u0103","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/performanta\/"},{"term_name":"PHP","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/php\/"},{"term_name":"VPS","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/vps\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Durata maxima script PHP - Limita max_execution_time - Centrul de suport HostX<\/title>\n<meta name=\"description\" content=\"Afla care este durata maxima de rulare a unui script PHP in shared hosting. Limita implicita este 120 de secunde, ajustabila din cPanel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/\" \/>\n<meta property=\"og:locale\" content=\"ro_RO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Durata maxima script PHP - Limita max_execution_time - Centrul de suport HostX\" \/>\n<meta property=\"og:description\" content=\"Afla care este durata maxima de rulare a unui script PHP in shared hosting. Limita implicita este 120 de secunde, ajustabila din cPanel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Centrul de suport HostX\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-25T13:38:13+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Timp estimat pentru citire\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/care-este-durata-maxima-de-rulare-a-unui-script-php\\\/\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/care-este-durata-maxima-de-rulare-a-unui-script-php\\\/\",\"name\":\"Durata maxima script PHP - Limita max_execution_time - Centrul de suport HostX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\"},\"datePublished\":\"2026-06-17T07:02:06+00:00\",\"dateModified\":\"2026-07-25T13:38:13+00:00\",\"description\":\"Afla care este durata maxima de rulare a unui script PHP in shared hosting. Limita implicita este 120 de secunde, ajustabila din cPanel.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/care-este-durata-maxima-de-rulare-a-unui-script-php\\\/#breadcrumb\"},\"inLanguage\":\"ro-RO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/care-este-durata-maxima-de-rulare-a-unui-script-php\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/care-este-durata-maxima-de-rulare-a-unui-script-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prima pagin\u0103\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"InfoCentru\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Care este durata maxim\u0103 de rulare a unui script PHP?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\",\"name\":\"Centrul de suport HostX\",\"description\":\"tutoriale gazduire web, domenii web \u0219i servere\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ro-RO\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Durata maxima script PHP - Limita max_execution_time - Centrul de suport HostX","description":"Afla care este durata maxima de rulare a unui script PHP in shared hosting. Limita implicita este 120 de secunde, ajustabila din cPanel.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/","og_locale":"ro_RO","og_type":"article","og_title":"Durata maxima script PHP - Limita max_execution_time - Centrul de suport HostX","og_description":"Afla care este durata maxima de rulare a unui script PHP in shared hosting. Limita implicita este 120 de secunde, ajustabila din cPanel.","og_url":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/","og_site_name":"Centrul de suport HostX","article_modified_time":"2026-07-25T13:38:13+00:00","twitter_card":"summary_large_image","twitter_misc":{"Timp estimat pentru citire":"1 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/","url":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/","name":"Durata maxima script PHP - Limita max_execution_time - Centrul de suport HostX","isPartOf":{"@id":"https:\/\/www.hostx.ro\/kb\/#website"},"datePublished":"2026-06-17T07:02:06+00:00","dateModified":"2026-07-25T13:38:13+00:00","description":"Afla care este durata maxima de rulare a unui script PHP in shared hosting. Limita implicita este 120 de secunde, ajustabila din cPanel.","breadcrumb":{"@id":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/#breadcrumb"},"inLanguage":"ro-RO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostx.ro\/kb\/care-este-durata-maxima-de-rulare-a-unui-script-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Prima pagin\u0103","item":"https:\/\/www.hostx.ro\/kb\/"},{"@type":"ListItem","position":2,"name":"InfoCentru","item":"https:\/\/www.hostx.ro\/kb\/docs\/"},{"@type":"ListItem","position":3,"name":"Care este durata maxim\u0103 de rulare a unui script PHP?"}]},{"@type":"WebSite","@id":"https:\/\/www.hostx.ro\/kb\/#website","url":"https:\/\/www.hostx.ro\/kb\/","name":"Centrul de suport HostX","description":"tutoriale gazduire web, domenii web \u0219i servere","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostx.ro\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ro-RO"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/comments?post=1721"}],"version-history":[{"count":2,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1721\/revisions"}],"predecessor-version":[{"id":5192,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/1721\/revisions\/5192"}],"wp:attachment":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/media?parent=1721"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_category?post=1721"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_tag?post=1721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}