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

Windows issue #3

Closed
salarmehr opened this issue Jul 6, 2015 · 2 comments
Closed

Windows issue #3

salarmehr opened this issue Jul 6, 2015 · 2 comments

Comments

@salarmehr
Copy link

Thanks for the wonderful code.

This line of code cause exception on Windows

        $temp_dir = '/tmp' . DIRECTORY_SEPARATOR . 'PHPExport_' . rand( 1, 9999 );

I guess you should check the current OS and use %temp% on windows.

@hollodotme
Copy link
Owner

Thank you for that issue, gonna fix this today in the evening.

@hollodotme
Copy link
Owner

Changed this line to use the sys_get_temp_dir() function which is OS-sensitive.
Tagged v0.2

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

No branches or pull requests

2 participants