Re: [PHP] Help on objects

2006-10-04 Thread Penthexquadium
On Thu, 05 Oct 2006 02:47:59 +0100, Deckard [EMAIL PROTECTED] wrote: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class:

Re: [PHP] Help on objects

2006-10-04 Thread Satyam
will usually have names representing nouns, methods will be verbs, properties adjectives, more or less, that's OOP for English teachers. Satyam - Original Message - From: Deckard [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, October 05, 2006 3:47 AM Subject: [PHP] Help

Re: [PHP] Help converting C to PHP

2006-09-23 Thread Richard Lynch
On Fri, September 22, 2006 7:40 pm, Rory Browne wrote: Fair enough. Prime Number Script Competition ( for Bragging Rights ). I challenge the readers of this list to produce the necessary code to find the lowest prime number higher than a certain inputted number. The script must be web

Re: [PHP] Help converting C to PHP

2006-09-23 Thread Rory Browne
Whoops - sorry replied directly to Richard instead of to the list. Submission process is simply to post to the list. It's probably a good idea ( and acceptable ) to just post an SHA1(MD5 for this purpose is compromised) hash of your code before the deadline, and submit your actual code shortly

RE: [PHP] Help converting C to PHP

2006-09-22 Thread Jay Blanchard
[snip] Codegolf... heh.. nice little twist. [/snip] At least we weren't asked to help someone write his homework. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Rory Browne
On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the codegolf.com challenge is to print pi to 1000

Re: [PHP] Help converting C to PHP

2006-09-22 Thread tedd
At 2:38 PM +0200 9/22/06, Rory Browne wrote: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: The goal of the codegolf.com challenge is to print pi to 1000 places. The programmer to do it in the least keystrokes is the winner. I personally don't think this is a very healthy contest. It

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Martin Alterisio
2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Tom Atkinson
Martin Alterisio wrote: 2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a

Re: [PHP] Help converting C to PHP

2006-09-22 Thread php
Hello all, I personally don't think this is a very healthy contest. It discourages comments, and use of whitespace to make code readable. Anyway... as you say, it would be nice to have a contest that rewards readability and maintainability... but, how can we messure that qualities in this

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Martin Alterisio
2006/9/22, Tom Atkinson [EMAIL PROTECTED]: Martin Alterisio wrote: 2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Richard Lynch
On Thu, September 21, 2006 9:32 pm, Curt Zirzow wrote: On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;)

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Richard Lynch
On Fri, September 22, 2006 11:59 am, Martin Alterisio wrote: Anyway... as you say, it would be nice to have a contest that rewards readability and maintainability... but, how can we messure that qualities in this type of games? If you think of the Open Market of software out there as the game

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Rory Browne
That aside, I think that it would be very beneficial to the community as a whole if a contest was started that encouraged readability and good practices. The scoring and judging could be done by a panel, but I think that it would be more fun if the community itself was able to vote on various

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Richard Lynch
On Fri, September 22, 2006 7:40 pm, Rory Browne wrote: The script must be web based, and ask the user to enter a number. The script must then calculate the lowest Prime Number above that number. I would like to have one point clarified: By above that number do you literally mean or would =

[PHP] Help understanding/debugging the following script:

2006-09-21 Thread Martin Bach Nielsen
Hi all. If you look at the code below, the return() does not produce any output. No errors were displayed on screen before I added 'error_reporting(E_ALL);'. (Error message: Notice: Undefined variable: this in /oop/test1/index.php on line 35, commented on below) Trying to echo/print ordinary text

Re: [PHP] Help understanding/debugging the following script:

2006-09-21 Thread Robert Cummings
On Thu, 2006-09-21 at 19:26 +0200, Martin Bach Nielsen wrote: Hi all. If you look at the code below, the return() does not produce any output. No errors were displayed on screen before I added 'error_reporting(E_ALL);'. (Error message: Notice: Undefined variable: this in /oop/test1/index.php

[PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;) for(p=1+2*k;j337;q=a[j]*k+q%p*t,a[j++]=q/p) k!=j2?:printf(%.3d,a[j-2]%t+q/p/t);} I converted this to a more

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. is this for codegolf? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
Yes, it is. Kevin Waterson wrote: This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. is this for codegolf? Kevin -- PHP General Mailing List

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: heh.. nice little twist. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;) for(p=1+2*k;j337;q=a[j]*k+q%p*t,a[j++]=q/p)

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the codegolf.com challenge is to print pi to 1000 places. The programmer to do it in the least keystrokes

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
pi() does not give me enough decimal places, I need the first 1000. Curt Zirzow wrote: On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3;

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Christopher Watson
Definitely looks like a grouping and/or precedence problem. Wish I had more time to examine it. Fine-tooth those parens again. -Christopher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with OpenSSL Function

