Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Phpster
I think there is a lot to be gained from using a framework. I have an extremely large web app in asp ( over 1500 pages ) and maintenance is a frigging nightmare as it's so imtertwined. Using the code ignitor framework reduces that dramatically and I now have 5 rules based classes that contr

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Larry Garfield
On Saturday 27 December 2008 6:57:18 pm Murray wrote: > 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 yea

Re: [PHP] Webhotel structure

2008-12-27 Thread Robert Cummings
On Sat, 2008-12-27 at 15:54 -0500, John Corry wrote: > +1 > > Is it me or has the php mailing list kind of dumbed itself down in the > last 5 years? Hey, that's almost as long as I've been here... *blink* ... *blink* *blink* :O Cheers, Rob. -- http://www.interjinn.com Application and Templati

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Murray
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 years have been purely C#). There's some dev community bias agai

[PHP] errors still being displayed even if variables in php.ini set to off

2008-12-27 Thread Fred Silsbee
on page 1 Notice: Undefined index: in C:\Inetpub\wwwroot\handle_log_book_MySQL.php on line 71 Notice: Undefined index: in C:\Inetpub\wwwroot\handle_log_book_MySQL.php on line 72 in php.ini: error_reporting = Off display_errors = Off (in 2 places) display_startup_errors = Off

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Nathan Nobbe
Hey, How do you structure your web applications? I am thinking in terms of separating presentation and logic. How is that done in PHP? mvc is pretty popular, but php is so flexible you often don't need it for smaller applications. For example, if you take a page-controller approach, a

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Michael C. Yates
dude, whatever Daniel Brown wrote: On Sat, Dec 27, 2008 at 18:40, Michael C. Yates wrote: [snip!] Micheal C. Yates You mis-spelled your name, Michael. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Ashley Sheridan
On Sat, 2008-12-27 at 19:00 -0500, Daniel Brown wrote: > On Sat, Dec 27, 2008 at 18:40, Michael C. Yates wrote: > [snip!] > > > > Micheal C. Yates > > You mis-spelled your name, Michael. > > -- > > daniel.br...@parasane.net || danbr...@php.net > http://www.parasane.net/ || http://www.pilot

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 18:40, Michael C. Yates wrote: [snip!] > > Micheal C. Yates You mis-spelled your name, Michael. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to

Re: [PHP] Is PHP truly faster on the JVM?

2008-12-27 Thread Nathan Nobbe
On Dec 27, 2008, at 3:31 PM, "John Papas" wrote: Lately I've been hearing a lot of people evangelizing that PHP with Resin is actually much faster than with mod_php, but I cannot find any benchmark anywhere. well of course it is, but faster than what.., regular php. Be the jvm; what do you

[PHP] Architecture patterns in PHP

2008-12-27 Thread Michael C. Yates
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Re: Webhotel structure

2008-12-27 Thread Carlos Medina
Nordstjernealle 10 schrieb: Hi PHP experts What is the overall structure on webhotels, how do I remove/clean everythink including everythinnk liek databases etc? Sorry if this is not the proper news group for this question, please redirect me. I am a newbie trying to make my osn webside with

Re: [PHP] Decorator with public methods

2008-12-27 Thread Nathan Nobbe
On Sat, Dec 27, 2008 at 12:35 PM, Larry Garfield wrote: > On Saturday 27 December 2008 2:49:22 am Nathan Nobbe wrote: > > > > Thanks, Nathan. Unfortunately, what you describe is impossible. It > > > requires > > > me to know all the possible decorators ahead of time and implement the > > > inter

Re: [PHP] Decorator with public methods

