Welcome Guest, Not a member yet? Register   Sign In
  Multi-User File Management with CodeIgniter?
Posted by: El Forum - 06-05-2008, 02:31 AM - Replies (3)

[eluser]Unknown[/eluser]
Hi Folks,

I'd like to hear some opinions of some experienced CI users.
I have to develop a file up-/downloading system with the following requirements:

- admin can add clients, projects and possibly subprojects (multiple projects for 1 client)
- clients can log in and see/download files that were uploaded for them (by
admin)
- clients can upload files into an selectable project (project must be assigned to customer, of course)
- clients and admin can write comments on uploaded files
- client gets notified by e-mail when admin uploads new file/writes new comment
- admin gets notified by e-mail when client uploads new file/writes new comment

I've already done a little, less complex, file uploading script in CodeIgniter using freak_auth for authentication and was quite satisfied with it. Just haven't really used models yet, that was rather dirty, I guess.

Now, I got attracted by cakePHP for it's built-in authentication. The documentation of cake seems bad compared to CI, though. Also Cake doesn't have a built-in upload helper class.

CakePHP on the other side doesn't seem to offer any helpers for file
uploads, which CI does.

I know, it's kinda stupid to ask inside the CI forums if you'd prefer some other framework over CI. I'd be just glad if someone would convince me, CI is the tool of the trade to get this thing well done Wink


Talking 'bout freak_auth: Is this great class still being activly developed? It's been a while since the last time it got updated, so I'm just wondering...

Regards,
Daniel


  Digital products and credit card theft
Posted by: El Forum - 06-05-2008, 02:05 AM - Replies (4)

[eluser]johnwbaxter[/eluser]
I have a shop that sells digital goods. You pay your money, you can download your product instantly.

Trouble is, i have recently had a few people buy who have used cloned / stolen credit cards. The credit card is accepted by the payment processor and tells my shop that all is well, so the shop releases access to the product.

A few hours later the person who's credit card it is notifies the payment processor that the transaction was fraudulent and i refund their money, but obviously someone else has got my product that i can't get back or trace who has it.

I'm wondering if i should put a 10 (or more) hour delay between people paying and actually delivering their product. This would be a shame as i would like it to be available to the purchaser as soon as they have paid.

Does anyone have any experience of this or any advice they could slip my way?


  I have integrated a new version CI based on CI 1.6.1.
Posted by: El Forum - 06-04-2008, 11:42 PM - Replies (5)

[eluser]chmod[/eluser]
I use the following plugins:
1:adodb 5 (which can connect more than one database ,though the db type is different.)
2:fckeditor 2.6 (which can allow you create a editor,strong and easy...)
4:enable $_GET (because CI disable $_GET,but when you get data from another website which use get...,now you can GET...)
5:Smarty 2.6 (option)
...
Is it useful ?


  Continue my product?
Posted by: El Forum - 06-04-2008, 11:29 PM - Replies (4)

[eluser]stuffradio[/eluser]
I'm a bit discouraged to continue making my product. There is one called Bamboo Invoice that's open source. I wanted to make one to sell, but why wouldn't someone use one that's free?

I was going to have PayPal, etc. integrated in to it. What are your thoughts?


  how to calculate two different time ..
Posted by: El Forum - 06-04-2008, 10:20 PM - Replies (10)

[eluser]Sawariya[/eluser]
Hi friends..
How to calculate two different time in PHP... Any idea..
I Have to time.. one session stating time and another one is current system time... how i wll get difference of these time...

Thanks in Advance

Sawariya


  [ask] error while uploading image data
Posted by: El Forum - 06-04-2008, 10:16 PM - Replies (1)

[eluser]Unknown[/eluser]
i have a news application. and i have a form to fill the news content. it has 3 forms, for title, image and news content. and 2 buttons, submit and reset.
when i had filled it all and send it to the database with clicking the submit button, the name of the image didnt recorded to the database, but the other input are successfully copied to the database and the image also successfully copied to the server.
what's wrong with my code ???
this is my code...

the controller...

Code:
function news_insert()
{
   $field_name = "gambar";
   $config['upload_path'] = './upload/';
   $config['allowed_types'] = 'gif|jpg|png';
   $config['max_size']    = '1000000';
   $config['max_width']  = '1024';
   $config['max_height']  = '768';
            
   $this->load->library('upload', $config);
            
   if ( ! $this->upload->do_upload($field_name))
   {
      redirect('mobil/news_admin');
   }    
   else
   {
       $data = array('upload_data' => $this->upload->data());

       $this->db->insert('news', $_POST);
                
       redirect('mobil/news', $data);
   }
}

the view...
Code:
<?php echo form_open_multipart('mobil/news_insert'); ?>
<?php echo br(1); ?>
<?php echo form_hidden('hit', '0') ?>
    
