OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 13 Jul 2005 18:14:10 -0000 Issue 3565

php-general-digest-helplists.php.net
Date: Wed Jul 13 2005 - 13:14:10 CDT


php-general Digest 13 Jul 2005 18:14:10 -0000 Issue 3565

Topics (messages 218596 through 218637):

Re: max_file_size
        218596 by: Richard Lynch

Re: connecting to MySQL from a Mac
        218597 by: Richard Lynch
        218607 by: Burhan Khalid

Re: Problem installing in Win2003 Server SP1
        218598 by: Richard Lynch

Re: Session problems
        218599 by: Richard Lynch
        218610 by: Ahmed Saad

Re: PHP and undelivered mail
        218600 by: Richard Lynch

Re: zlib.output_compression
        218601 by: Mikey
        218602 by: LacaK

Re: Missing or wrong reply-to headers in this mailing list
        218603 by: Alan Milnes

Blocking login on the same username from diffrent computers
        218604 by: YaronKh.clalit.org.il
        218605 by: Raz
        218614 by: Aaron Greenspan

Re: How to read PHP variables.
        218606 by: Jasper Bryant-Greene

Re: [PHP-DB] Security question [was Searchable/Sortable Database Fields with MySQL/PHP]
        218608 by: Ahmed Saad

Logout help needed
        218609 by: suma parakala
        218612 by: Ahmed Saad

PHP error_log format doesn't include timestamp?
        218611 by: Lawrence Kennon

Re: Session problems [SOLVED]
        218613 by: Jason

Re: OT - Fonts
        218615 by: Marek Kilimajer

How to run .sql files using php
        218616 by: babu
        218617 by: Shaw, Chris - Accenture
        218618 by: glumtail

404 error - why???!!
        218619 by: Grosz, Steve (IPG IT)
        218620 by: Richard Davey
        218621 by: glumtail
        218623 by: Grosz, Steve (IPG IT)
        218624 by: Grosz, Steve (IPG IT)
        218626 by: glumtail
        218627 by: Grosz, Steve (IPG IT)
        218630 by: glumtail
        218631 by: Grosz, Steve (IPG IT)
        218633 by: Grosz, Steve (IPG IT)
        218634 by: Grosz, Steve (IPG IT)
        218635 by: glumtail
        218636 by: Grosz, Steve (IPG IT)

DAO/VO Pattern Help
        218622 by: Jed R. Brubaker
        218629 by: Michael Sims

Time Zone names
        218625 by: Richard Lynch
        218628 by: Dotan Cohen

I have a mail in text plain, how i can imap_fetchstructure() ?
        218632 by: Your Name

Re: Security, Late Nights and Overall Paranoia
        218637 by: Charles Stuart

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


On Tue, July 12, 2005 11:10 am, Chris said:
> The manual seems to imply that using MAX_FILE_SIZE will enable the
> browser to recognize the fact that a user is trying to upload a file
> that is too large and will, therefore, be able to give the user a
> warning to prevent the uploading of a file that the server will not
> accept.

I do not know when that text about the browser doing the work appeared,
but it sure wasn't there back in the day...

I'd be shocked if any browser *DID* implement something to warn the user
before uploading a file based on the happenstance of a HIDDEN input that
happened to be named MAX_FILE_SIZE...

Sure, they *could* do that... Does that happen in ANY browser in Reality?

--
Like Music?
http://l-i-e.com/artists.htm

attached mail follows:


On Tue, July 12, 2005 8:17 pm, Bruce Gilbert said:
> Hello,
>
> I am trying to add a PHP search to my site and the read me file says to:
>
> 2. In the server, create a database in MySQL to hold Sphider data.
>
> a) at command prompt type (to log into MySQL):
> mysql -u <your username> -p
> Enter your password when prompted.
>
> b) in MySQL, type:
> CREATE DATABASE sphider_db;
>
> trouble is I am on a mac, so there is no command prompt. What are mac
> users supposed to do???
>
> Of course you can use some other name for database instead of sphider_db.

If you normally use, say, phpMyAdmin to access your MySQL data, you can
click on the "SQL" button and then just type/paste in that kind of stuff.

--
Like Music?
http://l-i-e.com/artists.htm

attached mail follows:


Bruce Gilbert wrote:
> Hello,
>
> I am trying to add a PHP search to my site and the read me file says to:
>
> 2. In the server, create a database in MySQL to hold Sphider data.
>
> a) at command prompt type (to log into MySQL):
> mysql -u <your username> -p
> Enter your password when prompted.
>
> b) in MySQL, type:
> CREATE DATABASE sphider_db;
>
> trouble is I am on a mac, so there is no command prompt. What are mac
> users supposed to do???

You can access the command prompt (in OS X, this is called the
'Terminal') via:

Applications -> Utilities -> Terminal

If you are using Tiger, you can use spotlight to quickly jump to
Terminal (apple+spacebar is the hotkey to bring up the spotlight search
box).

Alternately, you can also install any number of MySQL front-ends
available for OS X.

Regards,
Burhan

attached mail follows:


On Tue, July 12, 2005 7:49 am, Grosz, Steve (IPG IT) said:
> I can see the .htm/.html file just fine. So, what settings should I be
> looking at for the problems with PHP?

Are you using PHP as a CGI or as an ISAPI thingie?

If it's CGI, then you want to run php.exe from MS-DOS and see what it does.

Ideally, run it as the same user/environment as IIS is running it.

If it's as ISAPI DLL thingie, then you're going to have to turn on
whatever logging you can get out of IIS and check your log files.

You can probably get more detailed help from the PHP-Windows list...

--
Like Music?
http://l-i-e.com/artists.htm

attached mail follows:


Don't use session_register()

It was only needed way back when in PHP3 (?)

Simplify your test until it "works" -- Then start adding the other stuff in.

Are you *SURE* you are calling session_start() on the page that gets the
POST?

I think you need to call session_name() *BEFORE* session_start() but I
could be wrong about that...

What may be happening is PHP uses the default name to set your cookie to
start with, then you change the session_name() but it's too late, the
cookie already was set.

If you reverse the order in another page, the other page looks for a
cookie name that doesn't exist.

Re-configure your browser to display all the cookies you get.

On Tue, July 12, 2005 6:54 am, Jason said:
> I am having a problem with sessions. For some reason it keeps creating
> a new session for every page link you click and not using the original
> session created when session_start() gets called. Below is the code I
> am testing with.
>
> [one.php]
> <?php
>
> $SessionID = md5( uniqid( rand () ) );
>
> session_start();
>
> if( ( !session_is_registered( 'hash' ) ) || ( $_SESSION['hash'] !=
> $_SESSION['chkhash'] ) ) {
> session_name( 'prostarinventory' );
> session_register( 'hash' );
> session_register( 'chkhash' );
> session_register( 'count' );
> $_SESSION['hash'] = $SessionID;
> $_SESSION['chkhash'] = $SessionID;
> $_SESSION['count'] = 1;
> } else {
> $_SESSION['count']++;
> }
>
> print_r( $_SESSION );
>
> ?>
> [/one.php]
> [test1.php]
> <?PHP
> include 'one.php';
> print_r( $_SESSION );
> ?>
> <form action="test.php" method="post"><input name="test"
> type="text"><input name="" type="submit"></form>
> [/test1.php]
>
> [test.php]
> <?php
> include 'one.php';
> echo "SESSIONS: ";
> print_r( $_SESSION );
> echo "<BR>POSTS: ";
> print_r( $_POST );
> echo "<BR>GETS: ";
> print_r( $_GET );
> ?>
> [/test.php]
>
> Any help is appreciated, so far I have found that if I use the
> include_once 'one.php'; and simply refresh the page sessions work fine,
> but if you call the test1.php then submit the form the session variables
> aren't found in the old session and a new one is being created on the
> server.
>
> --
> Jason G.
>
> "In my opinion anyone
> interested in improving
> themselves should not
> rule out becoming pure
> energy."
> ~Jack Handley,
> The New Mexican, 1988.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
Like Music?
http://l-i-e.com/artists.htm

attached mail follows:


On 7/13/05, Richard Lynch <ceol-i-e.com> wrote:
> I think you need to call session_name() *BEFORE* session_start() but I
> could be wrong about that...

totally right! in the php manual,

"The session name is reset to the default value stored in session.name
at request startup time. Thus, you need to call session_name() for
every request (and before session_start() or session_register() are
called)."

-ahmed

attached mail follows:


On Tue, July 12, 2005 5:03 am, Angelo Zanetti said:
> Is it possible to determine if a mail was sent successfully or not
> delivered using PHP? Obviously using PHP to send the emails.
> thanks in advance

No.

You can get the return code to see if YOUR mail software is even going to
try to send it.

After that, you have to track return mails, or you can use HTML-enhanced
(cough, cough) email, and embed an IMG with a URL and track those, for
some kind of rough idea of who is opening it, if they have crappy email
clients that let you find that out.

--
Like Music?
http://l-i-e.com/artists.htm

attached mail follows:


LacaK wrote:

> Thanks for reply,
>
> In documentation is stated, than "zlib.output_compression" is
> changeable at PHP_INI_ALL. If there is no possibility to change it in
> script, why it is not PHP_INI_SYSTEM|PHP_INI_PERDIR ?
>
> And at second :
> When I set "zlib.output_compression=on" in php.ini, then I CAN turn it
> off in script using ini_set('zlib.output_compression', false); /*this
> works !*/
> Why does not work ini_set('zlib.output_compression', true); ? /*this
> is a first line in script, so no output is already send*/
>
> BUG No. is 33653 http://bugs.php.net/bug.php?id=33653 ,
> but sniperphp.net market is as Bogus
>
> I still think, that it does not work as expected.
> LacaK.
>
> Jasper Bryant-Greene wrote:
>
>> LacaK wrote:
>>
>>> Yes, my browser send "Accept-Encoding: gzip,deflate"
>>> When I alter : "zlib.output_compression=on" in php.ini it works fine !
>>> Only runtime alter : ini_set('zlib.output_compression', true); does
>>> not work !?
>>> LacaK.
>>
>>
>>
>> I'm pretty sure this behaviour is by design -- it doesn't make sense
>> to allow setting it at runtime as some output could already have been
>> made. Be interesting to see what the bug report digs up, though --
>> can we have a link?
>>
>> Jasper
>
>
Just my 2 cents worth but have you tried setting it to 1 rather than
true? I know that that is the format you need to use in .htaccess
files, maybe it is the same for ini_set?

HTH,

Mikey

attached mail follows:


Yes, I tried setting it to 1 and also "on" and 4096 /*buffer size*/, but
the same result.
phpinfo() says, that zlib.output_compression=on, but page is not compressed.

I have checked source code of php, but I am not able to find, why it
does not work ?
Can any one explain, why is possible set zlib.output_compression from On
/*in php.ini*/ to Off /*using ini_set()*/, but not from Off to On ?

Thanks
LacaK.

Mikey wrote:
> LacaK wrote:
>
>> Thanks for reply,
>>
>> In documentation is stated, than "zlib.output_compression" is
>> changeable at PHP_INI_ALL. If there is no possibility to change it in
>> script, why it is not PHP_INI_SYSTEM|PHP_INI_PERDIR ?
>>
>> And at second :
>> When I set "zlib.output_compression=on" in php.ini, then I CAN turn it
>> off in script using ini_set('zlib.output_compression', false); /*this
>> works !*/
>> Why does not work ini_set('zlib.output_compression', true); ? /*this
>> is a first line in script, so no output is already send*/
>>
>> BUG No. is 33653 http://bugs.php.net/bug.php?id=33653 ,
>> but sniperphp.net market is as Bogus
>>
>> I still think, that it does not work as expected.
>> LacaK.
>>
>> Jasper Bryant-Greene wrote:
>>
>>> LacaK wrote:
>>>
>>>> Yes, my browser send "Accept-Encoding: gzip,deflate"
>>>> When I alter : "zlib.output_compression=on" in php.ini it works fine !
>>>> Only runtime alter : ini_set('zlib.output_compression', true); does
>>>> not work !?
>>>> LacaK.
>>>
>>>
>>>
>>>
>>> I'm pretty sure this behaviour is by design -- it doesn't make sense
>>> to allow setting it at runtime as some output could already have been
>>> made. Be interesting to see what the bug report digs up, though --
>>> can we have a link?
>>>
>>> Jasper
>>
>>
>>
> Just my 2 cents worth but have you tried setting it to 1 rather than
> true? I know that that is the format you need to use in .htaccess
> files, maybe it is the same for ini_set?
>
> HTH,
>
> Mikey

attached mail follows:


Rasmus Lerdorf wrote:

>Please search the archives for the complete and authoritative answer to
>that. The short version is that munging the reply-to header is
>technically incorrect and from a usability point of view it errors on
>the side of exposing someone's potentially private email.
>
Oh I've read it and understand it - I just think it's completely wrong
from a usability and conceptual perspective.

People shouldn't need to know how to configure things like this:-

:0 Whc: msgid.lock
| formail -D 16384 msgid.cache
:0 a:
duplicates

to participate on a mailing list.

The whole point of the web, and especially a server side language like
PHP, is that it doesn't care what user-agent is accessing it. You can't
assume that everyone is using *nix systems to particpate in this list.
Due to work related reasons I have to use both Linux and Windows.

Alan

attached mail follows:


Hello

 

I'm looking for away to block login to my web site from different computers on the same username,

In other word:

Only one person can be logged on to the web site with a username,

if anyone else tries to log on while the first person is still logged on he will be blocked until the first person singed out.

 

Thanks

Yaron

 

 

 

attached mail follows:


Yaron,

You could store a 'logged in/out' status flag in a db...then reference
it upon login, and use a chron job to tidy up any loose sessions every
so often.

raz

attached mail follows:


Yaron,

The Lampshade framework handles this for you. Any given user for an
application can only log in from one place at a time; otherwise they'll
be signed out from all of their other sessions.

If you're interested, take a look:

http://www.thinkcomputer.com/software/lampshade/free.html

Aaron

Aaron Greenspan
President & CEO
Think Computer Corporation

http://www.thinkcomputer.com

attached mail follows:


Bruno B B Magalhães wrote:
> That's my problem: I have a configuration files with the following
> structure...
>
> $vars['varname'] = 'varvalue';

If you trust the config file:

<?php
eval(file_get_contents('/path/to/config.file'));
?>

Jasper

attached mail follows:


Hi jeffrey,

On 7/13/05, Jeffrey <jeffreybungodly.com> wrote:
> Is it worth encrypting data on the database tables when anyone who can
> access the application itself - or better still the server - could
> readily access the encrypted data? Assuming SSL connections, secure
> server, etc, would you also encrypt on the DB?

What type of encryption you mean? For one-way encryption algorithms
(widely employed to store passwords) the data can't be recovered
(except by brute force attacks, a time- and resource-consuming process
that can take forever). For two-way encryption algorithms, the data
has to be decrypted at some point for a "legitimate" controlled use.
If the decryption process is done inside your web application code,
then why wouldn't the attacker (assuming he/she has gained access to
the server) read your source code to find out how to decrypt the data?
I haven't been through this before so this is just what i think about
it.

-ahmed

attached mail follows:


Hi
I am developing web application using php html javascript and postgresql.
I designed my web page using html frames. 1 head frame,2 centres frame,3
side frame. My problem is I have placed logout option in head frame. While
user has loged in their session will be registered.
Since i have placed logout in head frame its being logged out from head
frame only. How i can log out from all three frames. anyone please help me
Thanks
Suma

_________________________________________________________________
NRIs, Choose the best solution.
http://creative.mediaturf.net/creatives/citibankrca/rca_msntagofline.htm
With Citibank Rupee Checking Account!

attached mail follows:


Hi Suma,

On 7/11/05, suma parakala <sumaparkalahotmail.com> wrote:
> Since i have placed logout in head frame its being logged out from head
> frame only. How i can log out from all three frames. anyone please help me
> Thanks

Redirect the user to another page, which loads in the main window (not
in a frame), that logs the user out. Something like <a
href="logout.php" target="_top" />Logout</a>

-ahmed

attached mail follows:


In looking at my Apache (2.0.52) error log normal errors have a timestamp
(see below):

  [Wed Jul 13 05:36:07 2005] [error] [client 192.168.123.1] File does not
exist: /var/www/thenewagesite/test.html

However PHP generated errors to the Apache error log do not give a
timestamp:

  [client 217.212.224.143] PHP Notice: Undefined property: majorver in
/var/www/thenewagesite/jjdewey/immortal/chapter1.php on line 15

Is this something I can configure in the php.ini file (to get timestamps on
PHP errors in the error log)? Note these are _NOT_ errors that I generate
with my code, but errors that PHP is itself sending to the Apache error_log
(due to errors _in_ my code :). This may be in the documentation, but I
haven't been able to find it yet.

Thanks,

Lawrence Kennon
www.theNewAgeSite.com

attached mail follows:


Well after a bit of tweaking of my script I realized it was not the code
that was causing the problem. It was a php.ini setting, I run a few
virtual hosts on my webserver and it turned out to be the
session.referer_check was set to 0, modify this to equal
session.referer_check = and it worked fine after a restart of the
webserver. Hope this helps someone else.

Jason wrote:
> I am having a problem with sessions. For some reason it keeps creating
> a new session for every page link you click and not using the original
> session created when session_start() gets called. Below is the code I
> am testing with.
>
> [one.php]
> <?php
>
> $SessionID = md5( uniqid( rand () ) );
>
> session_start();
>
> if( ( !session_is_registered( 'hash' ) ) || ( $_SESSION['hash'] !=
> $_SESSION['chkhash'] ) ) {
> session_name( 'prostarinventory' );
> session_register( 'hash' );
> session_register( 'chkhash' );
> session_register( 'count' );
> $_SESSION['hash'] = $SessionID;
> $_SESSION['chkhash'] = $SessionID;
> $_SESSION['count'] = 1;
> } else {
> $_SESSION['count']++;
> }
>
> print_r( $_SESSION );
>
> ?>
> [/one.php]
> [test1.php]
> <?PHP
> include 'one.php';
> print_r( $_SESSION );
> ?>
> <form action="test.php" method="post"><input name="test"
> type="text"><input name="" type="submit"></form>
> [/test1.php]
>
> [test.php]
> <?php
> include 'one.php';
> echo "SESSIONS: ";
> print_r( $_SESSION );
> echo "<BR>POSTS: ";
> print_r( $_POST );
> echo "<BR>GETS: ";
> print_r( $_GET );
> ?>
> [/test.php]
>
> Any help is appreciated, so far I have found that if I use the
> include_once 'one.php'; and simply refresh the page sessions work fine,
> but if you call the test1.php then submit the form the session variables
> aren't found in the old session and a new one is being created on the
> server.
>

--
Jason Gerfen
Student Computing
Marriott Library
801.585.9810
jason.gerfenscl.utah.edu

"In my opinion anyone
 interested in improving
 themselves should not
 rule out becoming pure
 energy."
~Jack Handley,
 The New Mexican, 1988.

attached mail follows:


Richard Lynch wrote:
> On Tue, July 12, 2005 1:30 pm, timothy johnson said:
>
>>I am trying to use a font on my webpage that I have on my system only
>>after a friend sent it to me. But its a neat little font that I want
>>to use in a couple place on my site, like some of the headers. So I
>>have two options I think one is to find a way to have the font
>>download and work on the persons browser, this is the one I would like
>
>
> No.
>
> I'm not letting you install your stupid font on my computer.

Actualy it's not a problem to use downloadable fonts using CSS2:

http://www.w3.org/TR/CSS2/fonts.html#font-descriptions

It won't install it thought :)

attached mail follows:


Hi ,

i have a set of queries which i have placed them in one .sql file.i want to run this file using php's mssql and oracle(oci) functions.
any idea pls.
 
thanks.
babu

                
---------------------------------
How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos

attached mail follows:


Can you use mysqli_multi_query for mysql in php5?

hth

-----Original Message-----
From: babu [mailto:garavindbabuyahoo.co.uk]
Sent: 13 July 2005 16:39
To: php-generallists.php.net
Subject: [PHP] How to run .sql files using php

Hi ,

i have a set of queries which i have placed them in one .sql file.i want to
run this file using php's mssql and oracle(oci) functions.
any idea pls.

thanks.
babu

        
---------------------------------
How much free photo storage do you get? Store your holiday snaps for FREE
with Yahoo! Photos. Get Yahoo! Photos

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

This message has been delivered to the Internet by the Revenue Internet e-mail service

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

attached mail follows:


I think it's better to split the SQL into pieces
 line 1: create table ....
line 2: insert into .....
 $sql = 'create table....'
$sql = 'insert into ...'

 2005/7/13, Shaw, Chris - Accenture <cshawrevenue.ie>:
>
>
> Can you use mysqli_multi_query for mysql in php5?
>
> hth
>
> -----Original Message-----
> From: babu [mailto:garavindbabuyahoo.co.uk]
> Sent: 13 July 2005 16:39
> To: php-generallists.php.net
> Subject: [PHP] How to run .sql files using php
>
>
> Hi ,
>
> i have a set of queries which i have placed them in one .sql file.i want
> to
> run this file using php's mssql and oracle(oci) functions.
> any idea pls.
>
> thanks.
> babu
>
>
>
> ---------------------------------
> How much free photo storage do you get? Store your holiday snaps for FREE
> with Yahoo! Photos. Get Yahoo! Photos
>
>
> ************************
>
> This message has been delivered to the Internet by the Revenue Internet
> e-mail service
>
> *************************
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Ok, I thought I had installed PHP correctly on my Win2003 server, using
ISAPI. I added the extension, and mapped it to the php4isapi.dll file,
added a path to my /php folder in Win2003, edited my php.ini file which
I copied to my /windows/system32 folder.
 
In IIS, I made sure that the application extension for .php was added,
also pointing to the php4isap.dll file, and in the documents, added the
index.php file, moved it to the top of the list.
 
So, after all that, why am I still getting 404- file not found errors.
This is on a IE browse that is running on the same machine as IIS/PHP!
 
Any help is appreciated, this is getting very frustrating.
 
Thanks,
Steve

attached mail follows:


Hello Steve,

Wednesday, July 13, 2005, 5:11:58 PM, you wrote:

GSII> Ok, I thought I had installed PHP correctly on my Win2003 server, using
GSII> ISAPI. I added the extension, and mapped it to the php4isapi.dll file,
GSII> added a path to my /php folder in Win2003, edited my php.ini file which
GSII> I copied to my /windows/system32 folder.

This won't fix the 404 (sorry), but the php.ini doesn't go in
system32, it just goes in the Windows directory. Do you only get 404s
on PHP files? What happens if you copy an .html file into the same
location and request that?

Best regards,

Richard Davey
--
 http://www.launchcode.co.uk - PHP Development Services
 "I do not fear computers. I fear the lack of them." - Isaac Asimov

attached mail follows:


Hi:
 1. did you copy php4isap.dll to /php folder?
