Search found 59 matches

Actual Results

Post Posted: June 19th, 2009, 9:19 am

Depending on if you are running on Linux or Windows you want to take a look at Scheduled Tasks/ Cron Jobs.

Windows:
http://support.microsoft.com/kb/308569

Linux:
http://www.htmlcenter.com/blog/running- ... with-cron/

Post Posted: January 29th, 2009, 3:18 pm

Im presuming you already have a registration system inplace? Look into using the mail() feature in PHP to send the email to the user, ideally you would want to place it after all of your validation checks (if any) and after the database insert. Take a look at: http://uk2.php.net/manual/en/function.m...

Post Posted: December 1st, 2008, 4:32 am

Ah, thank you - that seems a much simpler way of doing things.

I shall give that a go.


Regards.

Post Posted: December 1st, 2008, 4:07 am

Hey, I am making a game in PHP which relies heavily on chance. For the chance, I have worked it out using the following: - Each record in the database has a fail rate (standard integer). - I then just rand() to generate a number between 1 and the fail rate. - If the random number is 1, you fail. - I...

Post Posted: October 10th, 2008, 2:43 am

Personally I would just use TRUNCATE.

http://dev.mysql.com/doc/refman/5.0/en/truncate.html

Hope it helps.

Regards.

Post Posted: July 10th, 2008, 5:18 pm

From personal experience I've found.... Windows is easy to install and get running initially. However, Windows tends to require administrative tasks to keep the server running smoothly, such as disk defrags, occasional reboots to free memory etc. etc. Linux on the other hand is the opposite, it take...

Post Posted: July 8th, 2008, 12:40 pm

Hi, I just tried enabling SuPHP as the handler for my PHP5 installation, after doing so I encountered the following error on my website. Warning: session_start() [function.session-start]: open(/tmp/sess_19a1483953f31bc118adb4838e628d10, O_RDWR) failed: Permission denied (13) in /home/test/public_htm...

Post Posted: February 26th, 2008, 3:41 am

Thought I would add to my existing post: I am now able to connect to the share, but have no write access to the folders. Below is my smb.conf. [files] writeable = yes locking = no write list = files,@files,@root path = /home force directory mode = 777 force create mode = 777 valid users = files publ...

Post Posted: January 21st, 2008, 9:31 am

Replace mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.'); mysql_select_db($dbname); With mysql_connect($hostname,$username, $password) OR Die(mysql_error()); mysql_select_db($dbname); Then post the error message here.

Post Posted: January 21st, 2008, 7:38 am

I am running Samba version 3.0251514 (or so webmin says).

As for Winbind that is not running either.

In regards to the debug level 3, how do I go about setting that?

Post Posted: January 21st, 2008, 3:31 am

Hi All. I have two machines running CentOS 5, both of which I want to great a Windows Share for so that fellow employees in the office can put files on it easily (most have no linux experience). I have got one of the two servers working fine. However, for the life of me I can not get the other to do...

Post Posted: November 15th, 2007, 5:41 am

Here is a brief comparison between a few web based programming languages. Coldfusion: Advantages: - Quick to develop applications - Easy to learn - Powerfull - Coldfusion 8 even has support for PHP. Disadvantages: - Its VERY expensive - Not widely used. - Can be incredibly slow. PHP: Advantages: - I...

Post Posted: October 31st, 2007, 5:06 am

I haven't had the time, nor access to the facilities to test this at the moment, but from what I can see it should work without any problems... [php] $date = '2007/10/31'; $weekday = date('l', strtotime($date)); // note: first arg to date() is lower-case L echo $weekday; // SHOULD display Wednesday ...

Post Posted: October 31st, 2007, 5:01 am

Right im not sure if I have read you post correctly, but this is what I gathered from it..... You are wanting to submit the form to itsself, and then if everything validated ok, provide them with a link to continue again, where you go on to add the data into a database. The best way I suggest (provi...

Post Posted: October 30th, 2007, 6:13 am

This may not work, but my lunch break is coming to an end so im short for time :) [php] <?php include("connect.php"); mysql_select_db("my_db", $con); $result = mysql_query("SELECT * FROM `leads`") or die( mysql_error() ); // Modified this line, so that if there is an...
  • Sort by
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.