-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
Create A new csv file inside cron job yii2 #231
Comments
sorry had to use absolute path for saving the file used |
now it is creating a file but there is no data inside it :( , the new updated code looks like this
|
sorry again had to change the file mode :D to write in the data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue summary
Cant save / generate a new file to a given path using the following code, i am using it inside my console as a cronjob in Yii2 framework and do not want to output the file instead i want to save it to a path specified if it doesnot exist, my
upload_path
inparams.php
file is'/console/uploads/'
, i tried to check my current working directory when i run it through the console to confirm that it is on my application root i.e. htdocs/Nxb/mess .System informations
League Csv Version 8.2.0
PHP Version 5.6.21
OS Windows 10 64-bit
Standalone code, or other way to reproduce the problem
Add tho following code inside your console/controllers folder in yii2 advanced-app and run it with
./yii cronjobs/new-subscribers
to run it on consoleExpected result
it should output a file in the given path named subscribers.csv
Actual result
The text was updated successfully, but these errors were encountered: