php-windows Digest 5 May 2005 05:05:32 -0000 Issue 2658

Topics (messages 25960 through 25970):

Re: $_GET and $HTTP_GET_VARS do not seem to work
        25960 by: Luis Moreira

compiling php on win 2003
        25961 by: Kc
        25962 by: Jason Barnett
        25963 by: Mikey

Programming problem... Date day locater!
        25964 by: JC Botha
        25965 by: Wagner, Aaron
        25966 by: Jason Barnett
        25969 by: JC Botha

register_globals issue
        25967 by: Bill Kirk
        25968 by: Jason Barnett

changing querystring to fixed link
        25970 by: Muhammad Imran

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message --- How do you retrive the variable "message_id" on the script display_list.php ?

Steven Courteney wrote:

Hi all,



This is probably something really simple.



I am using PHP 4.3.10 on Apache 1.3 on a Windows 2000 (SP4) set-up. I have
'register_globals' = off  and variables_order = 'EGPCS'.



The application uses sessions to log users on and follow their movement
through the application. The session variables are 'aUserID' (the User ID),
'aSessID' (the session ID), 'aLogin' (time and date the user logged on) and
'aScope' (a variable that limits access to certain parts of the application
depending on User authorisation levels). I then have two instances where I
have dynamic links of the type 'display_list.php?message_id=1' which worked
before I set up all the sessions, but now fail to pass on the 'message_id'
from one page to the next.



Any ideas would be appreciated!



Thanks,



Steven.

_______________________________
Steven Courteney.
GeoProfessionals Limited.
P.O. Box 903,
Masterton,
New Zealand.
Email:   <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]





****************************************************************************************

This electronic email, and any files transmitted with it, are confidential and intended solely for the use of the individual, or entity, to whom they are originally addressed and are also legally privileged. Forwarding, or copying, this email, and any files transmitted with it, to third parties is not sanctioned.

The views expressed in this message are those of the individual sender and may not necessarily reflect the views of GeoProfessionals Limited.

If you are not the intended recipient of this email please advise the sender immediately and delete the email and any related files from your system.

GeoProfessionals Limited

http://www.geoprofessionals.com

email: [EMAIL PROTECTED]

****************************************************************************************


****************************************************************************************

This electronic email, and any files transmitted with it, are confidential and intended solely for the use of the individual, or entity, to whom they are originally addressed and are also legally privileged. Forwarding, or copying, this email, and any files transmitted with it, to third parties is not sanctioned.

The views expressed in this message are those of the individual sender and may not necessarily reflect the views of GeoProfessionals Limited.

If you are not the intended recipient of this email please advise the sender immediately and delete the email and any related files from your system.

GeoProfessionals Limited

http://www.geoprofessionals.com

email: [EMAIL PROTECTED]

****************************************************************************************




--- End Message ---
--- Begin Message ---
I have installed PHP4 successfully with mysql and am able to run my pages
with queries from my database.

Now I was wanting to install Horde.  This is the error I get from the screen
that is supposed to tell you if you have everything you need to keep going:

 Horde will not run without gettext support. Compile php --with-gettext
before continuing.

I have looked online a bunch and can't seem to get a good answer as to what
to do with the "--with-gettext" information.   In my php/extensions folder,
there is a php_gettext.dll  but obviously that isn't good enough.  I also
downloaded what was supposed to be the gettext binary from one of the GNU
sites but don't know what to do with all of the files.

If someone could explain to me the whole "compile" thing using Windows, I
would really appreciate it.  I've limited my use of PHP because of this
problem and would love to start doing more php development.

Explaining as if I were a complete moron would probably be the most helpful
to me.   : )

Thank you ANYONE!

kc

--- End Message ---
--- Begin Message --- Kc wrote:
I have installed PHP4 successfully with mysql and am able to run my pages
with queries from my database.

Now I was wanting to install Horde.  This is the error I get from the screen
that is supposed to tell you if you have everything you need to keep going:

 Horde will not run without gettext support. Compile php --with-gettext
before continuing.

I have looked online a bunch and can't seem to get a good answer as to what
to do with the "--with-gettext" information.   In my php/extensions folder,

Normally this would be a command line parameter for configure (in case you build from source).


there is a php_gettext.dll but obviously that isn't good enough. I also

If you have the dll then you should be able to get it loaded by going to your php.ini and uncommenting the line for that extension.


downloaded what was supposed to be the gettext binary from one of the GNU
sites but don't know what to do with all of the files.

If someone could explain to me the whole "compile" thing using Windows, I
would really appreciate it.  I've limited my use of PHP because of this
problem and would love to start doing more php development.

