SV: [PHP] --enable-trans-sid ?

2002-10-03 Thread Daniel Alsen

[EMAIL PROTECTED] propably said:

> I am trying to re-compile php 4.2.2. It seems that the option
> "--enable-trans-sid" is no longer there (but still in the manual).
> The reason for a re-compilation is that I was not able to have SID
> printed out. Here is the code I tried, but SID is empty:  session_start();
> echo SID;

Don?t know why you can't recompile. But try echoing PHPSESSID instead and
you should get it printed.

- D




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




SV: [PHP] cron job problem.

2002-01-10 Thread Daniel Alsen

Hmm...don?t you have to actually create a job in crontab?

Saying that you want a mail every day at 6:00 you would want to create
something like:

* 6 * * * php /usr/local/bin/php > /dev/null

in crontab and lose #!/usr/local/bin/php -q in your script.

# Daniel Alsen| www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   | +46 8 694 82 22  #
# PGP: http://www.mindbash.com/pgp/  #


> Hello All,
> I have a php script that i tested first through my browser.
> If has a simple mail() command.
> It workd fine and I received the email.
> not I tried to run it as a cron job by adding
> #!/usr/local/bin/php -q
> My webmaster account receives the confirmation that cron
> job has run, but I do not receive the emails that the
> program is
> supposed to send.
> This is the code:
> Thanks for the help...
>
> #!/usr/local/bin/php -q
>  $subject="Cron Job has run";
> $body="test.php is running now";
> $sendtome = "[EMAIL PROTECTED]";
> mail($sendtome, $subject, $body);
> ?>
> --- mike cullerton <[EMAIL PROTECTED]> wrote:
> > #!/usr/local/bin/php -q
> >
> > on 1/10/02 12:16 PM, Mark at [EMAIL PROTECTED]
> > wrote:
> >
> > > I've got this problem that won't go away.
> > >
> > > The headers are showing up at the top of the page when
> > I run php in
> > > cgi mode. any ideas?
> >
> >
> >  -- mike cullerton
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> =
> Mehmet Erisen
> http://www.erisen.com
>
> __
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] writting into a text file

2001-09-21 Thread Daniel Alsen

";
}
?>

I prefer to store that code in a separate document and include it in the
documents i want it.
Change $COUNT_FILE to whatever suits you. It's just a empty textfile from
the start. Don?t forget to chmod the textfile properly.

Then you just have to echo $count;

# Daniel Alsen| www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   |  #


> I am having a problem that looks like this :
> 1.I'd like to have some clue on the traffic on my site, but my
> server doesn't support
> the mysql or smth like that. Anyway, I'd be happy with a text
> file, smth like a log
> file. Is it possible to write into a text file ?
> 2. Is it possible and is it a right way to do so : Making a
> counter based on the
> system I explained in the 1st question : writting a number into a
> text file, and on
> every hit, reading it and increasing by 1 ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]