php-general Digest 10 Feb 2006 09:47:46 -0000 Issue 3955

Topics (messages 230179 through 230189):

problem with code between 4.3.4rc1 & upgrading to php 4.4.2
        230179 by: Brent
        230181 by: Curt Zirzow

Limitation on PEAR : Spreadsheet_Excel_Writer
        230180 by: Bagus Nugroho

TMP directory
        230182 by: Miguel Guirao
        230183 by: Chris

Re: Sending error_log to screen
        230184 by: Reuben D. Budiardja

Clone of the concurrent users limit of Zend Encoder 4.0 ?
        230185 by: HoWang Wang

static variables
        230186 by: suresh kumar
        230187 by: Hugh Danaher

vaidation and mail function question
        230188 by: Paul Goepfert
        230189 by: Weber Sites LTD

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


----------------------------------------------------------------------
--- Begin Message ---
Hello,
About 2 years ago i setup   Apache/1.3.28 (Unix) PHP/4.3.4RC1
mod_ssl/2.8.15 OpenSSL/0.9.7c  and mysql on BSD Unix and did up some
simple php enabled web pages to add / remove /edit / search  entries to
a 1 table mysql database to keep track of abuse complaints for my company.

This week Ive had to migrate all this to new Solaris 10 box which i
installed Apache/1.3.34 (Unix) PHP/4.4.2 mod_ssl/2.8.25 OpenSSL/0.9.8a
with mysql .  The problem im have is that when i go to search for an
entry through the web interface...it pulls ALL entries in the database
and displays them instead of the ones im searching for.  When i go to
add an entry ...it actually enters a entry to mysql ...but its empty. 
If i try to do an edit on an existing entry ...the form doesnt pull the
existing entries from the database to be edited...Im thinking its
probably something with my syntax that im using is no longer valid with
the new versions of php4. Does anyone have any thoughts or suggestions
??   I can submit some of the code for everyone to look at  ..  Any help
is greatly appreciated

-- 
--
Brent 

--- End Message ---
--- Begin Message ---
On Thu, Feb 09, 2006 at 04:04:49PM -0500, Brent wrote:
> Hello,
> About 2 years ago i setup   Apache/1.3.28 (Unix) PHP/4.3.4RC1
> mod_ssl/2.8.15 OpenSSL/0.9.7c  and mysql on BSD Unix and did up some
> simple php enabled web pages to add / remove /edit / search  entries to
> a 1 table mysql database to keep track of abuse complaints for my company.
> 
> This week Ive had to migrate all this to new Solaris 10 box which i
> installed Apache/1.3.34 (Unix) PHP/4.4.2 mod_ssl/2.8.25 OpenSSL/0.9.8a
> ...
> ??   I can submit some of the code for everyone to look at  ..  Any help
> is greatly appreciated

This sounds like the old version had register_globals [1] set to on.
You'll want to change your code [2] so it works with it off, like:

  $_GET['variable']; or
  $_POST['variable'];

It is strongly advisable to keep it off.

[1] http://php.net/register_globals
[2] http://php.net/language.variables.predefined

Curt.
-- 
cat .signature: No such file or directory

--- End Message ---
--- Begin Message ---
Hello Everyone,
 
I'm succesfully generate report from mysql table using PEAR :
Spreadsheet_Excel_Writer, but I have problem to generate from table
which contain long text, the text is not download completely.
such as .... blablabla.
it only contain .... blab
 
How can manipulate PEAR, to get full text on excel sheet.
 
Thanks in advance
Bgs

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

Hello list,

Does anybody know which is the TMP default directory when uploading file to
the server using PHP?

PHP 7.1.2-7
MySQL 3.23.49-3
APACHE 1.3.23-11
RED HAT LINUX 7.3

-----------------------
Miguel Guirao Aguilera
Logistica R8 TELCEL
Tel. (999) 960.7994


Este mensaje es exclusivamente para el uso de la persona o entidad a quien esta 
dirigido; contiene informacion estrictamente confidencial y legalmente 
protegida, cuya divulgacion es sancionada por la ley. Si el lector de este 
mensaje no es a quien esta dirigido, ni se trata del empleado o agente 
responsable de esta informacion, se le notifica por medio del presente, que su 
reproduccion y distribucion, esta estrictamente prohibida. Si Usted recibio 
este comunicado por error, favor de notificarlo inmediatamente al remitente y 
destruir el mensaje. Todas las opiniones contenidas en este mail son propias 
del autor del mensaje y no necesariamente coinciden con las de Radiomovil 
Dipsa, S.A. de C.V. o alguna de sus empresas controladas, controladoras, 
afiliadas y subsidiarias. Este mensaje intencionalmente no contiene acentos.

This message is for the sole use of the person or entity to whom it is being 
sent.  Therefore, it contains strictly confidential and legally protected 
material whose disclosure is subject to penalty by law.  If the person reading 
this message is not the one to whom it is being sent and/or is not an employee 
or the responsible agent for this information, this person is herein notified 
that any unauthorized dissemination, distribution or copying of the materials 
included in this facsimile is strictly prohibited.  If you received this 
document by mistake please notify  immediately to the subscriber and destroy 
the message. Any opinions contained in this e-mail are those of the author of 
the message and do not necessarily coincide with those of Radiomovil Dipsa, 
S.A. de C.V. or any of its control, controlled, affiliates and subsidiaries 
companies. No part of this message or attachments may be used or reproduced in 
any manner whatsoever.

--- End Message ---
--- Begin Message ---
Hi,

Well, firstly there is no php 7..

By default it should be /tmp - but create a phpinfo page and check that.

Miguel Guirao wrote:

Hello list,

Does anybody know which is the TMP default directory when uploading file to
the server using PHP?

PHP 7.1.2-7
MySQL 3.23.49-3
APACHE 1.3.23-11
RED HAT LINUX 7.3

--- End Message ---
--- Begin Message ---
On Wednesday 08 February 2006 17:24, Curt Zirzow wrote:
> On Wed, Feb 08, 2006 at 01:25:18PM -0500, Reuben D. Budiardja wrote:
> > Hello,
> > For debugging purposes, I have "display_errors = On" in the /etc/php.ini
> > on my development server.
> >
> > I'm trying to use the error_log() function to log errors, however, the
> > string message does not get send to script output (ie. browser), even
> > with
>
> You want to use trigger_error()

That's what I am looking for. Thanks a lot.

RDB
-- 
Reuben D. Budiardja
Dept. Physics and Astronomy
University of Tennessee, Knoxville, TN

--- End Message ---
--- Begin Message ---
Hi all,

The Zend Encoder 4.0 (beta) have a new function in the license manager
which can limit the number of concurrent users. I have wriiten something
to work like it. But I found a problem. My script can limit the number
of concurrent running script only. When the script ends, there is some
data remain in the buffer (of Apache, I think) and the client connection
is still active! How can I solve this? Please help, Thanks.

Regards

--- End Message ---
--- Begin Message ---
hai everbody

            i am facing a problem with static
variable. i declared $count=0 as Static variable,when
i click the link specified in anchor tag my page is
refreshed again and static variable lose its value and
assigned with 0.i want the logic code say  my stsic
variable will not lose scope when i click next,i am
looking forward reply from u.
                                   A.suresh


                
__________________________________________________________ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

--- End Message ---
--- Begin Message ---
Suresh,
You could use the link to pass your variable to the next page, or to the same page:
Instead of
   $count=0;
use
   if (!isset($_GET['count'])) $count=0;
Then for your link use
print "<a href=http://www.whatever.com?count=$count>link to new page</a>"
or use
print "<a href=".$_SERVER['PHP_SELF']."?count=$count>link to same page</a>"
if you want to return to the same page with an updated count.
HTH
HTD
----- Original Message ----- From: "suresh kumar" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Thursday, February 09, 2006 9:50 PM
Subject: [PHP] static variables


hai everbody

           i am facing a problem with static
variable. i declared $count=0 as Static variable,when
i click the link specified in anchor tag my page is
refreshed again and static variable lose its value and
assigned with 0.i want the logic code say  my stsic
variable will not lose scope when i click next,i am
looking forward reply from u.
                                  A.suresh



__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.4/255 - Release Date: 2/9/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.4/255 - Release Date: 2/9/2006

--- End Message ---
--- Begin Message ---
I am beginnging to do vaidation on my web form and I know of a few
functions to do this with.  For example the empty fuction and the is_
functions.  Ok to give you a picture of what I am vaildating its just
your basic form, Name, Address, Email.  I am obviously going to check
for empty fields.  However I do want better error checking other then
testing for emptty fields.  Can anyone help me with that?

After this form is finished vaildating I am going to be sending an
email of the contents of the form to an email account.   I have seen
in other messages on this board about the mail function.   I'm not
sure about this but I think I read that in order for the mail function
to work the webserver needs sendmail to make the mail function work. 
Is this true?  I have looked at the phpinfo page on the targeted
webserver and the sendmail value is missing.  I assume that is ok
because the webserver is on a windows system rather then a unix
system. I just want to be sure about this.

Thanks

Paul

--- End Message ---
--- Begin Message ---
You may want to have a look at : 

Power Form Validation
http://www.weberdev.com/get_example-4248.html
 
Sincerely 
 
berber 
 
Visit the Weber Sites Today, 
To see where PHP might take you tomorrow. 
PHP & MySQL Forums : http://www.weberforums.com
Learn PHP & MySQL Playing Trivia : http://www.webertrivia.com


-----Original Message-----
From: Paul Goepfert [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 9:49 AM
To: php-general@lists.php.net
Subject: [PHP] vaidation and mail function question

I am beginnging to do vaidation on my web form and I know of a few functions
to do this with.  For example the empty fuction and the is_ functions.  Ok
to give you a picture of what I am vaildating its just your basic form,
Name, Address, Email.  I am obviously going to check for empty fields.
However I do want better error checking other then testing for emptty
fields.  Can anyone help me with that?

After this form is finished vaildating I am going to be sending an
email of the contents of the form to an email account.   I have seen
in other messages on this board about the mail function.   I'm not
sure about this but I think I read that in order for the mail function to
work the webserver needs sendmail to make the mail function work. 
Is this true?  I have looked at the phpinfo page on the targeted webserver
and the sendmail value is missing.  I assume that is ok because the
webserver is on a windows system rather then a unix system. I just want to
be sure about this.

Thanks

Paul

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

--- End Message ---

Reply via email to