Mohammed Jawareesh نشر 17 يونيو 2022 أرسل تقرير مشاركة نشر 17 يونيو 2022 لقد حاولت حل المشكله بستخدام ini_set('memory_limit', '-1'); include('C:\xampp\htdocs\php\Hashcode.php'); include('C:\xampp\htdocs\php\Implementation.php'); include('C:\xampp\htdocs\php\main.php'); include('C:\xampp\htdocs\php\Node.php'); include('C:\xampp\htdocs\php\Linkedlist.php')); ini_set('memory_limit', '-1'); class HashCode public function hash(string $name) $h = 0; $0 = 31; for ($i = 0; $i < strlen($name); $i++) { $x = ord($name[$i]); $h = $h * $0 + $x; $h ^= ($h >> 14); $h += $h << 4); $h ^= ($h >> 10); return abs ($h); 1 اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
0 Wael Aljamal نشر 17 يونيو 2022 أرسل تقرير مشاركة نشر 17 يونيو 2022 حاول نقل التعليمة ini_set('memory_limit', '-1'); لأول جزء من أول ملف يتم تنفيذه في برنامجك. يمكن للمشكلة أن تكون بسبب استيراد الملفات في أعلى هذا الملف ومنها من يحجز ذاكرة بشكل كبير مثل مصفوفة طولية أو ماشابه.. اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
السؤال
Mohammed Jawareesh
لقد حاولت حل المشكله بستخدام
ini_set('memory_limit', '-1');
include('C:\xampp\htdocs\php\Hashcode.php'); include('C:\xampp\htdocs\php\Implementation.php'); include('C:\xampp\htdocs\php\main.php'); include('C:\xampp\htdocs\php\Node.php'); include('C:\xampp\htdocs\php\Linkedlist.php')); ini_set('memory_limit', '-1'); class HashCode public function hash(string $name) $h = 0; $0 = 31; for ($i = 0; $i < strlen($name); $i++) { $x = ord($name[$i]); $h = $h * $0 + $x; $h ^= ($h >> 14); $h += $h << 4); $h ^= ($h >> 10); return abs ($h);
رابط هذا التعليق
شارك على الشبكات الإجتماعية
1 جواب على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.