RE: [PHP] Page not displayed/Forbidden on PHP forms

2007-11-22 Thread Andrés Robinet
I would check the follwing: - If the problematic host has apache's mod_security enabled. The system administrator can tell you if mod_security is disallowing some of the input (which might cause the "403 forbidden"). - PHP.INI parameters max_execution_time, max_input_time and max_input_nesting_leve

[PHP] Page not displayed/Forbidden on PHP forms

2007-11-22 Thread Jeffrey
We are running identical web applications with two different hosts. Both are LAMP. With one of hosts, we are having reports of users seeing "Page not displayed" or "403 Forbidden" after submitting forms. These forms are always sending data to the same page from which they started and the prob

Re: [PHP] PHP + Amazon to retrieve book data

2007-11-22 Thread Dan Joseph
Hi Scott, This should help: http://hades.phparch.com/ceres/public/article/index.php/art::web_services::php5_soap/2 -Dan Joseph On Nov 21, 2007 7:39 AM, Scott Wilcox <[EMAIL PROTECTED]> wrote: > Hey folks, > > Does anyone have any resources or links to resources concerning > obtaining book data

Re: [PHP] Question about urlencode....

2007-11-22 Thread TG
Unless your URL is more complicated than your example, you shouldn't need to use urlencode() at all. You'd need to use it in a case where your string may contain characters that aren't valid in URLs like spaces and such: $baseurl = "http://www.somesearchsite.com/search=";; $searchfor = "Grace

Re: [PHP] image galleries

2007-11-22 Thread Martin Marques
Lisa A escribió: > Does anyone know of an image gallery I can use on multiple pages of a > website. I'd like to be able to click on the thumbnails and see a larger > image. > Hopefully something simple and easy to install. gallery2 -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Parsing XML with DTD

2007-11-22 Thread Andrés Robinet
> -Original Message- > From: Skip Evans [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 22, 2007 5:35 PM > To: Jochem Maas > Cc: PHP-General > Subject: Re: [PHP] Parsing XML with DTD > > Hey Jochem & all, > > Thanks much for this tip. I will check it out. > > A little further readin

Re: [PHP] Parsing XML with DTD

2007-11-22 Thread Skip Evans
Hey Jochem & all, Thanks much for this tip. I will check it out. A little further reading looks like PEAR provides some XML and DTD capabilities? Anyone have any experience with this? Also, the reason I asked about the DTD is that these XML files are really extensive, providing lots of var

Re: [PHP] Parsing XML with DTD

2007-11-22 Thread Jochem Maas
Skip Evans wrote: > Hey all, > > I've been asked if it's possible to parse XML files given a DTD file > that describes the elements within it, so I've been looking through the > docs at php.net. > > So far I've found this: > > http://us.php.net/manual/en/ref.xml.php > > Which has some samples o

Re: [PHP] Parsing XML with DTD

2007-11-22 Thread Per Jessen
Skip Evans wrote: > I've been asked if it's possible to parse XML files given a DTD file > that describes the elements within it, Yes it is. > Which has some samples on, but nothing that I see > will take a DTD file and parse the XML accordingly. > I'm thinking something like this is probably

[PHP] Parsing XML with DTD

2007-11-22 Thread Skip Evans
Hey all, I've been asked if it's possible to parse XML files given a DTD file that describes the elements within it, so I've been looking through the docs at php.net. So far I've found this: http://us.php.net/manual/en/ref.xml.php Which has some samples on, but nothing that I see will tak

Re: [PHP] Logic Help please

2007-11-22 Thread Richard Heyes
Hi, I am doing an online calendar for holiday application. Now I got a table with these fields among many others. `req_id` int(11) NOT NULL auto_increment, `req_date` date NOT NULL, `username` varchar(100) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `days_off` int

RE: [PHP] getenv ... i think

2007-11-22 Thread Andrés Robinet
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 22, 2007 8:08 AM > To: php-general@lists.php.net > Subject: Re: [PHP] getenv ... i think > > Steven Macintyre wrote: > > > If i take OUT the getenv if then, it works ... so i know that is > where

Re: [PHP] Code Critique Please :)