<!--tabel untuk menampilkan form news admin-->
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" width="35%" class="namagb">title :</td>
    <td valign="bottom">
        &lt;input name="judul" type="text" id="judul"&gt;
        &lt;?php echo br(2); ?&gt;
    </td>
  </tr>
  <tr>
    <td valign="top" class="namagb">picture :</td>
    <td valign="bottom">
        &lt;input type="file" name="gambar" id="gambar" /&gt;
        &lt;?php echo br(2); ?&gt;
    </td>
  </tr>
  <tr>
    <td valign="top" class="namagb">isi :</td>
    <td valign="bottom">
         &lt;textarea name="isi" cols="37" rows="10" id="isi"&gt;&lt;/textarea&gt;
     </td>
  </tr>
  <tr>
    <td>&lt;?php echo nbs(1); ?&gt;</td>
    <td>
       &lt;?php echo br(1); ?&gt;
       &lt;input type="submit" id="submit" value="save" /&gt;
       &lt;input type="reset" id="reset" value="cancel" /&gt;
    </td>
  </tr>
</table>
&lt;!--akhir tabel untuk menampilkan form news admin--&gt;
&lt;/form&gt;

ps : sorry my English is bad and mix with indonesian language Big Grin

thanks b4


  Webnode ?
Posted by: El Forum - 06-04-2008, 09:39 PM - Replies (3)

[eluser]theinfinityone[/eluser]
Hello all

I'm fairly new for Codeigniter, I'm mid-experianced PHP and Java developer. Using eclipse-PDT. Not used any framework before.

I saw Webnode.com yesterday. They are created a site builder service. You can join and create a website, very simple. You can use you name as subdomain. (username.webnode.com like ) Editor panel using ajax, very smooth. I think this is using Extjs or Jquery.

So Anyone can explain me, what is behind this website, I'm planning to do like this service

Can CI handle ? and Jquery. Also they got a backbone for domain register, email service and webstats. How they do this webware, any thoughts ?


  Modular Extensions - HMVC version 5.2
Posted by: El Forum - 06-04-2008, 09:31 PM - Replies (426)

[eluser]wiredesignz[/eluser]
I have ported Modular Extensions to run PHP5 only.

It is still 100% compatible with CodeIgniter.

Please let me know if you would like to test drive this new version.

Thanks for your interest.

EDIT: 11-19-2008

Modular Extensions 5.2 is now available for download from the wiki.

Click here -> Modular Extensions HMVC

EDIT: 10-15-2009

Modular Extensions PHP5 is also available via svn from google code.
http://code.google.com/p/modular-extensions-php5/


  view problem... Parse error: syntax error, unexpected ';'
Posted by: El Forum - 06-04-2008, 08:49 PM - Replies (3)

[eluser]moonshine[/eluser]
Hi
im getting a the parse error, syntax error, unexpected ';' and i cant see it (i can't see any semi-colons at all? )
ANYHOW here's the code



Code:
&lt;?
//first i set up some vars (thease are all fine and have no semi-colons in them
$field_end = "_$image_num"."_$clue_num";
$file_field = "file$field_end";
$upload_field = "upload$field_end";
$caption_field = "caption$field_end";]
?&gt;

...

//and now the error
&lt;input type="text" style="margin-bottom:1; margin-left:0px; width:200px;" value="&lt;?= ($image_uploaded ? $user_session_file_data[$session_array_key]['caption'] : ''?&gt;" name="&lt;?=$caption_field?&gt;"/&gt;

any suggestions greatly appreciated.


  'Select where string/integer = something': does it matter if it's a string or int?
Posted by: El Forum - 06-04-2008, 08:06 PM - Replies (1)

[eluser]codex[/eluser]
I tend to use integers to store stuff like options in the DB. For example:

$brand[0] = 'Chevrolet';
$brand[1] = 'Buick';
$brand[2] = 'Ford';

To store a carbrand I may store '2', which corresponds with 'Ford' etc. And to echo the brandname I do $brand[$result_from_db].

Pretty straight forward stuff and it works fine, but when looking at raw data in the database it doesn't make any sense, you only see integers and you don't know what they mean, unless you have the conversion table next to you. It would make far more sense if the data was stored as a string, but does it matter how you store it performance wise?


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
Array to HTML "Table"
by paulkd
2 hours ago
TypeError when trying to ...
by b126
3 hours ago
Webhooks and WebSockets
by InsiteFX
Yesterday, 10:39 AM
Retaining search variable...
by pchriley
Yesterday, 05:46 AM
Reading a session variabl...
by xanabobana
Yesterday, 05:05 AM
Update to v4.5.1, same us...
by kenjis
04-17-2024, 07:47 PM
Codeigniter 4 extend core...
by Semsion
04-17-2024, 05:08 AM
v4.5.1 Bug Fix Released
by lokman
04-16-2024, 02:12 PM
problem with textarea
by Nitin Arora
04-16-2024, 05:07 AM
Showing pdf on browser
by aarefi
04-16-2024, 04:38 AM

Forum Statistics
» Members: 84,540
» Latest member: srindus
» Forum threads: 77,558
» Forum posts: 375,896

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB