OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: php3 Digest 13 Feb 2000 06:00:01 -0000 Issue 1475
From: php3-digest-helplists.php.net
Date: Sun Feb 13 2000 - 00:00:01 CST


php3 Digest 13 Feb 2000 06:00:01 -0000 Issue 1475

Topics (messages 75791 through 75826):

Upload Examples
        75791 by: "Martin E. Koss" <mekmek.co.uk>

what am I missing?
        75792 by: "Rossi Designs" <webmasterrossidesigns.net>
        75798 by: Gregor Welters <gregorwelters.de>
        75799 by: "Rossi Designs" <webmasterrossidesigns.net>

florida user's group
        75793 by: "Michael S. Steuer" <michaelsteuer.com>
        75807 by: christophermoewes.com

WHAT IS the BEST CONFIGURATION???
        75794 by: Dean James <sacramonemediaone.net>
        75795 by: Andi Gutmans <andizend.com>
        75802 by: "Wes Weems" <ubermanthegrid.net>

About subcribe/unsubcribe function on http://www.php.net/support.php3
        75796 by: Philip Strnad <pdstrnadsyr.edu>

fetch_array vs fetch_object
        75797 by: Malcolm Ferguson <malcolmfnkaos.com>
        75801 by: Lars Torben Wilson <torbenpinc.com>

why so many problems???
        75800 by: "Dave VanHorn" <dvanhorncedar.net>

php/mysql/apache balance problem
        75803 by: Jerrad Pierce <belg4mitCALLOWAY.MIT.EDU>

cvs module for php.
        75804 by: Gerrit Thomson <334647swin.edu.au>

Oracle vs Sybase
        75805 by: "Martin Reeves" <martin.reevesshopsmart.com>

help: mSQL and php
        75806 by: Lindsay Adams <lindsaydingos.net>

What regular expression does PHP3 have?
        75808 by: "Jong" <moonee7hosanna.net>
        75809 by: Brian Clark <brianjais.ais-gwd.com>
        75814 by: Lars Torben Wilson <torbenpinc.com>

Does PHP3 have News Group?
        75810 by: "Jong" <moonee7hosanna.net>
        75811 by: Brian Clark <brianjais.ais-gwd.com>

Install--basic question
        75812 by: Margie Wiers <wierswillard-oh.com>
        75816 by: Brian Clark <brianjais.ais-gwd.com>

Ignoring Errors
        75813 by: "WL" <willlocalads.net>

Entering info into DB through "drop down" list
        75815 by: "WL" <willlocalads.net>
        75821 by: Brian Clark <brianjais.ais-gwd.com>
        75826 by: "Martin E. Koss" <mekmek.co.uk>

I am making PDS PHP3. help me.
        75817 by: "Jong" <moonee7hosanna.net>

Would you Explain sub php3 News Groups?
        75818 by: "Jong" <moonee7hosanna.net>
        75819 by: Brian Clark <brianjais.ais-gwd.com>

I want to download text, html ,images files etc. (all formated files) by PHP3 PDS.
        75820 by: "" <moonee7orgio.net>

Trouble with sprintf
        75822 by: Neal Ghura <nghuraprimecybersys.com>

track_vars
        75823 by: "Stephen Cope" <kimihiamaxnet.co.nz>

Site Stats Programs
        75824 by: Mark Nold <marknalverstone.com.au>

Weird apxs error - help!
        75825 by: Ryan <ryane-etc.com>

Administrivia:

To subscribe to the digest, e-mail:
        php3-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php3-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php3lists.php.net

----------------------------------------------------------------------

attached mail follows:


Here's the form:

<FORM ENCTYPE="multipart/form-data" ACTION="upload.php3" METHOD="post">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="20000">
<INPUT NAME="UploadedFile" TYPE="file">
<INPUT TYPE="submit" VALUE="Upload">
</FORM>

and here's the script for upload.php3

<?
//check for file upload
if(isset($UploadedFile)) {
        print("Local File: $UploadedFile <BR>");
        print("Name: $UploadedFile_name <BR>");
        print("Size: $UploadedFile_size <BR>");
        print("Type: $UploadedFile_type <BR>");
        print("<HR>");
        if ($UploadedFile<>"none")

                if(!copy($UploadedFile,"../".$UploadedFile_name))

                print "File failed to upload";
                }
        else

        print "<A HREF=\"../" . "$UploadedFile_name" . "\">File uploaded</a>";
                }
        }
}
?>

