How does Lithium framework file upload work with MySQL? I can find only tutorials and information with MongoDB. Tried to do that with MySQL but failed, upload doesn't work.
Can someone explain how it works with simple example?
Do it like you would using plain PHP.
MongoDB has GridFS where you can store files, which can be done in MySQL too (using BLOB) but is not recommended. Use the filesystem instead move_uploaded_file().
I'm working on a plugin, much like paperclip for rails. it's called li3_attachable and can be found here https://github.com/sandelius/li3_attachable.
It's not ready yet but I hope it should be stable this weekend. I've also added some docs in the wiki.
Related
Hello, how are you?
Currently, I am building a symfony project(symfony 5.4).
I am going to write a standalone upload script to upload backup files(.zip files) automatically to OneDrive.
And the files are up to 5 GB.
But I am not sure what should I start from and how to implement it.
If someone who has experiences in it, please let me know the way.
Any comment or suggestion will welcome.
Thanks.
In the spirit of open source, whenever you need a specific requirement, most probably someone else has published a library for it. You are in luck because there is already https://github.com/krizalys/onedrive-php-sdk. You can either use that library or reverse engineer from the source code to implement into your Symfony code base.
I have a migration tool that I'm supposed to use, but the old programmer never left any documentation on how to use it and we are unable to contact him.
This is the tool here:
https://github.com/davesloan/mysql-php-migrations
I have a MySQL database set up with Joomla for both locally and on the server. What I need to do is migrate the new MySQL local files to the server(We are using github for pushing and pulling.)
Anyone know how I can do so with this tool? I fiddled with the command line a bit but never got any results.
Thank you.
I'd recommend using a different tool, where you have documentation, otherwise it's going to be tough deconstructing this.
I built a migrations tool that would work perfectly for what you need:
http://andrefigueira.github.io/Schematic/
It will map existing databases into the configuration files (schema files) and then can be used for future modifications, and these schema files are designed to be committed to your VCS and It's very simple to use.
You may try LazyRecord https://github.com/c9s/LazyRecord
LazyRecord integrates full featured PHP-based schema and the related migration features.
The most powerful feature is - automatic migration, which is similar to UIKit's lightweight database migration.
here are some screencasts:
I am facing a problem with CakePHP 2.X. My client wants to export some data generated from a mysql database, to a powerpoint (.ppt or .pptx) format(s) in a specific template. I allready knew the PHPPowerPoint is at the alpha status so I don't want to make a plugin for Cake based on this. I also found
this! little gem but It works only for Windows PHP and I am using a linux based server (CentOs).
It is possible to create an xml or an html, encoded with something compatible of powerpoint format and just put the right php headers at the top? And what is this something?
or a better solution is there an api or a plugin something to work for all the platforms?
And could this plugin or api is compatible for Cake?
Thank you
PHPPowerPoint seem to be at a good place now, check out their GitHub: PHPPowerpoint
Installation instructions: http://phppowerpoint.readthedocs.org/en/latest/installing.html
I'm using CI 2.0.2 and am trying to import a simple XLS file for my site.
Eventually, I'll be inserting that data into a DB, but for now, I just need an array of the data. (I'm going to be running checks on the data first)..
I've never written a plugin for CI and am greatly confused by all the dependancies of these suggestions found in other posts:
Reading an XLS file with codeigniter 2.0
Perhaps this I should be asking 'how to write a plugin'?
Anyhoo, if there's a definative XLS -> array for CI tutorial out there, I can't find it..
I've tried a few methods, but am fearful of over padding my CI directories with 'useless' files.
Feel free to flame me... I'm just tearing out my hair...
Handling XLS files is an utter nightmare... I've tried lots of libraries (both CI and native PHP) and found nothing that works.
Is saving as a CSV a possibility?
I just installed CodeIgniter, and it gave me the source code.
From what I understand, I should move the source code to my local server folder.
I did the configuration; but now what should I do next? What should I use to write code -- DreamWeaver, for example, like any other PHP file? Is there any GUI program dedicated for CodeIgniter?
The very first thing you should do is read the documentation. I do not use it myself, but I know for a matter of fact that CodeIgniter has some documentation. And there are heaps of introductions and getting started materials. (It also explains how and where to unpack it.)
http://codeigniter.com/tutorials/watch/intro/
http://codeigniter.com/user_guide/overview/getting_started.html
http://www.google.com/search?q=codeigniter+introduction
Btw, there are no clicky-coloury apps that do the coding for you. You will have to resort to an editor; and yes Dreamweaver will do. And then learn the API.
Codeigniter has excellent documentation, wiki and forum. For coding you can try Notepad++ (http://notepad-plus-plus.org/) which is free, light, colors syntax, have plugins,... and you can even put it on the usb.
After that you can try one of many IDE like Eclipse or Netbeans.
textmate has a bundle for CI, i do alot of CI development and I use the following
maamp for localhost
http://www.mamp.info/en/index.html
textmate for php html / css dev
http://macromates.com/
navicat for mysql managment
http://navicat.com/