php-general Digest 6 May 2001 06:39:25 -0000 Issue 669
Topics (messages 51550 through 51586):
Re: Session problem
51550 by: Gyozo Papp
51551 by: Gyozo Papp
Re: Vanishing files.
51552 by: Andrzej Swedrzynski
51555 by: Yasuo Ohgaki
51556 by: Yasuo Ohgaki
51557 by: Andrzej Swedrzynski
51573 by: Andrzej Swedrzynski
Re: "Free" Database Design Program
51553 by: Andrzej Swedrzynski
51578 by: Alexander Skwar
Re: PHP on PWS not working!
51554 by: Thomas Edison Jr.
51558 by: Thomas Edison Jr.
51559 by: Data Driven Design
51563 by: Donald Goodwill
PHP_AUTH_TYPE variable
51560 by: TopFive
PHP_AUTH_TYPE variable, take II
51561 by: TopFive
scripts
51562 by: Paul O'Neil
51564 by: Jack Dempsey
class (not class instance) variables
51565 by: Steven Haryanto
51568 by: Andrzej Swedrzynski
Re: PEAR where should I start?
51566 by: Philip Olson
libphp4.so loading problem
51567 by: Wolfgang Ebneter
Sorry, what is "PWS"
51569 by: heinisch.creaction.de
51570 by: MaD dUCK
51586 by: Thomas Edison Jr.
header() & session problem...
51571 by: Gregor Jaksa
Re: zlib problem
51572 by: Kees Hoekzema
wordwrap
51574 by: shawn
51576 by: Jeff Oien
Re: session_register()
51575 by: Alexander Skwar
Re: something like a C "struct" or "union" in PHP?
51577 by: Arne Borkowski \(borko.net\)
Re: ImageColorTransparent and Netscape?
51579 by: Alexander Skwar
content-type added to php copy, changes file size , adds content-type to start of file
51580 by: Wade Peacock
51581 by: Wade Peacock
Executing an External Program using exec()
51582 by: Chris Anderson
quicker query?
51583 by: Michael Roark
Session save files are size 0
51584 by: beep.ga.prestige.net
can we alias a php cgi in xitami web server?
51585 by: Sombat Khruathong
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
I might be wrong, but AFAIK session is connected to the client and the window or
application exactly.
This means that if you close the browser and
----- Original Message -----
From: "MySQL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 2001. m�jus 5. 19:59
Subject: [PHP] Session problem
> I tried to put sessions to work, but i have a problem to start a session in
> each browser. When i close the browser and start it again the session_id is
> the same, if i start another browser he have the same session id as the
> first one and so on. Can someone tell me why?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Try to empty the web cahce of your browser.
And one more thing, in PHP there is a default time limit while a session is not killed.
[from the manual]
>> session.gc_maxlifetime specifies the number of seconds after which data will be
>seen as 'garbage' and cleaned up.
PHP sees your session a normal one until this time ellapses and continues from where
you stopped.
I might be wrong, but AFAIK session is connected to the client and neither the window
nor application exactly.
This means that if you close the browser and reopen it on the same box this will be
the same client for the server.
ps.: i beg your pardon to post the prevoius incomplete message.
----- Original Message -----
From: "MySQL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 2001. m�jus 5. 19:59
Subject: [PHP] Session problem
> I tried to put sessions to work, but i have a problem to start a session in
> each browser. When i close the browser and start it again the session_id is
> the same, if i start another browser he have the same session id as the
> first one and so on. Can someone tell me why?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
On Sat, 5 May 2001, Yasuo Ohgaki wrote:
> Could we take a look at your code?
Of course. Shall I send whole application or this snippet will
do?
// How the form is specified
<form enctype="multipart/form-data" action="edit_item.php4" method=post>
<input
type="hidden"
name="MAX_FILE_SIZE"
value="<?php echo $metaItem->getMaxImageSize(); ?>"
>
<input type="hidden" name="action" value="<?php echo $action; ?>">
// Some other form elements...
<input name="userfile" type="file">
// Some other form elements...
</form>
// After the file is uploaded
if ( is_uploaded_file( $userfile ) ) {
$extension = strrchr( $userfile_name, '.' );
$item->setImageType( $extension );
$image = $metaItem->getImageDir().'/'.$item->getId().$extension;
move_uploaded_file( $userfile, $image );
chmod( $image, 0400 ); // I've tried without this at first
}
// Class Item
function getId()
{
return $this->id;
}
function setImageType( $image_type )
{
$id = $this->id;
if ( $this->image_type != $image_type ) {
$res = db_exec(
"update ite_items
set ite_image_type = '$image_type'
where ite_id = $id"
);
}
}
// Class MetaItem
function getImageDir()
{
global $imagedir; // Set in configuration file
return $imagedir;
}
function getMaxImageSize()
{
global $ITEM_MAX_IMAGE_SIZE; // Set in configuration file
return $ITEM_MAX_IMAGE_SIZE;
}
I can't find an error by myself. Please help if you can. Thank
you.
Regards,
Andrzej
--
http://kokosz.horyzont.net
http://www.earthdawn.pl
Since I don't use "register_globals=on", this might not be the problem what you
have.
If will have following data in $HTTP_POST_FILES
=============================
$HTTP_POST_FILES
Array
(
[userfile] => Array
(
[name] => Array
(
[0] => README.i18n_eng
[1] =>
)
[type] => Array
(
[0] => text/plain
[1] => application/octet-stream
)
[tmp_name] => Array
(
[0] => /home/httpd/upload_tmp/phpeVlhZN
[1] => none
)
[size] => Array
(
[0] => 23048
[1] => 0
)
)
)
==========================
Your code is using $userfile as scaler value. Could it be the problem?
(Just "echo $userfile". Isn't it array?)
Regards,
--
Yasuo Ohgaki
----- Original Message -----
From: "Andrzej Swedrzynski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
Sent: Sunday, May 06, 2001 3:08 AM
Subject: Re: [PHP] Vanishing files.
> On Sat, 5 May 2001, Yasuo Ohgaki wrote:
>
> > Could we take a look at your code?
>
> Of course. Shall I send whole application or this snippet will
> do?
>
> // How the form is specified
>
> <form enctype="multipart/form-data" action="edit_item.php4" method=post>
> <input
> type="hidden"
> name="MAX_FILE_SIZE"
> value="<?php echo $metaItem->getMaxImageSize(); ?>"
> >
> <input type="hidden" name="action" value="<?php echo $action; ?>">
> // Some other form elements...
> <input name="userfile" type="file">
> // Some other form elements...
> </form>
>
>
> // After the file is uploaded
>
> if ( is_uploaded_file( $userfile ) ) {
> $extension = strrchr( $userfile_name, '.' );
> $item->setImageType( $extension );
> $image = $metaItem->getImageDir().'/'.$item->getId().$extension;
> move_uploaded_file( $userfile, $image );
> chmod( $image, 0400 ); // I've tried without this at first
> }
>
>
> // Class Item
>
> function getId()
> {
> return $this->id;
> }
>
> function setImageType( $image_type )
> {
> $id = $this->id;
>
> if ( $this->image_type != $image_type ) {
> $res = db_exec(
> "update ite_items
> set ite_image_type = '$image_type'
> where ite_id = $id"
> );
> }
> }
>
>
> // Class MetaItem
>
> function getImageDir()
> {
> global $imagedir; // Set in configuration file
> return $imagedir;
> }
>
> function getMaxImageSize()
> {
> global $ITEM_MAX_IMAGE_SIZE; // Set in configuration file
> return $ITEM_MAX_IMAGE_SIZE;
> }
>
> I can't find an error by myself. Please help if you can. Thank
> you.
>
> Regards,
>
> Andrzej
>
> --
> http://kokosz.horyzont.net
> http://www.earthdawn.pl
>
>
""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Since I don't use "register_globals=on", this might not be the problem what
you
> have.
>
> If will have following data in $HTTP_POST_FILES
This line should be
I will have following data in $HTTP_POST_FILES
--
Yasuo Ohgaki
On Sun, 6 May 2001, Yasuo Ohgaki wrote:
> Since I don't use "register_globals=on", this might not be the problem what you
> have.
[snip]
> Your code is using $userfile as scaler value. Could it be the problem?
> (Just "echo $userfile". Isn't it array?)
No, it's string, I've checked it. I completely do not understand
this behaviour of system...
Thanks for interest.
Regards,
Andrzej
--
http://kokosz.horyzont.net
http://www.earthdawn.pl
Hello!
I want to apologize for wasting your time. Recently I wrote about
vanishing files uploaded to php script. It was my fault. Since I
use rsync to send scripts to server it simply automatically dele
ted all files uploaded using php script which where stored in one
of the subdirectories. Once again I am very, very sorry.
Regards,
Andrzej
--
http://kokosz.horyzont.net
http://www.earthdawn.pl
On Sat, 5 May 2001, Augusto Cesar Castoldi wrote:
> But I need a program that I can document my database and even the script.
> The "relationships" of tables, the primary keys.
The very limited capability of drawing ERD (Entity Relationship
Diagram) in Chen notation can be found in dia (BTW great pro
gram). I have used it successfully for small project. For larger
ones I used Oracle Designer, but it's only for Oracle and I do
not suppose that it's free.
Good luck,
Andrzej
--
http://kokosz.horyzont.net
http://www.earthdawn.pl
So sprach Andrzej Swedrzynski am Sat, May 05, 2001 at 08:23:21PM +0200:
> The very limited capability of drawing ERD (Entity Relationship
> Diagram) in Chen notation can be found in dia (BTW great pro�
Compared to ERWin, this is indeed *VERY* limited - but maybe I was just
unsuccessful, but eg. how can you define keys in an entity in dia?
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die g�nstige Art an Linux Distributionen zu kommen
Uptime: 1 day 7 hours 38 minutes
nothing does seem to work...i don't know what the hell
is the problem!! i did put this :
> C:\\php\\sapi\\php4isapi.dll
in the regedit file and it looks great. everything is
just so by the book. where the hell am i going wrong!!
can't understand what's different here that was not
before coz it was working before!!!
did you define any path in the
doc_root =
in php.ini? because i didn't!
Cheers,
T. Edison jr.
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
would you believe it, i did!! still not working. still
giving the "500 Internal Server Error". I uninstalled
& then reinstalled PWS. cooked up the settings
again...and no response!!
T. Edison jr.
--- Data Driven Design <[EMAIL PROTECTED]>
wrote:
> Did you copy the php4ts.dll to your windows/system
> directory? I think I had
> to do that even though it wasn't in the directions
>
> Data Driven Design
> P.O. Box 1084
> Holly Hill, Florida 32125-1084
>
> http://www.datadrivendesign.com
> http://www.rossidesigns.net
> ----- Original Message -----
> From: Thomas Edison Jr. <[EMAIL PROTECTED]>
> To: Data Driven Design <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, May 05, 2001 2:44 PM
> Subject: Re: [PHP] PHP on PWS not working!
>
>
> > nothing does seem to work...i don't know what the
> hell
> > is the problem!! i did put this :
> >
> > > C:\\php\\sapi\\php4isapi.dll
> >
> > in the regedit file and it looks great. everything
> is
> > just so by the book. where the hell am i going
> wrong!!
> > can't understand what's different here that was
> not
> > before coz it was working before!!!
> >
> > did you define any path in the
> >
> > doc_root =
> >
> > in php.ini? because i didn't!
> >
> > Cheers,
> > T. Edison jr.
> >
> >
> >
> >
> > =====
> > Rahul S. Johari (Director)
> > ******************************************
> > Abraxas Technologies Inc.
> > Homepage : http://www.abraxastech.com
> > Email : [EMAIL PROTECTED]
> > Tel : 91-4546512/4522124
> > *******************************************
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.yahoo.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
Maybe somebody who REALLY knows can help, because it appears to me that
you've done everything right.
Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084
http://www.datadrivendesign.com
http://www.rossidesigns.net
----- Original Message -----
From: Thomas Edison Jr. <[EMAIL PROTECTED]>
To: Data Driven Design <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, May 05, 2001 3:30 PM
Subject: Re: [PHP] PHP on PWS not working!
> would you believe it, i did!! still not working. still
> giving the "500 Internal Server Error". I uninstalled
> & then reinstalled PWS. cooked up the settings
> again...and no response!!
>
> T. Edison jr.
>
> --- Data Driven Design <[EMAIL PROTECTED]>
> wrote:
> > Did you copy the php4ts.dll to your windows/system
> > directory? I think I had
> > to do that even though it wasn't in the directions
> >
> > Data Driven Design
> > P.O. Box 1084
> > Holly Hill, Florida 32125-1084
> >
> > http://www.datadrivendesign.com
> > http://www.rossidesigns.net
> > ----- Original Message -----
> > From: Thomas Edison Jr. <[EMAIL PROTECTED]>
> > To: Data Driven Design <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Saturday, May 05, 2001 2:44 PM
> > Subject: Re: [PHP] PHP on PWS not working!
> >
> >
> > > nothing does seem to work...i don't know what the
> > hell
> > > is the problem!! i did put this :
> > >
> > > > C:\\php\\sapi\\php4isapi.dll
> > >
> > > in the regedit file and it looks great. everything
> > is
> > > just so by the book. where the hell am i going
> > wrong!!
> > > can't understand what's different here that was
> > not
> > > before coz it was working before!!!
> > >
> > > did you define any path in the
> > >
> > > doc_root =
> > >
> > > in php.ini? because i didn't!
> > >
> > > Cheers,
> > > T. Edison jr.
> > >
> > >
> > >
> > >
> > > =====
> > > Rahul S. Johari (Director)
> > > ******************************************
> > > Abraxas Technologies Inc.
> > > Homepage : http://www.abraxastech.com
> > > Email : [EMAIL PROTECTED]
> > > Tel : 91-4546512/4522124
> > > *******************************************
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> *******************************************
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
I couldn't find your original message, but here are
some ideas:
1. Rename php.ini-dist to php.ini (if you haven't)
2. Simplify your script
3. Try changing your directory properties in PWS:
Read/Execute/Scripts - try different combinations
--- "Thomas Edison Jr." <[EMAIL PROTECTED]>
wrote:
> would you believe it, i did!! still not working.
> still
> giving the "500 Internal Server Error". I
> uninstalled
> & then reinstalled PWS. cooked up the settings
> again...and no response!!
>
> T. Edison jr.
>
> --- Data Driven Design <[EMAIL PROTECTED]>
> wrote:
> > Did you copy the php4ts.dll to your windows/system
> > directory? I think I had
> > to do that even though it wasn't in the directions
> >
> > Data Driven Design
> > P.O. Box 1084
> > Holly Hill, Florida 32125-1084
> >
> > http://www.datadrivendesign.com
> > http://www.rossidesigns.net
> > ----- Original Message -----
> > From: Thomas Edison Jr. <[EMAIL PROTECTED]>
> > To: Data Driven Design <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Saturday, May 05, 2001 2:44 PM
> > Subject: Re: [PHP] PHP on PWS not working!
> >
> >
> > > nothing does seem to work...i don't know what
> the
> > hell
> > > is the problem!! i did put this :
> > >
> > > > C:\\php\\sapi\\php4isapi.dll
> > >
> > > in the regedit file and it looks great.
> everything
> > is
> > > just so by the book. where the hell am i going
> > wrong!!
> > > can't understand what's different here that was
> > not
> > > before coz it was working before!!!
> > >
> > > did you define any path in the
> > >
> > > doc_root =
> > >
> > > in php.ini? because i didn't!
> > >
> > > Cheers,
> > > T. Edison jr.
> > >
> > >
> > >
> > >
> > > =====
> > > Rahul S. Johari (Director)
> > > ******************************************
> > > Abraxas Technologies Inc.
> > > Homepage : http://www.abraxastech.com
> > > Email : [EMAIL PROTECTED]
> > > Tel : 91-4546512/4522124
> > > *******************************************
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at
> great
> > prices
> > > http://auctions.yahoo.com/
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> *******************************************
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
Has anyone been able to successfully use PHP_AUTH_TYPE?
I've implemented PHP_AUTH_USER and PHP_AUTH_PW, but PHP_AUTH_TYPE doesn't
seem to work. After assigning a value to it, on subsequent pages I get an
"Undefined variable" message.
I'm on PHP4 on an Apache server.
Thanks in advance,
Chris
Upon further investigation, I've found that I'm having problems with
all 3 of the authentication variable: PHP_AUTH_USER, PHP_AUTH_PW and
PHP_AUTH_TYPE
I was under the assumption that these 3 were automatically global
variables, and that if I initialized them manually in one page,
they'd be available to any subsequent pages I link to.
Is that thinking flawed? Is there something else I need to do to
initialize these?
I'm on PHP4 on an Apache server.
Thanks in advance,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]
------- End of forwarded message -------
If I have PHP scripts I want in a directory other people can't access, how
do I let those scripts be read by the sever? Like scripts that contain user
and password info or is just have them named "filename.php" secure enough?
You can make the files in the same group as the webserver. I keep my include
files (with a .php extension) in a .phpinclude directory outside my web
document root.
-jack
-----Original Message-----
From: Paul O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 05, 2001 4:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] scripts
If I have PHP scripts I want in a directory other people can't access, how
do I let those scripts be read by the sever? Like scripts that contain user
and password info or is just have them named "filename.php" secure enough?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Am I correct that PHP does not support class variables? That is,
variables that belong to a class and not copied into every object.
I need to put several arrays for information about a class, and I
do not want to bloat every object with this data (since potentially
I will create many instances of the class).
Currently I do this with methods. Any other alternative?
--
sh
On Sun, 6 May 2001, Steven Haryanto wrote:
> Am I correct that PHP does not support class variables? That is,
> variables that belong to a class and not copied into every object.
> I need to put several arrays for information about a class, and I
> do not want to bloat every object with this data (since potentially
> I will create many instances of the class).
>
> Currently I do this with methods. Any other alternative?
For every class I do create additional class called MetaXXX where
XXX is the name of the original class. In the MetaXXX I do decla
re all variables and methods which I would make static in other
language such as C++ or Java. Then I do create one and only one
object of class MetaXXX (called metaXXX for convenience) which is
available in global scope. Hope this will help you.
Regards,
Andrzej
--
http://kokosz.horyzont.net
http://www.earthdawn.pl
Old list archive (last post march 15, 2001) is full of good information :
http://marc.theaimsgroup.com/?l=php-pear
It recently split up into two lists, not quite as populated (yet) :
http://marc.theaimsgroup.com/?l=pear-general
http://marc.theaimsgroup.com/?l=pear-cvs
As you stated, the current pear.php.net is "slim" but you'll note the
documentation link finds it self on php.net where some good growing DOCS
exist on PEAR, have a look around :
http://www.php.net/manual/en/ref.pear.php
A few articles have existed in the past, here are some :
http://www.phpbuilder.com/columns/sean20000712.php3
http://www.phpbuilder.com/columns/allan20010115.php3 (DB)
http://www.vulcanonet.com/soft/pear_tut/ (DB)
You can view the CVS online too, here :
http://cvs.php.net/viewcvs.cgi/php4/pear/
This may also be helpful :
http://www.phpdoc.de/pear/index2.html
regards,
philip
On Sat, 5 May 2001, Gyozo Papp wrote:
> Hello,
>
> after reading thorugh the short introduction about PEAR
> I'd like to know that where I should start.
>
> Can anyone give links to this PHP extension?
>
> At this moment, http://pear.php.net is very "slim".
>
> Thanks in advance
>
> Papp Gyozo
> - [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Hi list,
i've compiled php-4.0.4pl1 with ldap support. It compiled nice and clean. A
"make install" put the lib in apache's libexec directory. When I start apache
I get the following : cannot load .../libphp4.so into server undefined symbol
: ldap_value_free
I checked the ldap.c file and found multiple references to ldap_value_free
but did not find any declaration of the function.
How should I proceed to get a working libphp4.so ?
I've got openldap-1.2.11
apache-1.2.19
Thanks for your help
Wolfgang
It�s time for me to ask:
What is "PWS"? I wanna know what I�m reading about ;-)
TIA Oliver
also sprach [EMAIL PROTECTED] (on Sat, 05 May 2001 11:23:42PM +0200):
> What is "PWS"? I wanna know what I´m reading about ;-)
micro$oft's joke they call "Personal Web Server" - comes installed by
default on win98 by now, doesn't it. Because *everyone* needs a
Personal Web Server.
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
--
"mirrors should reflect a little before throwing back images."
-- jean cocteau
PWS is Personal Web Server. It's a web server by
Microsoft. Practically it's pretty easy to use. You
can install it into any home PC using win98 and
configure PHP on it to use. It supports ASP by default
so you can do you ASP scripting using it.
Latest version of PWS is 4.0! If u're looking for
something esy & fast to get running, PWS is it. It's a
server just like Apache or any other, only, well, it's
Microsoft, and like Mr. Lynch once said, Microsoft &
Stable don't go in the same line. But anyways, it
works ok at home for any kind of work.
T. Edison jr.
--- [EMAIL PROTECTED] wrote:
> It�s time for me to ask:
> What is "PWS"? I wanna know what I�m reading about
> ;-)
> TIA Oliver
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
hello,
let me try to explain my problem..
i have one script in which i set some stuff like sessions and some
cookies...
now i need to call this script from almost every page on my site somehow
like
lets say i'm on page www.url.com/script.php?page=14 and then i call that
other function
Header("Location: /scripts/setvars.php?var1=foo&far2=foo2");
here's now the real problem..what should i put in setvars.php scripts so it
returns to the page i called it from ?
basicly i need to get back to script.php?page=14 ... can anyone help me
if anyone knows any better way i'll be glad to listen
one more thing, i cant use include(setvars.php) couze i need to refresh ...
so i can use cookies right away
and one more question bout sessions..when i set session like
session_register("foo"); do i need to refresh the page before i can use it
like $HTTP_SESSION_VARS["foo"] or can i use it right away ?
(couze first way doesnt work for me( i need to refresh ), maybe i'm doin
something wrong, so i would like some help on this too)
thx in advance
hi Jeroen,
first, try to compile zlib like this:
gunzip -c zlib-1.1.3.tar.gz | tar xf -; \
mv zlib-1.1.3/ zlib; \
cd zlib; \
./configure --static ; \
make; \
cd ..
then compile php 4.0.5 with the
--with-zlib=../zlib directive in the ./configure
that worked for me :)
Kees Hoekzema
[EMAIL PROTECTED]
Sysadmin of
www.tweakers.net www.fokzine.net www.realgamer.nl
-----Oorspronkelijk bericht-----
Van: Jeroen Geusebroek [mailto:[EMAIL PROTECTED]]
Verzonden: zaterdag 5 mei 2001 2:33
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] zlib problem
Hi there,
I'm trying to compile php 4.0.5 with zlib support, but i can't get it to
work.
I'm using Mandrake Linux version 8, and tried to use their zlib packages,
but
i also tried to compile the zlib packege myself (which went well).
Php always says:
Configure: error: Zlib module requires zlib >= 1.0.9.
Needless to say, i am using a version higher then 1.0.9.
I would appreciate it if someone good give me some help. I did not
have this problem with PHP 4.04.
Thanks,
Jeroen Geusebroek
P.s. please CC me in your reply, because at the moment i'm not subscribed to
the
list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Is there a tag in php that acts like "wordwrap=virtual" does in html? I have a script
that is sending out variables in a email from a contact form, but for a comments
section it will not wordwrap in the email.
Thanks
Shawn
> Is there a tag in php that acts like "wordwrap=virtual" does in html? I
> have a script that is sending out variables in a email from a contact
> form, but for a comments section it will not wordwrap in the email.
> Thanks
>
> Shawn
You need to use line breaks \n for lines to wrap in email.
Jeff Oien
http://www.webdesigns1.com/php/
So sprach Matthew Luchak am Fri, May 04, 2001 at 11:57:50AM -0400:
> I would be very interested in hearing of any developments with session
> anomilies..
Although you've posted the question twice in the message, I still think
you've forgot one minor point - your question! :)
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die g�nstige Art an Linux Distributionen zu kommen
Uptime: 1 day 7 hours 28 minutes
Hi Yasuo,
thanks for the hint ... I'll give WDDX a try after some thought
(and because I am using XML anyway).
Regards, Arne
> -----Original Message-----
> From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 05, 2001 2:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] something like a C "struct" or "union" in PHP?
>
>
> PHP does not have struct. You can do similar things with class or
> array. You
> probably interested in wddx serialize or serialize function to
> make it work your
> snippet.
>
> Regards,
> --
> Yasuo Ohgaki
>
>
> ""Arne Borkowski (borko.net)"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi Folks,
> >
> > I want to do the following:
> >
> >
> > $f = fopen($filename", "r");
> >
> > while( !feof($f) ) {
> > $len=1;
> > $RECSIZE=128
> >
> > while($n=1;$n<=$len;$n++)
> > $data = fread($f, $RECSIZE);
> >
> > $rectype = $data[4];
> >
> > switch($rectype) {
> >
> > case "A": $numARec++;
> > $len=1;
> >
> > // do something with the
> > // contents of $data
> >
> > break;
> >
> > case "C": $numCRec++;
> > $len=2; // at least!
> >
> > // do something with the
> > // contents of $data
> >
> > break;
> >
> > case "E": $numERec++;
> > $len=1;
> >
> > // do something with the
> > // contents of $data
> >
> > break;
> > } /* switch */
> >
> > fclose($f);
> >
> > } /* while */
> >
> > This snippet reads a data file in 128 bytes truncs
> > and needs to analyse the contents. As each 128 bytes
> > trunc has a certain structure (say: fields to access)
> > I would appreciate a thing like a C "struct" or so.
> >
> > In C I could eaysly read the RECSIZE bytes into a
> > struct and access certain bytes via a "named" part
> > of it. Is there anything similar to this in PHP? I
> > couldn't find a "struct" or so in the manual. The
> > site's search engine said 41 hits for "struct" in
> > the Web Site content, but didn't show the matching
> > docs?! I need help on "struct" from you guys!
> >
> > TIA
> >
> > -Arne
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
So sprach martin helie am Sat, May 05, 2001 at 11:32:47AM -0400:
> I am stumped with ImageColorTransparent and Netscape.
Netscape 4.x doesn't support transparent PNGs
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die g�nstige Art an Linux Distributionen zu kommen
Uptime: 1 day 7 hours 40 minutes
Hello Gurus,
I have an issue, that I am trying to figure out if it is an Apache config
issue or a PHP issue.
I have written a script to upload file to a directory on my RH7.0 Linux
Apache server. directory has been chmod 777.
I have a problem with my php uploads. the content-type is added at the
beginning of uploaded file. this makes file useless on server. here is my
code for my upload page.
<?php
$archive_dir="../test";
if ($upload) {
$filename = basename($userfile_name);
if(!copy($userfile, "$archive_dir/$filename")) die ("$filename not
copied! - Error!");
echo "File $filename Uploaded";
}
?>
<table border="0" width="751">
<tr>
<td>
<form method="post" enctype="multipart/form-data" action="<? echo $PHP_SELF
?>">
Upload file!
<input type="file" name="userfile">
<input type="SUBMIT" name="upload" VALUE="upload">
</form>
</td>
</tr>
</table>
Any thoughts would be appreciated.
wade
Hello Gurus,
I have an issue, that I am trying to figure out if it is an Apache config
issue or a PHP issue.
I have written a script to upload file to a directory on my RH7.0 Linux
Apache server. directory has been chmod 777.
I have a problem with my php uploads. the content-type is added at the
beginning of uploaded file. this makes file useless on server. here is my
code for my upload page.
<?php
$archive_dir="../test";
if ($upload) {
$filename = basename($userfile_name);
if(!copy($userfile, "$archive_dir/$filename")) die ("$filename not
copied! - Error!");
echo "File $filename Uploaded";
}
?>
<table border="0" width="751">
<tr>
<td>
<form method="post" enctype="multipart/form-data" action="<? echo $PHP_SELF
?>">
Upload file!
<input type="file" name="userfile">
<input type="SUBMIT" name="upload" VALUE="upload">
</form>
</td>
</tr>
</table>
Any thoughts would be appreciated.
Wade Peacock
Webmaster
www.FamilyAlbum.ca
[EMAIL PROTECTED]
ICQ: 97998231
Alright, I've been doing GTK work recently and decided I wanted a way
to remove that damn PHP console that appears in the background. So to
accomplish this, I wrote a C++ program to remove the window. Well the
program works flawlessly on its own, but if php calls it using the
exec() function nothing happens. Nothing at all. Any ideas?
Chris Anderson aka "Null"
--------------------------------------------
PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com
Is there a faster (better) way to do the following:
if ($result) {
for ($cluster=1;$cluster<200;$cluster++) {
for($galaxy=1;$galaxy<26;$galaxy++) {
$sql="insert into galaxy select avg(cluster) as gcluster,sum(size) as gsize,sum(score)
as gscore,avg(galaxy) as ggalaxy from universe where cluster='$cluster' and
galaxy='$galaxy'";
$result=db_query($sql);
Thanks
Michael
Session vars have stopped saving!
code that was working no longer works because the session isnt saved..
I changed the user apache was running as from nobody to web, I'm not
sure how this could have caused it, but this is when it started.
the session files are created, in /tmp, but size 0 nothing is saved in
them.
changing back to user nobody doesnt help either.
anybody have any idea what's gone wrong?
thanks...
...Brian
Hi,
I am new in PHP.
I use Xitami and would like to know if we can aliase a php cgi in xitami like we can
in Perl?
Thanks,
Sombat