php-general Digest 1 Apr 2001 09:25:46 -0000 Issue 601

Topics (messages 46467 through 46499):

Re: [PHP-DB] RE: [PHP] RE: what exactly are /path/to/blah lookingfor? .h? .so? .a? 
what?!
        46467 by: Daevid Vincent

Saving file
        46468 by: Adi Wibowo
        46485 by: Yasuo Ohgaki
        46486 by: Yasuo Ohgaki

sessions and cookies
        46469 by: David Hynes
        46470 by: \[Inf\] F!RE-WALL

Remembering variables during Ping-Pong session
        46471 by: David Minor

mail() and a Data format error
        46472 by: Chris Cameron

Can a WHILE be done inside an array?
        46473 by: Kenneth R Zink II

fetching MS SQL errors...
        46474 by: Christian Dechery

RH7, Oracle 8i: Curiouser and Curiouser
        46475 by: Jon Jacob

registering an array into a session (?)
        46476 by: Christian Dechery

Re: php...]
        46477 by: Yasuo Ohgaki
        46491 by: Yasuo Ohgaki

Re: Compiling under RH7
        46478 by: Yasuo Ohgaki
        46498 by: Jon Jacob

Re: hash suggestions wanted
        46479 by: Yasuo Ohgaki

Re: Question using chop :-)
        46480 by: Yasuo Ohgaki

Re: Install
        46481 by: Yasuo Ohgaki

Re: Disk Quota Through web
        46482 by: Yasuo Ohgaki

Re: problem loading extension
        46483 by: Yasuo Ohgaki

PHP4.04pl1/pdflib3.0.3 compile issue
        46484 by: Lindsay Adams

APC version 1.0.9 pushed
        46487 by: George Schlossnagle

form
        46488 by: LDL Enterprise
        46489 by: Michael Hall
        46494 by: Chris Adams
        46496 by: Sean Weissensee
        46497 by: Chris Adams

ereg
        46490 by: Michael Hall
        46495 by: Chris Adams

Reading db fetched values from files.
        46492 by: Thomas Edison Jr.

Re: Passing Special Characters in Query String
        46493 by: Thomas Edison Jr.

Php with Frames
        46499 by: Diego Pérez Rández

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 get the "No such file or directory" right after the "license box" shows up
in the PHP4 compile. Like this (no matter what directory I've tried in that
big old list so far):

./WTConfigure: --with-openlink=/usr/local/openlink/lib: No such file or
directory

"./WTConfigure" is just a shell script with make clean, all my --options,
make, make install, since I have to compile in mysql, and some other stuff.

