Jump to content

rklau

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About rklau

  • Rank
    New To The Neighborhood

Contact Methods

  • AIM
    RickKlau
  • MSN
    rick@rklau.com
  • Website URL
    http://www.rklau.com/tins/
  • ICQ
    0
  • Yahoo
    sonofathief

Profile Information

  • Location
    Naperville, IL
  1. That's the kids on top of the monitor (not drawn to scale ...
  2. Oddly enough, it does work when I execute directly, and the script's permissions were set properly. In any event, I followed the instructions to use "GET http://domain.com/path/to/file.php" and that is now working. Note: I have the directory this file is in password-protected, and to authenticate I'm actually using the URL: http://user:password@domain.com/path/to/file.php. Thanks for the help!
  3. Hi - I recently installed an RSS aggregator that is written in PHP and has a mySQL backend. (It's here if you want to check it out.) There's a way to automatically update all feeds using a page included with the app - called update-quiet.php. I should be able to schedule a cron job to run this page periodically, but for the life of me I can't figure out the right command. I thought it should be (in the entry for the command to execute via C-Panel's manage cron jobs): php /home/xxxxxxx/public_html/directory/update-quiet.php (When I run that w/e-mail notification enabled, I get a message that includes the headers of the php file, but it has not actually executed the script.) Any idea why that's not working? What should this look like? --Rick Tech blog
  4. Well, fool around enough with something and you can make it work. Turns out the line has to read: ErrorDocument 404 /404.php Go figure. For those who are interested, I implemented this hack in Movable Type: http://www.rklau.com/tins/archives/2003/12...mtrefsearch.php Which lets me capture incoming referral links to help people find what they want on my blog; now the 404 page includes the same code. (I'm going to have to modify the 404 one a bit to include both blogs hosted at my domain, but you get the idea.) Now, when they get referred to a non-existent page from a search engine, the first thing the 404 page does is execute a query against my blogs - if there are posts that contain the search strings used at the search engine, it will present links to those posts before just presenting the visitor with a standard search interface. --Rick
  5. Hi - I've read that running Movable Type under mod_perl is dramatically faster than running the cgi scripts directly. The instructions for doing this are here. In order to do this, it looks like I need to modify httpd.conf - which I'm not sure whether I can do or not. Is this possible with a shared hosting account? --Rick
  6. Pretty sure that's the trick: if you start the cron job with "php" and then follow it with the absolute path to the script, you're in good shape.
  7. Sorry, but that doesn't work either. Now I get this: The requested URL /foo was not found on this server. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. I'm stumped...
  8. Hi - I have a snippet of php code I want to execute in my 404 page. I have created a custom 404 page through cPanel, assigned the filename of 404.php at the bottom, and confirmed that (a) the file is written properly and ( when accessed directly (i.e., www.rklau.com/404.php) it works fine. But when you access a page that doesn't exist, I get this: The requested URL /foo was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I tried manually updating .htaccess with this: ErrorDocument 404 /home/xxxxx/public_html/404.php But that is what seems to generate the error message above. So - how do I direct 404's to 404.php instead of 404.shtml? --Rick
×
×
  • Create New...