Re: [PHP] Web calendar and online Dairy

2005-12-06 Thread Terence
Vikram Kumar wrote: Hi! I need a web calendar and online diary application. Try this, it might fit your needs. http://www.k5n.us/webcalendar.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Terence
Shaun wrote: Hi, How can I get the form values submitted from an iframe where the target is the parent window? Use Javascript. Check out irt.org - Javascript They have lots of great examples. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Select and $_POST

2005-11-09 Thread Terence
Ross wrote: What is the correct syntax for $query = SELECT * FROM login where username='$_POST['username']' AND pass ='$_POST['pass']'; Thought this would work. R. Search for SQL Injection and see why what you're doing is very dangerous. Google is your friend. -- PHP General Mailing

Re: [PHP] comment more than a question

2005-11-08 Thread Terence
matt VanDeWalle wrote: I don't really have a question, I just have noticed in working with php for about a year off and on, so you could probably say i'm a bit new still, what an error says it is, or what line it is on, is hardly ever the case, e.g, several different times until i figured

Re: [PHP] Fsockopen error

2005-11-02 Thread Terence
Robert Prentice wrote: snip $reply = http_post(https://www.safetrustprocessing.com;, 80, / Isnt https supposed to run on port 443? (or other than 80) Just a guess xml_order_processing.php, array(myXml = $xml)); function http_post ($server, $port, $url, $vars) { -- PHP General Mailing

Re: [PHP] storing passwords in $_SESSION

2005-10-11 Thread Terence
am trying to get at is,perhaps a reason for storing the password somewhere. Your thoughts Richard? Thanks! Warm Regards Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dynamic sub directory listing without redirect

2005-10-07 Thread Terence
the wrong tree throw me a bone please. Thanks alot Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Handling competing edits in a wiki engine?

2005-10-03 Thread Terence
Murray @ PlanetThoughtful wrote: Hi All, I've recently been working on building my own wiki engine for my blog site. While the majority of the engine is complete, a remaining concern I have is how to handle competing edits (ie when two or more people are editing the same wiki page

Re: [PHP] Encoding or obfuscating tool

2005-09-18 Thread Terence
ioncube or Turck MMCache (free) Anas Mughal wrote: We need to protect our intellectual property. We wish to encode or obfuscate our PHP code before delivering it to a client. Could someone recommend an free PHP encoder or obfuscating tool. (This is a very small project so we can NOT justify

Re: [PHP] DB access and sessions

2005-08-17 Thread Terence
We use a combination of timeout and user who has locked the record in a form e.g. User A opens the form. A record id is stored in the page and the db record has 3 cols - is_locked (y/n), locked_by (user_id) locked_time (datetime) B then opens the form. If the record is locked more then 5

[PHP] PHP and Lotus Notes

2004-10-07 Thread Terence
Hi List, I googled a bit but didnt get much. Are there tools other than the ones on the PHP website (which are EXPERIMENTAL) that can be used to access the Lotus notes framework, such as databases / tables / data from PHP. Any tips out there for integration issues. Our company is looking at

[PHP] Determine whether $_GET has a value

2004-06-23 Thread Terence
Hi, Say you have a querystring - index.php?myname=joe To determine whether myname has a value I have come to the following conclusions / shortcomings when using one of the following: ISSET = as long as the variable myname exists it's set, but there's no guarantee of a value !EMPTY = if your

Re: [PHP] Cant right click

2004-06-01 Thread Terence
Under IE-View-Source and Bingo. It's probably a javascript script. Easy to bypass. PHP related...err no. - Original Message - From: Brent Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 2:49 PM Subject: [PHP] Cant right click Hi all On the link provided

[PHP] Multiple Socket's at one time

2004-05-12 Thread Terence
! Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW: Resizing Pictures

2004-04-20 Thread Terence
You might want to try google, search for 'php resize image' or something along those lines. very often there is lots of code already out there. - Original Message - From: Ryan Schefke [EMAIL PROTECTED] To: 'Warren Vail' [EMAIL PROTECTED]; 'Php-General-Help' [EMAIL PROTECTED] Sent:

Re: [PHP] PHP Web-Chat Software

2004-04-13 Thread Terence
I got this from the manual (i think): ?php ob_end_flush(); while (10==10) { // cool while loop // get here som lines from a dbase or something flush(); sleep(1); } ? This just continues a while loop until the script times out. We currently use the refresh method but evaluating this as an

[PHP] Compiling new modules in PHP - required to remove old installation?

2004-04-01 Thread Terence
I currently follow the following steps when I need to compile a new module in PHP: 1) Delete old source folders for APACHE and PHP (/usr/local/src) 2) Stop APACHE service 3) Delete the installation directories (/usr/local/apache /usr/local/php4) 4) Re-configure APACHE 5) Re-configure PHP; make;

[PHP] Bison and Flex required to install PHP?

2004-03-30 Thread Terence
checking lex output file root... ./configure: line 2425: lex: command not found configure: error: cannot find output from lex; giving up and from a search on Yahoo!:

