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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bluetac

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

    ...package Digest::SHA1; use strict; use vars qw($VERSION @ISA @EXPORT_OK); $VERSION = '1.02'; # $Date: 1999/08/05 22:58:42 $ require Exporter; *import = \&Exporter::import; @EXPORT_OK = qw(sha1 sha1_hex sha1_base64); require DynaLoader; @ISA=qw(DynaLoader)...
  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?

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

    Where to configure ORACLE_HOME

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

    Script on email?

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

    PHP how to limited record per page

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

    Computations and Evaluation

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

    a lead on software

    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

Part and Inventory Search

Back
Top