Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by bluetac

  1. bluetac

    How would I integrate code within a module into main code?

    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...
  2. bluetac

    PHP chat

    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...
  3. bluetac

    How to display MySQL query result in multipage?

    this code will give you an idea. its a bit rough and ready ########################################################## #setup some variables ########################################################## $cfgHost = "localhost"; $cfgUser = "someone"; $cfgPassword =...
  4. bluetac

    Formatting Dates within a Query?

    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...
  5. bluetac

    XML from Flash To PHP

    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
  6. bluetac

    whats wrong with my apache (the php part) config file??

    what is the error message that you are getting? is php installed on your machine? Andres Jugnarain Wireless Editor www.thetuckshop.com
  7. bluetac

    Formatting Dates within a Query?

    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...
  8. bluetac

    Formatting Dates within a Query?

    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...
  9. bluetac

    Protect my scripts

    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...
  10. bluetac

    "link to sever lost" with mysql.

    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...
  11. bluetac

    Navigation in a PHP Page

    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
  12. bluetac

    Resouce Unavailable Errors

    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...
  13. bluetac

    How to validate email

    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...
  14. bluetac

    Script on email?

    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...
  15. bluetac

    Script on email?

    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...

Part and Inventory Search

Back
Top