Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something's wrong with generating image path #22

Closed
ghost opened this issue Aug 4, 2016 · 2 comments
Closed

something's wrong with generating image path #22

ghost opened this issue Aug 4, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 4, 2016

my path is /media/mvm/Home/Dropbox/Privat/Programming/PHP/site.com/www/vendor/simple-php-captcha-master

but $image_src becomes /e/Dropbox/Privat/Programming/PHP/site.com/www/vendor/simple-php-captcha-master/simple-php-captcha.php

@ghost ghost changed the title something's wrong with generating absolute path something's wrong with generating image path Aug 4, 2016
@claviska
Copy link
Collaborator

claviska commented Aug 4, 2016

It's using the realpath, so that might be what you're seeing.

The image source should be relative to the website root so you can use it in a URL. It shouldn't contain an absolute path, as that wouldn't be very useful to the browser.

@claviska
Copy link
Collaborator

Duplicate of #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant