php-general Digest 13 Jul 2005 06:10:07 -0000 Issue 3564

2005-07-13 Thread php-general-digest-help

php-general Digest 13 Jul 2005 06:10:07 - Issue 3564

Topics (messages 218564 through 218595):

Re: How to read PHP variables.
218564 by: yanghshiqi
218583 by: Ahmed Saad

Re: sockets
218565 by: André Medeiros
218585 by: Ahmed Saad
218586 by: Greg Donald
218587 by: Ahmed Saad

Re: Number of users
218566 by: yanghshiqi
218568 by: Ahmed Saad

Re: Plz, help
218567 by: yanghshiqi

explain select
218569 by: Carl Furst

Re: max_file_size
218570 by: Chris

Re: Two websites need to share part of onedatabase,suggestions please
218571 by: Robert Cummings
218572 by: Chris W. Parker
218574 by: Robert Cummings

Missing or wrong reply-to headers in this mailing list
218573 by: Ahmed Saad
218575 by: John Nichel
218577 by: Chris W. Parker
218578 by: Ahmed Saad
218579 by: Ahmed Saad
218581 by: Alan Milnes
218582 by: Rasmus Lerdorf
218588 by: Chris W. Parker
218589 by: Ahmed Saad
218590 by: Ahmed Saad

Re: CASE Tool For PHP OO Programming
218576 by: Linda

OT - Fonts
218580 by: timothy johnson
218595 by: Richard Lynch

Re: zlib.output_compression
218584 by: Jasper Bryant-Greene
218594 by: LacaK

Returned mail: Data format error
218591 by: jsp-interest.java.sun.com

connecting to MySQL from a Mac
218592 by: Bruce Gilbert
218593 by: Evert | Rooftop

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:
php-general@lists.php.net


--
---BeginMessage---
Firstly, I don't know why you want to change your configuration in real
time?
Then if you just keep your configuration in an array, then when you want to
change and use it in your script, you can just $vars['varname'] = sth
else.
So pls give us more detail.

 
 
 
Best regards,
Shiqi Yang

-Original Message-
From: Bruno B B Magalhães [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 12, 2005 8:21 PM
To: php-general@lists.php.net
Subject: [PHP] How to read PHP variables.

Hi you all!

That's my problem: I have a configuration files with the following  
structure...

$vars['varname'] = 'varvalue';

And I would like to have a module to change those parameters, but I  
don't know how to write a pattern to match it...

Thanks in advance...

Best Regards,
Bruno B B Magalhaes

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---End Message---
---BeginMessage---
Hi Bruno,

On 7/12/05, Bruno B B Magalhães [EMAIL PROTECTED] wrote:
 Hi you all!
 $vars['varname'] = 'varvalue';
 
 And I would like to have a module to change those parameters, but I
 don't know how to write a pattern to match it...

i think you mean an API to help you manage and persist your
application settings (something more or less like the Preferences API
in java) and your format have to be much simpler like .ini format (key
= value) or some variation

take a look at phpclasses.org search results for ini
http://www.google.com/custom?domains=www.phpclasses.orgq=inisa=Searchsitesearch=www.phpclasses.orgclient=pub-2951707118576741forid=1channel=5742870948ie=ISO-8859-1oe=ISO-8859-1cof=GALT%3A%23663399%3BGL%3A1%3BDIV%3A%2322%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AA3C5CC%3BLBGC%3AA3C5CC%3BALC%3AFF%3BLC%3AFF%3BT%3A00%3BGFNT%3AFF%3BGIMP%3AFF%3BLH%3A50%3BLW%3A256%3BL%3Ahttp%3A%2F%2Ffiles.phpclasses.org%2Fgraphics%2Fgooglesearch.jpg%3BS%3Ahttp%3A%2F%2Fwww.phpclasses.org%2Fsearch.html%3BFORID%3A1%3Bhl=en

an alternative way is using XML to store your settings and use the PHP
XML support for parsing/manipulating these files.

-ahmed
---End Message---
---BeginMessage---
Since there was no reference to that on the PHP manual, I thought about
mentioning it just to be safe.
---End Message---
---BeginMessage---
Hi André,

On 7/12/05, André Medeiros [EMAIL PROTECTED] wrote:
 Since there was no reference to that on the PHP manual, I thought about
 mentioning it just to be safe.

yeah the manual is completely drak when it comes to php CLI binary
---End Message---
---BeginMessage---
On 7/12/05, Ahmed Saad [EMAIL PROTECTED] wrote:
 yeah the manual is completely drak when it comes to php CLI binary

`php -h` tells you all the command line options.. and all the basic
fuctionality is covered in the manual online.  Seems complete to me.


-- 
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/
---End Message---
---BeginMessage---
On 7/13/05, Greg Donald [EMAIL PROTECTED] wrote:
 `php -h` tells you all the command line options.. and all the basic
 fuctionality is covered in the manual online.  Seems complete to me.

ehmm you weren't refering to the CLI version but anyways, I'd be
grateful 

Re: [PHP] OT - Fonts

2005-07-13 Thread Richard Lynch
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.

:-)

What I'm really telling you is that a LOT of people won't let this work.

 to get working. The second would be to make a  php function that
 creates an image of the text then post the image inline. Any howtos or
 help that I might be able to get on the first one would be great. I
 think this is the first time I am trying not to use php.

I'm not sure what you mean by inline...

I'd just make a URL that spit out the image you wanted for the text given.

It's maybe a half-hour of work.

And it will work on EVERY browser -- Well, except, like, lynx or search
engines...  Give them an alt attribute.

-- 
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



Re: [PHP] max_file_size

2005-07-13 Thread Richard Lynch
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

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



Re: [PHP] connecting to MySQL from a Mac

2005-07-13 Thread Richard Lynch
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

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



RE: [PHP] Problem installing in Win2003 Server SP1

2005-07-13 Thread Richard Lynch
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

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



Re: [PHP] Session problems

2005-07-13 Thread Richard Lynch


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=postinput name=test
 type=textinput name= type=submit/form
 [/test1.php]

 [test.php]
 ?php
 include 'one.php';
 echo SESSIONS: ;
 print_r( $_SESSION );
 echo BRPOSTS: ;
 print_r( $_POST );
 echo BRGETS: ;
 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

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



Re: [PHP] PHP and undelivered mail

2005-07-13 Thread Richard Lynch
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

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



Re: [PHP] zlib.output_compression

2005-07-13 Thread Mikey

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 [EMAIL PROTECTED] 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

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



Re: [PHP] zlib.output_compression

2005-07-13 Thread LacaK
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 [EMAIL PROTECTED] 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


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



[PHP] Re: Missing or wrong reply-to headers in this mailing list

2005-07-13 Thread Alan Milnes

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

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



[PHP] Blocking login on the same username from diffrent computers

2005-07-13 Thread YaronKh
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

 

 

 



Re: [PHP] Blocking login on the same username from diffrent computers

2005-07-13 Thread Raz
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

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



[PHP] Re: How to read PHP variables.

2005-07-13 Thread Jasper Bryant-Greene

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

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



Re: [PHP] connecting to MySQL from a Mac

2005-07-13 Thread Burhan Khalid

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

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



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

2005-07-13 Thread Ahmed Saad
Hi jeffrey,

On 7/13/05, Jeffrey [EMAIL PROTECTED] 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

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



[PHP] Logout help needed

2005-07-13 Thread suma parakala

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!


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



Re: [PHP] Session problems

2005-07-13 Thread Ahmed Saad
On 7/13/05, Richard Lynch [EMAIL PROTECTED] 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

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



[PHP] PHP error_log format doesn't include timestamp?

2005-07-13 Thread Lawrence Kennon
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

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



Re: [PHP] Logout help needed

2005-07-13 Thread Ahmed Saad
Hi Suma,

On 7/11/05, suma parakala [EMAIL PROTECTED] 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

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



[PHP] Re: Session problems [SOLVED]

2005-07-13 Thread Jason
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=postinput name=test
 type=textinput name= type=submit/form
 [/test1.php]
 
 [test.php]
 ?php
 include 'one.php';
 echo SESSIONS: ;
 print_r( $_SESSION );
 echo BRPOSTS: ;
 print_r( $_POST );
 echo BRGETS: ;
 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
[EMAIL PROTECTED]

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



[PHP] Re: Blocking login on the same username from diffrent computers

2005-07-13 Thread Aaron Greenspan

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

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



Re: [PHP] OT - Fonts

2005-07-13 Thread Marek Kilimajer

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 :)

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



[PHP] How to run .sql files using php

2005-07-13 Thread babu
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

RE: [PHP] How to run .sql files using php

2005-07-13 Thread Shaw, Chris - Accenture

Can you use mysqli_multi_query for mysql in php5?

hth

-Original Message-
From: babu [mailto:[EMAIL PROTECTED]
Sent: 13 July 2005 16:39
To: php-general@lists.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



Re: [PHP] How to run .sql files using php

2005-07-13 Thread glumtail
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 [EMAIL PROTECTED]: 
 
 
 Can you use mysqli_multi_query for mysql in php5?
 
 hth
 
 -Original Message-
 From: babu [mailto:[EMAIL PROTECTED]
 Sent: 13 July 2005 16:39
 To: php-general@lists.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
 



[PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
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


Re: [PHP] 404 error - why???!!

2005-07-13 Thread Richard Davey
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

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



Re: [PHP] 404 error - why???!!

2005-07-13 Thread glumtail
Hi:
 1. did you copy php4isap.dll to /php folder?
2. in local disk?


 2005/7/14, Grosz, Steve (IPG IT) [EMAIL PROTECTED]: 
 
 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
 



[PHP] DAO/VO Pattern Help

2005-07-13 Thread Jed R. Brubaker
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! 

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



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
Yes, the dll file is on the server, in the /php directory

Steve 

-Original Message-
From: glumtail [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 10:18 AM
To: php-general@lists.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) [EMAIL PROTECTED]: 
 
 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
 


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



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
Regular .htm files work just fine.  Its kinda strange.. 

-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 10:18 AM
To: php-general@lists.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



[PHP] Time Zone names

2005-07-13 Thread Richard Lynch
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



Re: [PHP] 404 error - why???!!

2005-07-13 Thread glumtail
Hello Steve,
 is the ISAPI loaded success?
what's your PHP version? Version 4.x works fine.

 2005/7/14, Grosz, Steve (IPG IT) [EMAIL PROTECTED]: 
 
 Regular .htm files work just fine. Its kinda strange..
 
 -Original Message-
 From: Richard Davey [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 10:18 AM
 To: php-general@lists.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
 



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
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:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 11:00 AM
To: php-general@lists.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) [EMAIL PROTECTED]: 
 
 Regular .htm files work just fine. Its kinda strange..
 
 -Original Message-
 From: Richard Davey [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 10:18 AM
 To: php-general@lists.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



Re: [PHP] Time Zone names

2005-07-13 Thread Dotan Cohen
On 7/13/05, Richard Lynch [EMAIL PROTECTED] 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

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



RE: [PHP] DAO/VO Pattern Help

2005-07-13 Thread Michael Sims
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

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



Re: [PHP] 404 error - why???!!

2005-07-13 Thread glumtail
Hello Steve,
 Administrator tools - Internet Services Manager - Default Web Site - 
ISAPI 

 2005/7/14, Grosz, Steve (IPG IT) [EMAIL PROTECTED]: 
 
 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:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 11:00 AM
 To: php-general@lists.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) [EMAIL PROTECTED]:
 
  Regular .htm files work just fine. Its kinda strange..
 
  -Original Message-
  From: Richard Davey [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 13, 2005 10:18 AM
  To: php-general@lists.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
 



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
Ohthat!! :) 

-Original Message-
From: glumtail [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-general@lists.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) [EMAIL PROTECTED]: 
 
 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:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 11:00 AM
 To: php-general@lists.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) [EMAIL PROTECTED]:
 
  Regular .htm files work just fine. Its kinda strange..
 
  -Original Message-
  From: Richard Davey [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 13, 2005 10:18 AM
  To: php-general@lists.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



[PHP] I have a mail in text plain, how i can imap_fetchstructure() ?

2005-07-13 Thread Your Name
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.

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



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
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:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-general@lists.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) [EMAIL PROTECTED]: 
 
 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:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 11:00 AM
 To: php-general@lists.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) [EMAIL PROTECTED]:
 
  Regular .htm files work just fine. Its kinda strange..
 
  -Original Message-
  From: Richard Davey [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 13, 2005 10:18 AM
  To: php-general@lists.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



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
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:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-general@lists.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) [EMAIL PROTECTED]: 
 
 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:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 11:00 AM
 To: php-general@lists.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) [EMAIL PROTECTED]:
 
  Regular .htm files work just fine. Its kinda strange..
 
  -Original Message-
  From: Richard Davey [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 13, 2005 10:18 AM
  To: php-general@lists.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



Re: [PHP] 404 error - why???!!

2005-07-13 Thread glumtail
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) [EMAIL PROTECTED]: 
 
 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:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 11:10 AM
 To: php-general@lists.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) [EMAIL PROTECTED]:
 
  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:[EMAIL PROTECTED]
  Sent: Wednesday, July 13, 2005 11:00 AM
  To: php-general@lists.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) [EMAIL PROTECTED]:
  
   Regular .htm files work just fine. Its kinda strange..
  
   -Original Message-
   From: Richard Davey [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 13, 2005 10:18 AM
   To: php-general@lists.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
 



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
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:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 12:05 PM
To: php-general@lists.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) [EMAIL PROTECTED]: 
 
 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:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 11:10 AM
 To: php-general@lists.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) [EMAIL PROTECTED]:
 
  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:[EMAIL PROTECTED]
  Sent: Wednesday, July 13, 2005 11:00 AM
  To: php-general@lists.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) [EMAIL PROTECTED]:
  
   Regular .htm files work just fine. Its kinda strange..
  
   -Original Message-
   From: Richard Davey [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 13, 2005 10:18 AM
   To: php-general@lists.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
 


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



Re: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-13 Thread Charles Stuart


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  
redin HTML/red?






cs

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



Re: [PHP] 404 error - why???!!

2005-07-13 Thread Joseph
Steve, I may have missed this response, if this is a repeat please 
excuse me...


Make sure you have the correct mysql and php versions to run phpBB. I 
had 404 errors with a blogging/forum application where the index file 
moved to another page. But because there were some errors in setup the 
page came up as 404.


You might try to put this in a page:  info.php

html
body
?php
phpinfo();
?
/body
/html

Then go to the page, this will let you know if php is running. I have a 
feeling it is the BB which is having the problem.


jzf

Grosz, Steve (IPG IT) wrote:


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:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 12:05 PM

To: php-general@lists.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) [EMAIL PROTECTED]: 
 

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:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-general@lists.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) [EMAIL PROTECTED]:
   

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:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 11:00 AM
To: php-general@lists.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) [EMAIL PROTECTED]:
 


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

-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 10:18 AM
To: php-general@lists.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



   



 



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



RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
I appreciate the try, but no, I still get a 404 error. :) 

This is killing me!! 

-Original Message-
From: Joseph [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 12:34 PM
To: Grosz, Steve (IPG IT)
Cc: php-general@lists.php.net
Subject: Re: [PHP] 404 error - why???!!

Steve, I may have missed this response, if this is a repeat please
excuse me...

Make sure you have the correct mysql and php versions to run phpBB. I
had 404 errors with a blogging/forum application where the index file
moved to another page. But because there were some errors in setup the
page came up as 404.

You might try to put this in a page:  info.php

html
body
?php
phpinfo();
?
/body
/html

Then go to the page, this will let you know if php is running. I have a
feeling it is the BB which is having the problem.

jzf

Grosz, Steve (IPG IT) wrote:

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:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 12:05 PM
To: php-general@lists.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) [EMAIL PROTECTED]: 
  

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:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 11:10 AM
To: php-general@lists.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) [EMAIL PROTECTED]:


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:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 11:00 AM
To: php-general@lists.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) [EMAIL PROTECTED]:
  

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

-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 10:18 AM
To: php-general@lists.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
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





  


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



Re: [PHP] Time Zone names

2005-07-13 Thread Philip Hallstrom

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?


We did this for our app... we're always on FreeBSD though, but I imagine 
the same files exist on Linux/others just somewhere else...


define(ZONETAB, /usr/share/zoneinfo/zone.tab);
$fd = @fopen(ZONETAB, r);
if (!$fd) {
print(option value='GMT'GMT);
} else {
while (!feof($fd)) {
$line = fgets($fd);
if (ereg(^US\t, $line)) {
list($x, $x, $tz_file, $tz_name) = explode(\t, 
trim($line));

print(option value='$tz_file'$tz_name);
}
}
fclose($fd);
}

Gives you a kind of odd format though (we needed the actual timezone file name,
not the offset), but maybe this gets you closer...

option value='America/New_York' Eastern Time
option value='America/Detroit' Eastern Time - Michigan - most locations
option value='America/Louisville' Eastern Time - Kentucky - Louisville area
option value='America/Kentucky/Monticello' Eastern Time - Kentucky - Wayne 
County
option value='America/Indianapolis' Eastern Standard Time - Indiana - most 
locations
option value='America/Indiana/Marengo' Eastern Standard Time - Indiana - 
Crawford County
option value='America/Indiana/Knox' Eastern Standard Time - Indiana - Starke 
County
option value='America/Indiana/Vevay' Eastern Standard Time - Indiana - 
Switzerland County
option value='America/Chicago' Central Time
option value='America/Menominee' Central Time - Michigan - Wisconsin border
option value='America/North_Dakota/Center' Central Time - North Dakota - 
Oliver County
option value='America/Denver' Mountain Time
option value='America/Boise' Mountain Time - south Idaho  east Oregon
option value='America/Shiprock' Mountain Time - Navajo
option value='America/Phoenix' Mountain Standard Time - Arizona
option value='America/Los_Angeles' selectedPacific Time
option value='America/Anchorage' Alaska Time
option value='America/Juneau' Alaska Time - Alaska panhandle
option value='America/Yakutat' Alaska Time - Alaska panhandle neck
option value='America/Nome' Alaska Time - west Alaska
option value='America/Adak' Aleutian Islands
option value='Pacific/Honolulu' Hawaii

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



[PHP] Re: DAO/VO Pattern Help

2005-07-13 Thread Manuel Lemos

Hello,

on 07/13/2005 01:28 PM Jed R. Brubaker said the following:
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?


You may want to take a look at Metastorage. It is a mature 
Object-Relational mapping (ORM) code generation tool.


It lets you design the classes of your application persistent objects 
using a simple XML format that defines the class variables, 
relationships, validation rules and define the types of functions that 
you want to manipulate the objects.


Then it generates the ORM classes, classes to install or update your 
database schema, so you do not have to hand code SQL.


It also supports an Object Query Language (OQL) that lets you define 
search expressions that are converted into efficient SQL to let your 
search and retrieve persistent objects that satisfy a given condition, 
all without writing a single line of SQL.


Here you may find more about it:

http://www.meta-language.net/metastorage.html

Screenshots of the Web interface:

http://www.meta-language.net/screenshots.html

A tutorial:

http://www.meta-language.net/metastorage-tutorial.html


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

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



[PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
In installing PHP4 on Win2003/IIS 6, I have noticed that only 1 dll file
is used on the ISAPI install.
 
What is the php4ts.dll file used for?  And do I need to add it into my
ISAPI area within IIS or just use the php4isapi.dll file...
 
Steve


Re: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Mikey

Grosz, Steve (IPG IT) wrote:


In installing PHP4 on Win2003/IIS 6, I have noticed that only 1 dll file
is used on the ISAPI install.

What is the php4ts.dll file used for?  And do I need to add it into my
ISAPI area within IIS or just use the php4isapi.dll file...

Steve

 

Well, as per the installation instructions, that dll needs to be in your 
system path - system32 is the best place for it.


hth,

Mikey

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



[PHP] 404 Header Problems

2005-07-13 Thread Scott Taylor


I'm trying to issue a 404 header on one of my pages.  But it does not 
redirect.  I figured, with many function calls before it, that it might 
be outputting something to the screen before the header() command was 
issued.  So, I tried issuing a 404 header from a new page, consisting of 
this code:


?
header(HTTP/1.0 404 Not Found);
exit();
?

or
?
header(HTTP/1.0 404 Not Found);
?

But neither of these work.  Notice how there should also be no ouput to 
the screen before the header is closed.


I've also tried:

?
|header(Status: 404 Not Found);
?

which gives the same results.  The results are this: an output of 
htmlhead/head/html.  I'm on a large shared server, and my guess 
is that when there is a bug with some code in php, the server chooses to 
ouput this instead of the actual error code(s).  I've experienced this 
many times when I upload a page and there is a simple syntax error such 
as one semi-colon missing from a statment.  This is probably so that the 
server doesn't get hacked.



If I try to issue both commands, in either order, I get this:


Not Found

The requested URL /cgi-sys/php.cgi/testing_server/404_error.php was not 
found on this server.


Additionally, a 500 Internal Server Error error was encountered while 
trying to use an ErrorDocument to handle the request.


Sowhat's going on here?  Am I to conclude that the 404 header does 
not work, and that I should just use a Redirect: header() to my 404 page?


Best Regards,

Scott Taylor

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



RE: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
I'm afraid it didn't help.  I know the php4ts.dll need to be in the
path, and the instructions say that if that file is in the /php
directory, and there is a Path to that directory, all should be fine.

I'm curious if within IIS I use  php4isapi.dll for my extension and
ISAPI filter.

-Original Message-
From: Mikey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 1:38 PM
To: php-general@lists.php.net
Subject: Re: [PHP] 404 error - DLL files needed ??

Grosz, Steve (IPG IT) wrote:

In installing PHP4 on Win2003/IIS 6, I have noticed that only 1 dll 
file is used on the ISAPI install.
 
What is the php4ts.dll file used for?  And do I need to add it into my 
ISAPI area within IIS or just use the php4isapi.dll file...
 
Steve

  

Well, as per the installation instructions, that dll needs to be in your
system path - system32 is the best place for it.

hth,

Mikey

--
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



Re: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread glumtail
Dear Steve:
 php4ts.dll is needed by php4isapi.dll.
if you can visit your pages in wwwroot folder, just try to rename that page 
to php extension.
e.g: rename postinfo.html to postinfo.php
 C:\PHP
│ install.txt
│ license.txt
│ magic.mime
│ news.txt
│ php-cli.exe
│ php.exe
│ php.gif
│ php.ini
│ php.ini-dist
│ php.ini-recommended
│ php4embed.lib
│ php4isapi.dll
│ php4ts.dll
│ php4ts.lib
│ 
├─dlls
│ 
├─extensions
│ 
├─mibs
│ 
├─openssl
│ 
├─pdf-related
│ 
└─sapi



 2005/7/14, Grosz, Steve (IPG IT) [EMAIL PROTECTED]: 
 
 I'm afraid it didn't help. I know the php4ts.dll need to be in the
 path, and the instructions say that if that file is in the /php
 directory, and there is a Path to that directory, all should be fine.
 
 I'm curious if within IIS I use php4isapi.dll for my extension and
 ISAPI filter.
 
 -Original Message-
 From: Mikey [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 1:38 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] 404 error - DLL files needed ??
 
 Grosz, Steve (IPG IT) wrote:
 
 In installing PHP4 on Win2003/IIS 6, I have noticed that only 1 dll
 file is used on the ISAPI install.
 
 What is the php4ts.dll file used for? And do I need to add it into my
 ISAPI area within IIS or just use the php4isapi.dll file...
 
 Steve
 
 
 
 Well, as per the installation instructions, that dll needs to be in your
 system path - system32 is the best place for it.
 
 hth,
 
 Mikey
 
 --
 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
 



RE: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
I tried that, renamed a txt file to .php, but when I try to get the .php file, 
I just get a 404 error. 

-Original Message-
From: glumtail [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 2:15 PM
To: php-general@lists.php.net
Subject: Re: [PHP] 404 error - DLL files needed ??

Dear Steve:
 php4ts.dll is needed by php4isapi.dll.
if you can visit your pages in wwwroot folder, just try to rename that page to 
php extension.
e.g: rename postinfo.html to postinfo.php  C:\PHP │ install.txt │ license.txt │ 
magic.mime │ news.txt │ php-cli.exe │ php.exe │ php.gif │ php.ini │ 
php.ini-dist │ php.ini-recommended │ php4embed.lib │ php4isapi.dll │ php4ts.dll 
│ php4ts.lib │ ├─dlls │ ├─extensions │ ├─mibs │ ├─openssl │ ├─pdf-related │ 
└─sapi



 2005/7/14, Grosz, Steve (IPG IT) [EMAIL PROTECTED]: 
 
 I'm afraid it didn't help. I know the php4ts.dll need to be in the 
 path, and the instructions say that if that file is in the /php 
 directory, and there is a Path to that directory, all should be fine.
 
 I'm curious if within IIS I use php4isapi.dll for my extension and 
 ISAPI filter.
 
 -Original Message-
 From: Mikey [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 1:38 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] 404 error - DLL files needed ??
 
 Grosz, Steve (IPG IT) wrote:
 
 In installing PHP4 on Win2003/IIS 6, I have noticed that only 1 dll 
 file is used on the ISAPI install.
 
 What is the php4ts.dll file used for? And do I need to add it into my 
 ISAPI area within IIS or just use the php4isapi.dll file...
 
 Steve
 
 
 
 Well, as per the installation instructions, that dll needs to be in 
 your system path - system32 is the best place for it.
 
 hth,
 
 Mikey
 
 --
 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] Install directions for Win2003 SP1??

2005-07-13 Thread Grosz, Steve (IPG IT)
Does anyone have a step by step, screenshots would be great, of how to
install PHP 4.x on a Win2003 SP1 server?
 
I've tried going through the install instructions on PHP.net's site for
windows, but its still not working, so I think I'm missing something
somewhere along the way.
 
Thanks!
Steve


[PHP] Re: 404 Header Problems

2005-07-13 Thread Jasper Bryant-Greene

Scott Taylor wrote:
I'm trying to issue a 404 header on one of my pages.  But it does not 
redirect.  I figured, with many function calls before it, that it might 
be outputting something to the screen before the header() command was 
issued.  So, I tried issuing a 404 header from a new page, consisting of 
this code:


Issuing a 404 header on a PHP page will not cause the server to redirect 
to the standard 404 error page. This behaviour is by design, and is 
because of the order in which the request is dealt with.


All you need to do is issue a 404 Not Found header and include() the 404 
error page you've set up in Apache config.


Jasper

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



Re: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Tjoekbezoer van Damme
On 7/13/05, Grosz, Steve (IPG IT) [EMAIL PROTECTED] wrote:
 I tried that, renamed a txt file to .php, but when I try to get the .php 
 file, I just get a 404 error.

Grosz, this might very well be your webserver invoking. By default,
IIS 6.0 all webserver extensions (like PHP). To check if your server
still does, open up your IIS manager
(Start-Run-'c:\windows\system32\inetsrv\iis.msc') Then browse to Web
Service Extensions on the left. If you did install PHP correctly you
should see PHP appearing in the list on the right. Set it to
'Allowed'. Now try requesting the page via your browser again.


Good luck!

Tjoekbezoer

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



RE: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
 Tjoekbezoer,

I can tell you that it is there, because I manually added it, and it is
set to 'allowed'.

Steve

-Original Message-
From: Tjoekbezoer van Damme [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 3:52 PM
To: php-general@lists.php.net
Subject: Re: [PHP] 404 error - DLL files needed ??

On 7/13/05, Grosz, Steve (IPG IT) [EMAIL PROTECTED] wrote:
 I tried that, renamed a txt file to .php, but when I try to get the
.php file, I just get a 404 error.

Grosz, this might very well be your webserver invoking. By default, IIS
6.0 all webserver extensions (like PHP). To check if your server still
does, open up your IIS manager
(Start-Run-'c:\windows\system32\inetsrv\iis.msc') Then browse to Web
Service Extensions on the left. If you did install PHP correctly you
should see PHP appearing in the list on the right. Set it to 'Allowed'.
Now try requesting the page via your browser again.


Good luck!

Tjoekbezoer

--
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] New Install Question

2005-07-13 Thread php

We just set up a new webserver using Apache 2 and PHP5. When I
transferred all the files over from my old server, I saw that none of
the PHP files are being rendered (i.e. I see the PHP source instead of
the resulting HTML).  

Here is the PHP.conf file we are using:
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

  
LoadModule php5_module modules/libphp5.so

  
#
# Cause the PHP interpreter handle files with a .php extension.
#
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
/Files

  
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php


What am I doing wrong?  Or there another setting I need to set
somewhere?

Thanks,
Robbert van Andel

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



Re: [PHP] New Install Question

2005-07-13 Thread php

Never mind, I answered my own question.  I added AddType
application/x-httpd-php .php to the bottom of php.conf and that fixed
the problem.  We did not have that with our old system running php4.


[EMAIL PROTECTED] wrote on 07/14/2005, 12:40:02 AM:
 
 We just set up a new webserver using Apache 2 and PHP5. When I
 transferred all the files over from my old server, I saw that none of
 the PHP files are being rendered (i.e. I see the PHP source instead of
 the resulting HTML).  
 
 Here is the PHP.conf file we are using:
 #
 # PHP is an HTML-embedded scripting language which attempts to make it
 # easy for developers to write dynamically generated webpages.
 #
 
   
 LoadModule php5_module modules/libphp5.so
 
   
 #
 # Cause the PHP interpreter handle files with a .php extension.
 #
 
 SetOutputFilter PHP
 SetInputFilter PHP
 LimitRequestBody 524288
 
 
   
 #
 # Add index.php to the list of files that will be served as directory
 # indexes.
 #
 DirectoryIndex index.php
 
 
 What am I doing wrong?  Or there another setting I need to set
 somewhere?
 
 Thanks,
 Robbert van Andel
 
 -- 
 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] Dynamic Images and File Permissions

2005-07-13 Thread Adam Hubscher
I have a script that generates, creates, and updates dynamic banner 
images for users of a service.


Recently I have run into a problem with file permissions... that has 
thoroughly annoyed me. I found a solution to fix the problem, however, 
it was then hit with another problem, and I'm not sure how secure I find 
my solution to be.


During the image creation process, the files are given the normal image 
permission of 644 (rw-r--r--). Of course, this makes updating impossible.


I attempted to use a simple chmod();, however, the script didnt have the 
permissions to do this. I couldnt figure out a way to fix this, so I 
moved on to looking for other solutions.


I ended up with somethign that worked, slightly, but did not provide me 
with an actual fix due to another problem. I would connect to the folder 
via local FTP, then using ftp_site run a direct CHMOD on the files.


However, in doing this, I feel that the script itself is insecure. Also, 
it didnt work in the end. After running the update script, to test out 
my new solution, I was confronted with a new problem that I didnt 
understand.


The FTP command returned Bad File Descriptor after executing the 
CHMOD. After attempting in a few other of my own FTP clients, I ran into 
-exactly- the same problem.


My questions are this:

A) Is there any way to set the permissions on the file on creation of 
the image?
B) If no, is there a way I can do the CHMOD, even though chmod(); 
returned insufficient permissions to do so?
C) If no, is there a way I can fix the bad file descriptor, to fix the 
ftp solution I have?


Any other solutions would be able as well, given that they're somewhat 
secure.


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



[PHP] Echo array string index?

2005-07-13 Thread Matt Darby

I have an array setup as such: *$arr['generated text']='generated number';*

What would be the best way to echo the key in a loop?
Seems pretty easy but I've never attempted...

Thanks all!
Matt Darby


[PHP] Re: Echo array string index?

2005-07-13 Thread Adam Hubscher

Matt Darby wrote:

I have an array setup as such: *$arr['generated text']='generated number';*

What would be the best way to echo the key in a loop?
Seems pretty easy but I've never attempted...

Thanks all!
Matt Darby


I'm not sure I understand the question.

You could do foreach($arr as $key = $value) { print($key); }.

There are also a number of functions that get the current key on the 
array's pointer:


http://us2.php.net/manual/en/function.key.php
http://us2.php.net/manual/en/function.array-keys.php

But once again, it really comes down to what exactly it is you want to do...

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



[PHP] Removing special characters

2005-07-13 Thread Computer Programmer
Is there a PHP built-in function to retrieve only the alphanumeric 
characters from a given string?


I know that I can check for alphanumeric characters using the 
function ctype_alphanum () but it won't retrieve the alphanum characters.


I also know that I can use str_replace to replace an array of special 
characters such as the example below:


$str = I*m using html tags with special/chars like | how to get 
rid of it???;

$removeChars = array ('*','?','|','','','/','\\');
$str = str_replace ($removeChars, , $str);

However, could there be a specific function for just retrieving 
alphanumeric characters? or a specific function for just stripping 
special characters? Or maybe a better way to do those things from the 
example given above?


Thanks in advance. :)

___
PHP Version: 4.4.0

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