2. in local disk?

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> Ok, I thought I had installed PHP correctly on my Win2003 server, using
> ISAPI. I added the extension, and mapped it to the php4isapi.dll file,
> added a path to my /php folder in Win2003, edited my php.ini file which
> I copied to my /windows/system32 folder.
>
> In IIS, I made sure that the application extension for .php was added,
> also pointing to the php4isap.dll file, and in the documents, added the
> index.php file, moved it to the top of the list.
>
> So, after all that, why am I still getting 404- file not found errors.
> This is on a IE browse that is running on the same machine as IIS/PHP!
>
> Any help is appreciated, this is getting very frustrating.
>
> Thanks,
> Steve
>
>

attached mail follows:


Yes, the dll file is on the server, in the /php directory

Steve

-----Original Message-----
From: glumtail [mailto:glumtailgmail.com]
Sent: Wednesday, July 13, 2005 10:18 AM
To: php-generallists.php.net
Subject: Re: [PHP] 404 error - why???!!

Hi:
 1. did you copy php4isap.dll to /php folder?
2. in local disk?

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> Ok, I thought I had installed PHP correctly on my Win2003 server,
> using ISAPI. I added the extension, and mapped it to the php4isapi.dll

> file, added a path to my /php folder in Win2003, edited my php.ini
> file which I copied to my /windows/system32 folder.
>
> In IIS, I made sure that the application extension for .php was added,

> also pointing to the php4isap.dll file, and in the documents, added
> the index.php file, moved it to the top of the list.
>
> So, after all that, why am I still getting 404- file not found errors.
> This is on a IE browse that is running on the same machine as IIS/PHP!
>
> Any help is appreciated, this is getting very frustrating.
>
> Thanks,
> Steve
>
>

attached mail follows:


Regular .htm files work just fine. Its kinda strange......

-----Original Message-----
From: Richard Davey [mailto:richlaunchcode.co.uk]
Sent: Wednesday, July 13, 2005 10:18 AM
To: php-generallists.php.net
Subject: Re: [PHP] 404 error - why???!!

Hello Steve,

Wednesday, July 13, 2005, 5:11:58 PM, you wrote:

GSII> Ok, I thought I had installed PHP correctly on my Win2003 server,
GSII> using ISAPI. I added the extension, and mapped it to the
GSII> php4isapi.dll file, added a path to my /php folder in Win2003,
GSII> edited my php.ini file which I copied to my /windows/system32
folder.

This won't fix the 404 (sorry), but the php.ini doesn't go in system32,
it just goes in the Windows directory. Do you only get 404s on PHP
files? What happens if you copy an .html file into the same location and
request that?

Best regards,

Richard Davey
--
 http://www.launchcode.co.uk - PHP Development Services "I do not fear
computers. I fear the lack of them." - Isaac Asimov

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

attached mail follows:


Hello Steve,
 is the ISAPI loaded success?
what's your PHP version? Version 4.x works fine.

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> Regular .htm files work just fine. Its kinda strange......
>
> -----Original Message-----
> From: Richard Davey [mailto:richlaunchcode.co.uk]
> Sent: Wednesday, July 13, 2005 10:18 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
>
> Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
>
> GSII> Ok, I thought I had installed PHP correctly on my Win2003 server,
> GSII> using ISAPI. I added the extension, and mapped it to the
> GSII> php4isapi.dll file, added a path to my /php folder in Win2003,
> GSII> edited my php.ini file which I copied to my /windows/system32
> folder.
>
> This won't fix the 404 (sorry), but the php.ini doesn't go in system32,
> it just goes in the Windows directory. Do you only get 404s on PHP
> files? What happens if you copy an .html file into the same location and
> request that?
>
> Best regards,
>
> Richard Davey
> --
> http://www.launchcode.co.uk - PHP Development Services "I do not fear
> computers. I fear the lack of them." - Isaac Asimov
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


I guess I'm not sure how to tell if its loading correctly. Can you tell
me how to confirm that it is?

I'm using PHP 4.x as well.

Steve

-----Original Message-----
From: glumtail [mailto:glumtailgmail.com]
Sent: Wednesday, July 13, 2005 11:00 AM
To: php-generallists.php.net
Subject: Re: [PHP] 404 error - why???!!

Hello Steve,
 is the ISAPI loaded success?
what's your PHP version? Version 4.x works fine.

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> Regular .htm files work just fine. Its kinda strange......
>
> -----Original Message-----
> From: Richard Davey [mailto:richlaunchcode.co.uk]
> Sent: Wednesday, July 13, 2005 10:18 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
>
> Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
>
> GSII> Ok, I thought I had installed PHP correctly on my Win2003
> GSII> server, using ISAPI. I added the extension, and mapped it to the

> GSII> php4isapi.dll file, added a path to my /php folder in Win2003,
> GSII> edited my php.ini file which I copied to my /windows/system32
> folder.
>
> This won't fix the 404 (sorry), but the php.ini doesn't go in
> system32, it just goes in the Windows directory. Do you only get 404s
> on PHP files? What happens if you copy an .html file into the same
> location and request that?
>
> Best regards,
>
> Richard Davey
> --
> http://www.launchcode.co.uk - PHP Development Services "I do not fear
> computers. I fear the lack of them." - Isaac Asimov
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

attached mail follows:


Hello Steve,
 Administrator tools -> Internet Services Manager -> Default Web Site ->
