Questions tagged [fat]

0

votes
0

answer
2

Views

Why it is not possible to set permission on FAT fs?

chmod and mount from util-linux ackts unpredicteble when working under normal user, there is no any whey to set permission.
Hellseher
1

votes
1

answer
2.6k

Views

How to upload file in fat free frame work?

How to upload file in fat free framework.i am send post request at fat free framework using angularjs. I would like to use file extension .jpg and size 2mb and limit only 4 file. please guide me. here is my html code- upload {{ item.file.name }} {{ item.file.size/1024/1024|number:2 }} MB Upload Can...
Lokendra Panwar
1

votes
1

answer
482

Views

How to setup F3 .htaccess with MAMP on Mac?

I recently switched my OS from Windows to Mac and I am having a problem running locally. I installed MAMP under /Applications/MAMP. /Applications/MAMP/htdocs/.htaccess file: RewriteEngine On RewriteBase /abc/ # skip all files and directories from rewrite rules below RewriteCond %{REQUEST_FILENAME} -...
jrquick
1

votes
1

answer
54

Views

Or filter in F3

To filter my documents in MongoDB I use this: $filter = array('title' => $regex ? $regex : new \MongoRegex('/.*/i')); I am also using the Pagination plugin if that matters. I need to be able to filter to the title or description. Something like this: $filter = array('title' => $regex ? $regex : new...
anned20
1

votes
1

answer
205

Views

How to reset data mapper's virtual fields in Fat Free Framework?

Let's start with an example given on FFF user guide. There is a database table: CREATE TABLE products ( productID VARCHAR(30), description VARCHAR(255), supplierID VARCHAR(30), unitprice DECIMAL(10,2), quantity INT, PRIMARY KEY(productID) ); And I have a data mapper with a virtual field: $item=new D...
george007
1

votes
2

answer
88

Views

Variable not accessible within a particular function? Fat-Free-Framework

I write the session variable successfully. I get the session variable successfully. I can even manually define it but it is never passed to the file name portion of the function($fileBaseName, $formFieldName) below. Any help is greatly appreciated. Thanks! $uuid = $f3->get('SESSION.uuid'); // get s...
tkrn
1

votes
1

answer
205

Views

Fat-Free Framework redirects to invalid url

I'm currently using Fat-Free Framework for a project. But whenever I browse to http://localhost/fatfree/admin/login/, F3 will redirect to the url without slash ('/') at the end. I know this is normal, but the url that I'm being redirected to is invalid. F3 redirects me to http://localhosthttp//local...
Aiman Daniel
1

votes
1

answer
712

Views

AUTH, logging in and out of fat free framework and handling sessions and securing pages

The documentation doesn't talk much about logging in and out and handling security in general.In Symfony, you can secure pages of your site via a YML file. Does F3 have anything like that? What is the recommended way to secure pages and handle a logged in user? I liked basic Auth, but it isn't very...
garek007
1

votes
1

answer
118

Views

Fat Free Framework dynamic cache expiration

I am trying to improve my Fat Free Framework web app by using cached queries, wherever possibile. I am wondering whether it would make any sense to try caching even queries involving data which changes quite ofter or so, by applying a little 'trick'. IE, tipically you wouldn't cache this: SELECT * F...
Seether
1

votes
2

answer
63

Views

about fatfree framework query

I have this kind of weirdness with a update query in fat free frameworks public function updateTransactionSalesFlush() { $this->load(array('active=1 AND void=0')); if (!$this->dry()) { $data = array('salestemp' => 0); $this->copyFrom($data); $this->update(); } } This function...
andymo
1

votes
1

answer
140

Views

fat-free framework flush partial output

I'm writing some back-office web pages for maintenance of our systems. I'm using F3 I have one route with a long processing, divided in many subprocesses. I made one template per subprocess, this way: $f3->route('GET /someroute', function($f3) { dosomework(); echo template::instance()->render('templ...
CeccoMe
1

votes
1

answer
95

Views

Pass variables from controller to javascript function in Fat-Free Framework

I have some values on my controller that I want to pass to a javascript function in the view page. In the controller, I have: $f3->set('value', $value); I can access the value on the view with {{@value}}, but how do I use(access) that value inside a javascript function on the view page?? var value...
Desmond Makhubele
1

votes
1

answer
48

Views

Why does Fat Free framework use it's own variable instead of PHP?

In PHP we can declare and edit variables like that, $var = 1; echo $var; But PHP Fat-Free Framework has an option to declare a variable like that, $f3->set('var', 13); //13 is a value So my question is why it is used. There must should be a reason for making its own variable system. So what's the ac...
Md Ashraful Islam
1

votes
1

answer
30

Views

Retrieve file count without walking through entire file system

I am on a vxworks 6.9 platform. I want to know how many files are in a folder. The file system is DOSFS (FAT). The only way I know how to do this is to simply loop through every file in the folder and count. This gets very expensive the more files in the folder. Is there a more sensible way to do th...
peer_2_peer_2
1

votes
2

answer
51

Views

How do i use Php Spreadsheet with Fat free to read and edit an excel file?

I need to edit a excel file in php. I've got a simple PHP Spreadsheet. I use fat-free and the problem is public function MakeExcel() { require 'vendor/autoload.php'; use \vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Spreadsheet ; use \vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\...
arcadebox
1

votes
1

answer
739

Views

.htaccess multiple php handlers based on URL - fatfree framework multiple route files

I'm a bit of a noob when it comes to htaccess files, so I need some assistance. I'm using PHP's fatfree framework (f3), and have modified its htaccess file to suit my needs, until now. What I'm looking to do is split up/organize fatfree's routing system... so not all routes live in one PHP file. Her...
George Huber
1

votes
3

answer
1.3k

Views

F3 Framework Template serve not calling PHP functions

It seems F3 framework doesn't handle php function calls within a page? I have a php navigation bar, which is uniform site-wide. I call up my layout page in my controller class thus: Template::serve('layout.php'). In the layout page, I include the navigation bar thus: . Within the navbar (navigation)...
iab
1

votes
1

answer
2.1k

Views

Fat Free Framework 3.0 and multiple files

I finished a simple project with F3 (fat free framework) 2.0 and everything worked great. Now I'm starting a new project and I see it's been changed quite a bit. I've created a simple basic test and just keep hitting error's and weirdness. I'm no expert with F3 and yes I've read the documentation an...
user1760561
1

votes
2

answer
553

Views

I don't understand why minifying slows things down

This might be my mistake somewhere, but anyway, I am using the fat free framework which has an inbuilt function to minify multiple css/js into a single file, and I thought that this would be good for optimization, but it turns out the opposite. If I keep the js files separately(and they are at the e...
Aoi
1

votes
1

answer
846

Views

How do I list results in my template with fatfree framework and cortex model?

I am using fatfree framework with the Cortex ORM plugin, and I am trying to simply query the db and display the resulting rows within my template, so I tried: In my controller: $users = new \models\User; $users->load(); $f3->set('users',$users); /*while(!$users->dry()){ echo ''.$users->id; $users->n...
Aoi
1

votes
1

answer
367

Views

How to using Fat Free framework with Oracle Database

how to connect to oracle (11g express edition) database with Fat Free Framework? Currently I am using this config (config.ini): db_dns=oci:host=localhost;port=1521;dbname= db_name=xe db_user=username db_pass=password But it is not working. The error says: Internal Server Error. could not find driv...
Oen
1

votes
3

answer
853

Views

Easiest way to retrieve a single field from database with Fat-Free Framework?

What is the easiest way to retrieve the value of a single field from a MySQL database using Fat-Free Framework? I have been able to do it with the following code which returns an array but am wondering how to improve this: $result = $db->exec('SELECT id FROM admins WHERE username = ?',$f3->get('POST...
Chris
1

votes
2

answer
2.8k

Views

Why session message is not working Fat-free-framework?

I wrote a sample crud application and want to show some messages if successful or if error occurs. But when I tried to set a session message it does not displayed to the page after redirect. It also doesn't exists in $_SESSION. Here is my code in UsersController public function index(){ $user = new...
RN Kushwaha
1

votes
1

answer
711

Views

Expiration of fat-free framework sessions

How do i set a fat-free framework session to expire after a duration, say 5 minutes, of inactivity? My web app keeps open until a user logouts out.
lubangf
2

votes
3

answer
448

Views

Why did Windows use the FAT structure instead of a conventional linked list with a next pointer for each data block of a file?

Instead of storing references to next nodes in a table, why couldn't it be just stored like a conventional linked list, that is, with a next pointer?
adijo
2

votes
2

answer
1.3k

Views

FatFree routing not working in production

I have an application with many routing paths as follows- F3::route('GET /', 'Main->get_front_page'); F3::route('GET /login/check_for_login', 'Login->check_for_login'); The first route is matching properly. However, the second route is not matching and I am getting a 404. Infact, any route after the...
Siddharth
4

votes
2

answer
2.9k

Views

Single Sign-On for Rich Clients (“Fat Client”) without Windows Logon

single sign-on (SSO) for web applications (used through a browser) is well-documented and established. Establishing SSO for Rich Clients is harder, and is usually suggested on the basis of Kerberos tickets, in particular using a Windows login towards an ActiveDirectory in a domain. However, I'm loo...
MiKu
19

votes
1

answer
15.9k

Views

CUDA: How to use -arch and -code and SM vs COMPUTE

I am still not sure how to properly specify the architectures for code generation when building with nvcc. I am aware that there is machine code as well as PTX code embedded in my binary and that this can be controlled via the controller switches -code and -arch (or a combination of both using -genc...
bweber
5

votes
3

answer
858

Views

Roll 64-bit and 32-bit versions of an app into the same binary?

We have an application we're trying to deploy on both 64 bit and 32 bit platforms. Is there a way to put both compiled versions of the code in the same binary, a la Apple and NeXT's fat binaries? Ideally we could ship one .exe that decides upon execution which version of the code to execute. We're t...
lfaraone
1

votes
1

answer
957

Views

F3 return query result

I try to build a REST interface using the Fat Free Framework. I use the following code to query the database: $product = new DB\SQL\Mapper($this->db, 'product'); $product->load(array('id=?', $this->productID)); I can now return for instance the title with echo json_encode($product->title); But how...
Bjorn
1

votes
1

answer
2.4k

Views

Fat Free Framework - SQL mapper - load method

We are working our way through the long tutorial of the fat free framework. We have made our connection to the database and understand it’s workings. However, we are stuck in the section about mapping a table and loading a single record. This is the related code: $f3->route('GET /', function($f3){...
Liz
2

votes
5

answer
1.4k

Views

FAT File system and lots of writes

I am considering using a FAT file system for an embedded data logging application. The logger will only create one file to which it continually appends 40 bytes of data every minute. After a couple years of use this would be over one million write cycles. MY QUESTION IS: Does a FAT system change the...
PICyourBrain
5

votes
4

answer
32.4k

Views

chmod() operation not permitted - FatFree framework

I have been developing an app in FatFree framework and now I am trying to deploy it on a server. Everything seems to be fine when I am running it on localhost. However, when I have deployed it on the server and trying to access it, it gives me a strange error which is - Internal Server Error chmod()...
Siddharth
2

votes
1

answer
864

Views

Under iOS, does anyone know how UUID's are generated for executables and what information may be encoded therein?

Applications compiled on iOS are assigned identifiers (UUID's) at compile time. These identifiers may be revealed by the dwarfdump tool. Does anyone know how UUID's are generated and what information may be encoded within them?
xyzzycoder
2

votes
1

answer
738

Views

Issue passing $f3->set variables through reroute function

I am using the fat-free-framework to develop a web application and I am trying to make the application as professional as possible by providing helpful messages that display when actions have happened. For example, when registering, if the two passwords entered do not match, the application will sen...
Daniel
2

votes
2

answer
268

Views

Delegating Constructors with Inheritance in C++ FAT Filesystem Emulation

I'm currently creating a FAT filesystem in C++. I have three classes: Sdisk (which formats the disk via string to file output). Filesys (which writes the FAT and the root). Shell (offers ability to perform various file system operations.) During each class coding I wrote simple main initializations...
Speakeasys
2

votes
2

answer
320

Views

Autoloading not working

I'm just trying out Fat-Free Framework and I come to some trouble. I try to use the autoloading to load one of my routes, like this :
2

votes
1

answer
2.5k

Views

FAT: List all files in a directory

I'm using Chan's FAT library that seems to provide a standard FAT filesystem API. The API doesn't seem to directly offer to list all the files in a given directory. What is the standard way to list all files in a directory given access to a standard FAT API? Is there a special file (some 'directory...
Randomblue
1

votes
3

answer
402

Views

Fat-Free Framework mod rewrite doesn't work

I am trying to run a php project with Fat-Free Framework on MAMP, running on Yosemite 10.10.1. I have all the project files in MAMP web root folder 'htdocs' and all the fatfree project files are located within a fatfree-master dir. The specific dir location is : htdocs/libs/FatFreeFramework/fatfree-...
geokara1322
2

votes
0

answer
228

Views

Find Methods and Showing Results in Template

I'm building a site using a MySQL DB with 265 fields, and 5000+ rows in the DB; I can load() a specific record easily, no problems. When using find(), afind(), and even 'select()', template will show blank lines or lines with 'filler' text, with the correct number of rows for the query results, but...
Jacob Tanner

View additional questions