2008-12-27 Thread Nathan Nobbe
On Sat, Dec 27, 2008 at 12:56 PM, phphelp -- kbk wrote: > On Dec 26, 2008, at 7:53 PM, Larry Garfield wrote: > > I have an object to which I want to add behavior (methods). I cannot use >> inheritance here because the object is already of a type or subtype (vis, >> I am >> already using inherita

[PHP] Is PHP truly faster on the JVM?

2008-12-27 Thread John Papas
Lately I've been hearing a lot of people evangelizing that PHP with Resin is actually much faster than with mod_php, but I cannot find any benchmark anywhere. Is it true or just vendor BS? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Webhotel structure

2008-12-27 Thread Dotan Cohen
2008/12/27 Daniel Brown : >What? > What's not clear? He asked about webhotels, he obviously intends on having extramarital cybersex. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق

Re: [PHP] Webhotel structure

2008-12-27 Thread John Corry
+1 Is it me or has the php mailing list kind of dumbed itself down in the last 5 years? > >What? > > -- > > daniel.br...@parasane.net || danbr...@php.net > http://www.parasane.net/ || http://www.pilotpig.net/ > Unadvertised dedicated server deals, too low to print - email me to find out! >

Re: [PHP] Webhotel structure

2008-12-27 Thread Richard Heyes
>What? Seconded. Are you talking about hosting? -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated December 20th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to update PHP 5.2.6 to 5.2.8 under Fedora Redhat Linux 9

2008-12-27 Thread Fred Silsbee
there are many php related files. yumex or yum don't seem to be alternatives since there are many files that may or may not require updating...which one yum remove php-5.2.6 yum install php-5.2.8 5.2.8 may not be in the repositories yet so rpm seems to be an alternative with a remove - reinsta

[PHP] Re: PHP (under httpd) reading a file outside DocumentRoot?

2008-12-27 Thread Jeff Weinberger
On Dec 26, 2008, at 1:52 PM, Nathan Rixham wrote: Jeff Weinberger wrote: I don't know if this is an Apache (httpd) or a PHP issue (I suspect PHP, but I may be doing something wrong with mod_suexec), so I hope this is the right place to ask. I certainly appreciate any help anyone can offer!

Re: [PHP] PHP script gives no output or error message

2008-12-27 Thread John Musbach
On Sat, Dec 27, 2008 at 3:32 PM, John Musbach wrote: > > Thanks, turns out there were multiple problems with my code. My final > working code is: > > > > for anyone who may be trying to accomplish the same thing as me. In > addition I edited index.php in the themes folder and added a php > clause

Re: [PHP] Webhotel structure

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 15:27, Nordstjernealle 10 wrote: > Hi PHP experts > > What is the overall structure on webhotels, how do I remove/clean everythink > including everythinnk liek databases etc? > > Sorry if this is not the proper news group for this question, please redirect > me. > I am a

Re: [PHP] PHP script gives no output or error message

2008-12-27 Thread John Musbach
On Sat, Dec 27, 2008 at 1:13 PM, Daniel Brown wrote: >Good afternoon, John; > >There's a syntax error on line 19: > >> if(external_fud_login(fud_fetch_user($user)['id']))!=NULL) //User ID is >> valid and logged in > >It should be: >if(external_fud_login(fud_fetch_user($user['i

[PHP] Webhotel structure

2008-12-27 Thread Nordstjernealle 10
Hi PHP experts What is the overall structure on webhotels, how do I remove/clean everythink including everythinnk liek databases etc? Sorry if this is not the proper news group for this question, please redirect me. I am a newbie trying to make my osn webside with a minimum effort. First I had

Re: [PHP] Decorator with public methods

2008-12-27 Thread phphelp -- kbk
On Dec 26, 2008, at 7:53 PM, Larry Garfield wrote: I have an object to which I want to add behavior (methods). I cannot use inheritance here because the object is already of a type or subtype (vis, I am already using inheritance for something else), and because I want to be able to add mu

Re: [PHP] PHP Help Needed

2008-12-27 Thread John Corry
lol, Ashley! Ayemowa, http://www.google.com/search?q=becoming+a+programmer&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a You need to take your 2 steps below and break them down into smaller steps...and smaller steps...and still smaller steps. What PHP files will your app

Re: [PHP] Decorator with public methods

2008-12-27 Thread Larry Garfield
On Saturday 27 December 2008 2:49:22 am Nathan Nobbe wrote: > > Thanks, Nathan. Unfortunately, what you describe is impossible. It > > requires > > me to know all the possible decorators ahead of time and implement the > > interface for each in each decorator, at which point I've gotten no > > b

Re: [PHP] Online Members

2008-12-27 Thread Nathan Nobbe
If you're talking about tracking the number of visitors with presently open sessions at your website... > > I was just browsing the tutorials form at PHP Developer Network and saw > this : http://forums.devnetwork.net/viewtopic.php?f=28&t=29342 > > Looks like it does what (I think) you were trying

Re: [PHP] PHP Help Needed

2008-12-27 Thread Dotan Cohen
2008/12/27 Daniel Brown : >If you've already created the UPLOAD page, then the more difficult > of the two tasks is done. Chances are, you (or whomever wrote the > code for you) should know how to do #2 if you (or another) already did > #1, but if not: > >http://www.google.com/search?q

Re: [PHP] PHP script gives no output or error message

2008-12-27 Thread Daniel Brown
Good afternoon, John; On Sat, Dec 27, 2008 at 03:28, John Musbach wrote: [snip!] There's a syntax error on line 19: > if(external_fud_login(fud_fetch_user($user)['id']))!=NULL) //User ID is valid > and logged in It should be: if(external_fud_login(fud_fetch_user($user['id'

Re: [PHP] PHP Help Needed

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 10:47, Ayemowa Toyin wrote: > Hi, > > I am new to PHP and require your help regarding a PHP Script. Below is what > I am tryin to achieve You require an RTFM and STFW session. * http://php.net/ * http://google.com/ > 1. I have created a FILE UPLOAD

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-27 Thread Dotan Cohen
2008/12/27 Daniel Brown : >Happy Chanukah, Dotan! > And a Merry Christmas! >For portability's sake, especially if you anticipate users saving > the form to their local systems, I would recommend: > > $action = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; > ?> Naturally I have H

Re: [PHP] PHP Help Needed

2008-12-27 Thread Dotan Cohen
2008/12/27 Ashley Sheridan : > RTFM > > http://www.php.net > Or STFW http://justfuckinggoogleit.com/search?q=php%20mysql%20file%20download%20script -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 12:31, Dotan Cohen wrote: > Is there a compelling reason to use either REQUEST_URI or SCRIPT_NAME > in the action of a form that I want to submit to the same URL that it > came from (the script parses whether or not there is a Submit to know > if it should display the form

[PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-27 Thread Dotan Cohen
Is there a compelling reason to use either REQUEST_URI or SCRIPT_NAME in the action of a form that I want to submit to the same URL that it came from (the script parses whether or not there is a Submit to know if it should display the form or the results). I need a portable solution, that is why I

Re: [PHP] Is it PHP Bug - memory leak ?

2008-12-27 Thread Daniel Brown
Hi, Pawel; On Sat, Dec 27, 2008 at 05:40, Pawel Rutkowski wrote: [snip!] > > But in PHP5 x64 I have errors like: > > /root/src/php-5.2.6/Zend/zend_hash.c(247) : Freeing 0x0E76BC50 (75 bytes), > script=ext/session/tests/session_encode_variation5.phpt > [Sat Dec 27 11:27:09 2008] Script: > 'e

Re: [PHP] Online Members

2008-12-27 Thread Daniel Brown
On Fri, Dec 26, 2008 at 20:24, Stephen Alistoun wrote: > > Hi all, > > What is the best way to pick up all the members online on a website? Check the archives and STFW for examples, but the general gist is of it is to use $_SESSION tracking with activity checking. I'm just typing this in qui

Re: [PHP] PHP Help Needed

2008-12-27 Thread Ashley Sheridan
On Sat, 2008-12-27 at 07:47 -0800, Ayemowa Toyin wrote: > Hi, > > I am new to PHP and require your help regarding a PHP Script. Below is what > I am tryin to achieve > > 1. I have created a FILE UPLOAD page that lets users Upload a FIle to the > site. This and other details regarding the fil

[PHP] PHP Help Needed

2008-12-27 Thread Ayemowa Toyin
Hi, I am new to PHP and require your help regarding a PHP Script.  Below is what I am tryin to achieve 1.  I have created a FILE UPLOAD page that lets users Upload a FIle to the site.  This and other details regarding the file stored in a MySQL Database. 2.  I need to create a FILE DOWNLOAD pa

[PHP] Is it PHP Bug - memory leak ?

2008-12-27 Thread Pawel Rutkowski
Hello, I try to run script below with PHP4 and it works. --TEST-- Test session_encode() function : variation --SKIPIF-- --FILE-- --EXPECTF-- *** Testing session_encode() : variation *** bool(true) string(64) "data|a:5:{i:0;i:1;i:1;i:2;i:2;i:3;s:3:"foo";R:1;s:4:"blah";R:1;}" bool(true) Done

Re: [PHP] Decorator with public methods

2008-12-27 Thread Nathan Nobbe
On Sat, Dec 27, 2008 at 12:02 AM, Larry Garfield wrote: > On Friday 26 December 2008 11:06:07 pm Nathan Nobbe wrote: > > > to summarize, using your example above, i would most liely add doThings() > > to Baz, or create another decoration interface for doThings() if you plan > > on using the Bar im

[PHP] PHP script gives no output or error message

2008-12-27 Thread John Musbach
I have the latest version of FUDforum setup and am trying to create a hack that'll allow users who authenticate through our groups kerberos authentication gateway to automatically be logged in. The source code is as follows: https://blah.com/~jmusbach/FUDforum2/' ) ; } else //User ID is invalid, r

Re: [PHP] Do defined variables exist at application scope, or session scope?

2008-12-27 Thread Nathan Nobbe
On Sat, Dec 27, 2008 at 12:54 AM, Murray wrote: > Hi Larry, > > You're absolutely right, I'm talking about constants rather than variables. > > I guess in my very crude way, I'm trying to ask about the following: > > UserA goes to the site via index.php, which defines several helpful > constants.