ISAPI ....

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> I guess I'm not sure how to tell if its loading correctly. Can you tell
> me how to confirm that it is?
>
> I'm using PHP 4.x as well.
>
> Steve
>
> -----Original Message-----
> From: glumtail [mailto:glumtailgmail.com]
> Sent: Wednesday, July 13, 2005 11:00 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
> is the ISAPI loaded success?
> what's your PHP version? Version 4.x works fine.
>
> 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> >
> > Regular .htm files work just fine. Its kinda strange......
> >
> > -----Original Message-----
> > From: Richard Davey [mailto:richlaunchcode.co.uk]
> > Sent: Wednesday, July 13, 2005 10:18 AM
> > To: php-generallists.php.net
> > Subject: Re: [PHP] 404 error - why???!!
> >
> > Hello Steve,
> >
> > Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
> >
> > GSII> Ok, I thought I had installed PHP correctly on my Win2003
> > GSII> server, using ISAPI. I added the extension, and mapped it to the
>
> > GSII> php4isapi.dll file, added a path to my /php folder in Win2003,
> > GSII> edited my php.ini file which I copied to my /windows/system32
> > folder.
> >
> > This won't fix the 404 (sorry), but the php.ini doesn't go in
> > system32, it just goes in the Windows directory. Do you only get 404s
> > on PHP files? What happens if you copy an .html file into the same
> > location and request that?
> >
> > Best regards,
> >
> > Richard Davey
> > --
> > http://www.launchcode.co.uk - PHP Development Services "I do not fear
> > computers. I fear the lack of them." - Isaac Asimov
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> > http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> > http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Oh....that!! :)

-----Original Message-----
From: glumtail [mailto:glumtailgmail.com]
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-generallists.php.net
Subject: Re: [PHP] 404 error - why???!!

Hello Steve,
 Administrator tools -> Internet Services Manager -> Default Web Site ->
ISAPI ....

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> I guess I'm not sure how to tell if its loading correctly. Can you
> tell me how to confirm that it is?
>
> I'm using PHP 4.x as well.
>
> Steve
>
> -----Original Message-----
> From: glumtail [mailto:glumtailgmail.com]
> Sent: Wednesday, July 13, 2005 11:00 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
> is the ISAPI loaded success?
> what's your PHP version? Version 4.x works fine.
>
> 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> >
> > Regular .htm files work just fine. Its kinda strange......
> >
> > -----Original Message-----
> > From: Richard Davey [mailto:richlaunchcode.co.uk]
> > Sent: Wednesday, July 13, 2005 10:18 AM
> > To: php-generallists.php.net
> > Subject: Re: [PHP] 404 error - why???!!
> >
> > Hello Steve,
> >
> > Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
> >
> > GSII> Ok, I thought I had installed PHP correctly on my Win2003
> > GSII> server, using ISAPI. I added the extension, and mapped it to
> > GSII> the
>
> > GSII> php4isapi.dll file, added a path to my /php folder in Win2003,

> > GSII> edited my php.ini file which I copied to my /windows/system32
> > folder.
> >
> > This won't fix the 404 (sorry), but the php.ini doesn't go in
> > system32, it just goes in the Windows directory. Do you only get
> > 404s on PHP files? What happens if you copy an .html file into the
> > same location and request that?
> >
> > Best regards,
> >
> > Richard Davey
> > --
> > http://www.launchcode.co.uk - PHP Development Services "I do not
> > fear computers. I fear the lack of them." - Isaac Asimov
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe,
visit:
> > http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe,
visit:
> > http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

attached mail follows:


Ok, I don't think it is loaded. I manually added it, restarted w3svc,
and the status still shows as *unknown*

 

-----Original Message-----
From: glumtail [mailto:glumtailgmail.com]
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-generallists.php.net
Subject: Re: [PHP] 404 error - why???!!

Hello Steve,
 Administrator tools -> Internet Services Manager -> Default Web Site ->
ISAPI ....

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> I guess I'm not sure how to tell if its loading correctly. Can you
> tell me how to confirm that it is?
>
> I'm using PHP 4.x as well.
>
> Steve
>
> -----Original Message-----
> From: glumtail [mailto:glumtailgmail.com]
> Sent: Wednesday, July 13, 2005 11:00 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
> is the ISAPI loaded success?
> what's your PHP version? Version 4.x works fine.
>
> 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> >
> > Regular .htm files work just fine. Its kinda strange......
> >
> > -----Original Message-----
> > From: Richard Davey [mailto:richlaunchcode.co.uk]
> > Sent: Wednesday, July 13, 2005 10:18 AM
> > To: php-generallists.php.net
> > Subject: Re: [PHP] 404 error - why???!!
> >
> > Hello Steve,
> >
> > Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
> >
> > GSII> Ok, I thought I had installed PHP correctly on my Win2003
> > GSII> server, using ISAPI. I added the extension, and mapped it to
> > GSII> the
>
> > GSII> php4isapi.dll file, added a path to my /php folder in Win2003,

> > GSII> edited my php.ini file which I copied to my /windows/system32
> > folder.
> >
> > This won't fix the 404 (sorry), but the php.ini doesn't go in
> > system32, it just goes in the Windows directory. Do you only get
> > 404s on PHP files? What happens if you copy an .html file into the
> > same location and request that?
> >
> > Best regards,
> >
> > Richard Davey
> > --
> > http://www.launchcode.co.uk - PHP Development Services "I do not
> > fear computers. I fear the lack of them." - Isaac Asimov
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe,
visit:
> > http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe,
visit:
> > http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

attached mail follows:


Ok, now it appears the ISAPI is loaded, I get the green up arrow, but
the priority always shows as 'unknown'.

Still get the 404 errors when trying to view .php pages

Steve

-----Original Message-----
From: glumtail [mailto:glumtailgmail.com]
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-generallists.php.net
Subject: Re: [PHP] 404 error - why???!!

Hello Steve,
 Administrator tools -> Internet Services Manager -> Default Web Site ->
