check this one out. its simple but looks pretty robust but i dont know how scalable is it
http://screwdriver.net/stutter/
What is Stutter? Stutter is a web-based chat system that has it's roots in a program I wrote long ago called KangaChat. It expects nothing from the browser except the...
...page number multiplied by
#stories_per_page minus the stories actually on the page
if (!$page):
$offset = 0;
else :
$offset = (($stories_per_page * $page)-$stories_per_page);
endif;
#set up the mysql strings
#$sqlstr retrieves all the rows in the database, using the
#offset and limit...
try re-arranging the order that you specify the columns in sql query so that you specify venues.date before you specify unix_date as UNIX_TIMESTAMP(Venues.Date)
i think that might make a difference, but I havent checked.
.... actually on second thoughts i think i gave you the code back to...
flash has something called actionscript, that can be used to call a php script and pass variables, variables which could contain xml is suppose.
as rycamor said this does sound pretty interesting - what r you trying to do?
Andres Jugnarain
Wireless Editor
www.thetuckshop.com
in your sql string you could specify:
select unix_date as UNIX_TIMESTAMP(yourdatecol), col2, col3......FROM......etc
there are quite a few built in functions within mysql that you can use in this way - see the full documentation on at http://www.mysql.com
Andres Jugnarain
Wireless...
assuming your data field is a unix timestamp you should be able to do
date("M", $myrow["data_updated"]);
F will give you the full months name
heres some others
a - "am" or "pm"
A - "AM" or "PM"
d - day of the month, 2 digits with...
On the subject of protecting scripts, Zend technologies just released a range of tools available to freelance PHP developers for USD 50 a year, that allows you to lock down your scripts from alteration. they also have tools to set up and manage PHP caching :
Zend News and Press Releases...
you should be able to supress error messages by using the @ sign before calling a function
ie:
@mysql_connect();
you can also vary the level of error reporting by PHP using
error_reporting(0);
although this won't help in the case of your mysql errors.
as a final check, make sure that...
what do u want the tab key to do? in any case you probably want to look at javascript to do something like that, not PHP as it's server side code.
Andres Jugnarain
Wireless Editor
www.thetuckshop.com
I've notice that at increasingly shorter intervals my Linux machine suddenly reports 'Resource not available', when i try to telnet, ftp or access the server in any way. The only thing that stays up is Apache, all other services including databases etc become unavailable until I reboot.
Its...
heres a regular expression that will do the trick
function emailvalidator($emailaddress) {
$result = ereg("^[^@ ]+@ ]+\.[^@ \.]+$", $emailaddress, $trash);
if ($result) :
##email is good
else :
##email is bad
endif;
return $something;
}
Andres Jugnarain
Wireless Editor...
ah. something just came to mind. i have a little php script that i use, run by the crontab, that opens a webpage on remote http server, and then saves the page on my server.
presumably when this opens the page headers are involved, but the script doesn't fail.
the file that the crontab...
hmmmm.... so if I am clear, the problem occurs when your sms server is invoked, and then tries to return a http header and html confirmation message to confirm that the ringtone or logo has been sent or not sent? what happens at this point?
ps. have you tried using 3G lab's/ kannels open...
i beleive the --with-oracle=oracle_home dir switch needs to be invoked when you compile php from source. oracle_home dir will be the path to where your oracle directory is.
ie: it can't be added after you install php on your system. you will need to obtain a source version of php for windows...
I don't know how you would set up a flag per say, because mail boxes don't run code, they just accumulate mail waiting for someone to grab it.
What you can do is to use the IMAP functions of PHP to retrieve a mail from either a POP3 server or a NNTP mail server. If the script that did this ran...
...page number multiplied by
#stories_per_page minus the stories actually on the page
if (!$page):
$offset = 0;
else :
$offset = (($stories_per_page * $page)-$stories_per_page);
endif;
#set up the mysql strings
#$sqlstr retrieves all the rows in the database, using the
#offset and limit...
presumeably your sql query to demote players from one league to another would be something like:
UPDATE myTable SET division = ( division + 1 )
WHERE division = 1
ORDER BY numberofwins ASC
LIMIT 4
(assuming all your players were in one table, this mysql action query would demote the bottom...
check this link out:
http://mrbs.sourceforge.net/
MRBS is a free, GPL, web application using PHP and MySQL for booking meeting rooms. The program supports multiple rooms grouping them by building. Andres Jugnarain
Wireless Editor
www.thetuckshop.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.