Jump to content

php gd problem with relative paths


joix

Recommended Posts

I got a php Version 5.2.0, Apache 2.2.3
GD 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.