ISAPI ....

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> I guess I'm not sure how to tell if its loading correctly. Can you
> tell me how to confirm that it is?
>
> I'm using PHP 4.x as well.
>
> Steve
>
> -----Original Message-----
> From: glumtail [mailto:glumtailgmail.com]
> Sent: Wednesday, July 13, 2005 11:00 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
> is the ISAPI loaded success?
> what's your PHP version? Version 4.x works fine.
>
> 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> >
> > Regular .htm files work just fine. Its kinda strange......
> >
> > -----Original Message-----
> > From: Richard Davey [mailto:richlaunchcode.co.uk]
> > Sent: Wednesday, July 13, 2005 10:18 AM
> > To: php-generallists.php.net
> > Subject: Re: [PHP] 404 error - why???!!
> >
> > Hello Steve,
> >
> > Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
> >
> > GSII> Ok, I thought I had installed PHP correctly on my Win2003
> > GSII> server, using ISAPI. I added the extension, and mapped it to
> > GSII> the
>
> > GSII> php4isapi.dll file, added a path to my /php folder in Win2003,

> > GSII> edited my php.ini file which I copied to my /windows/system32
> > folder.
> >
> > This won't fix the 404 (sorry), but the php.ini doesn't go in
> > system32, it just goes in the Windows directory. Do you only get
> > 404s on PHP files? What happens if you copy an .html file into the
> > same location and request that?
> >
> > Best regards,
> >
> > Richard Davey
> > --
> > http://www.launchcode.co.uk - PHP Development Services "I do not
> > fear computers. I fear the lack of them." - Isaac Asimov
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe,
visit:
> > http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe,
visit:
> > http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

attached mail follows:


Hello,
 it seems that your ISAPI is ok.
1. with full permission? e.g: execute,write and so on...
2. how about asp file?

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> Ok, now it appears the ISAPI is loaded, I get the green up arrow, but
> the priority always shows as 'unknown'.
>
> Still get the 404 errors when trying to view .php pages
>
> Steve
>
> -----Original Message-----
> From: glumtail [mailto:glumtailgmail.com]
> Sent: Wednesday, July 13, 2005 11:10 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
> Administrator tools -> Internet Services Manager -> Default Web Site ->
> ISAPI ....
>
> 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> >
> > I guess I'm not sure how to tell if its loading correctly. Can you
> > tell me how to confirm that it is?
> >
> > I'm using PHP 4.x as well.
> >
> > Steve
> >
> > -----Original Message-----
> > From: glumtail [mailto:glumtailgmail.com]
> > Sent: Wednesday, July 13, 2005 11:00 AM
> > To: php-generallists.php.net
> > Subject: Re: [PHP] 404 error - why???!!
> >
> > Hello Steve,
> > is the ISAPI loaded success?
> > what's your PHP version? Version 4.x works fine.
> >
> > 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> > >
> > > Regular .htm files work just fine. Its kinda strange......
> > >
> > > -----Original Message-----
> > > From: Richard Davey [mailto:richlaunchcode.co.uk]
> > > Sent: Wednesday, July 13, 2005 10:18 AM
> > > To: php-generallists.php.net
> > > Subject: Re: [PHP] 404 error - why???!!
> > >
> > > Hello Steve,
> > >
> > > Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
> > >
> > > GSII> Ok, I thought I had installed PHP correctly on my Win2003
> > > GSII> server, using ISAPI. I added the extension, and mapped it to
> > > GSII> the
> >
> > > GSII> php4isapi.dll file, added a path to my /php folder in Win2003,
>
> > > GSII> edited my php.ini file which I copied to my /windows/system32
> > > folder.
> > >
> > > This won't fix the 404 (sorry), but the php.ini doesn't go in
> > > system32, it just goes in the Windows directory. Do you only get
> > > 404s on PHP files? What happens if you copy an .html file into the
> > > same location and request that?
> > >
> > > Best regards,
> > >
> > > Richard Davey
> > > --
> > > http://www.launchcode.co.uk - PHP Development Services "I do not
> > > fear computers. I fear the lack of them." - Isaac Asimov
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/) To unsubscribe,
> visit:
> > > http://www.php.net/unsub.php
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/) To unsubscribe,
> visit:
> > > http://www.php.net/unsub.php
> > >
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> > http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


OK, you lost me, execute/write on which file?

I don't use asp, I use Coldfusion, and .htm, I'm only installing PHP so
I can use the phpBB system.

-----Original Message-----
From: glumtail [mailto:glumtailgmail.com]
Sent: Wednesday, July 13, 2005 12:05 PM
To: php-generallists.php.net
Subject: Re: [PHP] 404 error - why???!!

Hello,
 it seems that your ISAPI is ok.
1. with full permission? e.g: execute,write and so on...
2. how about asp file?

 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
>
> Ok, now it appears the ISAPI is loaded, I get the green up arrow, but
> the priority always shows as 'unknown'.
>
> Still get the 404 errors when trying to view .php pages
>
> Steve
>
> -----Original Message-----
> From: glumtail [mailto:glumtailgmail.com]
> Sent: Wednesday, July 13, 2005 11:10 AM
> To: php-generallists.php.net
> Subject: Re: [PHP] 404 error - why???!!
>
> Hello Steve,
> Administrator tools -> Internet Services Manager -> Default Web Site
> -> ISAPI ....
>
> 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> >
> > I guess I'm not sure how to tell if its loading correctly. Can you
> > tell me how to confirm that it is?
> >
> > I'm using PHP 4.x as well.
> >
> > Steve
> >
> > -----Original Message-----
> > From: glumtail [mailto:glumtailgmail.com]
> > Sent: Wednesday, July 13, 2005 11:00 AM
> > To: php-generallists.php.net
> > Subject: Re: [PHP] 404 error - why???!!
> >
> > Hello Steve,
> > is the ISAPI loaded success?
> > what's your PHP version? Version 4.x works fine.
> >
> > 2005/7/14, Grosz, Steve (IPG IT) <steve.groszhp.com>:
> > >
> > > Regular .htm files work just fine. Its kinda strange......
> > >
> > > -----Original Message-----
> > > From: Richard Davey [mailto:richlaunchcode.co.uk]
> > > Sent: Wednesday, July 13, 2005 10:18 AM
> > > To: php-generallists.php.net
> > > Subject: Re: [PHP] 404 error - why???!!
> > >
> > > Hello Steve,
> > >
> > > Wednesday, July 13, 2005, 5:11:58 PM, you wrote:
> > >
> > > GSII> Ok, I thought I had installed PHP correctly on my Win2003
> > > GSII> server, using ISAPI. I added the extension, and mapped it to

