SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old June 16th, 2005, 03:47 PM
artistique_girl artistique_girl is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 artistique_girl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
AeDating Installation probelm

Hello all,

The problem is, I am a dittsy newbie (for the time being, at least) when it comes to PHP!

I have this script on my webserver, but I dont understand all of the instructions that are located on the install directory.

In step three it says . . . .


3) Install cron jobs
Edit files:
periodic/cmd.php
periodic/notifies.php

periodic/imcron.php
to set correct path to the "inc/header.inc.php" file at the begining of each file.
Add following cron jobs:

0 0 * * * php -q /path/to/periodic/cmd.php
*/15 * * * * php -q /path/to/periodic/notifies.php



OK- so I know that I have to open the three files in the directory "periodic," I have to edit them, and then FTP them back to my server. But, I am not sure how to set the correct path to the "inc/header.inc.php" file . . .also (*blushing)I don't even know what "cron jobs" are, nor do I know how to add them.

PLEASE. . .any help would be GREATLY appreciated!
Thanks!

URL
Artistique

Just in case . . .here is the actual code from the file periodic/cmd.php


Code:
<?
/*

*/

require_once( "/path_to/inc/header.inc.php" );
require_once( "$dir[inc]db.inc.php" );
require_once( "$dir[inc]profiles.inc.php" );
require_once( "$dir[inc]admin.inc.php" );
require_once( "$dir[inc]modules.inc.php" );


// - Functions -
function finish()
{
	global $site;
    global $MODE;

	if ( $MODE != "_LIVE_" )
	{
		$output = ob_get_contents();
		ob_end_clean();
		if ( $MODE == "_MAIL_" )
        {
			mail( $site[email], "{$site['title']}: Periodic Report", $output, "From: Periodic <$site[email]>", "-f$site[email]" );
        }
	}
	exit;
}

function clean_database()
{
	$db_clean_vkiss = getParam("db_clean_vkiss");
	$db_clean_profiles = getParam("db_clean_profiles");
	$db_clean_msg = getParam("db_clean_msg");
	$db_clean_views = getParam("db_clean_views");
	$db_clean_priv_msg = getParam("db_clean_priv_msg");

    // profile_delete
    if ( $db_clean_profiles > 0)
    {
        $res = db_res("SELECT ID FROM Profiles WHERE (TO_DAYS(NOW()) - TO_DAYS(LastLoggedIn)) > $db_clean_profiles");
        if ( $res )
        {
            $db_clean_profiles_num = mysql_num_rows($res);
            while ( $arr = mysql_fetch_array($res) )
            {
                profile_delete($arr[ID]);
            }
        }
    }


	if ( $db_clean_vkiss > 0 )
	{
		$res = db_res("DELETE FROM VKisses WHERE (TO_DAYS(NOW()) - TO_DAYS(Arrived)) > $db_clean_vkiss");
		if ( $res )
			$db_clean_vkiss_num = mysql_affected_rows();
	}

    if ( $db_clean_msg > 0 )
    {
        $res = db_res("DELETE FROM Messages WHERE (TO_DAYS(NOW()) - TO_DAYS(`Date`)) > $db_clean_msg");
        if ( $res )
            $db_clean_msg_num = mysql_affected_rows();
    }

    if ( $db_clean_views > 0 )
    {
        $res = db_res("DELETE FROM ProfilesTrack WHERE (TO_DAYS(NOW())-TO_DAYS(`Arrived`)) > $db_clean_views");
        if ( $res )
            $db_clean_views_num = mysql_affected_rows();
    }

    if ( $db_clean_priv_msg > 0 )
    {
        $res = db_res("DELETE FROM IMessages WHERE (TO_DAYS(NOW()) - TO_DAYS(`When`)) > $db_clean_priv_msg");
        if ( $res )
            $db_clean_priv_msg_num = mysql_affected_rows();
    }


    echo "n- Database cleaning -n";

    echo "Deleted profiles: $db_clean_profiles_numn";
    echo "Deleted virtual kisses: $db_clean_vkiss_numn";
    echo "Deleted messages: $db_clean_msg_numn";
    echo "Deleted private messages: $db_clean_priv_msg_numn";
    echo "Deleted profile views: $db_clean_views_numn";
}

