Category: php

Run cron.php without crontab: now it’s possible.

Dear drupal webmaster newbies, this is for you!

Now it’s possible to run cron.php regularily, without any access to the server or without any knowledge about servers and crontab!

Just put these simple PHP lines in a block of your Drupal site, better if mostly present, or create a new block with them:

<?php
$tmstmp=mktime();
$last=file_get_contents("lastcron.txt");
if(($tmstmp-$last)>(60*60*6))
{
$pntr=fopen('lastcron.txt', 'w');
if(fwrite($pntr, $tmstmp))
{
mail ("dest","cron OK","OK");
include ("cron.php");
}
else
{

Cron senza crontab: è possibile.

Cari webmaster drupal in erba, questa è proprio per voi!

Far partire il cron.php regolarmente, senza avere accesso al server o senza saper gestire un server adesso è possibile!

Inserite queste semplici righe in PHP in un blocco qualunque di quelli che compaiono in modo fisso nelle vostre pagine oppure createne uno appositamente:

<?php
$tmstmp=mktime();
$last=file_get_contents("lastcron.txt");
if(($tmstmp-$last)>(60*60*6))
{
$pntr=fopen('lastcron.txt', 'w');
if(fwrite($pntr, $tmstmp))
{
mail ("dest","cron OK","OK");
include ("cron.php");
}
else
{

Click here to start… PHP programming

These are some of my favourites web site about PHP. Links about other arguments are listed in main MENU -> LINKS section.

UNOFFICIAL GOOGLE SITEMAP GENERATOR PHP FREE TOOL

A PHP script to generate a file (XML) for the Google ‘SITEMAP’ service .
Unofficial Google Sitemap generator, for further information:
https://www.google.com/webmasters/sitemaps/
docs/en/protocol.html
.

HOW TO INSTALL

  • unpack the contento of the zip file on your webserver
  • surf to the corresponding url

HOW TO USE

  • insert a URLs list in the textarea (from “http://” one URL x line

PHP section

Of course this section is about PHP programming. Anyway, ror a faster search you’d better use drupal advanced search function…

WARNING: all the script available on my web site, even if not specified, are downloadable for free.
Disclaimer: this software is provided “as is” without warranty of any kind, either expressed or implied. Use it at your own risk. The writer of this program can not be held responsible for improper use of this program or damage caused by bugs.

MySQL Table Admin 1.0 – A PHP-MySQL front-end

A symple and easy script to manage MySQL tables. You can modify, add, delete records or lock some of these features.

HOW TO INSTALL

  • Unpack the zip file content on your web server
  • Modify settings as described by comments in index.php
  • see detailed instruction in adm.php to configure your own page
  • see further details in index.php

MySQL Tbl Adm 1.0 – A PHP-MySQL front-end
Created : August 24 2004
Author : Diego Belotti