> > > GSII> the
> >
> > > GSII> php4isapi.dll file, added a path to my /php folder in
> > > GSII> Win2003,
>
> > > GSII> edited my php.ini file which I copied to my
> > > GSII> /windows/system32
> > > folder.
> > >
> > > This won't fix the 404 (sorry), but the php.ini doesn't go in
> > > system32, it just goes in the Windows directory. Do you only get
> > > 404s on PHP files? What happens if you copy an .html file into the

> > > same location and request that?
> > >
> > > Best regards,
> > >
> > > Richard Davey
> > > --
> > > http://www.launchcode.co.uk - PHP Development Services "I do not
> > > fear computers. I fear the lack of them." - Isaac Asimov
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/) To unsubscribe,
> visit:
> > > http://www.php.net/unsub.php
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/) To unsubscribe,
> visit:
> > > http://www.php.net/unsub.php
> > >
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe,
visit:
> > http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

attached mail follows:


Hello all,

As I am trying to take my PHP code in a more enterprise direction with
strict model/logic/view layers, I have been working with DAOs and the
matching VOs.

So I am running into a problem that I could really use some direction on:
DAO/VO works great with single tables, but I tend to make my database work
for its existance, and joins ar eeverywhere. What I don't understand is how
to approach DAO/VO when table joins are involved.

Can anyone think of some good resources?

Thanks!

attached mail follows:


Jed R. Brubaker wrote:
> So I am running into a problem that I could really use some direction
> on: DAO/VO works great with single tables, but I tend to make my
> database work for its existance, and joins ar eeverywhere. What I
> don't understand is how to approach DAO/VO when table joins are
> involved.
>
> Can anyone think of some good resources?

Take a look at Propel, an ORM tool for PHP that is based on Apache Torque (a Java
ORM). It is a code-generation tool that requires PHP 5, and it may possibly be
overkill for what you are trying to do, but at the very least you could look at some
of the code it generates to get some ideas for your own approach.

http://propel.phpdb.org

There are other ORM/DAO type utilities for PHP available, but since Propel is the
only one I've used I'll leave it to others to mention alternative resources.

HTH

attached mail follows:


I'd like to generate a list of time zones (EST, CDT, whatever) for a popup.

Seems like it should be easy...

This is so the Sales guy can just plug in the time and zone of who he's
gotta call back, and I stuff that in the database, and he gets a morning
report of who to call.

<?php
  for ($offset = 0; $offset <= 23; $offset++){
    $z = ???;
    echo "<option>$z</option>\n";
  }
?>

What can I use for ??? to get the time zone name for offsets?

The date() function tells me what time zone the webserver is in, which is
not even *HIS* time zone, much less the client's.

The idate() function is not available.

I can't just shove $offset into putenv("TZ=$offset") -- Apparently, in
order to set TZ I would need to know, a priori, the name of the time zone,
so that's not real helpful for what I need.

I looked at all the User Contributed notes, and none seemed to answer it.

I suppose I could Google for "PHP time zone" but...

What am I missing?

--
Like Music?
http://l-i-e.com/artists.htm

attached mail follows:


On 7/13/05, Richard Lynch <ceol-i-e.com> wrote:
> I'd like to generate a list of time zones (EST, CDT, whatever) for a popup.
>
> Seems like it should be easy...
>
> This is so the Sales guy can just plug in the time and zone of who he's
> gotta call back, and I stuff that in the database, and he gets a morning
> report of who to call.
>
> <?php
> for ($offset = 0; $offset <= 23; $offset++){
> $z = ???;
> echo "<option>$z</option>\n";
> }
> ?>
>
> What can I use for ??? to get the time zone name for offsets?
>
> The date() function tells me what time zone the webserver is in, which is
> not even *HIS* time zone, much less the client's.
>
> The idate() function is not available.
>
> I can't just shove $offset into putenv("TZ=$offset") -- Apparently, in
> order to set TZ I would need to know, a priori, the name of the time zone,
> so that's not real helpful for what I need.
>
> I looked at all the User Contributed notes, and none seemed to answer it.
>
> I suppose I could Google for "PHP time zone" but...
>
> What am I missing?
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Richard,
Take a look at wikipedia's timezone page. You could probably parse the
table and get what you want. And it's GPL.
http://en.wikipedia.org/wiki/Time_zone

Dotan
http://lyricslist.com/lyrics/artist_albums/299/krauss_alison.php
Krauss, Alison Song Lyrics

attached mail follows:


Hello,

I have a list of mails taken from my old host in cPanel

Now i want read this messages, and they are in text plain.

Wath i can do ?

I submit each message to me BD MySQL, but when i do this:[PHPNET]SELECT
* FROM mails WHERE...[/PHPNET] And
after[PHPNET]imap_fetchstructure($mail);[PHPNET]This only ERROR.

Say:

Warning: imap_fetchstructure(): supplied argument is not a valid imap
resource in /home...

AND [PHPNET]imap_fetchstructure($mail,0);[PHPNET]Is =
AND [PHPNET]imap_fetchstructure($mail,1);[PHPNET]Is =

How i can read this mail in MySQL or textfile ?
The point is do imap_fetchstructure() becouse some mails have Files.

Thanks.

attached mail follows:


On Jul 12, 2005, at 6:50 AM, Chris Shiflett wrote:

>
> As far as allowing [red] goes, you can just as easily add <red> to
> the list of available tags and not have to come up with a
> replacement for every other HTML tag that already exists.

but what about the poor bastards that'll go around trying to use
<red>in HTML</red>?

cs