Re: [PHP] var_dump() results

2008-01-13 Thread T.Lensselink
Europus wrote: It's pretty much the same. With var_dump(), values from the first row of the table are iterated twice, the script is not looping through and reporting all 2100 rows. Grossly similar behavior was observed with print_r() and echo: while different data was reported by each, the loop

Re: [PHP] var_dump() results

2008-01-13 Thread T.Lensselink
Europus wrote: T.Lensselink wrote: It doesn't loop through all rows because you use mysql_fetch_row. Wich does exactly what it's name tells you. It fetches one single row. Doh! Yes I'm brand new at PHP, though I've been doing HTML/CSS forever. That doesn't seem to mean much to a PHP/MySQL

Re: [PHP] var_dump() results

2008-01-13 Thread T.Lensselink
Europus wrote: Actually, it doesn't exactly iterate the 1st row 4 times, it's a bit more convoluted. The table as 4 columns: 1 - int, primary, auto-incrementer 2 - varchar() values 3 - varchar() values 4 - varchar() values and 2100 rows. The return is 4 rows of this: array(4) { [0]=

Re: [PHP] is_dir reading a folder with a space in the name?

2007-02-08 Thread T.Lensselink
:) You are right about the robustness part.. The directory i made by hand. So no need to create and remove it with code. And using a test suit to show this simple example seems like a bit of overkill to me. Just wanted to show directories with spaces function properly when used with is_dir().

Re: [PHP] Max File Upload Size

2006-11-12 Thread T.Lensselink
Have a look on this page for all the ini settings.. It will also say if it is changeable http://nl2.php.net/manual/en/ini.php#ini.list Tom Chubb wrote: This is a really stupid question, but I've not been able to find an answer for it. I have always thought that your max upload size is

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
Hi all, maybe slightly off list but I AM using php and Sablotron to generate xslt. I have a live poker games feed that takes the following format: ?xml version=1.0 encoding=utf-8?xmlfeed tournament tid10035522/tid nameTexas Holdem/name gameTexas Holdem Poker/game

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
: Thanks for our help. Tried both methods and I get this: *Warning*: Sablotron error on line 31: XML parser error 4: not well-formed (invalid token) in */home/stevemas/public_html/dg/xslt/xslt_processor.php*on line *14* On 03/05/06, T.Lensselink [EMAIL PROTECTED] wrote: Hi all, maybe

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
I am going wrong (as I use the Sablotron processor I am not using those DOM functions). Many thanks. * On 03/05/06, T.Lensselink [EMAIL PROTECTED] wrote: And I used this: xsl:template name=results xsl:for-each select=tournament xsl:if test=position

Re: [PHP] Searching and getting values out of array maps

2006-05-03 Thread T.Lensselink
Hi all, I'm kind of new with PHP. I work alot with another language called Lasso, reminds kind of PHP but not the same. I trying to search after a desired value within an array map (think you call it like that in PHP) and to get the value out as well. Is this possible in any way? Like to

Re: [PHP] Re: php mysql problem

2006-05-02 Thread T.Lensselink
This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are deleted. CREATE TABLE `board_papers` ( `id` int(4) NOT NULL auto_increment,

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
A blade? come on :) Seems to me it's just an error in : /home/friend/public_html/process1.php line 158 that mangles up your email output. Try and fix this undefined constant. Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Well there is an undefined constant prize somewhere.. well it's just a notice but it really looks like the problem.. Try setting error_reporting(0) and see if it runs... process1.php only has 64 lines. On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote: A blade? come on :) Seems to me it's

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
understand the second format is better to disambiguate constants but the former format works fine for the demo version. Any reason for the discrepancy? On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote: Well there is an undefined constant prize somewhere.. well it's just a notice but it really looks

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
warning. On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote: Hey Dave, Besides from example two being the correct way to call array elements. I think it has something todo with error reporting. It's the only thing that comes to mind right now. Maybe you demo server doesn't echo notices... Maybe

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
is occurring. I have just copied the demo version into the same dir and it works fine - and that version calls the same classes (includes). On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote: Maybe show some code... Think some error inside a class / function causes that no output is send

Re: [PHP] list noise [WAS: How to find img tag and get src of image]

2006-04-25 Thread T.Lensselink
Don't know about the postgre list. But answers to such questions can easilly be found on the web. Just use google or RTFM. I answered because i like to help. Hope it was helpfull :) But i can also understand the laughter/frsustration. Don't take it to personal. They just encourage you to RTFM.

Re: [PHP] PHP Standard style of writing your code

2006-04-25 Thread T.Lensselink
Hi, I see everyone has its own way of writing the code. If there is 10 programmers working on same thing, it would be good if they would have same style of writing the PHP code. So, my question is: Is there anything what would define standard style of writing PHP code? Thanks, Martin

Re: [PHP] How to find img tag and get src of image

2006-04-24 Thread T.Lensselink
Use preg_match_all Think this will work. But i'm for sure no regular expresion guru :) preg_match_all(/src=(.*)\040/i, $Text, $Result); print_r($Result); Gr, Thijs Hi everybody! I want to get src of image form a $text, I have a below text $Text = table border=1 cellpadding=3%

Re: [PHP] Error when compiling PHP from source on Mac OS X 10.4 server

2006-04-05 Thread T.Lensselink
Maybe try to configure with the direct path to the apache source files... --with-apxs=/path/to/apache/bin/apxs Frank Arensmeier said: Hello. I try to compile PHP 4.4.2 from source on Mac OS X 10.4 server but I am getting error messages. The the install configuration runs just fine using the

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread T.Lensselink
[EMAIL PROTECTED] wrote: Hi, I'm working on the script that has to read csv file (51 column an a little bit over 3000 rows) with products and store the info in DB. Script works fine while I tested on csv files up to 200 records. And, when I tried to upload REAL data I got this. PHP: Fatal

Re: [PHP] PEAR::SOAP on Windows not working

2006-03-20 Thread T.Lensselink
Peter Lauri said: Hi, I have been searching for directions of how to get PEAR::SOAP to work on my Windows Machine, but without success. I have downloaded the package and unzipped it to a subfolder to my main web folder. This is my error message: -- Warning:

[PHP] SOAP PEAR/NuSOAP

2006-03-20 Thread T.Lensselink
I'm working on a small webservice. When started this project i used the NuSOAP library. And it does the job perfectly. But last weekend i was playing around with the PEAR::SOAP package. This seems to be a lot more stable. And for sure a llot faster. Only in NuSOAP i could do the following to get

Re: [PHP] SOAP PEAR/NuSOAP

2006-03-20 Thread T.Lensselink
chris smith said: On 3/21/06, T.Lensselink [EMAIL PROTECTED] wrote: I'm working on a small webservice. When started this project i used the NuSOAP library. And it does the job perfectly. But last weekend i was playing around with the PEAR::SOAP package. This seems to be a lot more stable

Re: [PHP] making a tutorial

2006-03-17 Thread T.Lensselink
Sameer N Ingole said: Gustav Wiberg wrote: - Original Message - From: John Taylor-Johnston [EMAIL PROTECTED] To: PHP-General php-general@lists.php.net Sent: Friday, March 17, 2006 7:51 AM Subject: [PHP] making a tutorial I'm making a tutorial and don't really understand how to do

Re: [PHP] URL thing

2004-11-03 Thread T.Lensselink
$_GET[var1] and $_GET[var2] On Wed, 3 Nov 2004 13:43:16 +0530, Kevin Javia [EMAIL PROTECTED] wrote: How can I get the URL in the address bar in any variable? If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want to store it in any variable in my code. $PHP_SELF gives