function del_old_wav_files()
{
    global $TMP_SOUND_DIR;
	
	$num_tmp = 0;
	$num_del = 0;

    $file_life = 172800;  // two days
    $wdir = $TMP_SOUND_DIR;

    if ( !( $lang_dir = opendir( $wdir ) ) )
        return false;
    for ( $i = 0; $lang_file = readdir( $lang_dir ); )
    {
		$arr = explode( ".", $lang_file);

		if ( $arr[1] == "wav" )
		{
			//echo $lang_file."  <br>n";

	        $diff = time() - filectime ( "$wdir$lang_file");

		    if ( $diff > $file_life )
			{		
				unlink ( "$wdir$lang_file"  );
				++$num_del;
	        }
			++$num_tmp;
		}
    }
    closedir( $lang_dir );

	echo "n- Temporary files check -n";

	echo "Total temp wav files: $num_tmpn";
	echo "Deleted temp wav files: $num_deln";
}

// -------------


function del_old_avi_files()
{
    global $TMP_VIDEO_DIR;
	global $video_ext;

    $num_tmp = 0;
    $num_del = 0;

    $file_life = 172800;  // two days
    $wdir = $TMP_VIDEO_DIR;

    if ( !( $lang_dir = opendir( $wdir ) ) )
        return false;
    for ( $i = 0; $lang_file = readdir( $lang_dir ); )
    {
        $arr = explode( ".", $lang_file);

        if ( $arr[1] == $video_ext )
        {
            //echo $lang_file."  <br>n";

            $diff = time() - filectime ( "$wdir$lang_file");

            if ( $diff > $file_life )
            {
                unlink ( "$wdir$lang_file"  );
                ++$num_del;
            }
            ++$num_tmp;
        }
    }
    closedir( $lang_dir );

    echo "n- Temporary files check -n";

    echo "Total temp $video_ext files: $num_tmpn";
    echo "Deleted temp $video_ext files: $num_deln";
}



function modules_proceed()
{
    // update modules
	$n = 0;

    $p_res = db_res("SELECT ID, NickName, Email FROM Profiles WHERE Status = 'Active' AND ( ExtraAddons = '' OR ExtraAddons IS NULL OR ExtraAddons = 0)");
    while ( $p_arr = mysql_fetch_array($p_res) )
	{
        modules_del ( $p_arr['ID'], $p_arr['NickName'], $p_arr['Email'], "gold" );
		++$n;
	}

    echo "n- Modules check -n";
    echo "Processed profiles: $nn";
}

// -------------



// - Defaults -
$MODE	= "_MAIL_";
$DAY	= "_OBEY_";



// - Always finish
set_time_limit( 36000 );
ignore_user_abort();




// - Parameters check -
for ( $i = 0; strlen( $argv[$i] ); $i++ )
{
	switch( $argv[$i] )
	{
		case "--live": $MODE = "_LIVE_"; break;
		case "--mail": $MODE = "_MAIL_"; break;
		case "--force-day": $DAY = "_FORCE_"; break;
		case "--obey-day": $DAY = "_OBEY_"; break;
	}
}



if ( $MODE != "_LIVE_" )
	ob_start();


$day = date( "d" );
if ( getParam( "cmdDay" ) == $day && $DAY == "_OBEY_" )
{
	echo "Already done today, bailing outn";
	finish();
}
else
	setParam( "cmdDay", $day );




// - Membership check -
echo "n- Membership check -n";

$exp_res = db_res( "SELECT ID FROM `Mem_Avff` WHERE amount = 0", 0 );
$rows = mysql_num_rows( $exp_res );
echo "Expired membership records: $rowsn";

if ( $rows )
{
	while( $row = mysql_fetch_array( $exp_res ) )
	{
		db_res( "UPDATE `Profiles` SET ExtraAddons = (ExtraAddons & ~1) WHERE ID = $row[ID]", 0 );
		gold_mem_expiration_letter( $row[ID] );
	}

	db_res( "DELETE FROM `Mem_Avff` WHERE amount = 0", 0 );
	$rows = mysql_affected_rows();
	if ( $rows == -1 )
		echo "Failed deleting expired membership recordsn" . mysql_error() . "n";
	else
		echo "Deleted expired membership records: $rowsn";
}

if ( !((int)getParam("days_forall_avff")) )
{
	db_res( "UPDATE `Mem_Avff` SET amount = amount - 1 WHERE Type = '0'", 0 );
	$rows = mysql_affected_rows();
	if ( $rows == -1 )
		echo "Failed updating membership recordsn" . mysql_error() . "n";
	else
		echo "Processed membership records: $rowsn";
}







// - CAff Membership check -
echo "n- Caff Membership check -n";

$exp_res = db_res( "SELECT ID FROM `Mem_caff` WHERE amount = 0", 0 );
$rows = mysql_num_rows( $exp_res );
echo "Expired caff membership records: $rowsn";

