joix Posted January 9, 2007 Share Posted January 9, 2007 I got a php Version 5.2.0, Apache 2.2.3GD Version bundled (2.0.28 compatible)These calls don't work (with relative paths):[code]getimagesize('ala.jpg');getimagesize('./ala.jpg');[/code]meanwile such call (with absolute path) works fine:[code]getimagesize('/www/strony/obrazy/ala.jpg');[/code]There is no problem with functions which aren't from gd:e.g.:[code]include('ala.php');is_file('ala.php');[/code]Please help me,Radek Link to comment https://forums.phpfreaks.com/topic/33477-php-gd-problem-with-relative-paths/ Share on other sites More sharing options...
ToonMariner Posted January 9, 2007 Share Posted January 9, 2007 try calling using absolute paths (I tend to place $_SERVER['DOCUMENT_ROOT'] first and then teh full path from my root. This makes the function much more extensable. Link to comment https://forums.phpfreaks.com/topic/33477-php-gd-problem-with-relative-paths/#findComment-156704 Share on other sites More sharing options...
HuggieBear Posted January 9, 2007 Share Posted January 9, 2007 That's weird, and incidentally, I don't think that getimagesize() is part of the GD library from what I remember.RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/33477-php-gd-problem-with-relative-paths/#findComment-156708 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.