Re: [PHP] Where is the code for this page?

2011-08-18 Thread Tamara Temple


On Aug 18, 2011, at 3:17 PM, Daniel Brown wrote:

On Thu, Aug 18, 2011 at 16:13, Dotan Cohen   
wrote:


2) I learned a new trick today! Grep this/that syntax:
cat .htaccess | grep "RewriteCond\|RewriteRule"
That's a backslash-pipe double operator in there. Easy to remember:
they're both on the same key.


   Depending on your keyboard layout, yes.  ;-P

   If you like operators with your grep, try grepping on steroids by
using egrep (`man egrep`).


If you *really* like operators with your grep, try pcregrep :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Where is the code for this page?

2011-08-18 Thread Dotan Cohen
On Thu, Aug 18, 2011 at 23:17, Daniel Brown  wrote:
>    Depending on your keyboard layout, yes.  ;-P
>

It is on all four of mine :)

>    If you like operators with your grep, try grepping on steroids by
> using egrep (`man egrep`).
>

I'll look into that. Thanks!


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Where is the code for this page?

2011-08-18 Thread Daniel Brown
On Thu, Aug 18, 2011 at 16:13, Dotan Cohen  wrote:
>
> 2) I learned a new trick today! Grep this/that syntax:
> cat .htaccess | grep "RewriteCond\|RewriteRule"
> That's a backslash-pipe double operator in there. Easy to remember:
> they're both on the same key.

Depending on your keyboard layout, yes.  ;-P

If you like operators with your grep, try grepping on steroids by
using egrep (`man egrep`).

-- 

Network Infrastructure Manager
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Where is the code for this page?

2011-08-18 Thread Dotan Cohen
On Thu, Aug 18, 2011 at 22:57, Daniel Brown  wrote:
>    Check the RewriteCond and RewriteRule entries in the .htaccess
> file in that directory.  If there are none, check parent directories.
>

Two things for the fine archives:
1) I found this in .htaccess:
RewriteRule ^(.+)$ vbseo.php [L,QSA]
If anyone wants to see spaghetti, go google vbseo.php. It looks like
Perl. Batman Perl.

2) I learned a new trick today! Grep this/that syntax:
cat .htaccess | grep "RewriteCond\|RewriteRule"
That's a backslash-pipe double operator in there. Easy to remember:
they're both on the same key.

Thanks.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Where is the code for this page?

2011-08-18 Thread Daniel Brown
On Thu, Aug 18, 2011 at 15:40, Dotan Cohen  wrote:
> I'm going through a customer's server, running crazy proprietary forum
> software (vbbullitin) and even worse SEO mods (vbseo). I cannot figure
> out where the php code for a page is coming from! How to trace this
> URL back to a PHP page:
> http://www.example.com/forum/members/connie.html
>
> Now, I know where the ~/forum root is. I can upload a test.txt file to
> there just fine. However, in this forum root there is neither a file
> "members" nor a directory "members". Furthermore, there is no mention
> of the string "memebers" in the .htaccess file. There is nothing
> specified to handle 404s in .htaccess nor in the httpd.conf file. In
> fact, requests return a file of type text/html with only the text
> "Page not found", no HTML markup at all.
>
> So what is returning that page!???!?

Check the RewriteCond and RewriteRule entries in the .htaccess
file in that directory.  If there are none, check parent directories.

-- 

Network Infrastructure Manager
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php