Re: [PHP] Re: Can the URL be controlled for more user-friendly readability?

2005-12-23 Thread Ed Lazor
Make sure to parse the input, instead of using $_GET... it's too easy for hackers to embed stuff... Shawn McKenzie <[EMAIL PROTECTED]> wrote: $result = yoursqlfunc("SELECT person FROM sometable WHERE firstname='$_GET[fn]' AND lastname='$_GET[ln]'");

[PHP] Re: Can the URL be controlled for more user-friendly readability?

2005-12-23 Thread Shawn McKenzie
So if you are using Apache as your webserver you can use mod_rewrite to rewrite the URL to something else. So for example, create a rewrite rule to rewrite firstname_lastname to people.php?fn=firstname&ln=lastname RewriteRule ^([^-]+)\-([^-]+)\.html$ people.php?fn=$1&ln=$2 [L,NC,NS] Next, the PH

[PHP] Can the URL be controlled for more user-friendly readability?

2005-12-23 Thread Dave M G
PHP General, I have a PHP/MySQL web site where there are profiles for performers at a comedy show. The profiles are accessed by passing a variable to the PHP script via URL, which can then look up the right performer data in the database. The resulting URL looks like this:

Re: [PHP] PHP Frameworks

2005-12-23 Thread Richard K . Miller
I haven't tried them yet, but I've been tagging all the PHP frameworks I come across: http://del.icio.us/rkm28/php+framework The first one I want to try is PHP on Trax (http:// www.phpontrax.com/). It was used to build the KatrinaHousing.org site that was used to provide housing for victim

Re: [PHP] PHP Frameworks

2005-12-23 Thread Chris Shiflett
Shawn McKenzie wrote: I searched on "Zend PHP Framework" because I had seen it referenced somewhere, however I can just find plans and objectives and no usable "framework". It hasn't been released yet. However, there are many components that are finished, and I think Zend hopes to release a be

Re: [PHP] PHP Frameworks

2005-12-23 Thread Shawn McKenzie
Thanks. I searched on "Zend PHP Framework" because I had seen it referenced somewhere, however I can just find plans and objectives and no usable "framework". Thanks! -Shawn Zareef Ahmed wrote: > Hi, > There are a lot of PHP frameworks like Mojavi, Phrame, php.MVC, > phpwebtk, Horde. >

[PHP] Re: Problems getting the nodeName with DomDocument

2005-12-23 Thread Kenneth Andresen
Thanks Rob, that solved the problem for me! Rob Richards wrote: Kenneth Andresen wrote: I am having problems with the following functions where my return simply is "#text Joe #text Smith #text unknown", it should have read firstname Joe lastname Smith address unknown What am I doing wrong?

Re: [PHP] PHP Frameworks

2005-12-23 Thread Zareef Ahmed
Hi, There are a lot of PHP frameworks like Mojavi, Phrame, php.MVC, phpwebtk, Horde. My choice is Mojavi. BTW Zend is also doing some great work on it. Zareef Ahmed - Original Message - From: "Shawn McKenzie" <[EMAIL PROTECTED]> To: Sent: Friday, December 23, 2005 2:57 PM S

[PHP] PHP Frameworks

2005-12-23 Thread Shawn McKenzie
Is there a good recent article on PHP Frameworks, or do people here has a predominant one that outshines the others? I'm looking for something that is easy to use, fast and stable. Thanks! -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] RegEx drop everything after last pattern

2005-12-23 Thread John Nichel
John Nichel wrote: Okay, maybe it's just the fact that I'm concentration on getting out of here for the holidays more than I am on my work, but I'm pulling my hair out. Say I have a string - Now, is the time; for all good men! to come to the aide? of their What I want to do is drop everythin

[PHP] Re: RegEx drop everything after last pattern

2005-12-23 Thread Al
John Nichel wrote: Okay, maybe it's just the fact that I'm concentration on getting out of here for the holidays more than I am on my work, but I'm pulling my hair out. Say I have a string - Now, is the time; for all good men! to come to the aide? of their What I want to do is drop everythin

Re: [PHP] Re: Filtering URLs problem..

2005-12-23 Thread Al
Jochem Maas wrote: ... Jochem's correct. I was in too big a hurry trying to help. It was you don't mind if I forward that to my girlfriend? ;-) (the bit about me being correct) obvious that Anders was not getting much useful help. His points 3 and 4 the lack of help is due to the

[PHP] RegEx drop everything after last pattern

2005-12-23 Thread John Nichel
Okay, maybe it's just the fact that I'm concentration on getting out of here for the holidays more than I am on my work, but I'm pulling my hair out. Say I have a string - Now, is the time; for all good men! to come to the aide? of their What I want to do is drop everything after (and includi

Re: [PHP] Re: Filtering URLs problem..

