[PHP] Re: $_SESSION strange behaviour? (was: $_SESSION only takes 1 character?)

2002-10-01 Thread Tim Stoop
Hmm... subject wasn't what I wanted it to be :) Sorry about that. -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] $_SESSION only takes 1 character?

2002-10-01 Thread Tim Stoop
Hi there, I've got some strange behaviour here (at least, I can't explain it). I'm running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my little app and want to use the $_SESSION-variable to keep track of all my variabeles. Well, when I tell it $_SESSION["something-intelligent"

[PHP] [Session-objects] Call to a member function on a non-object

2002-08-16 Thread Tim Stoop
Hi people, As I understand it, object are unserialized into their former Class, if that Class is in memory. That's right, right? Well, consider the following code: include_once("../config.inc.php"); include_once($WORKDIR."obj/foto.obj.php"); if($type == 1) {

[PHP] Re: Simple Mail

2002-08-14 Thread Tim Stoop
Dave Leather wrote: > Something is VERY weird with trying to send mail. I am running Apache for > windows and trying to send mail... using a line such as I think you need a local SMTP-server, or at least your SMTP-server configured in PHP (don't know exactly what you need to change in php.ini

[PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread Tim Stoop
Alexander Ross wrote: > That first column is an auto_incrementing column so i don't want any data > INSERT INTO cast VALUES(DEFAULT, 'Rick', 'Blaine', 'Humphrey', 'Bogart', > 'male'); I think you need to use NULL instead of DEFAULT... I'm not 100% sure. Just try it :) -- Kind regards, Tim --

[PHP] Re: PHP AND JAVA

2002-08-14 Thread Tim Stoop
Alexandra Aguiar wrote: > may i use php with JAVA (note. not JAVASCRIPT , but JAVA APPLETS) !?! Depends on what you want to achieve. As long as the final is correct (i.e. the one that is sent to the client, after php-parsing), no problem at all. -- Kind regards, Tim -- PHP General Mailing

[PHP] [Class] "global" again, not working?

2002-08-14 Thread Tim Stoop
Hi people, Again, a problem with "global". Maybe you can shed a light on this one... Consider this part of a class (with [...] I marks things I left out, which aren't important for the problem, FAFAIK): class FotoView { [...] var $fotos; var $cats; var $start;

[PHP] [Class] Behaviour global variables

2002-08-14 Thread Tim Stoop
Hi there, I'm forgetting something, but I can't seem to get to it... Consider the following Class. class Test { var $a; var $b; function Test() { $this->a = 2; $this->b = 5; } function Show() {

RE: [PHP] Maximum in SQL query?

2002-08-12 Thread Tim Stoop
Hi Jay, Jay Blanchard wrote: > I believe the error is a space prior to 'var' > > "Brunssum", , "/ var/ > > try > > "Brunssum", , "/var/ Nope, that wasn't the error, but the error was in there... it's the ", ," in there :) An empty value... Thanks for the quick reply! -- Kind regards, Tim

[PHP] Maximum in SQL query?

2002-08-12 Thread Tim Stoop
Hi people, It seems that MySQL only accepts queries that are 470 characters or smaller when I use PHP. Is this a known thing? Can I change it somehow? I printed the query: Query: REPLACE INTO foto (ID, titel, fotograaf, origineel_formaat_x, origineel_formaat_y, datum_invoering, datum_wijzigin

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Latex Master wrote: > Hello Tim, > Tim why don't you try shell_exec ? As a last resort, I might, but I'd rather do it in PHP... Code-portability, y'know :) -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Marek Kilimajer wrote: > rename can "move" the file only on the same partition, it is realy just > _rename_, not full _move_ So there is no full-features move in PHP? -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Hi people, I want to move a file from one location to another. I expect I can only do this with 'rename', because there's no 'move'-command (at least nog in the manual). Following situation: original file: /var/www/html/webfotos/tmp/thumb_phpibmGBF.jpg with /var/www/html/webfotos being a symli

RE: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
Thanks for the help guys. The one-line include is definitly a very good idea, which I'll use. Templating is very interesting, although, only if it works exactly as you say, with HTML-like tags. I looked at Smart, patTemplate en some others, but they all use {} or [] style tags. In that case, I

Re: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
Hi Justin, Thx again for the answer. Justin French wrote: > Well, you really need to check out a decent article/tutorial on sessions, Nah, I think I explain my question a little wierd and that's why you don't understand me... I've worked with sessions lots of times (although mostly in Java S

Re: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
Hi Justin, Thx for the reply Justin French wrote: > using functions like session_start() and the registering of session > variables ($_SESSION['something'] = "foo";) will establish/maintain a > session. Yes, I understand. Sessions need to be started. But once they have started, do I need to r

[PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
Hi people, Just a question, I'm building components for a customer who wants some interactivity within his site, but still wants to build the site himself. One thing that would be interesting would be Session management. Now, if I just tell him to make all his own pages with .php ext instead o