RE: [PHP] getting a number range from user input.. (weight)

2004-11-05 Thread Warren Vail
Sorry for the delay in getting back to you but I had a long commute tonight. Suppose you load an array in high weight order (from the zone that applies). weight value .5 9.45 1.0 10.71 1.5 11.97 2.0 13.23 load them into an array where like so; select weight,

Re: [PHP] getting a number range from user input.. (weight)

2004-11-05 Thread Louie Miranda
out of desperation i have made a simple and long one and point to a function. i'll also try ur suggestion, my code is long. if ($get_WEIGHT_x = .5) { $get_WEIGHT = .5; lessthan_20Kg(); } elseif ($get_WEIGHT_x = 1) { $get_WEIGHT = 1; lessthan_20Kg();

RE: [PHP] getting a number range from user input.. (weight)

2004-11-05 Thread Murray @ PlanetThoughtful
You can probably figure ways to streamline this, but I think it may answer your basic question. The best solution is one that works for you reliably, and there have to be at least 50 ways to do this. This is just one. Hmm. Personally I would have thought the best way to do this is to get

[PHP] Re: mailparse or imap* ?

2004-11-05 Thread Per Jessen
M. Sokolewicz wrote: I use scripts I wrote myself. Just read trough the whole RFC, and you'll find out exactly how each email message is made, and what it (has to/will) consist(s) of. Oh, I fully appreciate that. I was just trying to avoid reinventing the wheel again. There's a lot more to

Re: [PHP] Simple math failing - PHP Bug?

2004-11-05 Thread Olaf van der Spek
Mike Ford wrote: for. (Some early business-oriented computers, and some calculators (especially financial ones) did use a system called binary-coded decimal -- BCD -- to calculate accurately in the sense you mean, but the fact that they were never widely used and have died out almost totally

[PHP] images doesn't seem to cache

2004-11-05 Thread anders thoresson
Hi, I put all my images outside the web root, the prevent direct access, and then access them with a img-tag like this: img src=fnc_get_image.php?path=?=$path;? / where fnc_get_image.php is: // Check if user is logged in require_once 'global_includes.php'; $user = new User(); // Get path to

[PHP] Re: Re: VOTE TODAY

2004-11-05 Thread Michelle Konzack
Hello Michael and *, Am 2004-11-04 16:10:02, schrieb Michael Lauzon: 6Mb, that's no fair, the highest we have in Canada is 4Mb; although supposedly there is a 5Mb service somewhere...well there is 7Mb service but you'll be paying out of your @$$ for it. In Europe the prices for ADSL are

[PHP] PDFLIB error 2516

2004-11-05 Thread Jack . van . Zanen
Hi All, I upgraded my test system to 4.3.9 (from 4.3.4) and now run into problems with pdf creation. Scripts that ran fine before now return the following error: Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Arial' not found in d:\website\pdf_graph.php on line 50 Has

[PHP] Re: $_SERVER['HTTP_REFERER'] does not work

2004-11-05 Thread Michelle Konzack
Am 2004-11-05 13:23:01, schrieb Jason Wong: Look up UseCanonicalName in the Apache docs and see if this relates to your problem. I will look at it The surest way to prevent unauthorised access is to require a login. .htaccess is no solution because * can surf my OnlienStore but can not

Re: [PHP] Re: Re: VOTE TODAY

2004-11-05 Thread Francisco M. Marzoa Alonso
That's true for Germany and France and probably another european countries, but in Spain by example we've just 512/128kbps paying the same that a french by 6Mbps/512kbps. Never mind, this dammed country continues being more the North of Africa than the South of Europe... Best regards, Michelle

Re: [PHP] PDFLIB error 2516

2004-11-05 Thread Tom Rogers
Hi, Friday, November 5, 2004, 8:18:16 PM, you wrote: JvZnc Hi All, JvZnc I upgraded my test system to 4.3.9 (from 4.3.4) and now run into problems JvZnc with pdf creation. Scripts that ran fine before now return the following JvZnc error: JvZnc Fatal error: PDFlib error: [2516] PDF_findfont:

RE: [PHP] Simple math failing - PHP Bug?

2004-11-05 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 05 November 2004 10:42, Olaf van der Spek wrote: Mike Ford wrote: for. (Some early business-oriented computers, and some calculators (especially financial ones) did use a

RE: [PHP] PDFLIB error 2516

2004-11-05 Thread Jack . van . Zanen
Thx That was it. Anybody have any ideas as to why this behaviour changed?? Regards Jack -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 12:46 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PDFLIB error 2516 Hi,

[PHP] This is weird..whts the prob???

2004-11-05 Thread Aalee
Hi guys, Working on PHP ver 4.3.8 with register_globals turned OFF and Apache 1.3.31. MySQL ver 4.0.20a on winXP pro SP1. This script does not seems to work with the method of POST. When I change it to GET method the data is entered into the database, but with POST it does not. I have another

[PHP] Search a word in multiple tables

2004-11-05 Thread Phpu
Hi, How can i search a specific word in 2 tables I use this but it is not working sql = SELECT a.product_id, a..select_language('product_name_en', 'product_name_fr')., b.brand_name FROM products_accessories as a, brands as b WHERE (a..select_language('product_name_en',

RE: [PHP] Search a word in multiple tables

2004-11-05 Thread Murray @ PlanetThoughtful
Hi, How can i search a specific word in 2 tables I use this but it is not working sql = SELECT a.product_id, a..select_language('product_name_en', 'product_name_fr')., b.brand_name FROM products_accessories as a, brands as b WHERE (a..select_language('product_name_en',

Re: [PHP] Search a word in multiple tables

2004-11-05 Thread raditha dissanayake
Phpu wrote: Hi, How can i search a specific word in 2 tables I use this but it is not working sql = SELECT a.product_id, a..select_language('product_name_en', 'product_name_fr')., b.brand_name FROM products_accessories as a, brands as b WHERE (a..select_language('product_name_en',

[PHP] Send XHTML emails with images

2004-11-05 Thread Gery Duyck
Hi, I've made an XHTML page to be send as a rich e-mail so I can do more as just tekst. Everything is fine, except for the images. In the source code I say the images are like img src=http://www.domain.com/pic.jpg; alt= / but wen I send the email, I can't see the images in Outlook Express or

Re: [PHP] This is weird..whts the prob???

2004-11-05 Thread Brent Baisley
The code looks fine to me. You may want to look at the Apache access logs to see what is getting submitted to the server when you submit the form. Or you can use a network monitoring tool to see what the client is submitting. But, if you can't figure out what is causing the problem, just use

Re: [PHP] This is weird..whts the prob???

2004-11-05 Thread - Edwin -
Hi, On Fri, 5 Nov 2004 22:55:20 +1030 Aalee [EMAIL PROTECTED] wrote: Hi guys, Working on PHP ver 4.3.8 with register_globals turned OFF and Apache 1.3.31. MySQL ver 4.0.20a on winXP pro SP1. This script does not seems to work with the method of POST. When I change it to GET method the data

Re: [PHP] Send XHTML emails with images

2004-11-05 Thread Marek Kilimajer
Gery Duyck wrote: Hi, I've made an XHTML page to be send as a rich e-mail so I can do more as just tekst. Everything is fine, except for the images. In the source code I say the images are like img src=http://www.domain.com/pic.jpg; alt= / but wen I send the email, I can't see the images in

[PHP] Re: Problems with MySql

2004-11-05 Thread Oliver
I have sent am mail to [EMAIL PROTECTED] and the sad to me send the error for this e-mail. ---BeginMessage--- Hi Oliver, Please ask support questions at [EMAIL PROTECTED] Regards, Gabor Hojtsy Oliver írta: *Hello. My name is Oliver. I am from Brazil and I have had some problems. Today I installed

Re: [PHP] This is weird..whts the prob???

2004-11-05 Thread dgobrien
Add a phpinfo(); to the script and see what is getting passed to the page. That has worked wonders for me. -Dave From: Aalee [EMAIL PROTECTED] Date: 2004/11/05 Fri AM 07:25:20 EST To: [EMAIL PROTECTED] Subject: [PHP] This is weird..whts the prob??? Hi guys, Working on PHP ver 4.3.8

RE: [PHP] getting a number range from user input.. (weight)

2004-11-05 Thread Warren Vail
You can probably figure ways to streamline this, but I think it may answer your basic question. The best solution is one that works for you reliably, and there have to be at least 50 ways to do this. This is just one. Hmm. Personally I would have thought the best way to do this is to

Re: [PHP] Re: Problems with MySql

2004-11-05 Thread - Edwin -
Hi, On Fri, 05 Nov 2004 12:55:17 -0200 Oliver [EMAIL PROTECTED] wrote: Today I installed EasyPHP without any problems, but when I updated the version of php, Mysql stoped.* Okay. So, how did you update it? Assuming you're on linux and using RPMs, [...] / To connect to a MySQL server, PHP

Re: [PHP] Re: $_SERVER['HTTP_REFERER'] does not work

2004-11-05 Thread Jason Wong
On Friday 05 November 2004 11:14, Michelle Konzack wrote: I do not like to have linked my PHP Scripts/Pages from outside like from GOOGLE. I do not know how GOOGLE know about my onlinestore because it exist since one week... But gotten around 3700 hits from googlebot. 3700 Hits for nothing...

RE: [PHP] How to display a 'please wait' message whilst processing?

2004-11-05 Thread Graham Cossey
[snip] On a number of sites a message and/or graphic is displayed asking you to wait or be patient whilst some processing is being performed to compose the next page. How are these done within PHP scripts? Could output buffering be used for this purpose? For example is it possible to do

[PHP] Configure help / advise

2004-11-05 Thread Dave Carrera
Hi List, I want to configure a new php4 (latest stable) but include some extra modules Currently I have the standard mods plus GD using this for configure './configure --with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local --prefix=/usr/local' I want to add SSL, and all other mods that

Re: [PHP] Send XHTML emails with images

2004-11-05 Thread Manuel Lemos
Hello, On 11/05/2004 12:02 PM, Gery Duyck wrote: I've made an XHTML page to be send as a rich e-mail so I can do more as just tekst. Everything is fine, except for the images. In the source code I say the images are like img src=http://www.domain.com/pic.jpg; alt= / but wen I send the email, I

Re: [PHP] Configure help / advise

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 15:53:16 -, Dave Carrera [EMAIL PROTECTED] wrote: My mysql server is on another box so what file is needed for the php configure ? I think the MySQL libs and dev files needed to add MySQL support to PHP are in the MySQL 'server' port under FreeBSD. For example:

Re: [PHP] images doesn't seem to cache

2004-11-05 Thread Marek Kilimajer
anders thoresson wrote: Hi, I put all my images outside the web root, the prevent direct access, and then access them with a img-tag like this: img src=fnc_get_image.php?path=?=$path;? / where fnc_get_image.php is: // Check if user is logged in require_once 'global_includes.php'; $user = new

RE: [PHP] getting a number range from user input.. (weight)

2004-11-05 Thread Murray @ PlanetThoughtful
[snippage] In theory perhaps, the better approach kind of depends on if he is looking up the cost of one shipment or many. Databases, like you indicated, are optimized for looking up this kind of information from large record sets on a hard drive and a good database will try to cache as

RE: [PHP] SQL-Injection, XSS and Hijacking

2004-11-05 Thread Pedro Iran Mendez Perez
Hello Mark, Where can I find these articles that you talk? do you have a URL for those articles? Thank you :) = ?Acaso se olvidara la mujer de su bebe, y dejara de compadecerse del hijo de su vientre? Aunque ellas se olviden, yo no me olvidare de ti Isa 40:27 = Atte Pedro Iran

[PHP] PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Frantzcy Paisible
Hi all, I'm looking for some information, rearging mcrypt. Now, I've been through the normal channels, I've been going in in cercles. I need to recreate this perl script in php : sub cryptage { use Crypt::CBC; $key = SuperFreak; my $action = shift; my $string = shift; my $c =

[PHP] Re: PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Ben Ramsey
Frantzcy Paisible wrote: I'm looking for some information, rearging mcrypt. Now, I've been through the normal channels, I've been going in in cercles. even a simple Look this way would help. Look this way: http://www.php.net/mcrypt :-) -- Ben Ramsey Zend Certified Engineer http://benramsey.com

[PHP] troubleshooting bulk email script

2004-11-05 Thread Redmond Militante
hi i have a script that loops through a mysql database, and extracts usernames and email addresses, then uses this information to send emails the code for the (i think) relevant part of the script is below. i'm having a couple of problems with this script - the main one being that bulk email

[PHP] Newbie pattern question

2004-11-05 Thread Phpu
Hi, I have this function function validate_name($name) { if(ereg(^[a-zA-Z0-9_]{2,30}$, $name)) { return true; } else { return false; } } If i enter a name like John for exemple everything is ok but if i enter John Doe the function return false. Where is the problem? Thanks

Re: [PHP] Re: PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Frantzcy Paisible
Thanx Ben, But I've been thru this one, in and out, and it's exactly one of those that say MCRYPT_IDEA (non-free) but not more. Have you used mcrypt ? with cbc and IDEA ? Frantzcy On Fri, 05 Nov 2004 13:30:04 -0500,Ben Ramsey [EMAIL PROTECTED] wrote: Frantzcy Paisible wrote: I'm

Re: [PHP] Newbie pattern question

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 20:55:00 +0200, Phpu [EMAIL PROTECTED] wrote: if(ereg(^[a-zA-Z0-9_]{2,30}$, $name)) { if(ereg(^[a-zA-Z0-9_\ ]{2,30}$, $name)) { Need to allow spaces in the regular expression. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP

[PHP] Re: Newbie pattern question

2004-11-05 Thread Matthew Weier O'Phinney
* Phpu [EMAIL PROTECTED]: I have this function function validate_name($name) { if(ereg(^[a-zA-Z0-9_]{2,30}$, $name)) { return true; } else { return false; } } If i enter a name like John for exemple everything is ok but if i enter = John Doe the function return

Re: [PHP] PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 13:10:43 -0500, Frantzcy Paisible [EMAIL PROTECTED] wrote: I need to recreate this perl script in php : I'm not sure if you realize it, but you can call the Perl script from PHP using system(). -- Greg Donald Zend Certified Engineer http://gdconsultants.com/

Re: [PHP] Newbie pattern question

2004-11-05 Thread Frantzcy Paisible
Hi, Try adding a space([a-zA-Z0-9_] = [a-zA-Z0-9_ ]), John Doe is false but JohnDoe would be true in the case below Frantzcy On Fri, 5 Nov 2004 20:55:00 +0200,Phpu [EMAIL PROTECTED] wrote: Hi, I have this function function validate_name($name) { if(ereg(^[a-zA-Z0-9_]{2,30}$,

Re: [PHP] Newbie pattern question

2004-11-05 Thread -{ Rene Brehmer }-
At 19:59 05-11-2004, Greg Donald wrote: On Fri, 5 Nov 2004 20:55:00 +0200, Phpu [EMAIL PROTECTED] wrote: if(ereg(^[a-zA-Z0-9_]{2,30}$, $name)) { if(ereg(^[a-zA-Z0-9_\ ]{2,30}$, $name)) { If you use ereg, use [[:blank:]] instead of an actual space, that allows for tabs and other variants too

Re: [PHP] Re: PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Ben Ramsey
Frantzcy Paisible wrote: But I've been thru this one, in and out, and it's exactly one of those that say MCRYPT_IDEA (non-free) but not more. Have you used mcrypt ? with cbc and IDEA ? Sorry about that. I must have read your message wrong. I have used mcrypt, but not with IDEA or cbc. Are you

[PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Ryan A
Hi, I have a form that has something like this: input type=checkbox name=url[] value='http://somesite' checked a href='http://somesite' target=asomesite/a brinput type=text name=txt[] size=75 value='some desc' input type=checkbox name=url[] value='http://somesite1' checked a

RE: [PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Jay Blanchard
[snip] These values will be entered into the database so I need proper matching pairs of URL and TXT [/snip] for($i = 0; $i count($url); $i++){ if(( != $url[$i]) ( != $txt[$i])){ //it is OK to put into database } else { //it ain't OK } } -- PHP General Mailing List

Re: [PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Brent Baisley
You're close, but you want to use multidimensional arrays. So something like: input type=checkbox name=data[0][url] value='http' input type=text name=data[0][txt] size=75 value='desc' input type=checkbox name=data[1][url] value='http' input type=text name=data[1][txt] size=75 value='desc' input

RE: [PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Vail, Warren
Hard code the array occurrence number in the checkbox and textbox names; input type=checkbox name=url[1] value='http://somesite' checked a href='http://somesite' target=asomesite/a brinput type=text name=txt[1] size=75 value='some desc' The form will only return the checkboxes that are checked

[PHP] Problem with fopen(...) - No error??

2004-11-05 Thread Arty
I'm working against a table without problems, that is, as long as I insert and retrieve texts and numerical values from various fields. However, I'm also using a table for images, but I can't upload files correctly. This is the error I get : Warning: fopen(, r) - No error in

RE: [PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Ryan A
Nope, This didnt work, it just chops off the last x depending on how many were selected. Thanks, Ryan On 11/5/2004 8:46:27 PM, Jay Blanchard ([EMAIL PROTECTED]) wrote: [snip] These values will be entered into the database so I need proper matching pairs of URL and TXT [/snip] for($i

Re: [PHP] How to display a 'please wait' message whilst processing?

2004-11-05 Thread Brent Baisley
I've read of solutions on how to do this, but can't remember where. You will probably need to search the message archives. You can pretty much forget about the flush() command though, browsers don't handle it the same way. For instance, Internet Explorer won't display anything until it has

RE: [PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Jay Blanchard
[snip] This didnt work, it just chops off the last x depending on how many were selected. [/snip] Hmreally? I was just able to do this with nary a problem. Chops off? Can you just echo out the results? for($i = 0; $i count($url); $i++){ if(( != $url[$i]) ( != $txt[$i])){

Re: [PHP] Re: Re: VOTE TODAY

2004-11-05 Thread -{ Rene Brehmer }-
Well, I definitely don't enjoy the 45 euro I have to pay for my 512 kbit SDSL ... the prices have halfed over the past 2 years, but it's still above and beyond what the quality of service deserves but this is as cheap as it gets for SDSL here ... the ADSL is cheaper, but I need the high

RE: [PHP] Multiple checkboxes and multiple textboxes

2004-11-05 Thread Ryan A
Hi Jay, I modified your code slightly because I am working with 152 rows and the output would be a _lot_ This is how i modified it: $url=$_POST['url']; $txt=$_POST['txt']; for($i = 0; $i count($txt); $i++){ if(( != $url[$i]) ( != $txt[$i])){ //echo $url[$i] . nbsp;. $txt[$i] .

[PHP] Syntax highlighting of odd language

2004-11-05 Thread Aaron Gould
Could any of you privide some leads in regard to highlighting syntax of an odd language? I have a large amount of snippits of legacy code from our company's primary application. The code used is BBx (a variant of Basic). I'm attempting to show this code on a web page, but with highlighting of

RE: [PHP] Multiple checkboxes and multiple textboxes [SOLVED]

2004-11-05 Thread Ryan A
Hey guys, Thank you everyone who replied. The below solution from Warren worked out great for me with a little modification for my specific needs. Cheers, Ryan Hard code the array occurrence number in the checkbox and textbox names; input type=checkbox name=url[1] value='http://somesite'

[PHP] Re: Syntax highlighting of odd language

2004-11-05 Thread M. Sokolewicz
Aaron Gould wrote: Could any of you privide some leads in regard to highlighting syntax of an odd language? I have a large amount of snippits of legacy code from our company's primary application. The code used is BBx (a variant of Basic). I'm attempting to show this code on a web page, but

[PHP] Passing values from a new window

2004-11-05 Thread Todd Cary
I have a button that creates a new window. The surfer may enter data in the new window, and if he does, when the window is closed by the surfer, can the information update fields on the original page - the page/window from which the new window was created? I have seen instances where the

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread Bruno B B Magalhães
Aaron, why don't you use a very simle sintax like this one: $code = 'function what() { do oddname; %oddsyntax }'; function highlight_code($code) { $oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3'); for($i = 0; $i = count($oddsyntax)-1; $i++) { $highlighted_code =

[PHP] keywords generation

2004-11-05 Thread Bruno B B Magalhães
Hi People, well, I am building a very sophisticated(?) CMS, and I am thinking to implement a keyword automatically generation function... I thought on the following structure: == $submited_text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh

Re: [PHP] Passing values from a new window

2004-11-05 Thread Chris
That is usually done with Javascript, though if you've got a session running, you can update session variables, then use Javascript to refresh the source page. For the most part I'd recommend a purely Javascript solution, but in some cases Using session variables/cookies/database might make

Re: [PHP] Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 05 Nov 2004 13:03:31 -0800, Todd Cary [EMAIL PROTECTED] wrote: I have seen instances where the surfer can open a new window to get email addresses and these addresses appear in the first window. Javascript. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/

[PHP] Re: Passing values from a new window

2004-11-05 Thread Todd Cary
Is there a place where I can view some examples of using JavaScript? Todd Todd Cary wrote: I have a button that creates a new window. The surfer may enter data in the new window, and if he does, when the window is closed by the surfer, can the information update fields on the original page -

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread Aaron Gould
Bruno B B Magalhães wrote: $code = 'function what() { do oddname; %oddsyntax }'; function highlight_code($code) { $oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3'); for($i = 0; $i = count($oddsyntax)-1; $i++) { $highlighted_code = eregi_replace($oddsyntax[$i],'spam

RE: [PHP] Re: Passing values from a new window

2004-11-05 Thread Jay Blanchard
[snip] Is there a place where I can view some examples of using JavaScript? [/snip] A. Type http://www.google.com in your browser's address bar or click on the handy link provided. If push comes to shove, cut and paste the address into your browser's address bar. 2. Carefully and thoughtfully

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread M. Sokolewicz
Aaron Gould wrote: Bruno B B Magalhães wrote: $code = 'function what() { do oddname; %oddsyntax }'; function highlight_code($code) { $oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3'); for($i = 0; $i = count($oddsyntax)-1; $i++) { $highlighted_code =

Re: [PHP] How to display a 'please wait' message whilst processing?

2004-11-05 Thread Brent Clements
I would suggest using the PEAR Package html_progress available at your friendly neighborhood pear repository mirror. You can extend the class to work as needed and it uses the observer pattern to do it's magic. There are other ways to do this but html_progress is the simplest way to get you up

RE: [PHP] Re: Passing values from a new window

2004-11-05 Thread Vail, Warren
I can recommend http://www.hotscripts.com (the javascript section). Warren Vail -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 1:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Passing values from a new window Is there a place

[PHP] Re: keywords generation

2004-11-05 Thread M. Sokolewicz
Bruno b b magalhães wrote: Hi People, well, I am building a very sophisticated(?) CMS, and I am thinking to implement a keyword automatically generation function... I thought on the following structure: == $submited_text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing

[PHP] Initializing variables

2004-11-05 Thread Stuart Felenstein
I'm reading PHP security paper by Chris Shiflett. Trying to figure out what is meant by first initializing a variable. Now, just for the record, I'm not completely dumb. I know you can start with a $var = 2 What I want to know is if the variable assignment is unknown, as in a user form. Would

RE: [PHP] Re: Passing values from a new window

2004-11-05 Thread Matthew Sims
[snip] Is there a place where I can view some examples of using JavaScript? [/snip] A. Type http://www.google.com in your browser's address bar or click on the handy link provided. If push comes to shove, cut and paste the address into your browser's address bar. 2. Carefully and

Re: [PHP] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 15:30:43 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: Thousands of examples will be yours to behold. 14.8 million from where I sit. I'm tired of all your inaccurate answers Jay. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ --

[PHP] Re: Initializing variables

2004-11-05 Thread M. Sokolewicz
Stuart Felenstein wrote: I'm reading PHP security paper by Chris Shiflett. Trying to figure out what is meant by first initializing a variable. Now, just for the record, I'm not completely dumb. I know you can start with a $var = 2 What I want to know is if the variable assignment is unknown,

Re: [PHP] Problem with fopen(...) - No error??

2004-11-05 Thread Pankaj Kafley
Can you be more specific ? I actually had the same sort of problem once but maybe it is not the same. But anyways I was getting null everytime until I change $_FILES variable to $HTTP_POST_FILES. As by suggested by someone else here. Regards On Fri, 5 Nov 2004 21:08:17 +0100, Arty [EMAIL

Re: [PHP] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 13:36:08 -0800, Vail, Warren [EMAIL PROTECTED] wrote: I can recommend http://www.hotscripts.com (the javascript section). I forgot about my handy dandy google search script: ./google.pl javascript 10 Result: http://javascript.internet.com/ http://www.javascript.com/

Re: [PHP] Re: keywords generation

2004-11-05 Thread Bruno B B Magalhães
Hi, no problem at all... well, the script is incomplete cause I don´t know how to sort the $total array by value... for example: Array ( [Lorem] = 1 [ipsum] = 1 [dolor] = 5 [sit] = 1 [met] = 1 [consectetuer] = 1 [dipiscing] = 1 [elit] = 2 [sed] = 1 [dim] =

RE: [PHP] Re: Passing values from a new window

2004-11-05 Thread Vail, Warren
That foot sticking out of his monitor was his choice Warren Vail -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 2:08 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Passing values from a new window [snip] Is there a

Re: [PHP] Re: keywords generation

2004-11-05 Thread M. Sokolewicz
use a simple: asort($total, SORT_NUMERIC); $total will hold the correct array with the most common word at the top, and the least common at the bottom. (just a quick question, why're you using latin? :P) Hi, no problem at all... well, the script is incomplete cause I don´t know how to sort

Re: [PHP] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 05 Nov 2004 13:17:29 -0800, Todd Cary [EMAIL PROTECTED] wrote: Is there a place where I can view some examples of using JavaScript? http://google.com/search?q=javascript -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List

Re: [PHP] Re: keywords generation

2004-11-05 Thread Bruno B B Magalhães
Finally a solution for those who needs! :) ==FUNCTION== function generate_keywords($text,$number=10) { $iwords = array('a', 'to', 'of', 't', 'e' ); if(isset($text) $text != '' $text=strtolower($text))

Re: [PHP] SQL-Injection, XSS and Hijacking

2004-11-05 Thread Jordi Canals
On Wed, 3 Nov 2004 19:02:22 -0800 (PST), Chris Shiflett [EMAIL PROTECTED] wrote: There is a lot more. I highlight some of the things I think are of principal concern for PHP developers in something I call the PHP Security Workbook: http://shiflett.org/php-security.pdf That doesn't cover

Re: [PHP] SQL-Injection, XSS and Hijacking

2004-11-05 Thread Chris Shiflett
--- Jordi Canals [EMAIL PROTECTED] wrote: I highlight some of the things I think are of principal concern for PHP developers in something I call the PHP Security Workbook: http://shiflett.org/php-security.pdf That doesn't cover everything, of course, but it covers those things I

Re: [PHP] Re: keywords generation (ANOTHER)

2004-11-05 Thread Bruno B B Magalhães
Hi, I am trying to categorize the keywords... for example, if a word shows at the begin probably its more important, but how many occurrences is also important... Does someone knows Googles formula? hehe This code is working more or less as expected! Many Thanks, Bruno

Re: [PHP] 4.3.9 slower then 4.3.8 ... ?

2004-11-05 Thread Marc G. Fournier
yOn Wed, 3 Nov 2004, James Kaufman wrote: On Wed, Nov 03, 2004 at 08:43:52PM -0400, Marc G. Fournier wrote: I'm not sure how to debug this further ... on the 27th, I upgraded our server(s) to 4.3.9, and since then, the sites just aren't performing very well ... I've tried adding mmcache, and it

[PHP] Re: Initializing variables

2004-11-05 Thread Jason Barnett
What I want to know is if the variable assignment is unknown, as in a user form. Would I then just initialize the variables to 0 ? Stuart // I assign null to the variable if I'm not sure what type it's going to have. $var = null; // 0 and FALSE are also ok choices, I try to use them for integers

[PHP] best way to store images

2004-11-05 Thread nate
I'm trying to plan out the best way to develop an image hosting script for my client. I'd like to use the least CPU intensive way assuming 10's of thousands of images in this system. Disk space is less important, as that seems to be a cheaper upgrade than memory/CPU would be. There are

[PHP] Big table dump stopping in between

2004-11-05 Thread Ritesh Nadhani
Hello, I have a PHP page. In the script I connect to one our tables having more then 80K rows and dump the data using echo command. When I run this page from my browser, the process always stops half way thru and only half the data is dumped. I can reproduce this problem everytime. I am on a

Re: [PHP] CONGRATULATION (YOU JUST WON LOTTERY)

2004-11-05 Thread -{ Rene Brehmer }-
Spam message reported, original sender added to permanent blacklist Have a nice day Rene At 02:56 06-11-2004, floydjeffers wrote: [skip spam] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Big table dump stopping in between

2004-11-05 Thread nate
Why on earth would you want to echo 80k rows?? :) Anyways... 1) If you have safe mode on, set_time_limit doesn't work. 2) You might check your max_execution_time value defined in the php.ini Nate -Original Message- From: Ritesh Nadhani [mailto:[EMAIL PROTECTED] Sent: Friday, November

Re: [PHP] Big table dump stopping in between

2004-11-05 Thread Ritesh Nadhani
Hello, I wont be doing it everytime. Just need to strees test something. Just wanted to know how my app behaves when 80K+ rows are dumped. I will look into the options you have given and let you know the result. Regards, Ritesh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL