Re: [PHP] Re: Converting tables into forms

2009-10-27 Thread Robert Cummings
ben...@gmail.com wrote: I am trying to take MySQL tables and use the table structure to create HTML/PHP forms in as few steps as possible for further development. I have a project that has hundreds of tables and requires hundreds of forms to be created and don't want to do so field by field by ha

Re: [PHP] Re: Converting tables into forms

2009-10-27 Thread James McLean
On Wed, Oct 28, 2009 at 2:37 PM, ben...@gmail.com wrote: > I am trying to take MySQL tables and use the table structure to create > HTML/PHP forms in as few steps as possible for further development. I > have a project that has hundreds of tables and requires hundreds of > forms to be created and

[PHP] Re: Converting tables into forms

2009-10-27 Thread ben...@gmail.com
I am trying to take MySQL tables and use the table structure to create HTML/PHP forms in as few steps as possible for further development. I have a project that has hundreds of tables and requires hundreds of forms to be created and don't want to do so field by field by hand. Thanks, Ben On Tues

Re: [PHP] input form save and display conflict

2009-10-27 Thread PJ
Ashley Sheridan wrote: > On Thu, 2009-10-22 at 21:32 -0400, PJ wrote: >> I have several input fields to update a book database. There seems to be >> a conflict in the way tags and text are input through php/mysql and >> phpMyAdmin. If I enter the data with phpMyAdmin the input fields in the >> php

Re: [PHP] Converting tables into forms

2009-10-27 Thread chetan rane
Hi Ben The quickest way to this is by using a framework. and the best way i could find was using the yiiframework www.yiiframework.com i could create a basic form with validations in less then 15 minutes. On Wed, Oct 28, 2009 at 6:42 AM, ben...@gmail.com wrote: > Does anyone have a quick way o

Re: [PHP] Converting tables into forms

2009-10-27 Thread Robert Cummings
ben...@gmail.com wrote: Does anyone have a quick way of converting tables into forms? *tongue in cheek* PHPMyAdmin. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] How to Get the Sub Classes of a Parent Class

2009-10-27 Thread Martin Scotta
On Tue, Oct 27, 2009 at 9:30 PM, Raymond Irving wrote: > Hi Martin, > > This works great but I was hoping that I didn't have to loop through > get_declared_classes to find the sub class. > > Is there a way to get the subclasses using Reflection? For example: > > $r = new ReflectionClass($name); >

[PHP] Converting tables into forms

2009-10-27 Thread ben...@gmail.com
Does anyone have a quick way of converting tables into forms? -- ** The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the inte

[PHP] Netbeans IDE 6.5

2009-10-27 Thread Skip Evans
Hey all, I just downloaded the Netbeans 6.5 IDE to use as a code editor, installed the PHP plugin for syntax highlighting and it didn't look so good, so I find on the forum a guy who has made a collection of files, starting in a directory called config, that will apparently change the highlig

Re: [PHP] How to Get the Sub Classes of a Parent Class

2009-10-27 Thread Raymond Irving
Hi Martin, This works great but I was hoping that I didn't have to loop through get_declared_classes to find the sub class. Is there a way to get the subclasses using Reflection? For example: $r = new ReflectionClass($name); print_r($r->getSubClasses()); Many Thanks __

Re: [PHP] How to Get the Sub Classes of a Parent Class

2009-10-27 Thread Raymond Irving
David, I'm try to do something like what Martin Scotta did but I'm looking for a solution that did not require me to loop through get_declared classes() to find a sub class. __ Raymond Irving From: David Otton To: Raymond Irving Cc: PHP-General List Sen