2007-11-22 Thread Robert Cummings
On Thu, 2007-11-22 at 12:46 -0500, Oscar Gosdinski wrote: > > There is something that i always wonder about Singleton pattern in > PHP, do you really have a benefit using this pattern in PHP? The idea > behind this pattern is that only one instance of the class is created, > it works great in Java

Re: [PHP] Code Critique Please :)

2007-11-22 Thread Oscar Gosdinski
On Nov 21, 2007 2:05 PM, Simeon F. Willbanks <[EMAIL PROTECTED]> wrote: > 3. Object Oriented principles I see that you tried to implement Singleton pattern in the DB class, but you have a mistake. $dbConnection attribute is not a static member, so every time you call the constructor $dbConnection w

[PHP] Logic Help please

2007-11-22 Thread Mohamed Jama
Hi, I am doing an online calendar for holiday application. Now I got a table with these fields among many others. `req_id` int(11) NOT NULL auto_increment, `req_date` date NOT NULL, `username` varchar(100) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `days_off` int(

[PHP] Question about urlencode....

2007-11-22 Thread Colin Guthrie
Hi, OK this one is a little embarrasing. I've been doing this for years and I just wonder if I'm wrong Say you have an exit link on your site, e.g. /leave.php, which accepts a "url" get arg. You use this page to record stats/whatever and then issue a Location: header to take the user to the c

Re: [PHP] Code Critique Please :)

2007-11-22 Thread Simeon F. Willbanks
No I did not, thanks! For those that need more information, here is a good tutorial: http://en.wikibooks.org/wiki/XML_-_Managing_Data_Exchange/Converting_MySQL_to_XML Simeon On Nov 22, 2007, at 10:05 AM, [EMAIL PROTECTED] wrote: You know that mysql has an output option for producing XML

Re: [PHP] Code Critique Please :)

2007-11-22 Thread Per Jessen
Simeon F. Willbanks wrote: > Hello, > > I am trying to increase my knowledge and understanding of OO and OO > Design Patterns. I'd like to request a critique of a program that > extracts MySQL table information and translates it into XML. You know that mysql has an output option for producing

Re: [PHP] imap_search - criterion "ON"

2007-11-22 Thread Zoltán Németh
2007. 11. 22, csütörtök keltezéssel 21.15-kor Max Frigge ezt írta: > Hey there, > > i am trying to use the imap_search function oh PHP. > In the documentation it says i can use ON to search for > a date. Whenever i try that I get: > > "Unknown search criterion: ON" > > Which is wired becau

Re: [PHP] getenv ... i think

2007-11-22 Thread Per Jessen
Steven Macintyre wrote: > If i take OUT the getenv if then, it works ... so i know that is where > the problem is. I didnt bother with reading all your code, but maybe you should use $_SERVER['REMOTE_HOST'] instead of the getenv() call ? /Per Jessen, Zürich -- PHP General Mailing List (http://

[PHP] Re: getenv ... i think

2007-11-22 Thread M. Sokolewicz
Steven Macintyre wrote: Hi all, http://steven.macintyre.name/myscript.phps is my code as it stands The purpose of the code is as follows; Its for a non-profit company - wanting to offer "support" banners for users who pay for them right ... as in donation. They want to be able to restrict

[PHP] imap_search - criterion "ON"

2007-11-22 Thread Max Frigge
Hey there, i am trying to use the imap_search function oh PHP. In the documentation it says i can use ON to search for a date. Whenever i try that I get: "Unknown search criterion: ON" Which is wired because ON is even mentioned in the IMAP2 criteria?!? Any ideas what's wrong? Greets,

[PHP] getenv ... i think

2007-11-22 Thread Steven Macintyre
Hi all, http://steven.macintyre.name/myscript.phps is my code as it stands The purpose of the code is as follows; Its for a non-profit company - wanting to offer "support" banners for users who pay for them right ... as in donation. They want to be able to restrict those banners to a certain

[PHP] Re: image galleries

2007-11-22 Thread Colin Guthrie
Lisa A wrote: > Does anyone know of an image gallery I can use on multiple pages of a > website. I'd like to be able to click on the thumbnails and see a larger > image. > Hopefully something simple and easy to install. There is Gallery 2, http://gallery.menalto.com/ but that's a bit heavy weig