Thank whoever I got it fropm originally - but it works. You'll be able to
figure out what file info is being displayed...

-----Original Message-----
From: WL [mailto:willlocalads.net]
Sent: 12 February 2000 15:40
To: Ufuk Kayserilioglu
Cc: php3lists.php.net
Subject: Re: [PHP3] Upload Examples

How can I tell it to use the real file name that's uploaded as opposed to
this strange name it creates on the server? (like pHpwheiu)

Thanks,

Will
----- Original Message -----
From: Ufuk Kayserilioglu
To: WL
Sent: Saturday, February 12, 2000 1:51 PM
Subject: Re: [PHP3] Upload Examples

Hi,

>From "Core PHP Programming":

--begin quote
The form must ise the post method to allow for uploads, and they must also
contain enctype attribute with a value of multipart/form-data. A hidden form
variable, MAX_FILE_SIZE, must precede the file input tag. Its value is the
maximum fle size in bytes to be accepted...
--end quote

Well, in my experience I did not NEED the MAX_FILE_SIZE variable... But you
have to play around with the upload_max_filesize in php.ini...

After you submit the form, you will have 4 variable defined.. If the name of
your FILE field was "userfile" then:

1) $userfile : contains the complete path to the temporary file name
2) $userfile_name : conatins the original name of the file on the
submitter's computer
3) $userfile_size : contains the size of the file
4) $userfile_type : conatins the mime type of the file, if it was offere by
the browser.

I am attaching one submission HTML file and one action PHP3 file as
examples...

Hope it helps,

Ufuk Kayserilioglu

----- Original Message -----
From: WL <willlocalads.net>
To: <php3lists.php.net>
Sent: 12 February 2000 15:18
Subject: [PHP3] Upload Examples

> Hi,
>
> I've been trying and trying to upload files from a local computer to a
> remote server with no luck - can anyone give me some basic examples, or
> direct me to somewhere that will?
>
> Thanks,
>
> Will
>
> ------------
> Web Developer and Programmer - SharkDesign.co.uk
> ------------
> Lukrative Media Ltd
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribelists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-adminlists.php.net
>
>

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


I've been translating a working text-file ad rotation sytem to MySQL and I ran into a snag. It works except I can't make it so that it won't put the same ad on the page more than once

function is_used($value) { for ($x=0;$x<count($used_ads);$x++) { if ($value == $used_ads[$x]) $in = true; } if (!$in) $in = false; return $in; }

function show_banner($wide,$tall) { $query = "SELECT img_source, link_href, alt_text, img_width, img_height, ad_weight, id FROM banners WHERE img_width = '$wide' AND img_height = '$tall'"; $result = mysql_query("$query") or die(mysql_error()); for ($x=0;$x<mysql_num_rows($result);$x++) { list($src[],$href[],$alt[],$width[],$height[],$weight[],$id[]) = mysql_fetch_row($result); }

// choose ad taking weight into account $weight_counter=0; for ($x=0; $x<count($weight); $x++) { if (! is_used($id[$x])) { for ($y=0; $y<$weight[$x]; $y++) { $weighted[$weight_counter] = $x; $weight_counter++; } } } srand((double)microtime()*1000000); $pickedAd = $weighted[(rand()%($weight_counter-1))];

// print ad print "<center><form action=\"db_clicks.php3\" method=\"post\">\n"; print "<input type=\"hidden\" name=\"lh\" value=\"$href[$pickedAd]\">\n"; print "<input type=\"hidden\" name=\"id\" value=\"$id[$pickedAd]\">\n"; print "<input type=\"image\" src=\"$src[$pickedAd]\" "; print "alt=\"$img_alt_text[$pickedAd]\" "; if (isset($img_width)) print "width=\"$width\" "; if (isset($img_height)) print "height=\"$height\" "; print "border=\"0\" "; print ">\n</form>\n</center>"; $used_ads[count($used_ads)] = $id[$pickedAd]; logImpression($id[$pickedAd]); }

banners are place on the page using

<?php show_banner(100,150); print "<p>\n"; show_banner(100,150); print "<p>\n"; show_banner(100,150); print "<p>\n"; show_banner(100,150); print "<p>\n"; show_banner(100,150); ?>

and

<?php show_banner(468,60); ?>

Rossi Designs (904) 226-8979 P.O. Box 1084, Holly Hill, Florida 32125-1084 http://rossidesigns.net

attached mail follows:


At 19:39 12.02.2000 , Rossi Designs wrote: >I've been translating a working text-file ad rotation sytem to MySQL and I >ran into a snag. It works except I can't make it so that it won't put the >same ad on the page more than once > >function is_used($value) {

didn't you forget the "global $used_ads;"-statement?

>for ($x=0;$x<count($used_ads);$x++) { > if ($value == $used_ads[$x]) $in = true; > } >if (!$in) $in = false;

by the way: you could set $in=false before the for-loop, then you don't need this extra-decision. (yes, I know it's trivial :-) )