if ( $rows )
{
	while( $row = mysql_fetch_array( $exp_res ) )
	{
		db_res( "UPDATE `Profiles` SET ExtraAddons = (ExtraAddons & ~2) WHERE ID = $row[ID]", 0 );
		gold_mem_expiration_letter( $row[ID], 1 );
	}

	db_res( "DELETE FROM `Mem_caff` WHERE amount = 0", 0 );
	$rows = mysql_affected_rows();
	if ( $rows == -1 )
		echo "Failed deleting expired caff membership recordsn" . mysql_error() . "n";
	else
		echo "Deleted expired caff membership records: $rowsn";
}

if ( !((int)getParam("days_forall_caff")) )
{
	db_res( "UPDATE `Mem_caff` SET amount = amount - 1 ", 0 );
	$rows = mysql_affected_rows();
	if ( $rows == -1 )
		echo "Failed updating caff membership recordsn" . mysql_error() . "n";
	else
		echo "Processed caff membership records: $rowsn";
}


if ( ((int)getParam("days_forall_caff")) > 0 )
{
	setParam("days_forall_caff", "".(getParam("days_forall_caff") - 1) );
}

if ( ((int)getParam("days_forall_avff")) > 0 )
{
    setParam("days_forall_avff", "".(getParam("days_forall_avff") - 1) );
}

del_old_wav_files();
del_old_avi_files();

clean_database();

modules_proceed();

finish();

?>


Thanks again!

Reply With Quote
  #2  
Old June 17th, 2005, 01:08 AM
artistique_girl artistique_girl is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 artistique_girl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: AeDating Installation probelm

Resoolved this for now . . .Thanks!

Reply With Quote
  #3  
Old July 14th, 2005, 05:40 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

Exactly how? I have the same problem?

Reply With Quote
  #4  
Old July 21st, 2005, 12:11 PM
Stephen3 Stephen3 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Malaysia
Posts: 2 Stephen3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: AeDating Installation probelm

have u success install it already?

Reply With Quote
  #5  
Old August 2nd, 2005, 07:49 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

I have the same problem plz contact with me thx

Reply With Quote
  #6  
Old August 3rd, 2005, 06:13 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

Hi, excuse me if is OT
But someone can tell me how works newsletter in aedating 3.3 ?

I cannot send newsletter...
my email dcals@hotmail.com
Thank you
Jerry

Reply With Quote
  #7  
Old August 4th, 2005, 07:39 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

we can solve all your aedating problems!!
running our own aedating script and a webmaster/freelancer community

http://www.scriptmods.biz

http://www.ai-yoku.com/2005/ (not ready yet!)

Reply With Quote
  #8  
Old August 10th, 2005, 03:30 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

Hi all anybody can tellme how can upgrade Aedating 3.2 to 4?
When I try upgrade have many errors on db

Reply With Quote
  #9  
Old August 15th, 2005, 06:41 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

Read that:

http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_21277438.html

http://www.kalab.com/freeware/cron/cron.htm

by i_wanna_say@hotmail.com

Reply With Quote
  #10  
Old August 25th, 2005, 09:58 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

Anyone having a problem getting the zipcode search feature of aedating to work prpoperly? Would like to know how to fix.

thanks

Reply With Quote
  #11  
Old August 28th, 2005, 10:50 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: AeDating Installation probelm


Quote:
Anyone having a problem getting the zipcode search feature of aedating to work prpoperly? Would like to know how to fix.

thanks


we have solved this
http://www.scriptmods.biz

Reply With Quote
  #12  
Old August 31st, 2005, 07:07 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

I have the same zipcode problem. Anyone have any ideas or a fix? Would be greatly apreciated.

Reply With Quote
  #13  
Old September 4th, 2005, 07:53 AM
chrispcfl chrispcfl is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 chrispcfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: AeDating Installation probelm

Same here - I have the script running all except the zipcode function. Keeps giving an "search results in no matches". Even though i have aded several profiles within a range of close zipcodes.

Any ideas? Anyone know of a fix for this. I wouldn't think it would be anything that difficult.

Reply With Quote
  #14  
Old September 22nd, 2005, 11:33 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: AeDating Installation probelm

Hi ,

Please someone can tell me how i install AeDating v3.3

/inc/header.inc.php

I don't have this file in "inc" folder

Thank's

il_laly@yahoo.com

Reply With Quote
  #15  
Old September 22nd, 2005, 11:45 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: AeDating Installation probelm




Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > AeDating Installation probelm


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts