Actual Results
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP - Keep Alive
- Subject: PHP - Keep Alive
- Replies: 3
- Views: 324
- Subject: PHP - Keep Alive
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/
Windows:
http://support.microsoft.com/kb/308569
Linux:
http://www.htmlcenter.com/blog/running- ... with-cron/
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: send email at the time of registration in php
- Subject: send email at the time of registration in php
- Replies: 6
- Views: 590
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...
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP Maths
- Subject: PHP Maths
- Replies: 2
- Views: 258
- Subject: PHP Maths
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.
I shall give that a go.
Regards.
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP Maths
- Subject: PHP Maths
- Replies: 2
- Views: 258
- Subject: PHP Maths
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...
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: empty table
- Subject: empty table
- Replies: 2
- Views: 252
- Subject: empty table
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.
http://dev.mysql.com/doc/refman/5.0/en/truncate.html
Hope it helps.
Regards.
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP Windows or Linux
- Subject: PHP Windows or Linux
- Replies: 2
- Views: 267
- Subject: PHP Windows or Linux
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...
- Nebulous
- Forum: Unix / Linux Forum
- Topic: SuPHP
- Subject: SuPHP
- Replies: 0
- Views: 513
- Subject: SuPHP
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...
- Nebulous
- Forum: Unix / Linux Forum
- Topic: Samba
- Subject: Samba
- Replies: 5
- Views: 1359
- Subject: Samba
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...
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: Is there a problem with my code?
- Subject: Is there a problem with my code?
- Replies: 8
- Views: 849
- Subject: Is there a problem with my code?
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.
- Nebulous
- Forum: Unix / Linux Forum
- Topic: Samba
- Subject: Samba
- Replies: 5
- Views: 1359
- Subject: Samba
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?
As for Winbind that is not running either.
In regards to the debug level 3, how do I go about setting that?
- Nebulous
- Forum: Unix / Linux Forum
- Topic: Samba
- Subject: Samba
- Replies: 5
- Views: 1359
- Subject: Samba
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...
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: Drawback of php
- Subject: Drawback of php
- Replies: 9
- Views: 341
- Subject: Drawback of php
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...
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP, extracting the day name of a selected date?
- Subject: PHP, extracting the day name of a selected date?
- Replies: 3
- Views: 1043
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 ...
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: Info transwer between pages
- Subject: Info transwer between pages
- Replies: 8
- Views: 348
- Subject: Info transwer between pages
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...
- Nebulous
- Forum: Programming / Scripting / Coding Forum
- Topic: Problems displaying data with PHP from MySQL--- Please Help
- Subject: Problems displaying data with PHP from MySQL--- Please Help
- Replies: 4
- Views: 317
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...