Re: [PHP] Bison and Flex required to install PHP?

2004-03-30 Thread Terence
nope, just untarred and ran ./configure. not to worry, installed flex and bison and it's okay. the GD version reporting still puzzling me, and from what i've seen on a few messageboards, i'm not alone :) thanks - Original Message - From: Evan Nemerson [EMAIL PROTECTED] To: Terence

[PHP] Example of good PHP coding

2004-03-23 Thread Terence
and serve as an example on how to write PHP *in general*? Thanks for any advice, Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript Mouseover Help NOT A JAVASCRIPT QUESTION

2004-03-17 Thread Terence
Post your code since it's like trying to solve a math problem writtin in invisible ink during a blackout. - Original Message - From: Jake McHenry [EMAIL PROTECTED] To: Raditha Dissanayake [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 18, 2004 1:43 PM Subject: Re: [PHP]

[PHP] Anyway to access a class variable without using a return function?

2004-03-14 Thread Terence
Hi List, I have a class with a constructor that sets the variables and I currently use functions to return each one. When using alot of variables in the constructor i tend to have many return functions. Is there a way to access the constructor variables without using a return function? This is

[PHP] Globals Variable question

2004-03-03 Thread Terence
Hi All, Can someone tell me which is better, or if there's a reason I should use one and not the other (since both seem to work), and if this is the correct way to access script variables inside functions (and classes): Example 1 $GLOBALS['db_name']=website; function QueryDB() { echo

Re: [PHP] E-Commerce

2004-02-12 Thread Terence
all in one awesome package: www.oscommerce.com - Original Message - From: PHP Email List [EMAIL PROTECTED] To: Jimmy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:48 PM Subject: RE: [PHP] E-Commerce Jimmy jimmy jimmy... Now if your question is, Can PHP be

Re: [PHP] Re: Problem decrypting data stored in MySQL text field using mcrypt?

2004-01-28 Thread Terence
Why not use the AES_ENCRYPT and AES_DECRYPT functions? from the MySQL manual: AES_ENCRYPT() and AES_DECRYPT() were added in version 4.0.2, and can be considered the most cryptographically secure encryption functions currently available in MySQL. SELECT AES_ENCRTPY('my_password_is_easy',

[PHP] Auto update feature from PHP app - like antivirus definitions

2004-01-27 Thread Terence
. Hope this makes sense. Thanks Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple select option alternative to field_name[]

2003-12-28 Thread Terence
use the square brackets in a field name, as this obviously conflicts with something in the script. So I am wondering if there's any other way in PHP to get the items, or do I have to find an alternative way in javascript? If anyone has ideas it would be great. Thanks Terence my code

[PHP] Request form duplicate names

2003-12-19 Thread Terence
could alternatively do it through GET and split the querystring, but i'd prefer POST. Thanks Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting the CTRL T value

2003-12-17 Thread Terence
no idea how to get it into the ^T. Thanks! Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting the CTRL T value

2003-12-17 Thread Terence
No, that's to add a tab, I am looking for CTRL (control) + T Thanks anyway, Terence - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:14 PM Subject: Re: [PHP] Getting the CTRL T value On Wednesday 17 December 2003 16:06

Re: [PHP] Help with where clause

2003-12-16 Thread Terence
You should direct such queries to the MySQL mailing list as this is a PHP list. [EMAIL PROTECTED] or try their website: www.mysql.com Your answer however is here: http://www.mysql.com/doc/en/SELECT.html - Original Message - From: Richard Kurth [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] Best way to increment an integer column in mysql

2003-12-11 Thread Terence
There's an autoincrement feature for mysql colums, why don't you consider that? CREATE TABLE auto_increment (id INT (4) NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), UNIQUE(id), INDEX(id)) - Original Message - From: John Clegg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

[PHP] php validator

2003-12-08 Thread Terence
Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] validating email address

