php-general Digest 18 Feb 2001 10:59:55 -0000 Issue 519 Topics (messages 40381 through 40414): Re: Creative solution with XML,PHP,MYSQL 40381 by: Tim Frank 40392 by: Michael Stearne Re: .php3 in PHP4? 40382 by: Tim Frank HTTP Request - First line 40383 by: Javier Gil 40385 by: Bojan Gajic E-mail Validation Question 40384 by: Jeff Oien 40389 by: Manuel Lemos Is it possible to send a html page via mail()??? 40386 by: David Tandberg-Johansen 40406 by: Ifrim Sorin Re: PHP Code Obfuscator? 40387 by: Joe Njeru 40393 by: Michael Stearne Re: Delete from cart 40388 by: Joe Njeru swflib 40390 by: Jon Snell 40391 by: Rasmus Lerdorf Re: Apache on Linux vs. IIS on W2K 40394 by: php3.developersdesk.com UPS shipping calculation 40395 by: Isaac Force 40398 by: John Monfort 40399 by: John Monfort 40402 by: Dallas Kropka libexec/lobphp4.so: undefined symbol:uncompress 40396 by: S Jha Re: Array question 40397 by: Dan Lowe Session expiry problem 40400 by: Mike Yuen Macs and PHP 40401 by: Mike Yuen Writing Regular Expressions... 40403 by: Dhaval Desai 40404 by: Bojan Gajic 40408 by: CC Zona Mail 40405 by: Brandon Feldhahn search engine 40407 by: Brandon Feldhahn 40409 by: Dallas Kropka dynamic pages/sessions/checkboxes 40410 by: kaab kaoutar Standard-Output 40411 by: Martin Thoma Perl PRINT vs PHP 40412 by: John Monfort Re: Can I select only the newest record? 40413 by: ..s.c.o.t.t.. Using Pipes / PGP 40414 by: Martin Thoma 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] ----------------------------------------------------------------------
Siim, You can do this with a combination of XML and XSL. I remember a demo from Microsoft's XML area that did exactly what you ask: Click a column and have it sort. I believe it was an example having to do with Stock listings. Basically XSL lets you use come programming/looping constructs when displaying data from an XML file. The downside is that it currently only works with IE 5 and greater. It might not be the best overall solution, but if you are looking at the issue from a "can it be done" point of view, then yes, it can actually be done. It just might not be usable. Tim Frank >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 17/02/01, 9:23:00 AM, [EMAIL PROTECTED] (Siim Einfeldt aka Itpunk) wrote regarding [PHP] Creative solution with XML,PHP,MYSQL: > Hi everybody, > I want to implement ordering something on a website without refreshing the > page. Lets say i have four columns in the html table - name,age,skill and > phone. All these are links - under these are the information, eg: > Name Age Skill Phone > Siim 23 php 051... > Tony 18 html 132... > Now, when i click on the name, it should order the listings by name, if I > click on the age, I get the listing ordered by age and etc,etc. Generally > it is easy to do it, but how to do it without refreshing the page every > time I want to order by something else? > It should be possible with XML; I get the data from mysql database with > php, I write it into an array and ... now how could I make it function the > way I just described? Could someone point me some already written code or > explain me in detail how to do it? > Thank you, > Siim Einfeldt > PS: Sorry about sending this message to so many lists, but I haven`t seen > this kind of code anywhere, but at the same time I know it is possible. > -- > 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 an example of this in Mozilla. If you go to the Debug->Viewer Demos menu and select #14 or #15 there are some nice examples there. If you don't have Mozilla, use Netscape 6 to go to: http://www.mozilla.org/newlayout/xml/debugdemos/books/books.xml and http://www.mozilla.org/newlayout/xml/debugdemos/tocdemo/rights.xml Tim Frank wrote: > Siim, > > You can do this with a combination of XML and XSL. I remember a demo > from Microsoft's XML area that did exactly what you ask: Click a column > and have it sort. I believe it was an example having to do with Stock > listings. Basically XSL lets you use come programming/looping constructs > when displaying data from an XML file. The downside is that it currently > only works with IE 5 and greater. It might not be the best overall > solution, but if you are looking at the issue from a "can it be done" > point of view, then yes, it can actually be done. It just might not be > usable. > > Tim Frank > > >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< > > On 17/02/01, 9:23:00 AM, [EMAIL PROTECTED] (Siim Einfeldt aka Itpunk) > wrote regarding [PHP] Creative solution with XML,PHP,MYSQL: > > > Hi everybody, > > > I want to implement ordering something on a website without refreshing > the > > page. Lets say i have four columns in the html table - name,age,skill and > > phone. All these are links - under these are the information, eg: > > Name Age Skill Phone > > Siim 23 php 051... > > Tony 18 html 132... > > > Now, when i click on the name, it should order the listings by name, if I > > click on the age, I get the listing ordered by age and etc,etc. Generally > > it is easy to do it, but how to do it without refreshing the page every > > time I want to order by something else? > > > It should be possible with XML; I get the data from mysql database with > > php, I write it into an array and ... now how could I make it function > the > > way I just described? Could someone point me some already written code or > > explain me in detail how to do it? > > > Thank you, > > Siim Einfeldt > > > PS: Sorry about sending this message to so many lists, but I haven`t seen > > this kind of code anywhere, but at the same time I know it is possible. > > > -- > > 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]
Or you could just put them all on one line like AddType application/x-httpd-php .php .php3 .php4 .phtml if you prefer. Tim Frank >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 17/02/01, 10:48:18 AM, [EMAIL PROTECTED] ("Ifrim Sorin") wrote regarding Re: [PHP] .php3 in PHP4?: > Hello, > I think this is rather a Web server issue. > In Apache, just add in your conf file a line for each extension : > AddType application/x-httpd-php .php3 > AddType application/x-httpd-php .php > AddType application/x-httpd-php .php4 > AddType application/x-httpd-php .phtml > HTH > Sorin Ifrim > ----- Original Message ----- > From: Jeff Gannaway <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, February 17, 2001 12:39 PM > Subject: [PHP] .php3 in PHP4? > > Can I configure PHP4 for to process .php .php4 .php3 and .phtml ?? > > > > I'm a first timer to configuring the PHP engine, so a few detials on how > to > > would be appreciated as well. > > > > Thanks, > > Jeff Gannaway > > _______________________________________________________ > > > > 2001 Wall Calendars.... > > * Art, Jazz, Blues, Women's, African-American. > > * Everyday Discounts. > > * Excellent paper and reproductions. > > > > And as always, a great selection of abstract, > > contemporary and African-American art prints. > > > > PopStreet.com is your avenue to art. > > http://www.popstreet.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]
I want to obtain the first line of the header of the HTTP Request (the request line). Is there a function to obtain this line. Thanks
Try with: $HTTP_SERVER_VARS['SERVER_PROTOCOL'] $HTTP_SERVER_VARS['REQUEST_METHOD'] $HTTP_SERVER_VARS['REQUEST_URI'] HTH, bojan Javier Gil wrote: > I want to obtain the first line of the header of the HTTP Request > (the request line). Is there a function to obtain this line. > Thanks > > -- > 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]
Just a curiosity. I installed and tested Manuel Lemos's PHP E-mail validation class. When I entered an address at the @wi.rr.com domain, no matter what I put before the domain, it would come back as valid. (That's the Wisconsin domain for Road Runner cable service.) But when I tried it for @earthlink.net only real addresses came back as valid. Does anyone know what it is about some mail servers at certain domains that it would return everything as valid? Jeff Oien so [EMAIL PROTECTED] would show as a valid address. [EMAIL PROTECTED] wouldn't but [EMAIL PROTECTED] would
Hello Jeff, On 17-Feb-01 21:49:42, you wrote: >Just a curiosity. I installed and tested Manuel Lemos's >PHP E-mail validation class. When I entered an address >at the @wi.rr.com domain, no matter what I put before >the domain, it would come back as valid. (That's the >Wisconsin domain for Road Runner cable service.) But >when I tried it for @earthlink.net only real addresses >came back as valid. Does anyone know what it is about >some mail servers at certain domains that it would return >everything as valid? >Jeff Oien >so [EMAIL PROTECTED] would show as a valid address. >[EMAIL PROTECTED] wouldn't but [EMAIL PROTECTED] would Newer SMTP servers tend to not verify if a recipient address is valid when the message is submitted to the server but rather later when the message is attempted to be delivered. I suppose that is because it takes less time to queue a message for delivery and it sort of protects the privacy of addresses that correspond to valid accounts so it makes it harder for people that keep spam lists to verify if the addresses they have are valid or not. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
Hello ! I wonder if there are any class or script out there that you can give an url or file as an variable and then it sends this as html-mail to a given emailadress. david
Hi, Try this : <? $qry=getenv("QUERY_STRING"); $sirarg=explode("&",$qry); $url_adr=$sirarg[0]; $mail_adress=$sirarg[1]; $fcontents = join ('', file ($url_adr)); $posta=mail($mail_adress ,"Requested URL: ".$url_adr, $fcontents ,"From: [EMAIL PROTECTED]\n"."MIME-Version: 1.0\n"."Content-Type: text/html;\n"); if ($posta ) { echo "The requested URL was sent succesfully" ; } else { echo "There was an error while sending the requested URL " ; } ?> You should call the script like this : scriptname.php?page_adress&email_adress Here is an example : http://10.116.1.133/script/email.php3?http://10.116.1.133/documen/php_nou/function.mail.html&[EMAIL PROTECTED] HTH Regards, Sorin Ifrim David Tandberg-Johansen <[EMAIL PROTECTED]> wrote in message 96n7cs$inb$[EMAIL PROTECTED]">news:96n7cs$inb$[EMAIL PROTECTED]... > Hello ! > > I wonder if there are any class or script out there that you can give an url > or file as an variable and then it sends this as html-mail to a given > emailadress. > > david > > > > -- > 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] >
Jim, I also come from a third world country and the cost of buying software is also high just as Tiger mentioned. We did not have 200 years of free labour to advance ourselves as much as you did. Joe Njeru. Nairobi, Kenya
Joe, I think that the APC product (Alternative PHP Cache) may soon offer souce "encoding". I think I remember reading about that. Regard APC seems to be a very nice product. Check it out at http://apc.communityconnect.com/ Michael Joe Njeru wrote: > Jim, > > I also come from a third world country and the cost of buying software is > also high just as Tiger mentioned. We did not have 200 years of free labour > to advance ourselves as much as you did. > > Joe Njeru. > Nairobi, Kenya > > -- > 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]
"Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > It is Friday afternoon here and I don't want to have to reinvent the > wheel. What would be the easiest way to delete an item from a shopping > cart? I know what is required for Mysql but I am stumped on how to > implement it. > > TIA > Gary > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > Hi, Are you using session variables to store your client ID and data or cookies? In the case of cookies type the following to destroy them : <? setcookie ("User_ID", "", time()); ?> or if you used the session id to add items to a general shopping cart <? $sess = session_id(); $DelCart = mysql_query("delete from Cart where sess_id = '$sess'"); ?> Hope I was helpful Joe Njeru, Nairobi, Kenya
Attempting to use this in PHP causes Apache to segfault. Is there anywhere I can download the source and make sure it's linked against my libs properly?
> Attempting to use this in PHP causes Apache to segfault. Is there anywhere > I can download the source and make sure it's linked against my libs > properly? The source for what? PHP? Sure, click on the Downloads button on www.php.net. For libswf, nope. Use ming instead. http://www.opaque.net/ming/ -Rasmus
Addressed to: <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from <[EMAIL PROTECTED]> Sat, 17 Feb 2001 14:22:54 -0000 > So the question is, why is this acting like this? (When I meet "pro" they > say Apache, Linux e.g.. is the best, and curse the IIS and W2K, but at this > time I would say it's a myth..) The round() problem is because of differences in your versions of PHP, but the fact of the matter is that the UNIX version of PHP is ahead of the WIndows version because it is easier to program on UNIX, and there are more people interested in programming for UNIX than Windows. Most main stream functions will work on both platforms but there are things like the DBM database that works on UNIX, but fails because of differences in the Windows platform. (See http://bugs.php.net/?id=8819) Then there is a new image library that breaks the 256 color barrier, that is only available on UNIX. Work is in progress (maybe done) on a PHP extension to call it, but unless someone ports the base library to Windows it will not be available on that platform. I know there are other things, these are just some that I've seen recently. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com
I'm looking for a better way to calculate UPS shipping costs than opening a connection to the UPS website every time a user wants to calculate their shipping (Which is what I'm finding). Anybody care to point me in the direction of where I can information on how to do this?
There is a Perl module that is very useful for this, I'm currently in the process of implementing it. You can find a copy at http://www.seva.net/~msolomon/Business-UPS/dist/ I'm looking for something similar for FedEx, so let me know if you find one. __________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+- On Sat, 17 Feb 2001, Isaac Force wrote: > I'm looking for a better way to calculate UPS shipping costs than opening a >connection to the UPS website every time a user wants to calculate their shipping >(Which is what I'm finding). > > Anybody care to point me in the direction of where I can information on how to do >this? > > -- > 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 Perl module that is very useful for this, I'm currently in the process of implementing it. You can find a copy at http://www.seva.net/~msolomon/Business-UPS/dist/ I'm looking for something similar for FedEx, so let me know if you find one. __________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+- On Sat, 17 Feb 2001, Isaac Force wrote: > I'm looking for a better way to calculate UPS shipping costs than opening a >connection to the UPS website every time a user wants to calculate their shipping >(Which is what I'm finding). > > Anybody care to point me in the direction of where I can information on how to do >this? > > -- > 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 great UPS calc system that we are using.... and while attachments are not allowed.... code is below. ***************************************************** <?php /* Copyright (c) 2000, Jason Costomiris All rights reserved. Don't be scared, it's just a BSD-ish license. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by Jason Costomiris. 4. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ class Ups function Product($prod){ /* 1DM == Next Day Air Early AM 1DA == Next Day Air 1DP == Next Day Air Saver 2DM == 2nd Day Air Early AM 2DA == 2nd Day Air 3DS == 3 Day Select GND == Ground STD == Canada Standard XPR == Worldwide Express XDM == Worldwide Express Plus XPD == Worldwide Expedited */ $this->upsProductCode = $prod; } function origin($postal, $country){ $this->originPostalCode = $postal; $this->originCountryCode = $country; } function dest($postal, $country){ $this->destPostalCode = $postal; $this->destCountryCode = $country; } function rate($foo){ switch($foo){ case "RDP": $this->rateCode = "Regular+Daily+Pickup"; break; case "OCA": $this->rateCode = "On+Call+Air"; break; case "OTP": $this->rateCode = "One+Time+Pickup"; break; case "LC": $this->rateCode = "Letter+Center"; break; case "CC": $this->rateCode = "Customer+Counter"; break; } } function container($foo){ switch($foo){ case "CP": // Customer Packaging $this->containerCode = "00"; break; case "ULE": // UPS Letter Envelope $this->containerCode = "01"; break; case "UT": // UPS Tube $this->containerCode = "03"; break; case "UEB": // UPS Express Box $this->containerCode = "21"; break; case "UW25": // UPS Worldwide 25 kilo $this->containerCode = "24"; break; case "UW10": // UPS Worldwide 10 kilo $this->containerCode = "25"; break; } } function weight($foo){ $this->packageWeight = $foo; } function rescom($foo){ switch($foo){ case "RES": // Residential Address $this->resComCode = "1"; break; case "COM": // Commercial Address $this->resComCode = "2"; break; } } function Quote(){ $upsAction = "3"; // You want 3. Don't change unless you are sure. $url = join("&", array("http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes", "10_action=$upsAction", "13_product=$this->upsProductCode", "14_origCountry=$this->originCountryCode", "15_origPostal=$this->originPostalCode", "19_destPostal=$this->destPostalCode", "22_destCountry=$this->destCountryCode", "23_weight=$this->packageWeight", "47_rateChart=$this->rateCode", "48_container=$this->containerCode", "49_residential=$this->resComCode" ) ); $fp = fopen($url, "r"); while(!feof($fp)){ $result = fgets($fp, 500); $result = explode("%", $result); $errcode = substr($result[0], -1); switch($errcode){ case 3: $returnval = $result[8]; break; case 4: $returnval = $result[8]; break; case 5: $returnval = $result[1]; break; case 6: $returnval = $result[1]; break; } } fclose($fp); if(! $returnval) { $returnval = "error"; } return $returnval; } } ?> Example <? require("ups.php"); $rate = new Ups; $rate->upsProduct("1DM"); // See upsProduct() function for codes $rate->origin("08033", "US"); // Use ISO country codes! $rate->dest("90210", "US"); // Use ISO country codes! $rate->rate("RDP"); // See the rate() function for codes $rate->container("CP"); // See the container() function for codes $rate->weight("17"); $rate->rescom("RES"); // See the rescom() function for codes $quote = $rate->getQuote(); echo $quote; ?> ***************************************************** -----Original Message----- From: Isaac Force [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 9:49 PM To: [EMAIL PROTECTED] Subject: [PHP] UPS shipping calculation I'm looking for a better way to calculate UPS shipping costs than opening a connection to the UPS website every time a user wants to calculate their shipping (Which is what I'm finding). Anybody care to point me in the direction of where I can information on how to do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi All, I saw similar error questions posted on phpbuilder etc but didn get exact answer about cause of this error. I have RedHat 6.2 with Apache 1.3.17, MySQL 3.23.33 and Php 4.0.4pl1. I am getting the above error mentioned in subject while trying to start Apache. Any idea ? Thanks, SJ ===== Sanjeev Jha, Unix System Administrator __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
No - PHP arrays aren't arrays in the traditional sense like you would find in C or Perl... it's more like Perl's hash (or associative array). It's just a set of key/value pairs. In some cases you would use numbes instead of alphanumeric labels but PHP treats it all the same way, basically. -dan Previously, Chris said: > Ok, > But can't the array still be refered to with a number? > So in myarray["something"] is the 50th element in the array, wouldn't: > > myarray[49] = myarray["something"] > > ? > > > > > On Thursday 15 February 2001 01:40, Chris wrote: > > > > > How do I get the index,number of an array if reffering to an array via > > > string? Ex: > > > I have 100 arrays, and I want to know what # myarray["something"] is. > > > > That element doesn't have an index number such arrays are implemented as > > hashes or trees, which don't store data at "fixed positions" (that's a > > very bad explanation, but, well...) > > The "index" is the "key" in this case - in your example it's "something". > > > > -- > > Christian Reiniger > > LGDC Webmaster (http://sunsite.dk/lgdc/) > > > > I saw God --------- and she was black. > > > > -- > > 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] > -- Dan Lowe <[EMAIL PROTECTED]> http://tangledhelix.com/ If a man is standing in the middle of the forest speaking and there is no woman around to hear him... is he still wrong? -George Carlin
I'm using IE 5 to view a page i'm building for a client of mine. The problem is, on some pages when you press the "Back" button, I get an expiry message. To temporarily fix this problem, i've opened new windows everytime a link is clicked on. This is a pretty unelegant solution but I hope someone out there has an answer for me on how to fix this. FYI: I'm using Apache 1.3.14 on a Windows machine. Thanks, Mike
I'm got another person working for me on a site. He's a Mac user and for some reason, he can't seem to register as a new person. I know this problem isn't due to the large amount of traffic b/c it's a new site with 3 users max at any time. I haven't found any similar problems in any knowledge base and i'm thinking it has something to do with my cable modem connection and the fact that: 1. I'm in Seattle and he's in Cleveland (distance issue) - less likely. 2. ON the more likely side, all the crap that is running on my computer (ie: firewalls, IDS, telnet, applications). However, another developer in the same city as me has no problems registering on his Win machine. Anyone have any ideas? Thanks, Mike
Hi! Can somebody enlighten me with regular expressions... like [^\-*] something like that. To me it appears as a code language.. Can Anybody tell me what do the various characteers do? is there any good article on anywebsites..? besides. phpwizard .com I have checked that allready... Thanx ! Cheers!~ Dhaval Desa __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
'So What's A $#!%% Regular Expression, Anyway?!' http://www.devshed.com/Server_Side/Administration/RegExp/ HTH, bojan gajic Dhaval Desai wrote: > Hi! > > Can somebody enlighten me with regular expressions... > like [^\-*] something like that. To me it appears as a > code language.. > > Can Anybody tell me what do the various characteers > do? > is there any good article on anywebsites..? besides. > phpwizard .com I have checked that allready... > > Thanx ! > Cheers!~ > Dhaval Desa > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.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]
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dhaval Desai) wrote: > Can somebody enlighten me with regular expressions... > like [^\-*] something like that. To me it appears as a > code language.. > > Can Anybody tell me what do the various characteers > do? > is there any good article on anywebsites..? besides. > phpwizard .com I have checked that allready... PHP gives you the option of using either: * POSIX regular expressions (ex. ereg_*), which beginners often seem to prefer, or * Perl-compatible regular expressions (PCRE; ex. preg_*), which are very powerful and fast but don't always look as friendly For POSIX regex, you can do "man regex" at the command line, or do a search for "POSIX regular expressions" in any search engine. There are also many, many tutorials on the net (including one at PHPbuilder.com) explaining the "extended regular expressions" syntax, which is basically what that is. For the PCRE functions, the PHP manual includes detailed info about the syntax. Since it also details the minor differences between those functions and the Perl equivalent, any tutorial on Perl regular expressions should be helpful in clarifying anything the manual doesn't make clear enough. For an offline resource, there's the O'Reilly book "Mastering Regular Expressions". -- CC
can somone give me a mail sending script it's like whatever i do there is always a error
Can some one tell me how i would make a search engine, like what talbes and how many fields and what the form should look like
hehe, And while they are at it, could that same person please tell me how to achieve world domination with just a sponge, toothpick and some gum???? hehe sorry Brandon I just couldn't resist... your going to have to get a little more specific on your questions... we cant write the script for you.... What are you searching for? pages on your site? MP3s in your database? Everything on the web??? If you are doing the last one, then I would suggest you stop here.... if your asking this question, then you don't understand that this can take LOTS of time and money... There are scripts out there now that will allow you to do this. Not sure of any off the top of my head, but someone will know, check www.hotscripts.com . However, the other two are fairly simple... you will need a database table with the page name, and list of keywords for that page.... then do something like this... SELECT pagePath FROM searchEngine WHERE keyWords LIKE '$key_Word_User_Entered' It's LIKE or IN.... I never remember which... (someone set me strait here.) your form would be a 1 or 2 field form, one for the users search, the other maybe a drop down list of possible categories to search in.... (Rap, Country...., Pets, Sports.......) this would be to narrow the search... but as always with PHP.... someone has written this already,... again, check hotscrips. Good luck... -----Original Message----- From: Brandon Feldhahn [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 18, 2001 2:35 AM To: [EMAIL PROTECTED] Subject: [PHP] search engine Can some one tell me how i would make a search engine, like what talbes and how many fields and what the form should look like -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi! I'd like to do the following: i have a page where the user chooses from a combo of a products, a combo of charactersitics, the date when he wants it and the quantity! he may not fill one of these inputs so the result will be the list of all products, or he may choose the product and not the characteristics etc so i will check in my database and show them! but that page is dynamic cause i have to add checkboxes close to each product !The purpose of these checkboxes is that the user can add the products to its cart of estimates(devis), so as the final result will be the estimate of the price of all products checked! The problem is that when the user checks a product, i should know wich product to add, i thought of giving the checkboxes, the product number ! any ideas ? PS: i'm using sessions cause i have many pages from where he can add whatever he wants to its estimate cart Thanks _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hello ! Which is the name for the standard-output on Linux ? The background: I want to use PGP (2.6.3.) to put the encrypted file out on standard-output. Regards Martin
Hello everyone, In perl, you can use 'print qq' to print a block of text. Like, print qq~ my text block goes here, with " " or whatever... my other line with more special characters... ~; Is there something similar in PHP? I've tried the above, but it does not work. I was wondering if PHP had something as convenient. __________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+-
yes, that will work... however, if you're trying to select from a table that lacks an explicit AUTO_INSERT field, yet has an incrementing field (DATETIME is one that comes to mind), selecting the LAST_INSERT_ID wouldnt work... > -----Original Message----- > From: PHPBeginner.com [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 17, 2001 03:12 > To: ..s.c.o.t.t..; Php-General > Subject: RE: [PHP] Can I select only the newest record? > > > I wonder, if LAST_INSERT_ID will work in here... > > I know it works when on the same file was an insertion.. but will it return > you the last ever inserted id, say a week ago? > > I feel like it won't, but don't know for sure... try it... > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > > PHPBeginner.com (Where PHP Begins) > [EMAIL PROTECTED] > www.phpbeginner.com > > > > > > > -----Original Message----- > From: ..s.c.o.t.t.. [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 17, 2001 4:59 PM > To: Php-General > Subject: RE: [PHP] Can I select only the newest record? > > > there are two ways that come to mind of doing this if you're > using some kind of auto-incrementing field (not necessarily > AUTO_INCREMENT, but any field that increases [or decreases] > with time) > > this will select the entire row, but limit the query to only > return 1 result (and depending on how your order, this > result could be the highest/lowest value of the field): > > > (to get highest value of field id) > SELECT * FROM mytable ORDER BY id ASC LIMIT 1; > > (to get lowest value of field id) > SELECT * FROM mytable ORDER BY id DESC LIMIT 1; > > > PS: there's probably a more efficient way to do it, > but this is what came to mind at the moment... > > > > -----Original Message----- > > From: Brian Drexler [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 16, 2001 20:22 > > To: Php-General > > Subject: [PHP] Can I select only the newest record? > > > > > > Using PHP3/MySQL, is there a way I can select only the newest record from > a > > MySQL table. I have a datetime field and an Auto_incremented field. > Anyone > > got any ideas??? > > > > Brian Drexler > > > > > -- > 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] >
Hm, this is getting much more complicated as I thought. I want to use PGP. This works fine with temporary Files: You say to PGP: "Please take the file message.txt and encrypt it to the file encrypt.txt". Ok. But this could be a possible securety-hole, because the message-file is available on the disc for some time. The pgp-doc says, that you could use the -f paramter with pipes to avoid this. But: How is it done exactly ? I didn't get anything to work. (Using PGP 2.6.3. and Linux) Regards Martin