Bugistan
Bugistan
> Could it be because`$_GET['u']` is not defined? I didn't feel the need to share. I'm correcting. My fault.
> @ReturnMe Could you `var_dump($_GET['u']);` just to be completely sure it is what you expect it to be? What does the URL look like? This seems like an unlikely bug....
> Please also note your code is probably vulnerable to inclusion of unintended scripts by adding `../` to the `u` GET parameter. Output of var_dump just before file_exist: ``` array(2)...
> @ReturnMe Your previous edit said `u` was `index`, which would explain why `file_exists(... $_GET['u'] . '.php')` would return `true`. This would indicate that most likely something with your Apache...
> @ReturnMe Don't worry, it's fine. Happy to have helped. You are perfect.
> This is highly unlikely to be a bug in PHP. What else changed during your upgrade from 7.4 to 8.1? Only PHP has changed. The change was made through...
> I can't reproduce this issue. It's highly unlikely that it would be caused by PHP. > > The only reason I can think of this is that you always...
> ``` > try{ > $db = new PDO('mysql:host=localhost;dbname='.DB_NAME.';charset=utf8', DB_USER, DB_PASS); > }catch(PDOException $e){ > print $e->getMessage(); > } > ``` > > You don't enable error reporting. Please enable...
> PHP 8.0, varsayılan olarak PDO hata raporlamasını etkinleştirmiştir. Yine de devre dışı bırakabilirsiniz. > > Bu hata raporunu kapatıyorum çünkü görünüşe göre bu bir hata raporu değil. Of course...
**Solved** Problem solved. I have already tested SQL in MySQL separately. It worked there but not from within PHP. The problem for this was somewhere in PHP, not MySQL. Solution:...