2006-09-11 Thread Shanon Swafford
Hi guys, I am trying to use Apache, PHP 4.3, and PHP's Openssl functions to encrypt a variable. Currently, I can successfully use the following command to encrypt an existing file and create a new one: openssl aes-256-cbc -e -in plain_file.xml -out encrypt_file.xml -k 1234123412341234 Is it

Re: [PHP] help - outputting a jpeg

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross [EMAIL PROTECTED] wrote: I just get all the binary data output ? include(includes/config.php); $link = mysql_connect($host, $user, $password) or die ('somethng went wrong:' .mysql_error() ); mysql_select_db($dbname, $link) or die ('somethng went wrong, DB error:'

[PHP] help - outputting a jpeg

2006-08-29 Thread Ross
I just get all the binary data output ? include(includes/config.php); $link = mysql_connect($host, $user, $password) or die ('somethng went wrong:' .mysql_error() ); mysql_select_db($dbname, $link) or die ('somethng went wrong, DB error:' .mysql_error() ); $query = SELECT DISTINCT gallery

Re: [PHP] Help with dynamic radio buttons

2006-07-24 Thread Dimiter Ivanov
On 7/22/06, Chris Grigor [EMAIL PROTECTED] wrote: Afternoon all I need some help here with a problem on dynamic radio buttons. I have a script that calls a database for a list of questions. The questions are returned and each question needs to have 5 radio buttons assigned to it. The radio

[PHP] Help with dynamic radio buttons

2006-07-22 Thread Chris Grigor
Afternoon all I need some help here with a problem on dynamic radio buttons. I have a script that calls a database for a list of questions. The questions are returned and each question needs to have 5 radio buttons assigned to it. The radio buttons are a score of 1 - 5 (1 being bad, 5 being

[PHP] Help with some clever bit operations

2006-06-13 Thread Niels
Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the final solution. Maybe I'm missing something obvious... The problem: A function tries to update an

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread David Tulloh
The example starting values $existing = 181; # = 10110101 $new = 92; # = 01011100 $mask = 15; # = Get the bits that will be changed $changing = $new $mask; # = 12 = 1100 Get the bits that won't be changed $staying = $existing ~$mask; # = 176 = 1011 Combine them together

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the final solution. Maybe I'm missing something obvious... The problem: A function

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
David Tulloh wrote: The example starting values $existing = 181; # = 10110101 $new = 92; # = 01011100 $mask = 15; # = Get the bits that will be changed $changing = $new $mask; # = 12 = 1100 Get the bits that won't be changed $staying = $existing ~$mask; # = 176 =

RE: [PHP] Help with some clever bit operations

2006-06-13 Thread Ford, Mike
On 13 June 2006 10:31, Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the final solution. Maybe I'm missing something obvious...

RE: [PHP] Help with some clever bit operations

2006-06-13 Thread Niels
On Tuesday 13 June 2006 12:32, Ford, Mike wrote: On 13 June 2006 10:31, Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Niels
On Tuesday 13 June 2006 12:22, Jochem Maas wrote: Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the final solution. Maybe I'm

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Niels
On Tuesday 13 June 2006 12:18, David Tulloh wrote: The example starting values $existing = 181; # = 10110101 $new = 92; # = 01011100 $mask = 15; # = Get the bits that will be changed $changing = $new $mask; # = 12 = 1100 Get the bits that won't be changed $staying =

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Satyam
- Original Message - From: David Tulloh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, June 13, 2006 12:18 PM Subject: Re: [PHP] Help with some clever bit operations The example starting values $existing = 181; # = 10110101 $new = 92

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Robert Cummings
On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the conversion stuff still makes my head spin) - this is what this table is for: 128 64 32 16 8 4 2 1

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
Robert Cummings wrote: On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the conversion stuff still makes my head spin) - this is what this table is for:

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Robert Cummings
On Tue, 2006-06-13 at 11:03, Jochem Maas wrote: Robert Cummings wrote: On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the conversion stuff still

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
Robert Cummings wrote: On Tue, 2006-06-13 at 11:03, Jochem Maas wrote: Robert Cummings wrote: On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the

Re: [PHP] Help with enter key in Forms

2006-06-02 Thread Martin Alterisio
2006/6/2, George Babichev [EMAIL PROTECTED]: Awesome, thank you so much! It works! On 6/1/06, Chris [EMAIL PROTECTED] wrote: George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i

[PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it recognize it?

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it recognize it?

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Ok. well I looked more deeply into the issue, and I noticed that PHP My Admin does recognize that there are spaces. So if I click edit on PMA, it displays everything exactly liked I typed it. So why does my program not display it? This is the code I use Then you're not

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it in PHP My Admin it displays 1 2 So why is my program not showing those spaces? On 6/1/06, Chris [EMAIL

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it in PHP My Admin it displays 1 2 The answer is to change this: ? echo .$row['post'].

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chuck Anderson
Chris wrote: George Babichev wrote: Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Awesome, thank you so much! It works! On 6/1/06, Chris [EMAIL PROTECTED] wrote: George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it

[PHP] help needed with pager

2006-05-25 Thread Ross
http://scottishsocialnetworks.org/editor.php http://scottishsocialnetworks.org/editor.phps the pager in this page works except try and choose aberdeen from the area dropdown. You should get 18 answers which is fine except when page 2 is pressed at the bottom the query seems to be scrubbed and

Re: [PHP] help needed with pager

2006-05-25 Thread Rabin Vincent
On 5/25/06, Ross [EMAIL PROTECTED] wrote: http://scottishsocialnetworks.org/editor.php http://scottishsocialnetworks.org/editor.phps the pager in this page works except try and choose aberdeen from the area dropdown. You should get 18 answers which is fine except when page 2 is pressed at the

[PHP] HELP - Clean and simple

2006-05-22 Thread Jonas Rosling
I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not decleard I declear it and assign it's name by the value

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread chris smith
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not

RE: [PHP] HELP - Clean and simple

2006-05-22 Thread Jay Blanchard
[snip] I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not decleard I declear it and assign it's name by

SV: [PHP] HELP - Clean and simple

2006-05-22 Thread Jonas Rosling
-Ursprungligt meddelande- Från: chris smith [mailto:[EMAIL PROTECTED] Skickat: den 22 maj 2006 15:49 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] HELP - Clean and simple On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: I don't know if I'm explaining things in a difficult way

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Rabin Vincent
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: :-) Sorry! I've been digging with this for a while now so I don't think I have the best code left. But this is what I have for the moment: while($row=mysql_fetch_array($result)) { if (!$$row[0]) { $$row[0] = array();

SV: [PHP] HELP - Clean and simple

2006-05-22 Thread Jonas Rosling
-Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Rabin Vincent Skickat: den 22 maj 2006 16:26 Till: Jonas Rosling Kopia: PHP List Ämne: Re: [PHP] HELP - Clean and simple On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: :-) Sorry! I've been digging

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Scott Hurring
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: while($row=mysql_fetch_array($result)) { if (!$$row[0]) { $$row[0] = array(); $$row[0][$row[2]] = $row[1]; } else { $$row[0][$row[2]] = $row[1]; } } IMO,

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Richard Lynch
http://php.net/isset On Mon, May 22, 2006 8:45 am, Jonas Rosling wrote: I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field

Re: [PHP] Help w/ 'headers already sent' and file download

2006-05-16 Thread Mike Walsh
Rabin Vincent [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 5/16/06, Mike Walsh [EMAIL PROTECTED] wrote: [ ... snipped ... ] Is there a way to both display a web page and send content to be saved by the user? If someone knows of an example I could look at I'd be greatful.

Re: [PHP] Help w/ 'headers already sent' and file download

2006-05-16 Thread Richard Lynch
On Mon, May 15, 2006 10:48 pm, Mike Walsh wrote: Is there a way to both display a web page and send content to be saved by the user? Not really really, but you can sort of hack it... If someone knows of an example I could look at I'd be greatful. Send out the HTML for the stats, and bury a

[PHP] Help w/ 'headers already sent' and file download

2006-05-15 Thread Mike Walsh
I have an application which I am working on which takes a file supplied by the user via a File Upload, peforms some processing on it, then prompts the user to download a generated CSV file. What I would like to do is report some processing statistics prior to the user prior to sending the CSV

Re: [PHP] Help w/ 'headers already sent' and file download

2006-05-15 Thread Rabin Vincent
On 5/16/06, Mike Walsh [EMAIL PROTECTED] wrote: I have an application which I am working on which takes a file supplied by the user via a File Upload, peforms some processing on it, then prompts the user to download a generated CSV file. What I would like to do is report some processing

Re: [PHP] Help!

2006-04-29 Thread chris smith
On 4/29/06, Dave Goodchild [EMAIL PROTECTED] wrote: Thanks all. Worst case scenario I can rebuild from the demo as it works (really don't want to do that). Was loathe to plaster your screens with miles of code but understand it's hard to assit without it. If you still need help..

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
Misleading to who? I own the app and am the only person who will ever use it. Rather anal. On 29/04/06, Martin Alterisio [EMAIL PROTECTED] wrote: 2006/4/28, Barry [EMAIL PROTECTED]: Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 8:11 am, Dave Goodchild wrote: I am working on a viral marketing application that uses multipart emails to notify entrants of their progress in the 'game'. I have a demo version which works fine, and the current rebranded version was also fine until the client asked

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
All my variables are correctly delimited. And don't make assumptions about what my code looks like - I am asking for help, not judgements, and my question was valid (unlike many you see here). I am not a spammer either, this is an application for the marketing department of a charity. On

Re: [PHP] Help!

2006-04-29 Thread chris smith
On 4/29/06, Dave Goodchild [EMAIL PROTECTED] wrote: All my variables are correctly delimited. And don't make assumptions about what my code looks like - I am asking for help, not judgements, and my question was valid (unlike many you see here). I am not a spammer either, this is an application

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 8:57 am, T.Lensselink wrote: In the demo version the script accesses the $_GET array - an example value: $data[email] ..which works fine in the demo app. If I quote all the values thus in the new version: $data['email'] ..the arguments appear in the correct

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 9:01 am, Dave Goodchild wrote: Thanks - now the parameters reach the function intact but the mailer still does not work. Basically, the form is a self-reloader. If the form has been submitted and the data validated (including emails sent) it displays a thank you

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 9:19 am, Dave Goodchild wrote: I would do but there are 5000+ lines and no indication of where the error 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). Go ahead and let he

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
Wrong - both versions run on the same server (virtual hosts but same php.ini). I will check the values however, thanks! On 29/04/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, April 28, 2006 8:57 am, T.Lensselink wrote: In the demo version the script accesses the $_GET array - an example

Re: [PHP] Help!

2006-04-29 Thread Jochem Maas
Dave Goodchild wrote: All my variables are correctly delimited. strings constants are delimited not variables, semantically speaking. And don't make assumptions about what my code looks like why not? besides how are you going to stop someone from assuming your code looks like [x]? - I am

Re: [PHP] Help!

2006-04-29 Thread Martin Alterisio
That's ok, but then I can't help you more than I tried to. Just check with what I told you about debug_backtrace(), at least that way you can trace where the function was called with wrong arguments. 2006/4/29, Dave Goodchild [EMAIL PROTECTED]: Misleading to who? I own the app and am the only

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 11:11 am, Jochem Maas wrote: Dave Goodchild wrote: All my variables are correctly delimited. strings constants are delimited not variables, semantically speaking. Not to mention that they CANNOT be correctly delimited, or you would NOT be seeing that error message.

[PHP] Help!

2006-04-28 Thread Dave Goodchild
Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing application that uses multipart emails to notify entrants of their progress in

[PHP] Help!

2006-04-28 Thread Dave Goodchild
Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing application that uses multipart emails to notify entrants of their progress in

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
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 i'm wrong .. it's friday and my brain don't work that good :)

Re: [PHP] Help!

2006-04-28 Thread Dave Goodchild
Thanks - now the parameters reach the function intact but the mailer still does not work. Basically, the form is a self-reloader. If the form has been submitted and the data validated (including emails sent) it displays a thank you message. Otherwise it shows the starter form. All that happens

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Maybe show some code... Think some error inside a class / function causes that no output is send... Thanks - now the parameters reach the function intact but the mailer still does not work. Basically, the form is a self-reloader. If the form has been submitted and the data validated

Re: [PHP] Help!

2006-04-28 Thread Dave Goodchild
I would do but there are 5000+ lines and no indication of where the error 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

Re: [PHP] Help!

2006-04-28 Thread Barry
Dave Goodchild schrieb: I would do but there are 5000+ lines and no indication of where the error 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). The problem is without code we neither can give any

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Without code it is hard to give an indication... Try and match php.ini's.. Anyway i go home now. Maybe in the evening have some time to think.. Or maybe some other bright mind on the list has an idea.. goodluck, Thijs I would do but there are 5000+ lines and no indication of where the error

Re: [PHP] Help!

2006-04-28 Thread Dave Goodchild
Thanks all. Worst case scenario I can rebuild from the demo as it works (really don't want to do that). Was loathe to plaster your screens with miles of code but understand it's hard to assit without it. Just wanted to know I wasn't alone! Have a great weekend! On 28/04/06, Barry [EMAIL

Re: [PHP] Help!

2006-04-28 Thread Wolf
Dump some code to the list, just the inside function in and of itself SHOULD give enough to find the bug. It is PROBABLY how you are snagging your data inside from out, or you left out a somewhere and it is catching it. Believe me, I have had a heck of a time due to a single missing somewhere

Re: [PHP] Help!

2006-04-28 Thread Martin Alterisio
2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing application that uses multipart

Re: [PHP] Help!

2006-04-28 Thread Barry
Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing

Re: [PHP] Help!

2006-04-28 Thread Martin Alterisio
2006/4/28, Barry [EMAIL PROTECTED]: Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang.

[PHP] Hosting php help

2006-04-26 Thread Jesús Alain Rodríguez Santos
Please I need a free hosting with php and mysql, and sendmail active. If you know any site, please send to me the address. -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio.

RE: [PHP] Hosting php help

2006-04-26 Thread Nicolas Verhaeghe
http://www.google.com/search?hl=enq=free+php+hosting -Original Message- From: Jesús Alain Rodríguez Santos [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 2:26 PM To: php-general@lists.php.net Subject: [PHP] Hosting php help Please I need a free hosting with php and mysql

[PHP] Help using a function within a function, both within a class

2006-04-19 Thread Adele Botes
To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect function for later use, once I've build onto the class. The problem is that i

Re: [PHP] Help using a function within a function, both within a class

2006-04-19 Thread chris smith
On 4/19/06, Adele Botes [EMAIL PROTECTED] wrote: To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect function for later use,

Re: [PHP] Help using a function within a function, both within a class

2006-04-19 Thread Adele Botes
chris smith wrote: On 4/19/06, Adele Botes [EMAIL PROTECTED] wrote: To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect

Re: [PHP] help with multidimentional arrays

2006-04-12 Thread John Wells
On 4/11/06, Bing Du [EMAIL PROTECTED] wrote: == foreach ($sponsor_id as $sponsor = $arr) echo $sponsor:; foreach ($arr[$sponsor] as $project) { echo $projectbr; } == It looks like you're building your array just fine. Here though, your

Re: [PHP] help with multidimentional arrays

2006-04-12 Thread Bing Du
On 4/11/06, Bing Du [EMAIL PROTECTED] wrote: = foreach ($sponsor_id as $sponsor = $arr) echo $sponsor:; foreach ($arr[$sponsor] as $project) { echo $projectbr; } = It looks like you're building your array just fine. Here though, your

[PHP] help with multidimentional arrays

2006-04-11 Thread Bing Du
Hello, What I intend to do is put the database query results in a multidimentional array like this. $sponsor_id['sponsor1'] = ('project1 title', 'project2 title', 'project3 title'); $sponsor_id['sponsor2'] = ('project1 title','project7 title'); Here is the code snippet for doing that: ==

<    2   3   4   5   6   7   8   9   10   11   >