Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 113
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 280
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 145
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 223
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 303
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 344
Severity: 8192
Message: setcookie(): Passing null to parameter #7 ($httponly) of type bool is deprecated
Filename: core/Input.php
Line Number: 410
Bilindiği üzere HTML'de <script> etiketi kullanıcı taraflı (client-side) çalışmakta. Bu sayede Javascript kodlarını ister inline olarak istersek de src özelliği sayesinde dışarıdan yükleyip çalıştırabiliriz. Elbette sadece Javascript kodları değil diğer tipteki kodlar veya dosyalar içinde kullanılabilir. İşte <script> etiketinin type özelliği (MIME Type olarakta bilinir) çalıştırılacak kodun veya dosyanın hangi tipte olduğunu belirtmek için kullanılır. Ancak HTML 4'te ve HTML5'te type özelliği farklı tanımlanmakta. Şimdi aradaki farka bakalım.
HTML 4
HTML 4'te type özelliğini tanımlamak zorunludur.
Örnek MIME Type Tanımlamaları
<script type="text/javascript">
kodlar
</script>
<script type="text/ecmascript" src="ecmascript.es">
HTML5
HTML5'te type özelliğini tanımlamak zorunlu değildir. Eğer type özelliği tanımlanmazsa kodlar tarayıcı tarafından Javascript baz alınarak okunur. Çünkü bütün tarayıcıların varsayılan programlama dili Javascripttir. HTML5 standardını kullanabilmek uygun DOCTYPE tanımlaması yapmalısınız.
<script>
kodlar
</script>
<script src="javascript.js">
kodlar
</script>
YORUMLAR