2005-12-23 Thread Jochem Maas
... Jochem's correct. I was in too big a hurry trying to help. It was you don't mind if I forward that to my girlfriend? ;-) (the bit about me being correct) obvious that Anders was not getting much useful help. His points 3 and 4 the lack of help is due to the fact that the problem

Re: [PHP] Re: Filtering URLs problem..

2005-12-23 Thread Al
Jochem Maas wrote: Al wrote: I didn't fully test this; but it should get you started. fully? more like not at all. point 1: "%.+%i"; ^-- double quotes are not escaped == parse error point 2: "%.+%i"; ^-- this will inject the string 'Array' into the regexp strin

Re: [PHP] Re: Filtering URLs problem..

2005-12-23 Thread Jochem Maas
Al wrote: I didn't fully test this; but it should get you started. fully? more like not at all. point 1: "%.+%i"; ^-- double quotes are not escaped == parse error point 2: "%.+%i"; ^-- this will inject the string 'Array' into the regexp string po

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
David Hall wrote: > Albert wrote: > > > same server at the same time. Don't know where to change it in Mozilla. > > > > > > type about:config in browser window > network.http.max-persistent-connections-per-server in the line > the default value is 2, so I think that's our answer Yes it resolved

Re: [PHP] PHP interference in frames

2005-12-23 Thread David Hall
Albert wrote: same server at the same time. Don't know where to change it in Mozilla. type about:config in browser window network.http.max-persistent-connections-per-server in the line the default value is 2, so I think that's our answer David Hall -- PHP General Mailing List (http://www.p

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
Ron Rudman wrote: > The log makes it look like *all* the frames are held back. Seems like the > request is logged when it completes, so the logging process can't show us > whether the client held back frame 3 or frame 3 was put on hold by the > server. I checked my logs and it seems the same. But

RE: [PHP] PHP interference in frames

2005-12-23 Thread Ron Rudman
I tried quite a few tests. Each time, the frameset logged immediately, then 4-5 seconds later came the rest. Examples: 192.168.1.1 - - [23/Dec/2005:07:09:18 -0500] "GET /vsg/test.php HTTP/1.1" 200 167 192.168.1.1 - - [23/Dec/2005:07:09:23 -0500] "GET /vsg/test1.php HTTP/1.1" 200 0 192.168.1.1 -

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
> On 12/22/05, Ron Rudman <[EMAIL PROTECTED]> wrote: > >>I've got this down to a bare bones test but am still stumped. Can anyone >>explain why I get the behavior I do? >> >>I have a frameset with 3 frames: >> >>testing >> >> >> >> >> >> >> >>test1.php and test2.php are both simply:

[PHP] Re: Problems getting the nodeName with DomDocument

2005-12-23 Thread Rob Richards
Kenneth Andresen wrote: I am having problems with the following functions where my return simply is "#text Joe #text Smith #text unknown", it should have read firstname Joe lastname Smith address unknown What am I doing wrong? You're trying to access the name of the Text node which is always

Re: [PHP] PHP interference in frames

2005-12-23 Thread Jochem Maas
PHP Superman wrote: I'm taking a wild guess here, maybe the browser insists on waiting for some content but it's maximum content wait time is 5 seconds, the browser could detect the connection to the server is still open and wait for 5 seconds or another time to get an idea of what the browser

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-23 Thread Ruben Rubio Rey
Mike Rondeau wrote: I am still a newbie, but I am suprised that it effects browers at all, since it returns pure HTML to the browser, right? Something so simple as echoing a "hello world" shouldn't cause trouble in so popular a browser as Netscape I would think... * Netscape is not supor

Re: [PHP] SimpleXML returning Object names with hyphens

2005-12-23 Thread Charlie Davis
Sweet. Thanks! The {'..'} works perfectly. Never knew about that syntax. -Charlie Jochem Maas wrote: Charlie Davis wrote: Hey all, I've run into a snag trying to use some XML output from NOAA. what NOAA when its at home? The problem is that some of the fields it sends to me have a hyph

Re: [PHP] SimpleXML returning Object names with hyphens

2005-12-23 Thread Jochem Maas
Charlie Davis wrote: Hey all, I've run into a snag trying to use some XML output from NOAA. what NOAA when its at home? The problem is that some of the fields it sends to me have a hyphen in the name. Simple XML then creates objects with hyphens in their name. So here's the object I am ha

[PHP] SimpleXML returning Object names with hyphens

2005-12-23 Thread Charlie Davis
Hey all, I've run into a snag trying to use some XML output from NOAA. The problem is that some of the fields it sends to me have a hyphen in the name. Simple XML then creates objects with hyphens in their name. So here's the object I am having issues with: object(SimpleXMLElement)#7 (2) {