>return $in; >} >function show_banner($wide,$tall) { >$query = "SELECT > img_source, > link_href, > alt_text, > img_width, > img_height, > ad_weight, > id FROM banners > WHERE img_width = '$wide' AND img_height = '$tall'"; >$result = mysql_query("$query") or die(mysql_error()); >for ($x=0;$x<mysql_num_rows($result);$x++) { >list($src[],$href[],$alt[],$width[],$height[],$weight[],$id[]) = >mysql_fetch_row($result); > } >// choose ad taking weight into account >$weight_counter=0; >for ($x=0; $x<count($weight); $x++) { > if (! is_used($id[$x])) { > for ($y=0; $y<$weight[$x]; $y++) { > $weighted[$weight_counter] = $x; > $weight_counter++; > } > } > } >srand((double)microtime()*1000000); >$pickedAd = $weighted[(rand()%($weight_counter-1))];

isn't that a bit too complicated algorithm only to rotate various images? why don't you simply use a cookie to hold an incrementing number which indexes an image?

mit freundlichen Gren,

Gregor Welters

----------------------------- Welters PC-Service, Grafenberger Allee 81, 40237 Dsseldorf, Deutschland

Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093 mailto: gwelterswelters.de look at: http://www.welters.de

attached mail follows:


Yes, but I wanted to have ads with a relative weight so that those weighted heavier would show up more often, if I used a cookie it would rotate the ads in order. I fixed the global problem and now it works fine. The site is www.whatshappeningdaytona.com

Rossi Designs (904) 226-8979 P.O. Box 1084, Holly Hill, Florida 32125-1084 http://rossidesigns.net ----- Original Message ----- From: Gregor Welters <gregorwelters.de> To: Rossi Designs <webmasterrossidesigns.net>; <php3lists.php.net> Sent: Saturday, February 12, 2000 3:42 PM Subject: Re: [PHP3] what am I missing?

isn't that a bit too complicated algorithm only to rotate various images? why don't you simply use a cookie to hold an incrementing number which indexes an image?

mit freundlichen Gren,

Gregor Welters

----------------------------- Welters PC-Service, Grafenberger Allee 81, 40237 Dsseldorf, Deutschland

Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093 mailto: gwelterswelters.de look at: http://www.welters.de

attached mail follows:


What about a user-group in the Netherlands. I'm lokated in Amsterdam and am very willing to participate in such a group.

Fellow-dutchies, what do you say?

Regards,

Michael Steuer.

attached mail follows:


I had been thinking about this very ting (user groups in general) and am in the process of setting up a UG registry where groups can register their contact information. I will post another message later this week when it is done.

The url will be http://www.moewes.com/phpug.php3

please let me know if this is a duplication of effort although the project might be fun anyways.

On Sat, Feb 12, 2000 at 09:50:21AM -0500, Rossi Designs wrote: > Hi list, > I just saw an post from Rasmus about a users group in SF bay area. Is > there a group near Daytona Beach, Florida? > > Rossi Designs > (904) 226-8979 > P.O. Box 1084, Holly Hill, Florida 32125-1084 > http://rossidesigns.net > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

-- 

-- Christopher R. Moewes-Bystrom christophermoewes.com http://www.moewes.com http://www.linuxnovice.org

attached mail follows:


quick question for new developer

WHAT IS THE BEST CONFIGURATION FOR A BLANK HARDDRIVE IN WHICH TO DEVELOP PHP/PERL??? Linux/apache/mysql etc... basically I want to start off on the right foot..

any help

thanks, dean

attached mail follows:


At 11:55 AM 2/12/00 -0800, Dean James wrote: >quick question for new developer > >WHAT IS THE BEST CONFIGURATION FOR A BLANK HARDDRIVE IN >WHICH TO DEVELOP PHP/PERL??? >Linux/apache/mysql etc... basically I want to start off on the right >foot..

Yeah I think that is pretty much it. If you're starting out then make sure you're starting with the Beta of PHP 4. A beta 4 should be out in a few days or you can start out with Beta 3 which should be good enough just to get started.

Andi

---
Andi Gutmans <andizend.com>
http://www.zend.com/

attached mail follows:


Personally I think that freebsd is a little "tougher" than linux, but it's definately not as user friendly. Look into FreeBSD, you might find that it suits you more. uptimes.net claims they have had over 600day up times ----- Original Message ----- From: Andi Gutmans <andizend.com> To: Dean James <sacramonemediaone.net>; <php3lists.php.net> Sent: Saturday, February 12, 2000 12:24 PM Subject: Re: [PHP3] WHAT IS the BEST CONFIGURATION???

> At 11:55 AM 2/12/00 -0800, Dean James wrote: > >quick question for new developer > > > >WHAT IS THE BEST CONFIGURATION FOR A BLANK HARDDRIVE IN > >WHICH TO DEVELOP PHP/PERL??? > >Linux/apache/mysql etc... basically I want to start off on the right > >foot.. > > Yeah I think that is pretty much it. > If you're starting out then make sure you're starting with the Beta of PHP > 4. A beta 4 should be out in a few days or you can start out with Beta 3 > which should be good enough just to get started. > > Andi > --- > Andi Gutmans <andizend.com> > http://www.zend.com/ > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

attached mail follows:


Check out http://www.php.net/source.php3?page_url=/support.php3

-Philip

Chia-Hao Chang wrote: > > Dear all: > I am a new user of PHP3, I am very interesting to the > source code of http://www.php.net/support.php3 ,anyone who could let me know > how to develop the "subscripe/unsubcribe mailing List"function on > http://www.php.net/support.php3 ?? > > Thanks in advance! > Best regards. > > cowboytkmail.tknet.net > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Probably no penalty in performance, but if you're outputting values inline in HTML and your query returns no rows, using object notation will cause an error where array notation will just echo null values....

"this is ".row[what]." xyz" will output equally effectively

Cheers Mac

> -----Original Message----- > From: Didimo Emilio Grimaldo Tunon [mailto:grimaldopanama.iaehv.nl] > Sent: Friday, February 11, 2000 3:32 AM > To: php3lists.php.net > Subject: [PHP3] fetch_array vs fetch_object > > > Hi *, > I was wondering if there is any penalty (memory or speed) > paid for using msql/mysql_fetch_object() instead of > the usual msql/mysql_fetch_array? > > One of the reasons I see for using the object notation is > that in PHP3 one cannot use an array notation inside the > string "this is $row['what'] xyz" but it is possible to > use the object form "this is $row->what xyz". > > TIA, > emilio > -- > __o "Admit nothing, deny everything, demand proof. :)" > _`\<,_ -James Ebbs > ___(*)/_(*)____.___o____..___..o...________ooO..._____________________ > D. Emilio Grimaldo Tunon > http://www.iaehv.nl/users/grimaldo/ > http://www.iaehv.nl/users/grimaldo/cv/ > http://www.iaehv.nl/users/grimaldo/panama.html > http://www.iaehv.nl/users/grimaldo/Linux/ > http://www.planetall.com/main.asp?cid=6226512 Contact Information > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to > php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: > php3-digest-subscribelists.php.net > To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: > php-list-adminlists.php.net >

attached mail follows:


Malcolm Ferguson writes: > Probably no penalty in performance, but if you're outputting values inline > in HTML and your query returns no rows, using object notation will cause an > error where array notation will just echo null values....

Actually, either will output error messages depending one what you've set the error_reporting flag to (using the error_reporting() function).

> "this is ".row[what]." xyz" will output equally effectively

(Assuming the missing '$' is a typo.)

This will only work if the error_reporting() is set low enough, because it will generate a warning. In the $row[what], you should have quotes around the 'what' so that PHP doesn't try to evaluate it as a keyword or constant.

> > Cheers > Mac

> > -----Original Message----- > > From: Didimo Emilio Grimaldo Tunon [mailto:grimaldopanama.iaehv.nl] > > Sent: Friday, February 11, 2000 3:32 AM > > To: php3lists.php.net > > Subject: [PHP3] fetch_array vs fetch_object > > > > > > Hi *, > > I was wondering if there is any penalty (memory or speed) > > paid for using msql/mysql_fetch_object() instead of > > the usual msql/mysql_fetch_array? > > > > One of the reasons I see for using the object notation is > > that in PHP3 one cannot use an array notation inside the > > string "this is $row['what'] xyz" but it is possible to > > use the object form "this is $row->what xyz". > > > > TIA, > > emilio > > -- > > __o "Admit nothing, deny everything, demand proof. :)" > > _`\<,_ -James Ebbs > > ___(*)/_(*)____.___o____..___..o...________ooO..._____________________ > > D. Emilio Grimaldo Tunon > > http://www.iaehv.nl/users/grimaldo/ > > http://www.iaehv.nl/users/grimaldo/cv/ > > http://www.iaehv.nl/users/grimaldo/panama.html > > http://www.iaehv.nl/users/grimaldo/Linux/ > > http://www.planetall.com/main.asp?cid=6226512 Contact Information > > > > -- > > PHP 3 Mailing List <http://www.php.net/> > > To unsubscribe, send an empty message to > > php3-unsubscribelists.php.net > > To subscribe to the digest, e-mail: > > php3-digest-subscribelists.php.net > > To search the mailing list archive, go to: > > http://www.php.net/mailsearch.php3 > > To contact the list administrators, e-mail: > > php-list-adminlists.php.net > > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

-- 
+----------------------------------------------------------------+
|Torben Wilson <torbenphp.net>                     Netmill iTech|
|http://www.coastnet.com/~torben            http://www.netmill.fi|
|Ph: 1 250 383-9735                             torbennetmill.fi|
+----------------------------------------------------------------+

attached mail follows:


All my problems have been of the "user headspace error" variety.

-------- Are you an ISP? Are you tired of dealing with SPAM? We can help. http://www.spamwhack.com

attached mail follows:


Okay so this might be considered lsightly off topic

I have a rather high-traffic sight and I'm using mod_php with persistent connections to mysql. Problem is safe_mysqld out of the box allows up to 100 clients and this brings the server down. I tried limiting (to 8) and that worked except I started getting too many connection errors. My guess is that the use of pconnect is forcing a 1 to 1 ratio of apache to mysql processes... Instead of say sharing one handle amongst many apaches. Are there any ideas how to: keep the performance advantages of pconnect support lots of clients keep the server up and happy

One idea I had was to limit mysql procs to n for n pconnects, but then somehow have an additional mysql proc that takes connects only (not pconnects) from the excess apache processes? Sounds good on paper, but then there's the issue of doing it...

Any help would be greatly appreciated, thanks!

PS> please cc me a copy of posts to the list, I get the digest...

--
                                                  *             __    *      .
           \     |     /           .        . .           .  . ((_
               _____                       .                         .     .
          --  /     \  --           .        .      .   +    .   .     _/\
      oooooooooo.   |               * .       .   .           *       / ;M\_ .
   .oooooooooooo.oo.                  .  .    .       . /\    .      /  :IMM\
  ..oooooooooooo..oo.   Jerrad Pierce              /\  /  \         /   ;IIWMM
  ..oooooooooo.......   209 North Street     +    /  \ /  \  .     /   ;IIIIWM
  ...ooooooooo.......   Randolph, MA 02368        /  \     \  ___/   :;IIIIIWM
  ....ooo....o.......                            /    \    \ /  ::     ;;IIIMI
   .....ooo.........    http://www.pthbb.org     /    \     \   :     :::;IIIM
     ..ooooooo....      __________________________ ||   ||       ::.....::::::
MOTD on Pungenday, the 43rd of Chaos, in the YOLD 3166:

I will not use abbrev.

attached mail follows:


Hi Folks, I haev ben doing some work using cvs from php scripts. I have had some difficulty in desciphering the poutput generated form the command line version of cvs. It occured to that a php module/library to talk to cvs would be quite usefull.

Is there anyone who agrees, I would like to find the time but my boss's would make it difficult ( especially my wife) to find the time.

I have noticed one of the big changes in goping to cvs 1.10 that there is a cvs library now and extra command like rcs are no longer neccessary. This is I feel what would make it viable.

I thought I might look at the code of the emacs editor use of cvs but then I am not a lisp programmer and would probably get lost.

Anyway I feel that basic fucntionality of add,delete,update, status, history would be realy useful.

Oner of the prlberms I am having is that cvs status does not tell me of files or directories in the repsoitory that are not in the working directroy. I am having to to a cvs history to try to find out.

Cheers, Gerrit Thomson.

attached mail follows:


Hi there,

I have to choose between Oracle and Sybase to backend a rapidly growing e-commerce site which primarily uses PHP to interact with the DB but also uses Java Servlets. At the moment we are using mySQL but have reached a point in time where we require transactions, sub-selects, replication etc. We'll be running on SUN Hardware and Solaris. Virtually every page on the site interacts with the DB with around 90% of activity been selects rather than inserts.

If anyone out there has used both DBs it would be greatly appreciated if you could share your experiences. Also anyone got any idea on pricing for Sybase? - thier site is a nightmare.

PS I'm not considering PostgreSQL because because DBAs are harder to come by for this DB. Also need to go with something commercial for political reasons.

Best Regards Martin

attached mail follows:


My ISP has php installed as an apache module. They also have mSQL installed for me in my Virtual Server directory

What they don't have installed is any of the msql() functions for php.

is there a library that i can load using dl() to add these? I have also compiled PHP as a cgi handler.

I can edit my httpd.conf and srm.conf files, but don't know how to change them in such a way as to use the cgi that i compiled, instead of the apache module.

I am hoping that they will just recompile the module for me with msql support included. i couldn't do it, because I don't have access to the httpd.h file they used. They have not responded to my tech support request, and time is running out on my project.

I did run ./testall after compiling, and everything worked, so, i am hoping someone can help me.

thanks! Lindsay Adams Dingos.net lindsaydingos.net

attached mail follows:


I want PHP3's regular expression. Thang you!

attached mail follows:


&౨#ނZi,N*.iawfzw

attached mail follows:


From: "Jong" <moonee7hosanna.net> > I want PHP3's regular expression. > Thang you!

PHP provides options for regular expression matching using either POSIX or perl-style regexps:

POSIX: http://www.php.net/manual/ref.regex.php3 (additional information is in the regex.7 manpage in the regex/ subdir of the PHP distribution; cd to the regex/ subdir and type 'man ./regex.7' to read)

Perl-style: http://www.php.net/manual/ref.pcre.php3

Cheers,

Torben

-- 
+----------------------------------------------------------------+
|Torben Wilson <torbenphp.net>                     Netmill iTech|
|http://www.coastnet.com/~torben            http://www.netmill.fi|
|Ph: 1 250 383-9735                             torbennetmill.fi|
+----------------------------------------------------------------+

attached mail follows:


If PHP3 have News Group, I want to join. I want to know PHP3 News Group address. Thank you!

attached mail follows:


&౨!?xZ^Hr0j{mIװjikN*.,giaw˩w

attached mail follows:


Hello eAll--

I have a very basic installation question (and can't find it in the manual or list archives). My technical expertise is somewhat limited at this point.

I am in the process of setting up Apache / MySQL / PHP3 on Windows 95. Apache is installed just fine. Now I am working on PHP. I have it downloaded and unzipped, sitting in c:\Program Files. (Apache is also in c:\Program Files.) However, nothing happens when I select php.exe and attempt to continue the installation process. Can anyone suggest something which might be the problem?

Thank you, Margie.

attached mail follows:


Margie Wiers said:

# Hello eAll-- # # I have a very basic installation question (and can't find it in the # manual or list archives). My technical expertise is somewhat limited # at this point. # # I am in the process of setting up Apache / MySQL / PHP3 on Windows # 95. Apache is installed just fine. Now I am working on PHP. I have # it downloaded and unzipped, sitting in c:\Program Files. (Apache is # also in c:\Program Files.) However, nothing happens when I select # php.exe and attempt to continue the installation process. Can anyone # suggest something which might be the problem?

AFAIK, you're looking at just the php binary (php.exe). You need to tell Apache and Windows that you're using PHP. It's been a while, but I don't think PHP has a windows based installer (you just download the binary files and extract it to a directory (c:\php would be nice and simple; stick php.ini.distro in c:\windows and rename it to php.ini).

Nevertheless..

This article will help. Just pick up where you left off. It should explain everything in plain english.

http://www.phpbuilder.com/columns/boutwell19991212.php3

Brian

attached mail follows:


Hi,

I've got a File Upload routine working, which first checks against a User Table to see if a) they're registered, b) they've entered a correct password and c) if they have Upload Permissions. Now, on the Password verification, when the password is false, it displays my "Wrong Password" text, but *also* there's an error:

Warning: $pass_row is not an object in upload2.phtml on line 18

Line 18 being: if ($pass != $pass_row->pass)

How can I tell it to ignore the error and just say "Wrong Password"?

Thanks.

Will

------------ Web Developer and Programmer - SharkDesign.co.uk ------------ Lukrative Media Ltd

attached mail follows:


Hi,

I have a Drop Down list in a form and I want to enter the selected data into a MySql Database. I have tried using the name of the Select as the variable to Insert into the table, but it doesn't work.

What should I do?

<select name="rights"> <option value="upload">Can Upload</option> <option value="admin">Admin</option> <option value="view">View only</option> </select>

There's the code. Any help appreciated.

Will ------------ Web Developer and Programmer - SharkDesign.co.uk ------------ Lukrative Media Ltd

attached mail follows:


WL said:

# Hi, # # I have a Drop Down list in a form and I want to enter the selected data into # a MySql Database. I have tried using the name of the Select as the variable # to Insert into the table, but it doesn't work. # # What should I do?

Are you using $rights as the value? Explain how you know it doesn't work.

# <select name="rights"> # <option value="upload">Can Upload</option> # <option value="admin">Admin</option> # <option value="view">View only</option> # </select> # # There's the code. Any help appreciated.

Where's the SQL and PHP? What's the output of mysql_error() and $php_errormsg? Are you using any other error handling functions like die()? You should.

There's also the possibility that your database user doesn't have rights to insert.

b.

attached mail follows:


There's nothing wrong with the form code for you're drop-down list. It is the SQL Query that makes it save to the database. Make sure the column that contains 'rights' is being saved from $rights - for example:

$sql_insert = "insert into $TableName (ID,ClientName,Email,rights) values ('$ID','$ClientName','$Email','$rights')";

-----Original Message----- From: Brian Clark [mailto:brianjais.ais-gwd.com] Sent: 13 February 2000 00:56 To: WL Cc: php3lists.php.net Subject: Re: [PHP3] Entering info into DB through "drop down" list

WL said:

# Hi, # # I have a Drop Down list in a form and I want to enter the selected data into # a MySql Database. I have tried using the name of the Select as the variable # to Insert into the table, but it doesn't work. # # What should I do?

Are you using $rights as the value? Explain how you know it doesn't work.

# <select name="rights"> # <option value="upload">Can Upload</option> # <option value="admin">Admin</option> # <option value="view">View only</option> # </select> # # There's the code. Any help appreciated.

Where's the SQL and PHP? What's the output of mysql_error() and $php_errormsg? Are you using any other error handling functions like die()? You should.

There's also the possibility that your database user doesn't have rights to insert.

b.

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


if($case=="down"){ $fp=fopen("$data_dir/$filename","r"); $filedata=fread($fp,$filesize); fclose($fp); header("Content-type: $filetype\n\n");; $str="Content-length: $filesize\n\n"; header("Content-Disposition:inline; filename=$filename\n\n"); echo($filedata); echo("<meta http-equiv='Refresh' content='0;URL=$PHP_SELF'>"); die; } This way have to not download text,html,images files. I want to download all formating files. Is it Possibile ? Then, I want to know way. Thank you.

attached mail follows:


I'm so so sorry. These sub news groups' mean? php.announce .beta .dev .general .kb .mirrors .test .version4 Thank you.

attached mail follows:


&౨"k((Nz˛,.ɞZz.mZޚ*-슉N*."bLYin\j{`zwjR-ƥ+aɚXX,.+ފ{^-yا<sv ޮȨ

attached mail follows:


if($case=="down"){ $fp=fopen("$data_dir/$filename","r"); $filedata=fread($fp,$filesize); fclose($fp);

header("Content-type: $filetype\n\n");; $str="Content-length: $filesize\n\n"; header("Content-Disposition:inline; filename=$filename\n\n");

echo($filedata); echo("<meta http-equiv='Refresh' content='0;URL=$PHP_SELF'>"); die; }

This way have to not download text,html,images files. I want to download all formating files. Is it Possibile ? Then, I want to know way.

Thank you.

attached mail follows:


I need help please. When I use the following code, the billing information name is always more to the right than the other lines. I thought by using left justify and paddingwith spaces, they should line up.

I've spent an hour on one email, and read everything I can. Please help.

TIA, Neal

// BILLING INFORMATION BLOCK fputs($cf,"\n"); $tmp=sprintf("% -30s %-s %-s\n","Billing Information:",$billing_first,$billing_last); fputs($cf,"$tmp"); if($billing_address1!=""){ $tmp=sprintf("% -30s % -s\n","",$billing_address1); fputs($cf,$tmp); } if($billing_address2!=""){ $tmp=sprintf("% -30s % -s\n","",$billing_address2); fputs($cf,$tmp); } $tmp=sprintf("% -30s % -s %s %s\n","",$billing_city,$billing_state,$billing_zip); fputs($cf,$tmp); if($billing_country!=""){ $tmp=sprintf("% -30s %-s\n","",$billing_country); fputs($cf,$tmp); } //

attached mail follows:


Hello!

Is there something neater than:

<?php_track_vars?><?php code(); ?>

I tried:

<?php_track_vars; code(); ?>

But normal variables did not work. For example...

$HTTP_GET_VARS['item'] = something but not... $item = nothing

---- Stephen D C -- Auckland, New Zealand ---- kimihia*writeme.com // http://surf.to/stephenc ===-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=== Because of lamb tariffs the Unabomber will be sending nuclear warheads from Oklahoma to Iraq

attached mail follows:


We use webalizer (see freshmeat.net) but did look at analogure with reportmagic. Both packages are comparable, neither is in PHP though, but why must it be PHP. Also both are cross platform and you dont need to throw your logs into a DB.

Have a look at freshmeat.net and do a search on log or something similar.

mn

On Saturday, 12 February 2000 4:24, Brian Clark [SMTP:brianjais.ais-gwd.com] wrote: > > I've looked in the few places that I know to look, but haven't found any > existing _complete_package_ solutions. > > Does anyone know of any site stats programs (other than crappy counters) > written in PHP? > > I'm thinking of converting an existing Perl/Flat-File based solution over > to PHP/MySQL and I didn't want to reinvent the wheel. > > Surly there's something. Anyone? > > Brian > >

attached mail follows:


Hello. I trying to install php, and I'm getting a weird apxs error. I've looked in the FAQ, and thats not the error I'm getting, and I even tried that fix but it didn't help.

Basically apxs is complaining that the -W is not a valid option. The relevant output I get during the 'make' command is below.

I am running on RedHat 6.1, apache 1.3.9 (not a RH rpm install).

My configure command is ./configure --with-mysql=/usr/local/mysql --with-apxs= /usr/local/apache/sbin/apxs --with-xml But I've tried a lot of variants, too, all with the same result.

I'm not subscribed so please CC me direct. Thanks for any help.

Ryan

[rootsamson php-3.0.14]#make [snipped] /usr/local/apache/sbin/apxs -c -o libphp3.so -I. -I. -Wl,'-rpath usr/local/mysql/lib/mysql' ./mod_php3.c libmodphp3-so.a -L/usr/local/lib -lgd -lttf -L/usr/local/mysql/lib/mysql -lmysqlclient -lgdbm pcrelib/libpcre.a -lpam -lm -ldl -lcrypt -resolv -Lpcrelib -lpcre apxs:Error: Unknown option: W Usage: apxs -g -n <modname> apxs -q <query> ... apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] [-L <libdir>] [-l <libname>] <files> ... apxs -i [-a] [-n <modname>] <dsofile> ... make: *** [libphp3.so] Error 1