Re: [nyphp-talk] Howto create custom URLs

2007-03-31 Thread Paul Houle
Dell Sala wrote: In other words, build a php wrapper around your software package. Done right, it won't know the difference, and you don't have to muck around with httpd.conf. This can be fun. It can be an easy way to improve the user interface of commercial junkware web apps. I did a

Re: [nyphp-talk] Howto create custom URLs

2007-03-26 Thread Ben Sgro \(ProjectSkyline\)
iju Thomas Mathew To: NYPHP Talk Sent: Monday, March 26, 2007 1:49 PM Subject: Re: [nyphp-talk] Howto create custom URLs regex replace, right? What about urls that are constructed dynamically in javascript? And I feel there must be other holes. Is there a way this can be done

Re: [nyphp-talk] Howto create custom URLs

2007-03-26 Thread Jiju Thomas Mathew
regex replace, right? What about urls that are constructed dynamically in javascript? And I feel there must be other holes. Is there a way this can be done reliably, or am I just being paranoid? Actually you would either redesign the package, such that you wont mess up with htaccess, mod_rewri

Re: [nyphp-talk] Howto create custom URLs

2007-03-26 Thread Dell Sala
On Mar 26, 2007, at 8:46 AM, csnyder wrote: The correct approach to this, in my opinion, is to create an application proxy -- a script that will parse incoming request for uri MayEvent07, convert it into $_GET['eventid'] = 4e...7 using a db lookup, and then include() the software package's index

Re: [nyphp-talk] Howto create custom URLs

2007-03-26 Thread Ben Sgro \(ProjectSkyline\)
ventid to names). Thanks, - Ben - Original Message - From: "csnyder" <[EMAIL PROTECTED]> To: "NYPHP Talk" Sent: Monday, March 26, 2007 8:46 AM Subject: Re: [nyphp-talk] Howto create custom URLs On 3/19/07, Ben Sgro (ProjectSkyline) <[EMAIL PROTECTED]> wr

Re: [nyphp-talk] Howto create custom URLs

2007-03-26 Thread csnyder
On 3/19/07, Ben Sgro (ProjectSkyline) <[EMAIL PROTECTED]> wrote: Currently I have a software package that creates URLS in this manner: myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 Now, I want to make this a bit more user friendly and create URLs like: myhost.com/MayEven

Re: [nyphp-talk] Howto create custom URLs

2007-03-26 Thread Jiju Thomas Mathew
Even if you are able to use mod_rewrite, you probably need to do a database lookup to find MayEvent07 so your mod_rewrite rule would be something like this: RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css|html|htm|xml|php)$ index.php I would go for RewriteEngine on RewriteCond %{REQU

Re: [nyphp-talk] Howto create custom URLs

2007-03-19 Thread Ben Sgro \(ProjectSkyline\)
Hello All, Good fact. Thanks Rob, guess I need to update that going forward. I'll let y'all know how it turns out. - Ben - Original Message - From: "Rob Marscher" <[EMAIL PROTECTED]> To: "NYPHP Talk" Sent: Monday, March 19, 2007 6:27 PM Su

Re: [nyphp-talk] Howto create custom URLs

2007-03-19 Thread Rob Marscher
On Mar 19, 2007, at 2:11 PM, Ben Sgro ((ProjectSkyline)) wrote: As you can see, its loading the file (index.php) 5 times for a single request. (the hash, style, favion, png and favicon).. Seems like you are probably using relative paths to link to those resources... like url(pc_app_logo.p

Re: [nyphp-talk] Howto create custom URLs

2007-03-19 Thread Ben Sgro \(ProjectSkyline\)
connected to mysql server db 'hhc' So, any ideas as to why its working like this? - Ben - Original Message - From: "Rob Marscher" <[EMAIL PROTECTED]> To: "NYPHP Talk" Sent: Monday, March 19, 2007 11:06 AM Subject: Re: [nyphp-talk] Howto create custom

Re: [nyphp-talk] Howto create custom URLs

2007-03-19 Thread Rob Marscher
On Mar 19, 2007, at 10:46 AM, Donald J Organ IV wrote: P.S. mod_rewrite is usually enabled or can be enabled on any simple hosting plan that is using apache, if you encounter a host that uses apache and wont turn it on, i would suggest finding another host. Also, you can usually put mod

Re: [nyphp-talk] Howto create custom URLs

2007-03-19 Thread Alvaro P.
Has anyone used mod_rewrite with lighttpd? I tried to use it but can't get it to work. Alvaro Donald J Organ IV wrote: P.S. mod_rewrite is usually enabled or can be enabled on any simple hosting plan that is using apache, if you encounter a host that uses apache and wont turn it on, i would

Re: [nyphp-talk] Howto create custom URLs

2007-03-19 Thread Donald J Organ IV
P.S.   mod_rewrite is usually enabled or can be enabled on any simple hosting plan that is using apache, if you encounter a host that uses apache and wont turn it on, i would suggest finding another host. Donald J Organ IV wrote: This is done via mod_rewrite: apache 1.x http://http

Re: [nyphp-talk] Howto create custom URLs

2007-03-19 Thread Donald J Organ IV
This is done via mod_rewrite: apache 1.x http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html apache 2.x http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html The PHP script still see the page as myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 you just tell apache how