Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Manuel Lemos
Hello, on 12/30/2008 05:07 AM Nathan Nobbe said the following: How do you structure your web applications? I am thinking in terms of separating presentation and logic. How is that done in PHP? And how many architecture patterns are there? >>> >>> Well, >>> >>> I use, way of Rasmus

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Nathan Nobbe
On Mon, Dec 29, 2008 at 9:05 PM, Manuel Lemos wrote: > Hello, > > on 12/30/2008 01:13 AM Sancar Saran said the following: > >> How do you structure your web applications? I am thinking in terms of > >> separating presentation and logic. How is that done in PHP? And how > >> many architecture pat

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Daniel Kolbo
Michael C. Yates wrote: Hey, How do you structure your web applications? I am thinking in terms of separating presentation and logic. How is that done in PHP? And how many architecture patterns are there? Thanks Micheal C. Yates I am an amateur programmer, so take my comments with a gr

Re: [PHP] turn shared hosting server to external image storage hosting

2008-12-29 Thread paragasu
i tried to ping photobucket. it takes 400ms for here. i only want to create a small gallery locally. our ISP have a very slow connection outside our country. so i want to take advantage of any available server here. cloudfront nearest server in asia is in hongkong. i try to look in to it. On 12/2

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Manuel Lemos
Hello, on 12/30/2008 01:13 AM Sancar Saran said the following: >> How do you structure your web applications? I am thinking in terms of >> separating presentation and logic. How is that done in PHP? And how >> many architecture patterns are there? > > > Well, > > I use, way of Rasmus (I give t

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Sancar Saran
On Sunday 28 December 2008 01:40:01 Michael C. Yates wrote: > Hey, > > How do you structure your web applications? I am thinking in terms of > separating presentation and logic. How is that done in PHP? And how > many architecture patterns are there? > > > Thanks > > > Micheal C. Yates Well, I

Re: [PHP] running python in php timeout

2008-12-29 Thread Lars Torben Wilson
2008/12/29 brad : > Hi, > > I'm executing a python script from php that runs quite a long time (15+ > minutes) and ends up timing out. Is there a way I can execute the python > code and move on executing the remaining php code on the page? > Thanks! Hi Brad, It's a little tough to say for sure si

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Manuel Lemos
Hello, on 12/27/2008 10:57 PM Murray said the following: > I'm interested in this topic as well. I'm starting out on a reasonably large > web application, and I'm wondering at the best approach in PHP, particularly > since it's been some years since I worked with PHP on a daily basis (the > last 5

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Ashley Sheridan
On Mon, 2008-12-29 at 13:29 -0800, Brian Dunning wrote: > The one thing I was doing was: > move_uploaded_file($_FILES['upload_file']['tmp_name'], $new_path); > > but nothing was happening, no new file appearing where it was supposed > to, and no error returned, left me scratching my head. (Later

[PHP] running python in php timeout

2008-12-29 Thread brad
Hi, I'm executing a python script from php that runs quite a long time (15+ minutes) and ends up timing out. Is there a way I can execute the python code and move on executing the remaining php code on the page? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-29 Thread Daniel Brown
On Mon, Dec 29, 2008 at 16:26, Brian A. Seklecki wrote: > > All: > > Is anyone interested in adding POSIX 1003.1-2001 gethostname(2) support? I'm > interested in sponsoring a small contract development initiative. > > I need something more reliable than $_ENV[]. Not all shells export > $HOSTNAME

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Brian Dunning
The one thing I was doing was: move_uploaded_file($_FILES['upload_file']['tmp_name'], $new_path); but nothing was happening, no new file appearing where it was supposed to, and no error returned, left me scratching my head. (Later the same script logs the upload to MySQL using data from $_FIL

[PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-29 Thread Brian A. Seklecki
All: Is anyone interested in adding POSIX 1003.1-2001 gethostname(2) support? I'm interested in sponsoring a small contract development initiative. I need something more reliable than $_ENV[]. Not all shells export $HOSTNAME by default. ~BAS -- PHP General Mailing List (http://www.php.n

Re: [PHP] Search functionality in website.

2008-12-29 Thread tedd
At 8:17 PM +0530 12/29/08, Tiji varghese wrote: Hi all,I would like to set up search functionality on my website. I'm using PHP and Mysql. Most of the pages contain static text in the html and is not database driven. I need some idea on how should I go about it without moving everything to data

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Ashley Sheridan
On Mon, 2008-12-29 at 20:34 +, Ashley Sheridan wrote: > On Mon, 2008-12-29 at 11:54 -0800, Brian Dunning wrote: > > Hi - I have a file upload that returns no error, but the file does not > > appear on the server. Here is the result of $_FILES: > > > > Array ( > > [f] => Array ( > >

Re: [PHP] Need Help - apology

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 3:18 PM, John Corry wrote: > > That was too heavy handed. > > I'm sorry. Please forgive my harshness. > > John > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Having a bad day at work? ;) -- PHP General Ma

Re: [PHP] Help debugging a file upload on IIS

2008-12-29 Thread Ashley Sheridan
On Mon, 2008-12-29 at 11:54 -0800, Brian Dunning wrote: > Hi - I have a file upload that returns no error, but the file does not > appear on the server. Here is the result of $_FILES: > > Array ( > [f] => Array ( > [name] => Elephants.pdf > [type] => application

Re: [PHP] Need Help - apology

2008-12-29 Thread John Corry
That was too heavy handed. I'm sorry. Please forgive my harshness. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Help

2008-12-29 Thread John Corry
1. It's generally considered poor etiquette to send that much code to a mailing list. How about snipping the relevant section next time? 2. the error says: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result. There's your clue. Is the query good? Is the connection good? I'm getting a lit

[PHP] Help debugging a file upload on IIS

2008-12-29 Thread Brian Dunning
Hi - I have a file upload that returns no error, but the file does not appear on the server. Here is the result of $_FILES: Array ( [f] => Array ( [name] => Elephants.pdf [type] => application/pdf [tmp_name] => C:\WINDOWS\Temp\php3133.tmp

Re: [PHP] Need Help

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 2:39 PM, dlinden wrote: > I am getting this error and can't resolve; > > Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, > boolean given in /home5/camfulco/public_html/CompanyHome.php on line 132 > I'm not going to read all 500 lines of that, but I'm

[PHP] Need Help

2008-12-29 Thread dlinden
I am getting this error and can't resolve; Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /home5/camfulco/public_html/CompanyHome.php on line 132 code listing follows; "The Company Intranet", "header" => "The Company Intranet", "bottom"

RE: [PHP] Php mysql update

2008-12-29 Thread admin
Sorry about that it hit me right after i sent the email. Thank You so much for you reply Hello, you have to do : $dwsl = mysql_query('UPDATE database SET "Field"="Field"+1 WHERE "Criteria"=\'Criteria\'');> From: ad...@buskirkgraphics.com> To: php-general@lists.php.net> Date: Mon, 29 Dec 2008 12

Re: [PHP] Php mysql update

2008-12-29 Thread John Corry
Wouldn't it be: mysql_query("UPDATE database set Field = Field+1 WHERE Criteria='Criteria'"); Note: no '' around +1, = operator John Corry ad...@buskirkgraphics.com wrote: > Okay maybe i have just forgot. > I am trying to update the database and do a +1 to a int field without pulling > the data

RE: [PHP] Php mysql update

2008-12-29 Thread Gautier Di Folco
Hello, you have to do : $dwsl = mysql_query('UPDATE database SET "Field"="Field"+1 WHERE "Criteria"=\'Criteria\'');> From: ad...@buskirkgraphics.com> To: php-general@lists.php.net> Date: Mon, 29 Dec 2008 12:05:37 -0500> Subject: [PHP] Php mysql update> > Okay maybe i have just forgot.> I am try

[PHP] Php mysql update

2008-12-29 Thread admin
Okay maybe i have just forgot. I am trying to update the database and do a +1 to a int field without pulling the data and adding 1 to it and sticking it back in. Someone refresh me on this please. I think it is something like. $dwsl = mysql_query("UPDATE database set Field='+1' WHERE Criteria='Cr

Re: [PHP] Search functionality in website.

2008-12-29 Thread Richard Heyes
> Hi all,I would like to set up search functionality on my website. I'm using > PHP and Mysql. Most > of the pages contain static text in the html and is not database driven. I > need some idea on how > should I go about it without moving everything to database driven > functionality. You could

Re: [PHP] Search functionality in website.

2008-12-29 Thread John Corry
Or even a google search widget... Miles Thompson wrote: > On Mon, Dec 29, 2008 at 10:47 AM, Tiji varghese wrote: > ht-dig (or digg) > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search functionality in website.

2008-12-29 Thread Miles Thompson
On Mon, Dec 29, 2008 at 10:47 AM, Tiji varghese wrote: > Hi all,I would like to set up search functionality on my website. I'm using > PHP and Mysql. Most of the pages contain static text in the html and is not > database driven. I need some idea on how should I go about it without moving > every

[PHP] Search functionality in website.

2008-12-29 Thread Tiji varghese
Hi all,I would like to set up search functionality on my website. I'm using PHP and Mysql. Most of the pages contain static text in the html and is not database driven. I need some idea on how should I go about it without moving everything to database driven functionality. Please help.Thanks in

Re: [PHP] Re: imap_rfc822_parse_adrlist problem

2008-12-29 Thread Ben Stuyts
Hi, On 29 dec 2008, at 08:57, c...@l-i-e.com wrote: File a bug report at http://bugs.php.net You have a pretty clear-cut case of a built-in function gone awry, and it will probably be fixed pretty fast. I also rely on this function quite a bit, so it needs to work right when I end up at

Re: [PHP] Re: Problem with fetching values...

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 7:57 AM, Michelle Konzack wrote: > Am 2008-12-29 22:09:16, schrieb chris smith: >> > So, PostgreSQL catch the array by "name" >> > >> >pg_fetch_array($db_query, null, PGSQL_ASSOC) >> > >> > and MySQL use the "position" >> > >> >mysql_fetch_array($db_query, MYSQL_NUM

Re: [PHP] mysql question

2008-12-29 Thread Phpster
The mysql forum is the best place. Note that their holiday schedule may mean some lag in getting answers. Bastien Sent from my iPod On Dec 29, 2008, at 7:51 AM, ann kok wrote: Hi all Do you know any websites for mysql question? I do submit the mysql forum but I would like to have more to

[PHP] Re: Problem with fetching values...

2008-12-29 Thread Michelle Konzack
Am 2008-12-29 22:09:16, schrieb chris smith: > > So, PostgreSQL catch the array by "name" > > > >pg_fetch_array($db_query, null, PGSQL_ASSOC) > > > > and MySQL use the "position" > > > >mysql_fetch_array($db_query, MYSQL_NUM) > > Why? > > http://www.php.net/mysql_fetch_array > > Use MYSQ

[PHP] mysql question

2008-12-29 Thread ann kok
Hi all Do you know any websites for mysql question? I do submit the mysql forum but I would like to have more to learn Now I have mysql replication question. Thank you __ Ask a question on any topic and get answers from rea

Re: [PHP] Problem with fetching values...

2008-12-29 Thread chris smith
> So, PostgreSQL catch the array by "name" > >pg_fetch_array($db_query, null, PGSQL_ASSOC) > > and MySQL use the "position" > >mysql_fetch_array($db_query, MYSQL_NUM) Why? http://www.php.net/mysql_fetch_array Use MYSQL_ASSOC as the 2nd param, or leave it out and by default it uses BOTH.

[PHP] Re: Offline PDO documentation?

2008-12-29 Thread Michelle Konzack
Am 2008-12-29 20:08:40, schrieb chris smith: > You can download the whole php.net docs: > > http://www.php.net/download-docs.php Grrr, while I was checking which version I have on my intranet server, I have encountered it was the one from "2007-05-01"... and a newer TAR Archive was laying arr

Re: [PHP] Offline PDO documentation?

2008-12-29 Thread chris smith
On Mon, Dec 29, 2008 at 6:28 PM, Michelle Konzack wrote: > Hello, > > In my PHP5 documetation I have installed on my system PDO is mentioned, > but the files are missing... > > While surfing I have not found the PDO part which I need Off- > Line since I am on GSM and surfing/searchin the inter

Re: [PHP] Re: Problem with fetching values...

2008-12-29 Thread Larry Garfield
On Monday 29 December 2008 2:26:46 am Michelle Konzack wrote: > Am 2008-12-28 16:11:15, schrieb Nathan Nobbe: > > OK. i would stop right there and ask yourself why.. there are tons of > > stable, working solutions out there that already do this, most notably > > for php5, PDO, > > > > http://us.p

[PHP] Offline PDO documentation?

2008-12-29 Thread Michelle Konzack
Hello, In my PHP5 documetation I have installed on my system PDO is mentioned, but the files are missing... While surfing I have not found the PDO part which I need Off- Line since I am on GSM and surfing/searchin the internet is sometimes the hell. Can someone point me to the tar archive

Re: [PHP] Where I can find the PHP5 grammar/specification?

2008-12-29 Thread ceo
The PHP source uses bison/flex, I believe, so that's your best bet for finding the grammar. Chris Shifflet (sp?) mentioned the other day somewhere that he was considering soon releasing some code that he uses in security audits for the boring grunt work part. You may want to try to follow

[PHP] Re: Problem with fetching values...

2008-12-29 Thread Michelle Konzack
Am 2008-12-28 16:11:15, schrieb Nathan Nobbe: > OK. i would stop right there and ask yourself why.. there are tons of > stable, working solutions out there that already do this, most notably for > php5, PDO, > > http://us.php.net/manual/en/pdo.drivers.php > > which btw, is written in C ;) I ha

[PHP] Re: Segmentation fault in php5-imap

2008-12-29 Thread ceo
Perhaps compile everything in debug versions and get some core dumps and file a bug report at http://bugs.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php