Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About NoUser2U

  • Rank
  1. Thank you for your reply. I read into this Red5 server, and unfortunately, i didn't find an extensive manual or tutorials. I installed it but have trouble finding a good and extensive tutorial or help file. Besides, the original wiki is somehow down, it seems. I was thinking, can't Apache do the task??
  2. Hi, I'd like to stream from a webcam to a server and store it there. It has to be done over the web, so no additional software will be used to stream the data to the server (i.e.: no VLC or consorts. I can manage to capture webcam with JQuery).The video has to be stored on the server for later replay. It has to be possible to stream to the server from any computer (via the webcam). The problem is, I'm a complete newby in the field of multimedia and I don't know what kind of server i need to look for. I have an apache server installed here, but I think I read apache can't do that job well, sinc
  3. Hi, I use php's header() function for redirection users, using header('Location: some_location');In the php manual, it says: An example of incorrect usage of header() is also given in the same manual:<html><?php/* This will give an error. Note the output* above, which is before the header() call */header('Location: http://www.example.com/');?> BUT, if i paste the exact same code in somefile.php, and then navigate to that file, i do not get an error....Besides, i have used header() in my own site multiple times after outputting content (html elements, text), and yet no error, u
  4. Ooh, i didn't know there won't be interference between different users due to each connection being independant. Thank you for your help Ingolme! I will now fix this using mysql_insert_id().
  5. Thnx for the quick reply. I quickly check the php manual to see if there are any pointers to look out for using that method, and i stumbled across these 2 notes: Note: Because mysql_insert_id() acts on the last performed query, be sure to call mysql_insert_id() immediately after the query that generates the value.Note: The value of the MySQL SQL function LAST_INSERT_ID() always contains the most recently generated AUTO_INCREMENT value, and is not reset between queries.(http://php.net/manua...l-insert-id.php) Let's say i use line1: mysql_query(...);Xline2: $appointmentId = mysql_insert_id();
  6. Hi ingolme,Thank you for the post. I am already familiar with the use of Foreign Keys and referencing. If i use 3 tables, as you mentioned, then wouldn't it be the same as 'store appointment first, then look up the unique id of it; after that, relate the two'?. I mean, i still would need the unique id of the appointment, and because that id is created as soon as the appointment is stored in the DB, then i would still need to look the appointment up in the DB to get it's unique ID (and the problem here is: what criteria do i use? The solution i see here is: since the unique id is created as soo
  7. Hello all, I have a problem which i don't know what the best way to solve is: The situation:A user creates an appointment in an online calendar. While he's filling out the form, he has the option to share this appointment with one or multiple other users (the form is still not submitted).After the form is submitted, the appointment will be stored in the database and the selected users, if any, will be sent an invitation to join the appointment. They are free to accept/deny the invitation. My problem:How do i link the invitations to the appointment, while at the same time the appointment still
  8. Thank you for your post MrFish (nice nickname btw ). I managed to solve my problem, which was actually pretty simple:The Frontcontroller class get's instantiated on the index page, and it calls the Dispatch() method (see Frontcontroller.php and index.php). Now in the Dispatch() method, a class for a controller (requested from the URL) get's instantiated with the line:// Instantiate Controller $this->object = new $this->controller; So in order for me to call a method INSIDE a view (which is pure html), i have to use: $this->object -> methodname(); My problem was that i had forgo
  9. Hi,I have a class that has a method which initiates other classes. (problem explanation is below the next snippets of code)Index.php <?phpsession_start();class FrontController{ // properties /* private $view * the view that'll be inserted/called * * * private $frontc_id * ID for METHOD -> which is the selected date from calendarView.php into dayView.php * */ private $controller; private $view; private $frontc_id; private $object; // methods /*Instantiator * */ public static function instantiator() { $instance = new self(); return $instance; } /*Timezone set
  10. Ooh i see, Thank you for your input, i will adapt to the way of inputting hidden fields!
  11. Thnx for your fast reply Ingolme,I had thought of that and tried it, which worked, but is that the only way possible?How do other sites do it? for example, when you fill in a form and press enter. Then the site redirects you to some page and you see a very long dynamically generated url. It's hard to imagine such a site has a whole load of hidden fields in order to generate the custom url, right?In other words: is there no other 'clean and correct' way to do it?
  12. Dear all,For some time now i'm using the <form> element in this matter:<form method="post" action=?controller=example1&method=example2>I'd like to send data via the 'GET method', but it is essential that the querystring is placed AFTER the action, for example, let's say i have: <form method="get" action="?controller=search&method=getinput"> <input type="text" name="input" /> <input type="text" name="input2"> ... some more inputs etc. etc. ... <input type="submit" value="Submit" /></form> Now what i'd like to have is, after pressing the subm
  13. Thank you so much Deirde! It worked and now i can continue with what i was working on! :)I kind of feel embarrassed since it was actually too easy hehe. Thnx again!
  14. Thank you so much Deirde! It worked and now i can continue with what i was working on! :)I kind of feel embarrassed since it was actually too easy hehe. Thnx again!
  15. Dear all,I have a problem i need to solve which needs to handle functions and missing but specified arguments. Let's say i have a function foo, with argument $bar: <?php function Foo($bar){ echo $bar;}?> When i call this function with an argument inside, for example foo('test'), then output is 'test'....no probs. BUT, I need to be able to call this function without giving argument, for example, calling this function like: <?phpfoo()?> Of course, when called like that, i'll show a custom error page, like one saying 'Argument missing' or so (for example, with die('argument missin
  • Create New...