[PHP] Re: can't call htpasswd using PHP

2003-06-10 Thread HPS
We call quite a lot shell command in our system, e.g. /sbin/ifconfig,  mv,
rm , unzip , zip, htpasswd
When we are using Red Hat+PHP 4.1.2+apache1.3, that's fine, no problem
But when we switch to Red Hat 8.0+PHP 4.2.2+apache2 , the system is fine,
EXCEPT htpasswd.

thx a lot.~
Billy


"Baroiller Pierre-Emmanuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does you php or apache process have perms to do this?
>
> "Billy" <[EMAIL PROTECTED]> a écrit dans le message de
> news:[EMAIL PROTECTED]
> > Dear all,
> >
> > i can't call the "htpasswd" command after i used RedHat 8  ( which i can
> do
> > so in Red Hat 7.2)
> >
> > do u have any idea/ suggestion?
> >
> > thx a lot
> > HPS
> >
> >
>
>



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



Re: [PHP] post data?

2003-06-09 Thread HPS
the form tag is


Thx!
HPS



"Esctoday.Com | Wouter Van Vliet" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What does your form tag look like?
>
> -Oorspronkelijk bericht-
> Van: HPS [mailto:[EMAIL PROTECTED]
> Verzonden: maandag 9 juni 2003 9:32
> Aan: [EMAIL PROTECTED]
> Onderwerp: [PHP] post data?
>
>
> Dear all,
>
> i am using PHP 4.2.2 with Red Hat 8.0
> i had a form in , which has a form like this
>  value="">
> say, i enter "6" in the text box.
>
> After i click the submit button and i echo the value of "course_id", it
> returned "6course_id=6", NOT "6"
> do you have any idea?
>
>
> thx a lot!
> HPS
>
>
>
> --
> 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] post data?

2003-06-09 Thread HPS
Dear all,

i am using PHP 4.2.2 with Red Hat 8.0
i had a form in , which has a form like this

say, i enter "6" in the text box.

After i click the submit button and i echo the value of "course_id", it
returned "6course_id=6", NOT "6"
do you have any idea?


thx a lot!
HPS



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



[PHP] Re: can't call htpasswd using PHP

2003-06-08 Thread HPS
more information
in Red Hat 7.2, i was using PHP 4.1.2
while in Red Hat 8.0, it is PHP 4.2.2

thx a lot~
HPS


"Billy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear all,
>
> i can't call the "htpasswd" command after i used RedHat 8  ( which i can
do
> so in Red Hat 7.2)
>
> do u have any idea/ suggestion?
>
> thx a lot
> HPS
>
>



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



[PHP] postfix instead of sendmail

2003-01-16 Thread HPS
what should i do if i want to use PostFix in the php, but not SendMail?

thx very much
HPS






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




Re: [PHP] Variable vs Constant

2002-05-28 Thread HPS

Thx Hugh

i got what u meanlet me give u more background for my problem

i am now working on a project which was developed by some others b4.
As the project is a multi-language enabled, there is a PHP file (language
file) which has all the setting , say

$i_no_record_exists_msg = "There is no record at the moment.";
$i_no_search_result_msg = "Sorry, your search yielded no results. Please
revise your search query and try again.";
$i_alert_pleasefillin = "Please fill in the ";
$i_email_to = "To";
$i_status_approve = "Approve";
$i_status_pendinguser = "Pending";
$i_status_publish = "Publish";
$i_status_checkin = "Check In";
.
..
..


In this language file, over 500 variables are declared.  And what i scare is
1.  programmatically, should i change all these to CONSTANT?  (coz all these
values will never change)
2. if there is difference in declaring variable and constant  (say, memory
space required),   how much harm it will ?
3. as this file would be included in the entire systemthe downside will
be even more

thx
Billy


"Hugh Danaher" <[EMAIL PROTECTED]> wrote in message
000701c20620$885cd2e0$017f@localhost">news:000701c20620$885cd2e0$017f@localhost...
> Billy,
> There must be a limit to the number of variables you can use in php but I
> haven't run up against a limit yet, and php seems to run as fast on my
high
> variable count code as my more mundane code.
> Obviously, the advantage of using variables is that you can group your
> "variables/constants" in one area at the top of your code and when you
need
> to change one of the constants (and you know you will need to do this
> eventually) you won't need to look for it in amongst your code.
> Not really an answer to your question but more of an observation on my
part.
> I hope one of the more experienced will also pipe in.
> Good Luck
> Hugh
> - Original Message -
> From: "Billy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 27, 2002 8:46 AM
> Subject: [PHP] Variable vs Constant
>
>
> > what harm will it make if i declear a value as VARIABLE where i should
> make
> > it as CONSTANT actually??
> >
> > how about if i declear 100 values as VARIABLEs where all are CONSTANTs
> > actually?
> >
> > thx
> > HPS
> >
> >
> >
> >
> > --
> > 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] Variable vs Constant

2002-05-28 Thread HPS

what harm (in term of loading/performance) will it make if i declear a value
as VARIABLE where i should make it as CONSTANT actually??

how about if i declear 100 values as VARIABLEs where all are CONSTANTs
actually?

thx
HPS




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