ElectricOwl
-
Posts
2 -
Joined
-
Last visited
Posts posted by ElectricOwl
-
-
You need to provide snippets of code rather than entire scripts...
However. You problem should be solvable with something like...
function is_date_inrange($selected_timestamp) {
if ($selected_timestamp > strtotime('2000-12-31 23:59:59')) {
return false;
}
return true;
}
http://php.net/manual/en/function.strtotime.php
There are other approaches but this ought to get you started.
Cheers,
Ian
-
What errors are you getting when you run the code?
Ensure (in development) that error reporting is on so you can debug the code rapidly.
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
...
Additionally, seriously consider using an IDE like Netbeans for writing your code. The built in PHP Linter will make you aware of simple typos in the code.
As for your code..
* Can the script write to the path 'slider/'?
* Are you following an example from the php-mini framework pages?
Cheers,
Ian
My Hello World..
in Introductions
Posted
Hi,
I'm a London (UK) based Senior Software Developer, over 10 years experience. Primarily interested in software and system design and development for HA environments.
I rally enjoy the challenge of taking an existing system forward from startup mode into something that can grow bigger and better.
Working in High Availability environments. PHP, Nodejs and Golang.
Skillsets..
* Software and System Design
* MySql and SQL Server as admin, programmer and .
* MongoDB, CouchDB, Lucene
* Linux and Windows sysadmin
* Email servers (postfix), built to filter spam/viruses.
* Configuration service designed and built for HA environment
* Zend Framework
* PHP based services inc. HA Email service,
* Javascript. jQuery, Nodejs, Angularjs
APIs inc. Facebook, Twitter, PayPal
Just ask.
Cheers,
Ian