2003-12-03 Thread Terence
You could use MX records if you wanted to. I found this some time ago... function checkEmail($Email) { //Do the basic Reg Exp Matching for simple validation if (eregi([EMAIL PROTECTED], $Email)) { return FALSE; } //split the Email Up for Server validation list($Username,

[PHP] Re: String Manip. - Chop Equivalent

2003-11-23 Thread Terence
Jed R. Brubaker wrote: Does PHP have an equivalent to PERL's chop - that is, a way to get rid of the last character in a string? Hello World to Hello Worl Thanks in advance. this might work, haven't tested it... second param is optional function chop($strSubject, $intWastage = 1) { $strRes = ;

[PHP] Return mysql_fetch_array($result) from a function

2003-11-04 Thread Terence
() { $mysql_query = mysql_fetch_array($result); return $mysql_query; } And then be able to just print the fields I require. Thanks in advance!!! Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing constructor values to functions in a class

2003-10-30 Thread Terence
Dear List, I've been struggling with this for some time now and can't for the life of me figure out why the output is GeorgeGeorge and not GeorgeBush ?php class StaffDetails { var $staff_name; var $staff_surname; function StaffDetails() { $this-$staff_name=George;

[PHP] Undefined Index - is this how you declare get post?

2003-10-29 Thread Terence
Hi List, Since I started using error_reporting(E_ALL), I havent found (in my opinion) a good way to declare GET and POST variables when getting them from a form or querystring. I have searched google and the docs for several hours now without much luck. ?php error_reporting(E_ALL); // This line

Re: [PHP] Undefined Index - is this how you declare get post?

2003-10-29 Thread Terence
- Original Message - From: Chris W. Parker [EMAIL PROTECTED] Terence mailto:[EMAIL PROTECTED] on Wednesday, October 29, 2003 4:40 PM said: Since I started using error_reporting(E_ALL), I havent found (in my opinion) a good way to declare GET and POST variables when getting

Re: [PHP] Tricky variable syntax...

2003-10-28 Thread Terence
- Original Message - From: Curt Zirzow [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 1:24 PM Subject: Re: [PHP] Tricky variable syntax... * Thus wrote René Fournier ([EMAIL PROTECTED]): echo 'file name: '.$$fld_name.'br'; What I want to do is echo the

[PHP] Fairly simple array question

2003-10-26 Thread Terence Parker
(say, '6') exists in ALL the results above? Thanks in advance! Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Include all functions and performance

2003-10-15 Thread Terence
). Good, bad or ugly? Thanks Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] NEW: XML Application Objects

2003-10-05 Thread Terence
Robert Cummings wrote: On Sat, 2003-10-04 at 08:18, Terence wrote: Bloody hell Rob, you've started me on another rant when I could be in bed ;) *grin* glad to help out. XSLT is a pain in the butt if you want to master it - particularly if you're going from imperative programming

Re: [PHP] NEW: XML Application Objects

2003-10-05 Thread Terence
Rush wrote: Terence [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] warning: very personal opinion to follow... If you *do* finally decide to master XSLT, you have to conclude that *any* other templating system is a complete/utter waste of time. (all authors of ``yet another PHP

Re: [PHP] NEW: XML Application Objects

2003-10-04 Thread Terence
Robert Cummings wrote: On Fri, 2003-10-03 at 11:30, Raditha Dissanayake wrote: Hi, Please give it a shot, it's real easy. far easier than any of the lame php template systems i have seen. The beauty is that the same XML/XSL combo can be used with PHP, perl, JSP/Servlets, C++, VC++,VB,C,C# and

[PHP] NEW: XML Application Objects

2003-10-03 Thread Terence
I've just released the first distribution for an open-source project called XML Application Objects (XAO). It's the result of working with XML/XSLT in PHP for a couple of years now. Although this is an alpha release, the concept itself has gone through a lot of refinement and is now ready for

[PHP] Re: NEW: XML Application Objects

2003-10-03 Thread Terence
Terence wrote: The publication of the project itself was partially motivated by the discussions that took place in this thread (A Complete List of PHP Template Engines?) sorry, forgot to include the link to the thread. http://www.sitepointforums.com/showthread.php?threadid=123769 -- PHP

[PHP] problem with starting apache in win2k with mcrypt and mhash

2002-09-05 Thread Terence Lee
the terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem on starting apache in win2k with mcrypt and mhash module

2002-09-05 Thread Terence Lee
. same error was encountered when i start the apache. can you advice how can i solve it? Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] largest value of 2nd parameter in fgets functions

2002-09-05 Thread Terence Lee
way to achieve getting more than 8192 char from a line in a text file? pls advice. terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] problem in starting apache in win2k with mcrypt and mhash module

2002-09-05 Thread Terence Lee
hi Markus thanks for your reply. what is the compatible version of mcrypt lib and php in win32? also for linux? terence Markus Fischer wrote: You're mixing an older library with a newer php version (or the other way around). Please clean up your system first. Please ask

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
cout($array) Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD -- PHP

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
count($array); Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD -- PHP

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD count($array); -- PHP

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Terence Kearns
This is a nice easy one :) It couldn't be simpler. Just put empty square brackets (as used in arrays) in front of your checkbox name. The example below assumes you have PHP 4.1 or greater (which uses $_POST to contain form posted data) notice how name=ck[] html head

Re: [PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread Terence Kearns
I have had inconsistency issues when outputing diffrent content-types to IE. It seems to cache the type for a articular file somewhere and deleting temporary files in the usaer agent is no good. I have to shut-down all instances of IE then re-launch it for it to behave like it is supposed to

[PHP] Model View Controller (MVC) frameworks in PHP

2002-07-03 Thread Terence Kearns
I've been developing an open source MVC framework in PHP and it's going OK. However, I wanted to find out about any other frameworks around the place that do a similar thing. I want to see how other people approach this design pattern. Here are my main aims: 1) standardise development patterns

[PHP] mail function????

2001-04-12 Thread Terence Truong
\PHP/index.php on line 4 ANY HELP IS APPRECIATED... -Terence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]