I need to make a code in YAML configuration used to vpn , It's a basically after some specific time period (Maybe 30 days or 15 days ) should stop running program.How could I do that?
I'm a beginner to that so please anyone know that help me to write that code.
Related
I just want to bypass the rate limit, it's that simple.
I did the math on how long it would take to just run the script overnight, and it would take like 40 days or something insane, and I just want to download the entire database as a json file. Has anybody done this or does anyone know how?
In my codeigniter project an excel file around 5000 records uploaded and updated in database, when doing this action it taken around 15 minutes to complete. Please give me any idea to run this task in background , because of this the user no need to wait until it complete the update queries.
Don't know about anything like Jobs or a Scheduler for codeigniter.
For your specific use case you could also look into PHP Generators.
https://www.php.net/manual/en/language.generators.overview.php
Generators can probably speed up the task you talk about significantly.
I've just begun attempting to use UTC on MySQL and it seems that my download did not include a timezone file and doesn't support it (it shows up as NULL).
I've looked around the MySQL website for a way to get timezone support loaded, but I can't seem to find anything.
Can someone walk me through the process or tell me whether there's a file I should import? I've already seen the manual pages, but it doesn't seem to apply to my situation.
Thanks!
What exactly are you trying to do?
The usual way would be to ignore timezone issues when you're storing things in the database. Put them in as timestamps, which will be timezone-agnostic (i.e., they'll be the time in UTC). When you want to display something in your application, you will need to retrieve the timestamp from the database and display it according to the appropriate timezone for the machine it's running on.
I'm after a bit of advice here if possible.
I basically have 12 XML files which I need to use in my mysql db. These xml files are all in a completely different structure and the data changes constantly.
With this in mind what would be the best approach for bringing this in and using it and updating it. I had thought to use a cronjob to execute a php file to write each of these into thier own table, but baring in mind there are 12 files, with around 60 lines in each file and the cron job will need to run every 15 minutes I think this will end up killing the server.
Any ideas on a solution would be gratefully appreciated.
Thanks
Richard
You can use the LOAD_XML command in mysql to do this:
http://dev.mysql.com/doc/refman/5.5/en/load-xml.html
If the data is changed constantly in the XML files, how often does it need to be up to date in the database? If the database is just a backing record for the XML, then maybe you can update once or twice an hour.
Can anyone tell me if this is possible and if so point me in the right direction on how to implement it!
Basically I have a panel on my website that's hitting the database and outputting the data to the screen, everytime somebody hits the page. This is a heavy burden on the server and what I would like to do is create a HTML file with the information every 30 minutes and then request this HTML file with an include on the website.
<!--#include file="myHTMLpanel.asp"-->
By the way, i'm using classic .ASP ;o(
ASP provides a great mechanism for generating web pages, no point in creating your own. Use caching, like this. Create a scheduled task that hits the server every 30 minutes and breaks the cache.
Use VBScript to write a script that will run your query and write out the HTML page. Schedule it to run every 30 mins via scheduled task.
You might want to investigate a pre-built caching solution on the server rather than writing it manually.
A product such as Varnish will make it virtually effortless.