Re: [PHP] What would stop header("Location...) from working?

2009-10-27 Thread James McLean
On Wed, Oct 28, 2009 at 10:01 AM, tedd wrote: > I just had a script stop following this statement: > >   header("Location:users.php"); > > It *was* working, but now instead of running "users.php", it defaults to the > parent script. > > When I place exit() after it, such as: > >   header("Location

[PHP] What would stop header("Location...) from working?

2009-10-27 Thread tedd
Hi gang: I just had a script stop following this statement: header("Location:users.php"); It *was* working, but now instead of running "users.php", it defaults to the parent script. When I place exit() after it, such as: header("Location:users.php"); exit(); The script simply exit

[PHP] Converting MySQL into Form

2009-10-27 Thread ben...@gmail.com
Anyone know of a way to can take Mysql tables/fields from phpMyAdmin or .sql file and quickly make into HTML forms?

Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Jason Lixfeld
Thanks for the replies guys. As a few have eluded to, Apache is working fine. What I've done is completely uninstalled, made clean from source, reinstalled and verified that the options were such that apache support is built into PHP and Apache. Here's what I've found: Apache seems to be

Re: [PHP] Cookie Quandary

2009-10-27 Thread John Black
Brian Dunning wrote: I want to kill everyones' '/admin' cookies, but I'm worried that some browsers might erase both cookies if I do this. Does anyone know if I can safely kill the '/admin' cookie without risking deletion of the '/' cookie? How about you store the data, expire both cookies th

Re: [PHP] Cookie Quandary

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 11:34 -0700, Brian Dunning wrote: > No, I'm talking about cookies, thus the references to pathnames and > expirations. > > On Oct 27, 2009, at 10:56 AM, Ashley Sheridan wrote: > > > Cookies are client-side. Do you mean session files? > > > > How are you writing the co

Re: [PHP] Cookie Quandary

2009-10-27 Thread Brian Dunning
No, I'm talking about cookies, thus the references to pathnames and expirations. On Oct 27, 2009, at 10:56 AM, Ashley Sheridan wrote: Cookies are client-side. Do you mean session files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unsuscribe

2009-10-27 Thread Mark Cilissen
Manuel Morini schreef: I want a list in spanish about PHP Thank you Manuel.morini Try php.general.es. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookie Quandary

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 10:35 -0700, Brian Dunning wrote: > I wrote some cookies for a whole bunch of site admins, but failed to > set the path, so all the cookies are set to '/admin', which is not > going to work for everything they need to do. They are also too long, > set for 6 months. > >

[PHP] Cookie Quandary

2009-10-27 Thread Brian Dunning
I wrote some cookies for a whole bunch of site admins, but failed to set the path, so all the cookies are set to '/admin', which is not going to work for everything they need to do. They are also too long, set for 6 months. I need to correct both issues, so I changed it to write cookies to

[PHP] Re: simple xml object

2009-10-27 Thread Mark Cilissen
AChris W schreef: I have the following xmlwith standard tags changed to [ and ] to prevent mail clients from encoding it as html. [?xml version="1.0"?] [resultset errors="0" results="86"] [result id="20080922133104871678" lastinspected="9/29/2009 0:00"]0.4[/result] [result id="2008092213310

[PHP] Re: Unsuscribe

2009-10-27 Thread Mark Cilissen
Manuel Morini schreef: I want a list in spanish about PHP Thank you Manuel.morini Try php.general.es. -- Mark Cilissen / Pixlism http://www.ninyou.nl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread David Otton
2009/10/27 David Otton : > If you go with the first approach, you're writing code that you and > anyone who comes after you can write useful tests for. The others, and > you're denying maintenance programmers a useful tool. I should have lead with this: the wikipedia article on Dependency injecti

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Yuri Yarlei
Ash, I think the apache is working, because he recieve the error "[27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function", if apache are not started he will receive some error about apache starting or someting like that. Yuri Yarlei. http://www.yuriyarlei.net.net (under constructi

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Paul M Foster
On Tue, Oct 27, 2009 at 04:11:32PM +, David Otton wrote: > 2009/10/27 Paul M Foster : > > > On Tue, Oct 27, 2009 at 05:27:07PM +1100, Eric Bauman wrote: > > >> I'm in the process of implementing an ultra-light MVC framework in PHP. > >> It seems to be a common opinion that the loading of dat

[PHP] Unsuscribe

2009-10-27 Thread Manuel Morini
I want a list in spanish about PHP Thank you Manuel.morini -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 19:16 +0300, Yuri Yarlei wrote: > Hi all, > > > > If the basic functions of php not work, maybe the extension for php5 or 4 are > disabled, or the library is missing, sometimes apache does not show the erros > for missing library, or yet, the library for php4 or 5 are b

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Yuri Yarlei
Hi all, If the basic functions of php not work, maybe the extension for php5 or 4 are disabled, or the library is missing, sometimes apache does not show the erros for missing library, or yet, the library for php4 or 5 are both on, or they crash Yuri Yarlei. www.yuriyarlei.net (under const

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Yuri Yarlei
Hi all, If the basic functions of php not work, maybe the extension for php5 or 4 are disabled, or the library is missing, sometimes apache does not show the erros for missing library, or yet, the library for php4 or 5 are both on, or they crash Yuri Yarlei. www.yuriyarlei.net (under const

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread David Otton
2009/10/27 Paul M Foster : > On Tue, Oct 27, 2009 at 05:27:07PM +1100, Eric Bauman wrote: >> I'm in the process of implementing an ultra-light MVC framework in PHP. >> It seems to be a common opinion that the loading of data from a >> database, file etc. should be independent of the Model, and I

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Paul M Foster
On Tue, Oct 27, 2009 at 05:27:07PM +1100, Eric Bauman wrote: > I'm in the process of implementing an ultra-light MVC framework in PHP. > It seems to be a common opinion that the loading of data from a > database, file etc. should be independent of the Model, and I agree. > What I'm unsure of is t

Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Jim Lucas
Ashley Sheridan wrote: > On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote: > >> On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld >> wrote: >>> I have no doubt that this is due to an update that was done on my system at >>> some point, but unfortunately I can't pinpoint where. The upshot is t

RE: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread David Murphy
I take a different approach : // In the MainHandler Define('StorageClassName',"_MySQL"); Class UserController { function __construct($objDataStore=false){ if(!$objDataStore) $this->DataStore = new instanceof($this).STORAGECLASSNAME ; }

Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote: > On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld > wrote: > > I have no doubt that this is due to an update that was done on my system at > > some point, but unfortunately I can't pinpoint where. The upshot is that > > PHP is completely unr

[PHP] Re: PHP+Apache suddenly not working

2009-10-27 Thread Jason Lixfeld
On 2009-10-27, at 9:33 AM, Shawn McKenzie wrote: Jason Lixfeld wrote: I have no doubt that this is due to an update that was done on my system at some point, but unfortunately I can't pinpoint where. The upshot is that PHP is completely unresponsive for me when run from Apache and I'm not

[PHP] Re: PHP+Apache suddenly not working

2009-10-27 Thread Shawn McKenzie
Jason Lixfeld wrote: > I have no doubt that this is due to an update that was done on my system > at some point, but unfortunately I can't pinpoint where. The upshot is > that PHP is completely unresponsive for me when run from Apache and I'm > not sure where to look. I recognize that this isn't

Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Bastien Koert
On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld wrote: > I have no doubt that this is due to an update that was done on my system at > some point, but unfortunately I can't pinpoint where.  The upshot is that > PHP is completely unresponsive for me when run from Apache and I'm not sure > where to l

[PHP] PHP+Apache suddenly not working

2009-10-27 Thread Jason Lixfeld
I have no doubt that this is due to an update that was done on my system at some point, but unfortunately I can't pinpoint where. The upshot is that PHP is completely unresponsive for me when run from Apache and I'm not sure where to look. I recognize that this isn't an apache support lis

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>Think of it a bit like an online shop selling operating systems: > >1) All the main OS's you sell are on the front page - Linux, MacOS & Windows >2) User clicks on Linux, and is taken to the url /products/linux and they are >shown all the Linux OS's on offer >(Fedora, SuSe, Ubuntu, Knoppix, etc)

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 11:39 +, MEM wrote: > >That sounds about right yeah. You could also get a little bit clever and > >only retrieve the rows from your db that >will go to make the array elements > >you'll need. It doesn't make sense to retrieve a full product list each time > >>someone v

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>That sounds about right yeah. You could also get a little bit clever and only >retrieve the rows from your db that >will go to make the array elements you'll >need. It doesn't make sense to retrieve a full product list each time >someone >visits the page, Ok. >so you only need to retrieve t

RE: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Mert Oztekin
Hi Eric, IMO, controllers shouldnt be responsible for interacting models and datastoreres. Controllers might only change the datastore class of a model. You may use your models in lots of controller functions. Defining datastore in all controllers seems not a good practice. (too much unneccessa

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 10:25 +, MEM wrote: > >I think the term drop-menu is bad in this case, as essentially what you are > >saying is: > > > >1) user is presented with the basic navigation menu > >2) user clicks an item and page navigates somewhere else > >3) because of the item user clicked

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>I think the term drop-menu is bad in this case, as essentially what you are >saying is: > >1) user is presented with the basic navigation menu >2) user clicks an item and page navigates somewhere else >3) because of the item user clicked in 2) display some extra menu items > Exactly. >That's n

[PHP] Re: What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Tony Marston
It sounds like you need a combination of MVC and the 3 Tier Architecture. They are not the same thing, for reasons described at http://www.tonymarston.net/php-mysql/infrastructure-faq.html#faq26 I have combined both these patterns in the Radicore framework - take a look at http://www.radicore.o

Re: [PHP] Strange behaviour with uploaded files .. XAMPP on Windows

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 11:31 +1000, Angus Mann wrote: > Hi all. I'm not sure if this is really a PHP question or specific to XAMPP, > or windows in general... > > I have XAMPP including PHP 4.29 running on a Vista machine. > > When I use a form to upload a file, using $_FILES['uploadedfile']['na

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 00:55 +, MEM wrote: > Thanks a lot for your replies. > > Let's see if I understand, if not, please, let me know, I'm not that > proficient in English. > Second try, in order to accomplish this, I have to: > > > 1) Generate the multidimensional array from query. > >