vps vs dedicated server

2011-06-09 Thread Tan Cheng
Hi everyone, I don't know if this question belongs to here, but will ask it anyway. I wrote a video site for my company recently in cake, and for demonstration purpose, I am now just hosting it on a shared hosting with several bucks per month. However, my boss decides to start using it officiall

Re: should teacher and student stay together???

2011-05-05 Thread Tan Cheng
Thanks for everyone's help. great informations, learned a lot. On May 2, 11:29 am, philp wrote: > Hi there, > > you could also use this behavior: > > https://github.com/Theaxiom/Polymorphic2.0 > > On 29 avr, 17:28, Tan Cheng wrote: > > > > > > &

should teacher and student stay together???

2011-04-29 Thread Tan Cheng
Hi all, A very basic question, I naively believe that there's no dumb question... I'm creating a database, and the users are categorized into teachers and students, obviously, one student has and belongs to many teachers and vice versa, so there is a HABTM relationship between students and teache

Re: an appointment system...

2011-04-29 Thread Tan Cheng
>> my > >> > bachelor. It is good, but we still had to configure a lot (3000 lines of > >> > javascript). In my  opinion, building everything from scratch is a lot > >> > better than trying to hack some complex systems. So if you still have > >>

Re: an appointment system...

2011-04-28 Thread Tan Cheng
r. It is good, but we still had to configure a lot (3000 lines of > > javascript). In my  opinion, building everything from scratch is a lot > > better than trying to hack some complex systems. So if you still have time, > > build your own > > > On Thu, Apr 28, 2011 at 11:04

Re: an appointment system...

2011-04-28 Thread Tan Cheng
t). In my  opinion, building everything from scratch is a lot > better than trying to hack some complex systems. So if you still have time, > build your own > > > > On Thu, Apr 28, 2011 at 11:04 PM, Tan Cheng wrote: > > Hi folks, > > > My boss ask me to create an

an appointment system...

2011-04-28 Thread Tan Cheng
Hi folks, My boss ask me to create an "appointment system", basically, I need a calendar that I can add events, and maybe a message system. I haven't found any good plug-in for this. So anybody has any related experience doing this with php? Where should I start looking at? Any input will be gre

Re: two questions about Auth component

2011-04-04 Thread Tan Cheng
P.NET, and then force redirect to else where. > > On Apr 3, 4:19 pm, Tan Cheng wrote: > > > > > > > > > Hi everyone, > > > I need help..., I am using the Auth component in cake, but I > > encountered two issues so far and couldn't find good answ

two questions about Auth component

2011-04-03 Thread Tan Cheng
Hi everyone, I need help..., I am using the Auth component in cake, but I encountered two issues so far and couldn't find good answers, shed me some light please. 1) Register issue: I set up some validation rules for the password field in my user model, so if the password user provided doesn't c

Re: run cakephp shell on remote host

2011-03-13 Thread Tan Cheng
Thanks Ryan, Always a life saver. That's exactly what I want to know. -David On Mar 13, 12:40 am, Ryan Schmidt wrote: > On Mar 12, 2011, at 22:21, Tan Cheng wrote: > > > > > > > > > > > I need your help again. I know this is a stupid question, just nee

run cakephp shell on remote host

2011-03-12 Thread Tan Cheng
Hi everyone, I need your help again. I know this is a stupid question, just need someone to help me explain. I am hosting with a remote host, they provide cronjob support in cpanel but no direct SSH support. In cpanel, I can setup the frequency by some dropdown menu, and there is a text input are

Re: cakephp shared hosting question

2011-03-10 Thread Tan Cheng
#x27;t necessary for everyone. And later if I change to a more standard domain, I should remove this line. That's it. Happy Baking. -David On Mar 10, 8:46 am, Tan Cheng wrote: > Thanks for the article, I'm reading it. > > On Mar 10, 3:49 am, rethab wrote: > > > &

Re: cakephp shared hosting question

2011-03-10 Thread Tan Cheng
gt; > > > You said you wanted to have the website be example.com/exceltv so what > > you can do is put webroot in public_html then just rename it to > > exceltv > > > (the files inside webroot will now be in a folder called exceltv in > > public_html) > > &g

Re: cakephp shared hosting question

2011-03-09 Thread Tan Cheng
e('ROOT', dirname(dirname(dirname(__FILE__))) . DS . > > 'cake'); > >         } > > > And this to > > > if (!defined('APP_DIR')) { > >                 define('APP_DIR', 'appnamehere' ); > >         } > &

cakephp shared hosting question

2011-03-09 Thread Tan Cheng
Hi everyone, My boss wants the project I'm working with cakephp to be seen on a host as soon as possible. I signed up with Cirtex hosting, but when I upload, it doesn't work directly, I am contacting them to change the mod_rewrite and some other settings, but I don't want to sit here and waiting

Re: how to redirect and let the server do some lengthy job in the background?

2011-03-04 Thread Tan Cheng
Thanks for all the information. If I go with a shared hosting, I would pick one supporting ffmpeg and cron job, I found cirtex, haven't paid yet because I am still developing on my own machine. I have never used a queueing before, it sounds interesting, i will look into that. I got the cron job wo

more fields for David Persson's media plugin form?

2011-03-03 Thread Tan Cheng
Hi everyone, I am now using David Persson's media plugin to handle the ajax upload now. But the upload form only shows the file type input, like create('Gallery', array('type' => 'file')); echo $form->input('file', array('type' => 'file', 'label' => false, 'class' => 'imageUplo

Re: upload progress bar for cakephp 1.3

2011-03-02 Thread Tan Cheng
Thanks a lot. I will try it right now and tell you how it is. Thanks again! -David On Mar 2, 9:09 pm, cricket wrote: > On Wed, Mar 2, 2011 at 5:31 PM, Tan Cheng wrote: > > Hi, > > > For my video site, I want the user be able to upload large files to > > the serve

Re: upload progress bar for cakephp 1.3

2011-03-02 Thread Tan Cheng
Hi cricket, I just noticed from their installation guide that the file size limit is 100mb. I am building a video site, so this might be not enough for my current need. But thank you anyway! On Mar 2, 9:09 pm, cricket wrote: > On Wed, Mar 2, 2011 at 5:31 PM, Tan Cheng wrote: >

upload progress bar for cakephp 1.3

2011-03-02 Thread Tan Cheng
Hi, For my video site, I want the user be able to upload large files to the server, and I want to have an upload progress bar. I searched for 2 days, and I tried the uploadify, it worked for php in the htdocs, but not in exceltv. I also tried a cakephp plugin called "cuploadify", it throws me a 40

Re: how to redirect and let the server do some lengthy job in the background?

2011-02-28 Thread Tan Cheng
David On Feb 28, 3:38 pm, Ryan Schmidt wrote: > On Feb 28, 2011, at 14:29, Tan Cheng wrote: > > > Also, I want to ask if I create the shell as cakephp shell, will that > > shell be restricted by the "max_execution_time" in php.ini? > > According to the comments he

Re: how to redirect and let the server do some lengthy job in the background?

2011-02-28 Thread Tan Cheng
I see, this is really complicated, so I think I'll try from mkdir. Also, I want to ask if I create the shell as cakephp shell, will that shell be restricted by the "max_execution_time" in php.ini? Thanks, -David On Feb 28, 3:22 pm, Ryan Schmidt wrote: > On Feb 28, 2011, a

Re: how to redirect and let the server do some lengthy job in the background?

2011-02-28 Thread Tan Cheng
THANK YOU, Ryan!! On Feb 28, 2:21 pm, Ryan Schmidt wrote: > On Feb 28, 2011, at 12:42, Tan Cheng wrote: > > > Thanks for all the input!!! So much good information to learn. Due to > > the tight budget and maybe the site traffic will not be so high, I am > > still looking

Re: how to redirect and let the server do some lengthy job in the background?

2011-02-28 Thread Tan Cheng
Thanks for all the input!!! So much good information to learn. Due to the tight budget and maybe the site traffic will not be so high, I am still looking at a shard hosting which supports cron, and maybe let it run a cake shell every 5 hours to encode and update the database. I think I am going to

Re: how to redirect and let the server do some lengthy job in the background?

2011-02-27 Thread Tan Cheng
hmidt wrote: > On Feb 27, 2011, at 09:06, Tan Cheng wrote: > > > I have a question. I'm using cakephp to develop a video site, like > > youtube, I want the user to upload their video to the site, but I only > > want them to wait for the upload, after it is uploaded, I hope

how to redirect and let the server do some lengthy job in the background?

2011-02-27 Thread Tan Cheng
Hi everyone, I have a question. I'm using cakephp to develop a video site, like youtube, I want the user to upload their video to the site, but I only want them to wait for the upload, after it is uploaded, I hope the converting process ( using ffmpeg ) run in the background and they will be redir

$this->Html vs $html

2011-02-15 Thread Tan Cheng
Hi everyone, I'm a newbie to cakePHP, a question I always have is in the tutorial in 1.3 cookbook, the html helper always appears as "$this->Html", but it never worked in my application. But when I change it to "$html", it works just fine. This is the same with all the other helpers. I only added

any body please help me with HABTM problem, please...

2011-02-03 Thread Tan Cheng
Hi, everyone, I am a newbie to cakephp, I am learning the HABTM, and try to see the "post tag" example working with the $scaffold. I have added the $hasAndBelongsToMany in both model files, but when I open the /blog/posts/add, I can never see the tags with the scaffolding. So frustrating... I kn

HABTM question, really appreciate any help!

2011-02-03 Thread Tan Cheng
I'm a newbie to Cakephp and I am trying to learn the HABTM for the "post and tag" example. I have set up the "$hasAndBelongToMany" to both "post" and "tag" models, also I have created the "posts_tags" join table. I added the "$scaffold" in the posts and tags controller, when I try to add a new pos