RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-04 Thread Murray @ PlanetThoughtful
Another code snippet I use quite regularly builds a form select list from a delimited string. function displayFormSelect($selvals, $selname, $val=''){ $optval = explode(,, $selvals); $retval = select name='$selname'; foreach ($optval as $key = $value){

Re: [PHP] mysql_connect

2004-11-04 Thread Manoj Kr. Sheoran
Hi Ben , $connection = mysql_connect$host,$user,$password); if(!$connection) echo echo mysql_error(); After checking error msg . I can help you --Mannoj Kr. Sheoran - Original Message - From: Ben Miller [EMAIL PROTECTED] To:

[PHP] imap-sort()

2004-11-04 Thread Vahid Ghafarpour
imap-sort function doesn't search correctly for unicode strings, is there any unicode function with this functionality that support locale?? -- Vahid Ghafarpour. [EMAIL PROTECTED] http://vahid.ghafarpour.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Lost session variables still confounding me

2004-11-04 Thread Richard Davey
Hello Stuart, Thursday, November 4, 2004, 9:38:44 AM, you wrote: SF Page 2: SF $_SESSION['f1a'] = $_POST['ListingName']; SF Page 3: SF if (count($myarray) 5) { SF $_SESSION['arrayerr'] = you have selected too many SF industries; SF header (Location: Page2.php); SF exit; SF } SF If the

[PHP] xslt fucntions

2004-11-04 Thread lists
hi wondering if anyone can help me with this one... im running php 4.3.9 on windows 98. im tryin to get the xslt functions working. i have follwed the instructions here: http://sniptools.com/vault/sablotron-xslt-php-apache-on-windows-and-a-basic-xslt-tutorial.htm i still am not getting them

[PHP] Downloading Large (100M+) Files

2004-11-04 Thread Robin Getz
Hi. I have searched a few of the mailing lists, and have not found an answer. I am working on a site that is currently running gforge ( http://gforge.org/ ). The process that is used to download files from the file repository is something like: Header('Content-disposition:

[PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
I think I've tried just about everything that I found googling. Still no luck. I'm throwing this out again, with the chance that something missed before maybe noticed. Page 1: //Start the Session - begin Block @session_start(); form method=POST name=form1 action=Page2.php input name=ListingName

RE: [PHP] Lost session variables still confounding me

2004-11-04 Thread Reinhart Viane
Page 1: //Start the Session - begin Block @session_start(); form method=POST name=form1 action=Page2.php input name=ListingName type=text id=ListingName / Is it necesarry to start the session here? Maybe it is if they have to be logged in or something Normally I only start the session when I

Re: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Richard Davey [EMAIL PROTECTED] wrote: Unless I'm mistaken - you are redirecting back to Page 2 upon an error, right? Well according to the code posted, the second you hit Page 2 again, you are over-writing whatever is in the f1a session variable with the contents of the $_POST var,

Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Richard Davey
Hello Stuart, Thursday, November 4, 2004, 10:02:53 AM, you wrote: SF Your not mistaken. That is what's happening. I just don't know how SF to fix it . Before setting the session value in Page 2, check for the existence of the $_POST value first. if (isset($_POST['var'])) { $_SESSION['var']

RE: [PHP] Lost session variables still confounding me

2004-11-04 Thread Reinhart Viane
Why not, on page 2: //Set the session variable, input on Page 1 If ($_POST['ListingName']) { $_SESSION['f1a'] = $_POST['ListingName']; } If there is a POST value, it will be used, else $_SESSION['f1a'] will keep it's value. -Original Message- From: Stuart Felenstein [mailto:[EMAIL

RE: [PHP] Lost session variables still confounding me

2004-11-04 Thread Reinhart Viane
Also, it seems my messages are posted slower then the ones of Richard... So I have given the same answer as he did for the second time. My apoligizes. Greetings, Reinhart -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: donderdag 4 november 2004 11:03 To:

Re: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Richard Davey [EMAIL PROTECTED] wrote: Before setting the session value in Page 2, check for the existence of the $_POST value first. if (isset($_POST['var'])) { $_SESSION['var'] = $_POST['var']; } When you now redirect to Page 2 upon an error, it'll skip this block because

Re: [PHP] Pagination need help1)

2004-11-04 Thread Sebastiano Cascione
Use 2 queries. 1) SELECT * FROM cars WHERE ... ORDER BY... ; 1) SELECT * FROM cars WHERE ... ORDER BY... LIMIT $record_x_page OFFSET $page; With the firsth query print pages numbers at the bottom of the html page. With the second one print the records list. Every time you click on the page

Re: [PHP] Pagination need help

2004-11-04 Thread Mike
on 11/3/04 11:22 PM, Scott McWhite at [EMAIL PROTECTED] wrote: Does anyone have sample code for using an HTML search form with pagination? Scott, I followed this tutorial and it helped me accomplish what you are trying to do. http://www.phpfreaks.com/tutorials/43/0.php Good luck.

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Reinhart Viane [EMAIL PROTECTED] wrote: Suppose Richard means: If (isset($_POST['ListingName'])) { $_SESSION['f1a'] = $_POST['ListingName']; } Right, I've tried all three variations , none of which, I'm sorry to report, have helped. The variable is alive with any of the code

Re[4]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Richard Davey
Hello Stuart, Thursday, November 4, 2004, 10:20:04 AM, you wrote: if (isset($_POST['var'])) { $_SESSION['var'] = $_POST['var']; } When you now redirect to Page 2 upon an error, it'll skip this block because the $_POST var won't exist. SF I'm a bit confused, this fixes the problem ?

Re[4]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Richard Davey
Hello Stuart, Thursday, November 4, 2004, 10:55:42 AM, you wrote: SF The variable is alive with any of the code including the one I had SF originally. It seems to do a reset though when it's redirected. SF $_SESSION['f1a'] = $_POST['ListingName']; This won't have any effect if you don't

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 04 November 2004 10:20, Stuart Felenstein wrote: --- Richard Davey [EMAIL PROTECTED] wrote: Before setting the session value in Page 2, check for the existence of the

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Reinhart Viane [EMAIL PROTECTED] wrote: So, if I understand correct, even with the isset code on the second page $_SESSION['f1a'] is set to empty? That's strange. Still I wonder why you are inputting the error messages and the redirect in a session variable. Yes, the isset is not

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 04 November 2004 10:56, Stuart Felenstein wrote: --- Reinhart Viane [EMAIL PROTECTED] wrote: Suppose Richard means: If (isset($_POST['ListingName'])) {

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-04 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 03 November 2004 19:40, Pablo Gosse wrote: [snip]Klaus Reimer wrote: Murray @ PlanetThoughtful wrote: function asl($val){ function mfr($rset){ This may be ok for

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: Page3: if (count($LurkerIndustry) 5) { $_SESSION['arrayerr'] = you have selected too many industries; $_SESSION['f1a'] = $_POST['ListingName']; header (Location: TestMulti2.php); exit; } Well, that's even worse -- because page3 can

Re: [PHP] RE: [PHP-WIN] Cannot load the mysql library

2004-11-04 Thread zerof
Jordi Canals wrote: Hi, On Thu, 4 Nov 2004 01:12:40 +1000, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: When I open the page, I receive the message: PHP Startup: Unable to load dynamic library './ext/php/_mysql.dll' Can't find the specified module. I don't know if this is the exact message,

Re: Re[4]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Richard Davey [EMAIL PROTECTED] wrote: Try sticking this on Page 2 (ensure you have a session_start() at the top of the page and that you replace the 'var' text below with the correct ones. if (isset($_POST['var'])) { echo 'POST value found, setting the session var now';

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 04 November 2004 11:37, Stuart Felenstein wrote: --- Ford, Mike [EMAIL PROTECTED] wrote: Page3: if (count($LurkerIndustry) 5) { $_SESSION['arrayerr'] = you have

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: Page 3: if (count($myarray) 5): $_SESSION['arrayerr'] = you have selected too many industries; session_write_close(); header (Location: Page2.php?.SID); exit; endif; Hope this helps. Mike, once again you've come

Re: [PHP] Downloading Large (100M+) Files

2004-11-04 Thread Klaus Reimer
Robin Getz wrote: The issue is that readfile writes it to the output buffer before sending it to the client. Are you sure you HAVE output buffering? What does ob_get_level() return? If it returns 0 then you don't have output buffering. My theory (and it's only a theory) is, that readfile may

Re: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Jason Wong
On Thursday 04 November 2004 12:08, Stuart Felenstein wrote: --- Ford, Mike [EMAIL PROTECTED] wrote: Page 3: if (count($myarray) 5): $_SESSION['arrayerr'] = you have selected too many industries; session_write_close(); header (Location: Page2.php?.SID);

RE: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 04 November 2004 12:08, Stuart Felenstein wrote: --- Ford, Mike [EMAIL PROTECTED] wrote: Page 3: if (count($myarray) 5): $_SESSION['arrayerr'] = you have

RE: [PHP] 'Code Snippets' you couldn't live without

2004-11-04 Thread Murray @ PlanetThoughtful
Me too (tm)! This is a job for a good editor, with automatic name completion or abbreviation expansion. This gives you the convenience of shortcuts when coding, together with the full standard names when reading the source code at a later date! I think we've missed the point of my original

Re: Re[2]: [PHP] Lost session variables still confounding me

2004-11-04 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Maybe what you had before was: if (count($myarray) 5) $_SESSION['arrayerr'] = you have selected too many industries; session_write_close(); header (Location: Page2.php?.SID); exit; And yes that has a totally

[PHP] what am i doing wrong..??

2004-11-04 Thread Aalee
Hi there please have a look the code below...I dont know wht am doing wrong here... This code is suppose to show the number of jokes in a mysql database and allows user to add a joke when the user clicks addjoke link. And when the joke is added, it suppose to say that Joke inserted, Thank you and

Re: [PHP] what am i doing wrong..??

2004-11-04 Thread bbonkosk
Echo out your queries! $query = insert into joke values('',.$_POST['joke_text'].,'date'); --- echo $query; $result= mysql_query($query); This will tell you what is going on, perhaps some of the information is not set? You can even copy and paste the output to run against your mysql backend on

[PHP] how to create pdf file.

2004-11-04 Thread Roman Duriancik
Please help me with this problem. I need create pdf file who contains table with 4-5 columns and many rows (it dependence by mysql export) in php code. How can i do it ? Thank you roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to create pdf file.

2004-11-04 Thread Jay Blanchard
[snip] Please help me with this problem. I need create pdf file who contains table with 4-5 columns and many rows (it dependence by mysql export) in php code. How can i do it ? [/snip] http://www.php.net/pdf http://www.fpdf.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] how to create pdf file.

2004-11-04 Thread John Nichel
Roman Duriancik wrote: Please help me with this problem. I need create pdf file who contains table with 4-5 columns and many rows (it dependence by mysql export) in php code. How can i do it ? Thank you roman You can either read the manual, or pay one of us to write it for you.

[PHP] Shorthand functions (was: Code Snippets' you couldn't live without)

2004-11-04 Thread Klaus Reimer
Murray @ PlanetThoughtful wrote: with exploring include files to find out what a function does or how a class operates. I doubt half-a-dozen shorthand functions in that include file would place a measurable strain on the readability or maintainability of a project. I disagree on that. The problem

[PHP] Sessions and threading

2004-11-04 Thread Devraj Mukherjee
Hi everyone, I am attempting to write an implementation of Prevayler (http://sourceforge,net/projects/prevayler), which has originally been written for Java and provides a prevalance layer for storing objects using incremental log files and taking snapshots of in fixed time intervals. It seems

Re: [PHP] Sessions and threading

2004-11-04 Thread Greg Donald
On Fri, 05 Nov 2004 00:26:24 +1100, Devraj Mukherjee [EMAIL PROTECTED] wrote: The first part of the problem is that I need to be able to at all times maintain a readable set of objects in memory, I am planning to achieve that using session variables, but I hear that session variables can

Re: [PHP] Sessions and threading

2004-11-04 Thread Klaus Reimer
Devraj Mukherjee wrote: The first part of the problem is that I need to be able to at all times maintain a readable set of objects in memory, I am planning to achieve that using session variables, but I hear that session variables can become very inefficient, how true is that? Very true. In

[PHP] ezpublish question -- take 2

2004-11-04 Thread Daniel Guerrier
Has anyone used the latest version of ezpublish? How did you learn how to use it? Do you recommend getting the book? __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com -- PHP General Mailing List (http://www.php.net/)

[PHP] help in php script

2004-11-04 Thread Deepak Dhake
I have a following PHP file TimeRotateImage.php which prints an image ?php $curr_time = (localtime()); if ($curr_time[2] = 6 and $curr_time[2] = 17) { PRINT IMAGE_1; } else { PRINT IMAGE_2; } ? I want to use this script in another file to display the image. the tag should be img

Re: [PHP] help in php script

2004-11-04 Thread Klaus Reimer
Deepak Dhake wrote: But i am not getting any output if i follow the above procedure. Can you tell me how to do it? I have to have the script TimeRotateImage.php which calculates which image to print accoring to local time and i want to embed the file name in html tag to print it on screen. It's

Re: [PHP] ezpublish question -- take 2

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 07:12:12 -0800 (PST), Daniel Guerrier [EMAIL PROTECTED] wrote: Has anyone used the latest version of ezpublish? No I haven't. How did you learn how to use it? I'd read the (free) online docs first: http://www.ez.no/ez_publish/documentation It's a CMS system, it can't be

[PHP] pdf_stringwidth

2004-11-04 Thread blackwater dev
I am using pdf_stringwidth and only passing in the first two parameters yet I recently updated to php 4.3.9 and it now want all 4. According to the manual, these where required with 5...why does 4.3.9 want them? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Lost session variables still confounding me

2004-11-04 Thread Daniel Kullik
Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: Maybe what you had before was: if (count($myarray) 5) $_SESSION['arrayerr'] = you have selected too many industries; session_write_close(); header (Location: Page2.php?.SID); exit; And yes that has a

[PHP] Very wierd issue with pdf's and rotating images

2004-11-04 Thread Brent Clements
I have tried this with pretty much every pdf library available to use with PHP and all have the same results. 1. I create a new pdf. 2. I rotate a jpeg using gd's imagerotate 3. I output the jpeg to a new pdf page 4. I then output the pdf to the browser and/or to a file. When I view the pdf,

Re: [PHP] help in php script

2004-11-04 Thread Deepak Dhake
PRINT is nothing but... TimeRotateImage.php ?php $curr_time = (localtime()); if ($curr_time[2] = 6 and $curr_time[2] = 17) { print img src='image1.jpg'; } else { print img src='image2.jpg'; } ? this script (something like this) should be called from another script like, ?PHP print img

Re: [PHP] help in php script

2004-11-04 Thread Klaus Reimer
Deepak Dhake wrote: ?PHP print img src='TimeRotateImage.php'; ? did you get what i am saying? please let me know if you have some solution. thanks No. I must admit, It don't understand it. Let me try: You have a script a.php which outputs this static content: img src=b.php b.php outputs the

Re: [PHP] help in php script

2004-11-04 Thread Klaus Reimer
Klaus Reimer wrote: This can't work. You browser tries to download an image with the name 'img src=c.jpeg'. Ah, I'm talking nonsense. I meant the browser tries to DISPLAY an image with the CONTENT 'img src=c.jpeg'. The browser can't do this. That's why you don't see anything. -- Bye, K

RE: [PHP] what am i doing wrong..??

2004-11-04 Thread Jack . van . Zanen
?php $_SERVER['PHP_SELF'] ? somehow keeps the $_GET variables. If you change this to the real script name it seems to work JACK -Original Message- From: Aalee [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP] what am i doing

Re: [PHP] what am i doing wrong..??

2004-11-04 Thread M. Sokolewicz
well ofcourse it keeps the get variables as you put it. PHP_SELF is the path and arguments that php was called with. use phpinfo(); to find out which variables hold the real path, make sure to add some random get variables when calling that script so you see the difference Jack Van Zanen

Re: [PHP] Downloading Large (100M+) Files

2004-11-04 Thread Robin Getz
Klaus Reimer [EMAIL PROTECTED] wrote: If this theory is true, you may try fpassthru(). replaced: readfile($name); with: $fp = fopen($name, 'rb'); fpassthru($fp); and now I don't loose 250 Meg of memory every time I download a 250Meg file. If someone wants to add this to the readfile() php

[PHP] Determining system resources

2004-11-04 Thread Robin Getz
I have been unable to find a php function to determine available system memory (physical and swap)? Right now I am using something like: = # ensure there is enough free memory for the download $free = shell_exec('free -b'); $i=0; while ( $i != strlen($free) ) { i = strlen($free);

Re: [PHP] Downloading Large (100M+) Files

2004-11-04 Thread Greg Donald
On Thu, 04 Nov 2004 08:22:18 -0800, Robin Getz [EMAIL PROTECTED] wrote: and now I don't loose 250 Meg of memory every time I download a 250Meg file. If someone wants to add this to the readfile() php manual - great. Anyone can post user comments in the manual. Give it a shot. -- Greg

Re: [PHP] Determining system resources

2004-11-04 Thread Greg Donald
On Thu, 04 Nov 2004 08:25:19 -0800, Robin Getz [EMAIL PROTECTED] wrote: I have been unable to find a php function to determine available system memory (physical and swap)? php -r system('free -m'); total used free sharedbuffers cached Mem: 249

[PHP] settin mine type while saving files

2004-11-04 Thread Merlin
Hi there, I am creating pdf files inside my application and do save them to the server file system. Now I have sent some of the emails by the system via email and found that the mine type is not set. So the pdf file apears in the attachement, but one has to select the application from a list to

[PHP] Zip Codes

2004-11-04 Thread bb9876
Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
Do you mean other than asking them, like using their IP address? Warren Vail -Original Message- From: bb9876 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Zip Codes Is there any way to use PHP to determine the zip code someone

RE: [PHP] Zip Codes

2004-11-04 Thread Jay Blanchard
[snip] Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? [/snip] You would have to determine their IP, which, some being dynamically assigned at log on, would not necessarily indicate the users location. Then you would have to be

Re: [PHP] Zip Codes

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 08:59:50 -0800, bb9876 [EMAIL PROTECTED] wrote: Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? http://www.usps.com/webtools/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/

Re: [PHP] Zip Codes

2004-11-04 Thread John Nichel
bb9876 wrote: Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? Outside of asking the visitor for it, no. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: settin mine type while saving files

2004-11-04 Thread M. Sokolewicz
Merlin wrote: Hi there, I am creating pdf files inside my application and do save them to the server file system. Now I have sent some of the emails by the system via email and found that the mine type is not set. So the pdf file apears in the attachement, but one has to select the application

Re: [PHP] Zip Codes

2004-11-04 Thread Jason Wong
On Thursday 04 November 2004 16:59, bb9876 wrote: Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? Something like this should work: -- start form action=?php echo $_SERVER['PHP_SELF']; ? method=POST Please input zipcode

Re: [PHP] Zip Codes

2004-11-04 Thread bb9876
Okay, I run a movie news site and wanted to use it to make it even quicker for users to find movie times in their area whether they were logged in or not, but that's the way it goes. Thanks fo rthe replies. John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] bb9876 wrote:

Re: [PHP] Determining system resources

2004-11-04 Thread Francisco M. Marzoa Alonso
Greetings Robin, As far as you cannot lock another processes in the system, so this will not give you the security that the resources will not change -and probably they'll do it- while you're trying to download that file. Best regards, Robin Getz wrote: I have been unable to find a php function

Re: [PHP] Zip Codes

2004-11-04 Thread Matthew Weier O'Phinney
* Bb9876 [EMAIL PROTECTED]: John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] bb9876 wrote: Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? Outside of asking the visitor for it, no. Okay,

Re: [PHP] Zip Codes

2004-11-04 Thread bb9876
Thanks for the sarcasm, it definitely helps. Why is it that when people ask a question there is always someone that has a smartass answer? Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thursday 04 November 2004 16:59, bb9876 wrote: Is there any way to use PHP to

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
One thing I might be tempted to try would be to execute a trace route utility and analyze the output, but it is very cryptic; http://www.traceroute.org/ http://www.tracert.com/cgi-bin/trace.pl HOSTLOSS RCVD SENTBEST AVG WORST er1.sfo1.speakeasy.net

Re: [PHP] Re: PHP Crypt on MacOSX

2004-11-04 Thread Kris
Galen P.Zink wrote: Kris, I doubt there's no way to do this under OS X. Maybe by default, you have a curve ball to deal with. But considering the kernel is open source, you could make this OS do anything... literally :) That is how I feel as well. Being a long-time *nix/BSD user.. I have heard

Re: [PHP] Determining system resources

2004-11-04 Thread Robin Getz
Francisco M. Marzoa Alonso [EMAIL PROTECTED] wrote: As far as you cannot lock another processes in the system, so this will not give you the security that the resources will not change -and probably they'll do it- while you're trying to download that file. Yes, I understand, but not to know even

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
Because for some of us, that part of our body is the smartest thing we have going, and the rest of us is not engaged in the question. Warren Vail -Original Message- From: bb9876 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] Zip Codes

2004-11-04 Thread Matthew Sims
Thanks for the sarcasm, it definitely helps. Why is it that when people ask a question there is always someone that has a smartass answer? It keeps us on our toes. Someone's gotta do it. -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Advice on imagecreatefromsrc_type

2004-11-04 Thread Daniel Lahey
I find it hard to believe that your choice of browser affects the operation of PHP. Where is this report? I may have been mistaken about the report: Windows versions of PHP prior to PHP 4.3.0 do not support accessing remote files via this function, even if allow_url_fopen is enabled. (Found

RE: [PHP] Zip Codes

2004-11-04 Thread Jay Blanchard
[snip] Thanks for the sarcasm, it definitely helps. Why is it that when people ask a question there is always someone that has a smartass answer? It keeps us on our toes. Someone's gotta do it. [/snip] It would be a terrible thing to arrive one day, open the list, and see that everyone had

RE: [PHP] Zip Codes

2004-11-04 Thread Brian V Bonini
On Thu, 2004-11-04 at 12:47, Vail, Warren wrote: If you can figure out how to make sense of this, you might be able to find the point that a system is connected to the internet, by tracing back to a visitors current IP address. Which may get you close but either way would probably be more

Re: [PHP] Downloading Large (100M+) Files

2004-11-04 Thread Curt Zirzow
* Thus wrote Robin Getz: Klaus Reimer [EMAIL PROTECTED] wrote: If this theory is true, you may try fpassthru(). replaced: readfile($name); with: $fp = fopen($name, 'rb'); fpassthru($fp); The only difference between readfile() and fpassthru() is what parameters you pass it.

Re: [PHP] Re: Advice on imagecreatefromsrc_type

2004-11-04 Thread Jason Wong
On Thursday 04 November 2004 18:33, Daniel Lahey wrote: I find it hard to believe, too. The error is (as I recall) call to undefined function () in source at line with no function name given, just the empty parentheses. It doesn't happen in Firefox, Mozilla, or Netscape. Post some

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

2004-11-04 Thread Graham Cossey
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 something like:

[PHP] Strange query

2004-11-04 Thread Ryan A
Hi, I am running this query from my script: $query = select gallery_url,description from members limit .$limit[0].,.$limit[1]; the first time: limit 0,15 and the second time: limit 16,30 the problem is the first time I am getting 15 rows returned (as expected) the second query of select

RE: [PHP] Strange query

2004-11-04 Thread Jay Blanchard
[snip] $query = select gallery_url,description from members limit .$limit[0].,.$limit[1]; the first time: limit 0,15 and the second time: limit 16,30 [/snip] from http://www.mysql.com/select The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT

RE: [PHP] Strange query

2004-11-04 Thread Vail, Warren
The second limit parameter is the actual number of rows to limit to, and in most situations this is usually the same number (i.e. 0,15; 15,15; 30,15; etc). It is too bad this clause is not supported by some of the other databases I have had to use, it makes a convenient way of paging where the

RE: [PHP] Strange query

2004-11-04 Thread Ryan A
Hey, the second specifies the maximum number of rows to return. Thats where my problem was...thanks. I forget the Limit parameters, i for some reason though the second parameter was till which record to return... Loud and clear sign telling me to get some sleep (i guess) :-) Thanks, Ryan

Re: [PHP] Strange query

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 13:02:19 -0700, Vail, Warren [EMAIL PROTECTED] wrote: It is too bad this clause is not supported by some of the other databases I have had to use I think calling a limit a limit and an offset an offset is a good thing. -- Greg Donald Zend Certified Engineer

[PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
I have a field that is an actual Mysql Text column, aka like a blob. I'm wondering if doing a standard validation that checks for characters outside of the alphanumeric range is enough. I'm imagining some users will cut and paste from a Word or PDF doc into the field. I've done it myself and no

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Jay Blanchard
[snip] Any thoughts ? [/snip] I thought I'd have lunch today, but I didn't. Is it a 'text' data type, or 'BLOB', (you said, actual Mysql Text column, aka like a blob) because the distinction is needed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Vail, Warren
Assuming that the pasting is done into a textarea/textarea on an html form, I believe the Textarea will limit the past to just text characters. I suppose this could be dependent on the browser. I don't know of any html input control that would allow blob (binary) values. I also don't know if

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
It's a mysql text field. Stuart --- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Any thoughts ? [/snip] I thought I'd have lunch today, but I didn't. Is it a 'text' data type, or 'BLOB', (you said, actual Mysql Text column, aka like a blob) because the distinction is needed. --

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
--- Vail, Warren [EMAIL PROTECTED] wrote: I also don't know if MySQL will police things input to a text column to make sure they are valid ascii text characters. No Mysql won't do it. PHP validation would have to be involved. Stuart -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Jay Blanchard
[snip] It's a mysql text field. [/snip] You can use htmlentities() on the information placed into the field -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
May I ask why you are suggesting this function ? Stuart --- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] It's a mysql text field. [/snip] You can use htmlentities() on the information placed into the field -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: VOTE TODAY

2004-11-04 Thread 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. On Thu, 4 Nov 2004 04:09:50 +0100, Michelle Konzack [EMAIL PROTECTED] wrote: Am 2004-11-02 18:36:08, schrieb

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Jay Blanchard
[snip] May I ask why you are suggesting this function ? You can use htmlentities() on the information placed [/snip] Because it will convert things like quotes into their HTML counterparts before you place them into the table. If you are reading it back out to a web interface they get properly

Re: [PHP] Zip Codes

2004-11-04 Thread Dusty Bin
Brian V Bonini wrote: On Thu, 2004-11-04 at 12:47, Vail, Warren wrote: If you can figure out how to make sense of this, you might be able to find the point that a system is connected to the internet, by tracing back to a visitors current IP address. Which may get you close but either way would

Re: [PHP] Question: Validation on a text field

2004-11-04 Thread Ben Ramsey
Jay Blanchard wrote: [snip] May I ask why you are suggesting this function ? You can use htmlentities() on the information placed [/snip] Because it will convert things like quotes into their HTML counterparts before you place them into the table. If you are reading it back out to a web interface

Re: [PHP] Downloading Large (100M+) Files

2004-11-04 Thread Robin Getz
Curt Zirzow [EMAIL PROTECTED] wrote: replaced: readfile($name); with: $fp = fopen($name, 'rb'); fpassthru($fp); The only difference between readfile() and fpassthru() is what parameters you pass it. Something else is the problem, what version of php are you running? I am using php

RE: [PHP] Question: Validation on a text field

2004-11-04 Thread Stuart Felenstein
--- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] May I ask why you are suggesting this function ? You can use htmlentities() on the information placed [/snip] Because it will convert things like quotes into their HTML counterparts before you place them into the table. I'm still a

[PHP] Is there any 'strict' and 'warnings' like packages inside PHP ?

2004-11-04 Thread Exile
Hi list, Is there any package like 'strict' or 'warnings' in PHP, like Perl ? Thanks in advise, Exile

Re: [PHP] Downloading Large (100M+) Files

2004-11-04 Thread Klaus Reimer
Robin Getz wrote: The same problem exists with fpassthru (now that I have let it run a little longer) I now have 5 sleeping httpd processes on my system that are consuming 200Meg each. Any thoughts? Ok, so much for the theory. What about the output buffering? Have you checked if you have output

  1   2   >