> -----Original Message-----
> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 4:00 PM
> To: Daevid Vincent; [EMAIL PROTECTED]; PHP General
> Subject: Re: [PHP-DB] RE: [PHP] RE: what exactly are /path/to/blah
> lookingfor? .h? .so? .a? what?!
>
>
> Daevid,
>
> just --with-iodbc or --with-openlink is fine.
>
> you should be using either:
>
> --with-iodbc=/usr/local/openlink/odbcsdk \
> or
> --with-openlink=/usr/local/openlink/lib \
>
> depending on which you use and where you installed the sdk.
> what error are you getting?
>
> Best regards,
> Andrew
>
>
> On 3/30/01 6:54 PM, "Daevid Vincent" <[EMAIL PROTECTED]> wrote:
>
> > thanks for replying Andrew, but that's not working for me either.
> >
> > Also, do I need both "--with-iodbc" and "--with-openlink" or do
> I just need
> > one of them?
> >
> > These are the instructions I've been following:
> > http://www.iodbc.org/odbc-phpHOWTO.html
> >
> > so now I've tried:
> >
> >                #--with-iodbc=/usr/local/openlink/odbcsdk/lib \
> >                #--with-iodbc=/usr/local/openlink/odbcsdk \
> >                #--with-iodbc=/usr/local/openlink/lib \
> >                #--with-iodbc=/usr/local/bin \
> >                #--with-iodbc=/usr/local \
> >                #--with-iodbc=/usr/local/include \
> >                #--with-iodbc=../libiodbc \
> >                #--with-openlink=/usr/local/openlink/odbcsdk/lib \
> >                #--with-openlink=/usr/local/openlink/odbcsdk \
> >                #--with-openlink=/usr/local/openlink \
> >                #--with-openlink=/usr/local/openlink/lib \
> >
> > here is my dir structure:
> > the files are there, why won't PHP see them? In fact I have the
> > "libiodbc.so" library in TWO places I see: "openlink/lib/" and
> > "openlink/odbcsdk/lib/"
> >
> > [root=pts/1]3:45pm@content:{/usr/local/openlink}> ll -r
> > /usr/local/openlink/*
> > -rw-rw-rw-    1 nobody   html            0 Mar 29 20:20
> > /usr/local/openlink/oplrqb.ini
> > -rwxr-xr-x    1 nobody   html          707 Mar 30 15:16
> > /usr/local/openlink/openlink.sh*
> > -rwxr-xr-x    1 nobody   html          619 Mar 30 15:16
> > /usr/local/openlink/openlink.csh*
> > -rw-rw-rw-    1 nobody   html          180 Mar 29 20:21
> > /usr/local/openlink/odbcinst.ini
> > -rw-rw-rw-    1 nobody   html          541 Mar 30 13:51
> > /usr/local/openlink/odbc.ini
> > -rw-rw-rw-    1 nobody   html       196347 Mar 29 17:54
> > /usr/local/openlink/l2oczzzz.taz
> > -rw-rw-rw-    1 nobody   html       364085 Mar 30 15:16
> > /usr/local/openlink/l2kuzzzz.taz
> > -rw-rw-rw-    1 nobody   html       512218 Mar 30 15:16
> > /usr/local/openlink/l2kozzzz.taz
> > -rwxrwxrwx    1 nobody   html        16137 Mar 30 15:16
> > /usr/local/openlink/install.sh*
> >
> > /usr/local/openlink/udbcsdk:
> > total 16
> > drwxr-xr-x    2 nobody   html         4096 Mar  7 14:44 lib/
> > drwxr-xr-x    3 nobody   html         4096 Mar  7 14:44 include/
> > drwxr-xr-x    2 nobody   html         4096 Mar  7 14:44 examples/
> > drwxr-xr-x    2 nobody   html         4096 Mar  7 14:44 doc/
> >
> > /usr/local/openlink/lib:
> > total 400
> > -rw-r--r--    1 nobody   html       272057 Mar  7 14:43 oplodbc.so.1.0.0
> > lrwxrwxrwx    1 nobody   html           16 Mar 30 15:16 oplodbc.so.1 ->
> > oplodbc.so.1.0.0
> > lrwxrwxrwx    1 nobody   html           16 Mar 30 15:16 oplodbc.so ->
> > oplodbc.so.1.0.0
> > -rw-r--r--    1 nobody   html          678 Mar  7 14:43 oplodbc.la
> > lrwxrwxrwx    1 nobody   html           17 Mar 30 15:16 libodbc.so ->
> > libiodbc.so.2.1.2*
> > -rwxr-xr-x    1 nobody   html       117877 Mar  7 14:43
> libiodbc.so.2.1.2*
> > lrwxrwxrwx    1 nobody   html           17 Mar 30 15:16 libiodbc.so.2 ->
> > libiodbc.so.2.1.2*
> > lrwxrwxrwx    1 nobody   html           17 Mar 30 15:16 libiodbc.so ->
> > libiodbc.so.2.1.2*
> > -rwxr-xr-x    1 nobody   html          669 Mar  7 14:43 libiodbc.la*
> >
> > /usr/local/openlink/bin:
> > total 140
> > -rw-------    1 nobody   html           29 Mar 30 15:16 oplrqb.ini
> > -rwxr-xr-x    1 nobody   html        92225 Mar  7 14:43 odbctest*
> > -rw-r--r--    1 nobody   html          170 Mar  7 14:43
> odbcinst.ini.sample
> > -rw-r--r--    1 nobody   html          170 Mar  7 14:43 odbcinst.ini
> > -rw-r--r--    1 nobody   html          473 Mar  7 14:43 odbc.ini.sample
> > -rw-r--r--    1 nobody   html          473 Mar  7 14:43 odbc.ini
> > -rwxr--r--    1 nobody   html        23260 Mar  7 14:43 inifile*
> >
> > /usr/local/openlink/odbcsdk:
> > total 20
> > drwxr-xr-x    2 nobody   html         4096 Mar 30 15:16 lib/
> > drwxr-xr-x    2 nobody   html         4096 Mar 30 15:16 include/
> > drwxr-xr-x    2 nobody   html         4096 Mar 30 15:16 examples/
> > drwxr-xr-x    2 nobody   html         4096 Mar 30 15:16 driver/
> > drwxr-xr-x    2 nobody   html         4096 Mar 30 15:16 doc/
> >
> > and then here is the odbcsdk directory tree:
> >
> > [root=pts/1]3:51pm@content:{/usr/local/openlink}> ll -r odbcsdk/*
> > odbcsdk/lib:
> > total 976
> > -rw-r--r--    1 nobody   html       272057 Mar  7 14:42 oplodbc.so.1.0.0
> > lrwxrwxrwx    1 nobody   html           16 Mar 30 15:16 oplodbc.so.1 ->
> > oplodbc.so.1.0.0
> > lrwxrwxrwx    1 nobody   html           16 Mar 30 15:16 oplodbc.so ->
> > oplodbc.so.1.0.0
> > -rw-r--r--    1 nobody   html          678 Mar  7 14:42 oplodbc.la
> > -rw-r--r--    1 nobody   html       431992 Mar  7 14:42 oplodbc.a
> > -rwxr-xr-x    1 nobody   html       117877 Mar  7 14:42
> libiodbc.so.2.1.2*
> > lrwxrwxrwx    1 nobody   html           17 Mar 30 15:16 libiodbc.so.2 ->
> > libiodbc.so.2.1.2*
> > lrwxrwxrwx    1 nobody   html           17 Mar 30 15:16 libiodbc.so ->
> > libiodbc.so.2.1.2*
> > -rwxr-xr-x    1 nobody   html          669 Mar  7 14:42 libiodbc.la*
> > -rw-r--r--    1 nobody   html       143692 Mar  7 14:42 libiodbc.a
> >
> > odbcsdk/include:
> > total 136
> > -rw-r--r--    1 nobody   html        11973 Mar  7 14:42 udbcext.h
> > -rw-r--r--    1 nobody   html         6362 Mar  7 14:42 sqltypes.h
> > -rw-r--r--    1 nobody   html        67955 Mar  7 14:42 sqlext.h
> > -rw-r--r--    1 nobody   html        28728 Mar  7 14:42 sql.h
> > -rw-r--r--    1 nobody   html         1161 Mar  7 14:42 isqltypes.h
> > -rw-r--r--    1 nobody   html         1158 Mar  7 14:42 isqlext.h
> > -rw-r--r--    1 nobody   html         1140 Mar  7 14:42 isql.h
> >
> > odbcsdk/examples:
> > total 112
> > -rw-r--r--    1 nobody   html        10321 Mar  7 14:42 odbctest.c
> > -rwxr-xr-x    1 nobody   html        92225 Mar  7 14:42 odbctest*
> > -rw-r--r--    1 nobody   html         3460 Mar  7 14:42 Makefile
> >
> > odbcsdk/driver:
> > total 124
> > -rw-r--r--    1 nobody   html       119187 Mar  7 14:42 odbc_src.taz
> >
> > odbcsdk/doc:
> > total 16
> > -rw-r--r--    1 nobody   html          773 Mar  7 14:42 odbcinst.ini
> > -rw-r--r--    1 nobody   html         1010 Mar  7 14:42 odbc.ini
> > -rw-r--r--    1 nobody   html         5127 Mar  7 14:42 odbc.doc
> >
> >
> >> -----Original Message-----
> >> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> >> Sent: Friday, March 30, 2001 2:57 PM
> >> To: Daevid Vincent; [EMAIL PROTECTED]; PHP General
> >> Subject: [PHP] RE: what exactly are /path/to/blah looking for? .h? .so?
> >> .a? what?!
> >>
> >>
> >> Daevid,
> >>
> >> It's the path/to/odbcsdk
> >> It's looking for libiodbc.so
> >>
> >> :)
> >>
> >> Best regards,
> >> Andrew
> >
>






Hi I write a script that create a report. 
Using header ("location : filename") to tell browser to download file
instead of displaying it to screen.

On some computer it work, but on another (using the same browser) is
always displayed. I try to change file extension to treat browser to
download it, but still doesn't work.

Do you have any suggestion to push browser to always download the file?

Thank you so much.


Adi Wibowo -------------------------------
* Work matter    : [EMAIL PROTECTED]
* Private matter : [EMAIL PROTECTED]
------------------------------------------





Reading RFCs will help.

RFC 2068 RFC 1945 RFC 2936

Regards,
--
Yasuo Ohgaki


"Adi Wibowo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi I write a script that create a report.
> Using header ("location : filename") to tell browser to download file
> instead of displaying it to screen.
>
> On some computer it work, but on another (using the same browser) is
> always displayed. I try to change file extension to treat browser to
> download it, but still doesn't work.
>
> Do you have any suggestion to push browser to always download the file?
>
> Thank you so much.
>
>
> Adi Wibowo -------------------------------
> * Work matter    : [EMAIL PROTECTED]
> * Private matter : [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]
>





Oops I pasted older RFC number for HTTP/1.1, newer version is

RFC 2616

Reading older version will also help, though.

--
Yasuo Ohgaki


"Adi Wibowo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi I write a script that create a report.
> Using header ("location : filename") to tell browser to download file
> instead of displaying it to screen.
>
> On some computer it work, but on another (using the same browser) is
> always displayed. I try to change file extension to treat browser to
> download it, but still doesn't work.
>
> Do you have any suggestion to push browser to always download the file?
>
> Thank you so much.
>
>
> Adi Wibowo -------------------------------
> * Work matter    : [EMAIL PROTECTED]
> * Private matter : [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]
>





I am using sessions to password protect a section of a website.

I am storing the session ID in a cookie but just in case cookies are not
enabled, I am also passing the session ID in the query string to each page
in the protected directory.

Please can someone tell me if this could cause any problems, especially if
the user if tries to access a URL from their history bar in the browser with
an old session ID.

i think what I'm trying to ask is , if the script receives a session ID from
a query string and cookie, which does it use ?

Thanks,
David.

-----------------------
Fed202 Solutions
www.fed202solutions.com
Mobile : 07779 293368
-----------------------





I don't recommend putting the Session ID in the URL. Subscibed members could
pass URL's to eachother and that way they could have eachother's settings.

""David Hynes"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using sessions to password protect a section of a website.
>
> I am storing the session ID in a cookie but just in case cookies are not
> enabled, I am also passing the session ID in the query string to each page
> in the protected directory.
>
> Please can someone tell me if this could cause any problems, especially if
> the user if tries to access a URL from their history bar in the browser
with
> an old session ID.
>
> i think what I'm trying to ask is , if the script receives a session ID
from
> a query string and cookie, which does it use ?
>
> Thanks,
> David.
>
> -----------------------
> Fed202 Solutions
> www.fed202solutions.com
> Mobile : 07779 293368
> -----------------------
>
>
> --
> 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]
>






Here's what I want to do:
multiple forms on separate pages that collect data from the user.  When all
appropriate data is entered, the user can send all data to the process
script.  I want the user to be able to jump from one page to another in no
particular order and back while entering data.  This is so if they change
their mind mid-stream, they can go edit previous pages without having to
reenter everything after that page.  If the user enters a page where they
have already entered data, the data is displayed.

Maybe I'm headed down the wrong path...
Here's how I thought about doing it (haven't gotten this working yet):

I set the form input attribute to 'name="variable_name_post"' (variable name
+ _post suffix).  At the beginning of each page, I include a function that
reads through $HTTP_POST_VARS and if it finds a posted variable with the
'_post' suffix, it stores the value of that var in $variable_name.  The main
list of vars (not the posted vars) is passed from page to page via sessions.

my problem is not storing the new variable, it's making it available to the
rest of the script (and the session).  What I end up with is a variable
variable ${$tmp_var_name} with a value equal to the posted var.  In this
case, if $tmp_var_name = 'cust_name', I can echo $cust_name and get the
proper value inside the function.  Outside the function the var is set to
''.

I either need to find a way to get that variable variable to be recognized
outside the function, or I need some help reorganizing my logic on another
way to do this.  The code for the function was posted to the list yesterday
under the subject "renaming form posted variable names".

Thanks to those who will help1
dm





My setup is PHP 4.0.4p1 with Apache 1.3.19 (PHP as a module), and sendmail
at /usr/sbin/sendmail. I have sendmail_path = /usr/sbin/sendmail -t -i in
my php.ini. THis is all on Linux.

When I use mail() in any which way, it returns as if it were sucsessful,
but in my maillog I see;
Mar 31 16:22:16 catsnip sendmail[30912]: f2VNMGZ30910: f2VNMGY30912: DSN:
Data format error

The messages above it gives me the idea that it's the destination
mailserver returning this error.

Any ideas?
Thanks,
Chris





I'm trying to figure out how to do a WHILE inside of an array.

Here is the while statement.

$modyear = "1982";
$curyear = date("Y");
$curyear = $curyear + 1;

while($modyear <= $curyear){
echo "<option>".$modyear.;
$modyear++;
}

The array I want to use the WHILE in, looks like this.  The X is where I
want to insert the WHILE.

'year' => array('Year','12','keyword','1:30','select','X','text'),

Here is what a functioning array statment in my script looks like for
referance.

'make' =>
array('Make','12','keyword','1:30','select','<option>Chevrolet<option>GMC<op
tion>Isuzu<option>Oldsmobile','text'),

Can someone please give me some pointers. =)

Thanks.


Kenneth R Zink II     [EMAIL PROTECTED]    ICQ# 5095094
'87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!!
http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!!
http://www.s-series.org/htm/firestorm/firestorm.htm
'84 Oldsmobile Delta 88 Delta 88 Royal Brougham.
Racing by the grace of God!!!





Has anyone successfully handled MS SQL error messages?

some articles? or code? anyone?

thanks...
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer





Hum.....  Maybe it is because of the weekend or maybe it is because the
combination of RH7, Oracle and PHP is too volitile, but I have yet to
hear of anyone who has gotten this to work.  Well, my experience brings
up serious doubts that it can be done (but I will persist!)

I will quickly recap if you have not followed my previous posts.  I
recompiled Apache and PHP according to instructions causing a working
situation to become broken.  All PHP code showed in the browser instead
of being rendered.  I went over my configuration with a find tooth comb
and it appeared correct.

In response to this, I decided to return to my previous state by
installing the RH7 rpm with the additional oci rpm for Oracle support.
Indeed, it did improve the situation but only halfway.  Let me
explain......

The browser now renders the PHP correctly and the phpinfo() function
shows that the --with-oci8 support is included.  However, when I use the
basic OCI function OCILogin, I get the following error (just as I did
when I first started this mess):

Fatal error: Call to undefined function: ocilogon() in
/home/jon/public_html/test.php on line 25

So, I tried to run the file from the command line, and lo and behold,
the file worked as it should.  I did not get any errors whatsoever.

What the hell could all this mean?


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Can somebody please help me out??
I'm going nuts...
what's wrong with this piece of code?

<pre>
                 if(!isset($script_total_time))
                 {
                         // register the session variables to keep track of 
step times
                     $script_total_time=(float)$total_time;
                         session_register("script_total_time");
                         $step_times_array[$step]=$total_time;
                         $step_times=serialize($step_times_array);
                         //echo "step_times=\"$step_times\""; <- this 
echoes perfeclty
                         session_register("step_times");
                 }
                 else
                 {
                         // update session variables
                     $script_total_time+=(float)$total_time;
                         $step_times_array=unserialize($step_times);
                         $step_times_array[$step]=$total_time;
                         $step_times=serialize($step_times_array);
                 }
</pre>

why doesn't $step_times gets registered correctly? it always register an 
empty var...
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer




PHP has type juggling feature. PHP4 supports "total equality"(?) operator "===".
If you need variable to be match for both type and value. Use "===", then you
can avoid type juggling.

http://www.php.net/manual/en/language.types.type-juggling.php
http://www.php.net/manual/en/language.operators.comparison.php

Regards,
--
Yasuo Ohgaki

> I'm sure you appreciate the importance of transitive equality in programming
> languages (especially they all aspire to be pseudo-mathematical), which is
> why I think you'll appreciate this.
>
> <?php
>
> $a = "0";
> $b = 0;
> $c = "";
> $d = "       ";
>
> $a == $b  // T
> $b == $c  // T
> $a == $c  // F!!
>
> $b == $c  // T
> $b == $d  // T
> $c == $d  // F!!
>
> ?>
>
> Perl, of course, outputs the expected values: $a, $b, $c and $d are equal
> under '==', and only $a and $b are equal under 'eq'. PHP's '===' operator
> (its equivalent to 'eq') says that $a, $b, $c and $d are all different.
>
> Doesn't that seem like a fundamental flaw? How can equality NOT be
> transitive?? How can anyone be expected to write programs in such an
> environment?
>
> D
>
>
>






I  missed that you are discussing about transitivity. Your claim sound fair to
me too. I'm relatively new to PHP :) So I'm not sure, but it's probably because
historical reason that PHP dose not have transitivity for equality operator.

We can still workaround with type casting, though.

Do you know annotated manual?

http://www.php.net/manual/en/

Your post would be a great note for many users. How about add them to sections
that I've been mentioned.

"Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message news:...
> PHP has type juggling feature. PHP4 supports "total equality"(?) operator
"===".
> If you need variable to be match for both type and value. Use "===", then you
> can avoid type juggling.
>
> http://www.php.net/manual/en/language.types.type-juggling.php
> http://www.php.net/manual/en/language.operators.comparison.php
>
> Regards,
> --
> Yasuo Ohgaki
>
> > I'm sure you appreciate the importance of transitive equality in programming
> > languages (especially they all aspire to be pseudo-mathematical), which is
> > why I think you'll appreciate this.
> >
> > <?php
> >
> > $a = "0";
> > $b = 0;
> > $c = "";
> > $d = "       ";
> >
> > $a == $b  // T
> > $b == $c  // T
> > $a == $c  // F!!


As you mentioned it's worth to note. Since $a and $d is string that have
different content, so PHP evaluates it as FALSE.

> >
> > $b == $c  // T
> > $b == $d  // T
> > $c == $d  // F!!


This is the same.

> >
> > ?>
> >
> > Perl, of course, outputs the expected values: $a, $b, $c and $d are equal
> > under '==', and only $a and $b are equal under 'eq'. PHP's '===' operator
> > (its equivalent to 'eq') says that $a, $b, $c and $d are all different.


It also worh to note.

=== expects the same type although PHP loosely typed language.

> >
> > Doesn't that seem like a fundamental flaw? How can equality NOT be
> > transitive?? How can anyone be expected to write programs in such an
> > environment?


We still can cast variables, so I suggest cast when you needed.

Regards,
--
Yasuo Ohgaki





How did you install Apache and PHP? PRM or source?
I compile from source for these. You might have httpd.conf that is actually used
by apache may be located some where else.

If you are compile from source and need the same file layout as RedHat,
use --with-layout=RedHat (or like) for Apache's configure.

(How about run 'find / -name httpd.conf'? You might find more than one.)

Regards,

--
Yasuo Ohgaki


"Jon Jacob" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am still  only getting the source of the php file.  Has anybody
> successfully compiled Apache 1.3.x (1.3.19 in my case) and PHP
> (4.0.4pl1) under RH7?  My httpd.conf has the proper AddType line and the
> php4 module is installed according to httpd -l.
>
> If you have done this successfully, please let me know.  I have been
> racking my brain for three straight days trying to get this to work.
>
> Thanks.
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.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]
>





Yasuo Ohgaki wrote:

> How did you install Apache and PHP? PRM or source?
> I compile from source for these. You might have httpd.conf that is actually used
> by apache may be located some where else.
>
> If you are compile from source and need the same file layout as RedHat,
> use --with-layout=RedHat (or like) for Apache's configure.
>
> (How about run 'find / -name httpd.conf'? You might find more than one.)
>
> Regards,
>
> --
> Yasuo Ohgaki
>
> "Jon Jacob" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am still  only getting the source of the php file.  Has anybody
> > successfully compiled Apache 1.3.x (1.3.19 in my case) and PHP
> > (4.0.4pl1) under RH7?  My httpd.conf has the proper AddType line and the
> > php4 module is installed according to httpd -l.
> >
> > If you have done this successfully, please let me know.  I have been
> > racking my brain for three straight days trying to get this to work.
> >
> > Thanks.
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.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]
> >
>
> --
> 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]

Duh.  I wish I had gotten your reply earilier.  Yes, there was a second httpd.conf
file and it did lack the addtype line, but now I am in a different situation as I
have reinstalled the original rpms with the oracle rpm and yet the oracle functions
do not exactly run (see my previous note).

Appreciate the effort, however.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





If you need shorter result, how about use a part of md5 hash result?

--
Yasuo Ohgaki


""David P. Schwartz"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> the PHP crypt function uses DES and it only generates a hash based on the
> first 8 chars of a string, although it produces a 12-char hash.  Md5 can hash
> a string of indefinite length, but it produces a much longer hash (34 chars or
> so).
>
> I need something that can provide me with a 12-16 char hash of an indefinite
> string (usually under 100 chars in my case) using standard hasing algorithms.
>
> Any suggestions?
>
> Thanks
> -David Schwartz
>
>
> --
> 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]
>





It's not explain why you get additional char at the end of string, but chop() in PHP does not get rid of last char, but it also suppose to get rid of spaces including newline. What char code are you using? Char code may be the cause. -- Yasuo Ohgaki ""Marcus Ouimet"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have got chop to work for me to remove characters at the end of the > string using something like: > > echo $listing_values1 = chop(substr($listing_values['name'],0,4); > echo $listing_values1 ['name'] . '...' . '&nbsp;' . "\n"; > > Works great except for the fact after the name there appears to be a letter > ie: > > Brita Water Filter > > Would become: > > BritaB... > > The letter is different for each entry. What am I oing wrong. Any help > appreciated thanks in advance... > > > > > -- > 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] >



There is a section for that in the PHP Manual

http://jp.php.net/manual/en/migration4.php

I suggest you to read www.zend.com documents also.

Regards,

--
Yasuo Ohgaki


""Chris"" <[EMAIL PROTECTED]> wrote in message
00ce01c0b942$4cc0d5a0$01c8c8c8@ibcserver">news:00ce01c0b942$4cc0d5a0$01c8c8c8@ibcserver...
Hi,
I am trying to find some info on upgrading from php3 to php4.
I can't seem to find any docs about upgrading, just installing. Is this the same
thing?
Do I have to re-compile apache just to go from php3 to php4?

Thanks,
Chris.









You need to provide what OS you are using.
I think you may get better response if you ask mailing list discussing about
your OS for this matter.

Regards,
--
Yasuo Ohgaki


""pnp"" <[EMAIL PROTECTED]> wrote in message
013301c0b8e5$37735220$[EMAIL PROTECTED]">news:013301c0b8e5$37735220$[EMAIL PROTECTED]...
Hi All There

I am new to this mailing list

I had virtual domain hosted on my server with No. of users

With control panel of mine,I want to add Quota feature to my panel

By which users can check for there quota Through web for the amount of

space they are using

I am a baby for php so please help me out from scratch

Thanks

Regards






How about take a look at notes (PHP Manual)?
http://www.php.net/manual/en/install-windows.php

You might need to change \ to /, or / to \, or get rid of drive letter in
extension_dir, as I needed to load extension for PHP for Windows.

Regards,
--
Yasuo Ohgaki


"Christian Dechery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I posted a message a while ago about having trouble loading php_mssql.dll
> extension.
> It gave me that error: 'can't find ...'. So I was stuppid enough to realize
> I didn't have MS SQL 7 installed here.
>
> Somone here told me to download a proggie called Dependency Walker, that
> lists all the dependencies of a DLL.
> So I did it, and it really was missing a DLL (MS SQL).
>
> So I installed MS SQL 7 here, and now Dependency Walker doesn't give me any
> error, but PHP still gives me the message and still does not load
> php_mssql.dll. Why? MSSQL is started, working perfectly, PHP is working
fine...
>
> what may be wrong?
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
>
>
> --
> 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]
>





Firstly, I spent 3 hours searching the archives and trying all the
suggestion that I could find. No go.

The box that I want to put this on is a Cobalt Qube2

The pdflib compiles and installs correctly as a shared library
It is compiled with tiff and zlib support only (png is explicitly off)

Here is the output when I compile php with the following command:

./configure --with-apxs=/usr/sbin/apxs \
--with-ftp \
--enable-calendar\
 --with-zlib-dir \
--with-mysql \
--with-pdflib=/usr/local \
--with-swf=/usr/local/swf \
--with-zlib


OUTPUT:
checking for Oracle-ORACLE support... no
checking for Ovrimos SQL Server support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include Pdflib 3.x support... /usr/local
yes
checking for libz needed by pdflib 3.x... already zlib support
checking for jpeg_read_header in -ljpeg... no
no
checking for png_create_info_struct in -lpng... no
no
checking for TIFFOpen in -ltiff... no
no
checking for PDF_show_boxed in -lpdf... no
configure: error: pdflib extension requires pdflib 3.x.
[php-4.0.4pl1]# 


I do not know the ins and outs of make, ld, yacc, sed...
I am not a developer, just a monkey that can read and explore

In exploring, I grep'd for PDF_show_box in a bunch of .c and .h files, and
found it in a lot of places.
I don't know which file does the actual check for PDF_show_boxed, or which
file it checks, that would be helpful.

I did download the latest and greatest pdf.c for php/ext/pdf directory.

If anyone has any new ideas on things to try to make this work, I would be
hugely grateful.


I downloaded both source tarballs today, from what appeared to be the
newest.

Ack!

Lindsay Adams





New version pushed with all the current CVS changes.

- fixes for numerous small bugs
- fix for memory alignment errors on 64 bit systems
- many new cache-visibility functions added
- optional fcntl locks under shm versions (look in apc_cache.c)

As always, available at http://apc.communityconnect.com

Also, Mike Bretz and team have developed a beautiful gui to provide easy
management of your APC cluster.  Check out http://apc.neuropeans.com/
(this gui requires the functions new in v1.0.9)

Enjoy!

George



-- 
$_ = 'George Schlossnagle';
s#.#(ord$')-(ord$&)+((index($_,$')-$&)?1002:0)#ego;s#-#((substr($],4,1)-6)?67:$-[0])#eog;$:=$_;print
join('',(map chr$_,reverse
map{substr($:,(3*$_),3)+(11,-109,-14,94,-894,-28,-61,-202,-417,83,-20,-678,53,96,4,-494,82,-869,-826,24,16,-684,-450,-27)[$_]}(0...length($_)/3)),chr(length($_)/2+ord$/),$/);





Hi all,

        Could someone please give me a clue. I have a <input type=text> form that
pulls the quantity from a mysql database. I want the user to be able to
update the quatity by just entering the new quantity and when they unfocus
on the text box it will automatically update without pressing a submit
button. Thanks


¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º,

 _     ___   _           Larry L.
| |   |   \ | |  [EMAIL PROTECTED]
| |__ | |> || |__  www.ldlenterprise.com
|____||___/ |____|







I don't think this is possible. If you're using PHP, then data must be
sent to the server via a POST or GET method. As far as I know, that means
using a form with submit button.

Sounds like you might be thinking Javascript or something.

Mick

On Sat, 31 Mar 2001, LDL Enterprise wrote:

> Hi all,
> 
>       Could someone please give me a clue. I have a <input type=text> form that
> pulls the quantity from a mysql database. I want the user to be able to
> update the quatity by just entering the new quantity and when they unfocus
> on the text box it will automatically update without pressing a submit
> button. Thanks
> 
> 
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º,
> 
>  _     ___   _           Larry L.
> | |   |   \ | |  [EMAIL PROTECTED]
> | |__ | |> || |__  www.ldlenterprise.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]
> 
> 





On 31 Mar 2001 20:33:56 -0800, LDL Enterprise <[EMAIL PROTECTED]>
wrote:
>       Could someone please give me a clue. I have a <input type=text> form
>       that pulls the quantity from a mysql database. I want the user to be
>       able to update the quatity by just entering the new quantity and when
>       they unfocus on the text box it will automatically update without
>       pressing a submit button.

You could use JavaScript to have the form submit OnBlur, but that's going to be
pretty slow and annoying - consider what would happen if the user is entering
several fields and clicks on another field, intending to come back and change
it...

What effect are you trying to achieve? Just reducing the number of clicks
needed to submit a form? If so, some browers will submit the form when you hit
the enter key while in a text field, which might have the effect you're looking
for without requiring any coding.





I would like to achieve this as well,
I have a shopping cart system I wrote which display several detail lines
of items purchased, at the moment if the user changes a quantity they have
to manualy
click a link to recalulate the total, I would like this to happen as soon as
the
user tabs of the qty field.

Sean

, e-mail: [EMAIL PROTECTED]





On 31 Mar 2001 22:03:54 -0800, Sean Weissensee <[EMAIL PROTECTED]> wrote:
>I have a shopping cart system I wrote which display several detail lines
>of items purchased, at the moment if the user changes a quantity they have
>to manualy
>click a link to recalulate the total, I would like this to happen as soon as
>the
>user tabs of the qty field.

Use an OnBlur() handler and some JavaScript. However, you'll still need to do
the calculations on the server to prevent cheating because if you want to
support older browsers, you'll need to put the total in an <INPUT TYPE="TEXT"
field. Your PHP code could generate a JavaScript function ("recalc()") that
would check each item and a cost * quantity to update the subtotal; when they
hit submit, you'd need to do the same check in PHP to be sure of getting an
accurate result.





I'm using the following expression to check input strings:

if (!ereg("^[[:alnum:]_-]+$", $string)) { get outta here! }

This works fine except for when a string has spaces, as in text. What do I
need to add to the expression to handle spaces (internal, not at the
beginning or end).

Thanks

Mick





On 31 Mar 2001 21:07:59 -0800, Michael Hall <[EMAIL PROTECTED]> wrote:
>
>I'm using the following expression to check input strings:
>
>if (!ereg("^[[:alnum:]_-]+$", $string)) { get outta here! }
>
>This works fine except for when a string has spaces, as in text. What do I
>need to add to the expression to handle spaces (internal, not at the
>beginning or end).

if (!ereg("^[[:alnum:]_- ]+$", $string)) { get outta here! }

Check out the regular expression documentation or "Mastering Regular
Expressions" over at ora.com.




awright, basically what i want is to write a script
that can open a file and read some values that i want,
for eg:- yahoo mail. if i have an account and i can
make a page that logs on to my yahoo mail using my
account, i want to display the number of unread
messages ( & perhaps read messages ) on my page using
my script. i'm not really opening the yahoo mail page.
i'm just needing to read the no. of read messages once
i've logged on using my script & my a/c info and print
it out on my page..... how's this possible. 

making a logon page in which i feed in my user/pass
for yahoo mail is easy - and then actually logging on
to my yahoo mial is also easy - but i don't wanna open
my yahoo inbox - i just wanna read the values of read
& unread messages and print it out on my page which
opens next. can this be done? i figure we use the
filesystem functions - but considering yahoo uses his
own cgi-perl with his own db, how can my PHP code read
those scripts and give the output?

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!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text




apparently, "echo" solved my problem - much to my
surprise & disgust, considering the head i was putting
into it. printf() apparently didn't print any special
chars coming in it - while echo prints anything &
everything without a problem!!!

Though i am having some problems with slashes, i guess
stripslashes() has solved most of it - i'm just
working on the balance...

cheers,
T. Edison jr.
--- Christian Reiniger <[EMAIL PROTECTED]> wrote:
> On Wednesday 28 March 2001 18:34, you wrote:
> > I've tried everything :
> > rawurlencode, urldecode, htmlentities,
> > htmlspecialchars - nothing is working. and come 2
> > think of it - it seems like such a basic
> problem...
> 
> well, then I'd say you do something else wrong.
> Difficult to say without 
> seeing the code.
> 
> > > On Wednesday 28 March 2001 08:36, you wrote:
> > > > I'm facing a problem with Special Characters
> ($,
> > >
> > > %, &,
> > >
> > > > \, /, ;, :, ", ') etc......
> > > > We are sending a varibale in a query string
> like
> > > this
> > > > <a href="add_pro_team.php3?title=<? echo
> > > > urlencode($title) ?>">
> 
> -- 
> Christian Reiniger
> LGDC Webmaster (http://sunsite.dk/lgdc/)
> 
> Pretty cool, the kind of power information
> technology puts in our hands
> these days.
> 
> - Securityfocus on probing 36000000 hosts for known
> problems in 3 weeks
> 
> --
> 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!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text





    Hi to all:

    I have a page with two frames. In the top frame I have a form where
I can select some options. When I press the send button a php program
generate a html page that I want to show in the Botton frame. I don't
know how I can load the new page generate in the botton frame. I only
want to change the botton frame not the top.

    Probably its easy to do.

    Can someone help me?

    Thanks.


    Best regards, Diego



Reply via email to