Hi
I need to use the Digest::SHA1 encryption and decryption functions in some code that i am writing, but unfortunately it isn't installed on the server where my perl script will eventually run.
I am trying (unsuccesfully) to integrate a local copy I have of the Sha1 perl module into my main...
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...
this code will give you an idea. its a bit rough and ready
##########################################################
#setup some variables
##########################################################
$cfgHost = "localhost";
$cfgUser = "someone";
$cfgPassword =...
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...
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.