PHP mistake
header("Content-Type: $this->filetype");
should be
header("Content-Type: " . $this->filetype);
Search found 13 matches
- Fri Jan 11, 2008 12:34 pm
- Forum: Joombie Coding Q/A
- Topic: Binary Upload
- Replies: 19
- Views: 2712
- Tue Sep 11, 2007 5:07 am
- Forum: Joombie Coding Q/A
- Topic: Binary Upload
- Replies: 19
- Views: 2712
Re: Binary Upload
jalil wrote:Note: If you just want to get the contents of a file into a string, use file_get_contents() as it has much better performance than the code above.
Yep that's what I did in the end, worked exceptionally well.
- Wed Sep 05, 2007 10:39 am
- Forum: Joombie Coding Q/A
- Topic: PDF Icon
- Replies: 9
- Views: 1513
Re: PDF Icon
That's not a Joomla component so you'd have to do a lot of coding to get it integrated with Joomla. This one is already made for Joomla: m Not a 'lot' of coding, but some coding. Given that this is the coding section, not the extensions section, I would think this is where people come to learn how ...
- Wed Sep 05, 2007 5:06 am
- Forum: Joombie Coding Q/A
- Topic: PDF Icon
- Replies: 9
- Views: 1513
Re: PDF Icon
I'll be dealing with this issue soon enough myself.
Check out http://www.rustyparts.com/pdf.php
I'll be interested to see how you go.
Check out http://www.rustyparts.com/pdf.php
I'll be interested to see how you go.
- Tue Sep 04, 2007 1:21 am
- Forum: Joombie Coding Q/A
- Topic: Binary Upload
- Replies: 19
- Views: 2712
Re: Binary Upload
It would be nice to have a 100% internal Joomla solution, but it was sending the html header that stumped me here, easier just to do it the 'old' way. do you use JDocument HTML or JDocument RAW ? The latter has a method called setMimeEncoding(). m Just a thought. Have fun, CirTap Interesting, but w...
- Mon Sep 03, 2007 11:50 pm
- Forum: Joombie Coding Q/A
- Topic: How to set $task in new menu items
- Replies: 2
- Views: 864
Re: How to set $task in new menu items
OK, and another question more or less in the same direction: I try to add a link to he main menu using the add menu item dialog. This link supposed to point to the create view of of my component xyz. The problem that I have that this link does say anything about the task my component is supposed to...
- Mon Sep 03, 2007 11:22 pm
- Forum: Joombie Coding Q/A
- Topic: Binary Upload
- Replies: 19
- Views: 2712
Re: Binary Upload
Hi, just for the records... The Framework equivalent of $_FILES['hotbit_image'] is JRequest:: getVar ( 'hotbit_image', '', 'files' , 'array' ); another good example of how this is used can be found in the upload facility of the Media Manager /administrator/components/com_media/...
- Mon Sep 03, 2007 6:27 pm
- Forum: Joombie Coding Q/A
- Topic: Binary Upload
- Replies: 19
- Views: 2712
Re: Binary Upload
Fixed :-) fread was patently the wrong tool for the job, plus I had some variables wrong. Fixed Code for interests sake: $fileName = $_FILES['hotbit_image']['name']; $tmpName = $_FILES['hotbit_image']['tmp_name']; $fileSize = $_FILES['hotbit_image']['size']; $fileType = $_FILES['hotbit_image']...
- Mon Sep 03, 2007 5:35 pm
- Forum: Joombie Coding Q/A
- Topic: Binary Upload
- Replies: 19
- Views: 2712
Re: Binary Upload
What about if I want to store the binary data in variable, addslash and then put this into a database. I'm using: if(isset($_POST['adminForm']) && $_FILES['hotbit_image']['size'] > 0) { $fileName = $_FILES['hotbit_image']['name']; $tmpName = $_FILES['hotbit_image']['tmp_name']; $fileSize = $_F...
- Mon Sep 03, 2007 4:49 pm
- Forum: Joombie Coding Q/A
- Topic: Binary Upload
- Replies: 19
- Views: 2712
Binary Upload
I might be missing something here, but does anyone know how I use the JRequest to get binary data uplaoded through a form?
i.e. among other things the user is picking a file name and then this is being posted to the server.
Not much I'm doing seems to work, but it does update the record
i.e. among other things the user is picking a file name and then this is being posted to the server.
Not much I'm doing seems to work, but it does update the record
- Sun Sep 02, 2007 1:00 pm
- Forum: Joomla! Coding 101
- Topic: Joomla 1.5 - just started and need some pointers
- Replies: 4
- Views: 1564
Re: Joomla 1.5 - just started and need some pointers
Thanks for the tips, I'l be sure to look into these when I get a chance this evening.
- Sat Sep 01, 2007 9:31 pm
- Forum: Joombie Coding Q/A
- Topic: Getting Started - JObject
- Replies: 36
- Views: 6185
Re: Getting Started - JObject
Yallah! I could see this being very useful as it evolves! Please please please keep it up... your work for the community will bring you immeasurable karma.
- Sat Sep 01, 2007 9:11 pm
- Forum: Joomla! Coding 101
- Topic: Joomla 1.5 - just started and need some pointers
- Replies: 4
- Views: 1564
Joomla 1.5 - just started and need some pointers
Firstly, hi there, I discovered the forum and hopefully I can both contribute and learn a lot about developing for Joomla. Right now... I need to learn a lot :-\ Background I am part of a small team developing a website which is both a directory site and ultimately a review site, which will pr...