Explaining as if I were a complete moron would probably be the most helpful
to me.   : )

As a complete moron I would just go to php.ini, try search and find for "extension", and then get rid of the semicolon before the line with php_gettext.dll.



Thank you ANYONE!

kc

--- End Message ---
--- Begin Message ---
[snip]
>  Horde will not run without gettext support. Compile php 
> --with-gettext before continuing.
> 
> I have looked online a bunch and can't seem to get a good 
> answer as to what
> to do with the "--with-gettext" information.   In my 
> php/extensions folder,
> there is a php_gettext.dll  but obviously that isn't good 
> enough.  I also downloaded what was supposed to be the 
> gettext binary from one of the GNU sites but don't know what 
> to do with all of the files.
> 
> If someone could explain to me the whole "compile" thing 
> using Windows, I would really appreciate it.  I've limited my 
> use of PHP because of this problem and would love to start 
> doing more php development.
> 
> Explaining as if I were a complete moron would probably be 
> the most helpful
> to me.   : )

OK, have you tried enabling the gettext extenion in your php.ini file first?
In the Dynamic Extensions section of the file, you should see a line such
as:

;extension=php_gettext.dll

Simply remove the semi-colon, save the file and restart your webserver (a
major gotcha over the years).  Also you will need to check the your
extension_dir directive is pointing to the folder containing php_gettext.dll

As for trying to compile PHP on Win32 with various extenions enabled?  Well,
my advice to a moron would be stick to the binaries - you really shouldn't
need to open up that can of worms just yet ;o)

HTH,

Mikey

--- End Message ---
--- Begin Message ---
Hi there to all.

I need to get the day number of any given date. Like if the date 20
Jan 2005 is given I need to calculate that it is day 20 in the year.

Any thoughts on solving this would be much appreciated.

Chris

--- End Message ---
--- Begin Message ---

date ( string format [, int timestamp ] )

z - The day of the year - 0 through 366 

$doy = Date("z") ;

http://us2.php.net/manual/en/function.date.php

aaron


> -----Original Message-----
> From: JC Botha [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 04, 2005 11:46 AM
> Cc: [email protected]
> Subject: [PHP-WIN] Programming problem... Date day locater!
> 
> Hi there to all.
> 
> I need to get the day number of any given date. Like if the date 20
> Jan 2005 is given I need to calculate that it is day 20 in the year.
> 
> Any thoughts on solving this would be much appreciated.
> 
> Chris
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message --- JC Botha wrote:
Hi there to all.

I need to get the day number of any given date. Like if the date 20
Jan 2005 is given I need to calculate that it is day 20 in the year.

Any thoughts on solving this would be much appreciated.

Chris

http://php.net/manual/en/function.date.php

<?php

echo date('d');

?>
--- End Message ---
--- Begin Message ---
Hi thanks for all your input. The problem is patially solved. Does
anyone know the syntax for C++. Ok, I know this is exclusive PHP but I
would like to know both as I'm studying both.

Till later then.

On 5/4/05, Jason Barnett <[EMAIL PROTECTED]> wrote:
> JC Botha wrote:
> > Hi there to all.
> >
> > I need to get the day number of any given date. Like if the date 20
> > Jan 2005 is given I need to calculate that it is day 20 in the year.
> >
> > Any thoughts on solving this would be much appreciated.
> >
> > Chris
> 
> http://php.net/manual/en/function.date.php
> 
> <?php
> 
> echo date('d');
> 
> ?>
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--- End Message ---
--- Begin Message ---
I am running php 4.3.10 on a Windows 2003 server with Apache 2.

My problem is that I have set register_globals = on in the php.ini file
(which is in the windows directory (everyone has read rights to it), but
when I do a php info on it, it shows that register_globals is off, and the
application we are trying to bring up needs it on.

Thanks in advance for any light you can shed.

Bill Kirk

--- End Message ---
--- Begin Message --- Bill Kirk wrote:
I am running php 4.3.10 on a Windows 2003 server with Apache 2.

My problem is that I have set register_globals = on in the php.ini file
(which is in the windows directory (everyone has read rights to it), but
when I do a php info on it, it shows that register_globals is off, and the
application we are trying to bring up needs it on.

1st issue: the php.ini that you changed is likely not the php.ini that is being loaded. Check the output of your phpinfo() to see where PHP loaded this file.
- system32 directory
- apache directory
- php directory
(can't remember the order...)


2nd issue: do you really *want* an application that requires register_globals = on?
--- End Message ---
--- Begin Message ---
How I can make different querystring in to fix string, so search engines can 
cache the pages. I'm using php+mysql+apace, any help much appreciated. 

Regards,
Imran

--- End Message ---

Reply via email to