Re: [PHP] Search for an exact string inside of another string

2003-10-13 Thread Rory McKinley
Hi What you are looking for is a regular expression function, I would suggest the following: if(ereg($str1, $str2) == 1) { /*Found Bob in string*/ } else { /*didn't find Bob } Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this wo

Re: [PHP] Slow searches in large database

2003-10-13 Thread Rory McKinley
one of the wildcards? Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world, those who understand binary and those who don't" (Unknown) - Original Message - From: "Adrian Teasdale" <[EMAIL PROTECTED]&g

Re: [PHP] How do you keep browser from timing out during lengthy process

2003-10-16 Thread Rory McKinley
nu 4. Call it ReceiveTimeout with a data value of SECONDS*1000 5. Restart your computer For example, if you want the timeout to be 5 minutes, set the ReceiveTimeout data value to 30 (300 * 1000) Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in

Re: [PHP] Newbie question about Class

2003-10-17 Thread Rory McKinley
ou and you can try it out for yourself. Regards Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world, those who understand binary and those who don't" (Unknown) - Original Message - From: "Al" <[EMAIL PR

Re: [PHP] Mysql backup

2003-11-28 Thread Rory McKinley
lder(database) to 3.23.58 and then running > it smoothly ... > > Any body got any idea ??? > > Please help me out.. > > Thanks in advance > > Binay > Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in thi

Re: [PHP] Regular Expression Help Please

2003-12-01 Thread Rory McKinley
35 (n) 3. Retrieve the character in array[n] 4. Add to password string. 5. Loop through another seven times HTH Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world, those who understand binary and those who don't" (Un

Re: [PHP] Cross Server, Cross Database connection W/ JOINs

2004-01-07 Thread Rory McKinley
ve yet to sort out the replication but that looms ahead of us. If there is a way to do what you suggest, I would be glad to hear about it, and if I could I would happily assist to the best of my meagre abilities as it would definitely make my life simpler. Regards Rory McKinley Nebula Soluti

Re: [PHP][PEAR] PEAR::DB_Common::nextId()

2004-01-15 Thread Rory McKinley
(http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi Alessandro Will mysql_insert_id() not help? Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world, those who understand binary and those who

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
Hi A possible option could be something like this {calling_template.php} {header.inc} That way you can put whatever you want as the statenameat the top of your pages, and the header willalways reflect it. You could also do something similar with objects e.g. if you are that way in

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
On 14 Jan 2004 at 23:16, David Blomstrom wrote: > --- Rory McKinley <[EMAIL PROTECTED]> wrote: > > > A possible option could be something like this > > > > {calling_template.php} > > > > > /*State name does not have to be set statically, &g

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
On 15 Jan 2004 at 0:21, Freedomware wrote: > Rory McKinley wrote: > > > > I hope this has clarified matters somewhat and not made things worse. > > > > Absolutely; the only thing that has made matters worse so far is the > book "Teach Yourself PHP, MySQL

Re: [PHP] Variables not working!

2004-01-20 Thread Rory McKinley
method of submitting (GET or POST)you can try and check one of these two $_POST['fname'] or $_GET['fname'] for the value of the text field. Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world, those who under

Re: [PHP] Is there a brian I can pick?

2004-07-27 Thread Rory McKinley
bers a, state_lookup b WHERE a.country='US' AND b,state_abbreviation = a.state ORDER BY b.state_full_name ASC This shifts the data processing work to MySQL (which is what it is designed for) - you can also use the state lookup table for user input validation if needed. -- Rory McKinl

Re: [PHP] reading txt file - certain lines

2004-07-30 Thread Rory McKinley
string to terminate the line. Then you can just run a simple query on the table (limited to the equivalent lines for 5 songs), and together with a loop, output the results. For big files, the DB will be faster and provides you with far greater flexibility HTH -- Rory McKinley Nebula

Re: [PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)

2004-08-20 Thread Rory McKinley
difference. Only once I had overwritten the libmysql.dll in the Windows system folder with the version that ships with PHP5 did I get everything to play nicely together. Regards -- Rory McKinley Nebula Solutions +27 21 555 3227 - office +27 21 551 0676 - fax +27 82 857 2391 - mobile www.ne

[PHP] Migrating legacy code - changing session name

2010-01-26 Thread Rory McKinley
Hello List A client has asked me to migrate a few scripts that have been running merrily under PHP4 to PHP5.2. Part of these scripts have integration with PHPMyAdmin using the single sign-on and so they make use of the following code : session_write_close(); session_name("blah"); session_start();

Re: [PHP] mysql problems

2005-03-01 Thread Rory McKinley
Jed R. Brubaker wrote: Hi all - I could use a lead on a problem. I just don't know where to start. I have a PHP script that populates a database table. No big deal. It creates mailing labels. However, a weird things keeps happening - every once in a while, a query is run twice. It is the same que

Re: [PHP] Newbie LEFT JOIN question

2005-03-08 Thread Rory McKinley
Jackson Linux wrote: Hi, all, I have three tables; 'cv', the main table, 'jobcat', a definition table and 'cvjobcats', an intersection table (for more detail see PS below). I'd like to join this all together to be able to make a headline consisting of the plain English description of the job ca

Re: [PHP] Creating Rows and Columns Using for() Loops

2004-07-09 Thread Rory McKinley
[EMAIL PROTECTED] wrote: |--|--|- -| |MON JUL 5 |TUE JUL 6 | etc... | -||--|--|--- ---||-

[PHP] Checking for character absence with regular expressions

2004-07-16 Thread Rory McKinley
RTFM, RTFA, STFW and perhaps I am not phraseing my search terms correctly, as I am having no luck. Can anyone suggest a solution? Rory McKinley Nebula Solutions +27 21 555 3227 - office +27 21 551 0676 - fax +27 82 857 2391 - mobile www.nebula.co.za This e-

Re: [PHP] Efficient way to filter this string

2004-07-22 Thread Rory McKinley
= substr($raw_address, (strrpos($raw_address, '>') + 1)); -- Rory McKinley Nebula Solutions +27 21 555 3227 - office +27 21 551 0676 - fax +27 82 857 2391 - mobile www.nebula.co.za This e-mail is intended only for the person to whom it is addressed an

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Rory McKinley
Brad Bonkoski wrote: Is there a way to key off of the data inserted? Like some unique value or set of values that you can do a quick lookup before you insert/update/delete again... Or you could venture into an AJAX style of submission keyed off of a button click then a refresh to a 'report' pa

[PHP] [ANNOUNCE] :Possibility of SA PHP conference

2004-02-17 Thread Rory McKinley
take place. Also, if you like you can give me info re: which city it should take place in, people that you would like as speakers etc. Thanks in advance Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world, those who understand binary

[PHP] $_POST and multiple windows

2004-11-20 Thread Rory McKinley
d client_name2 or will the $_POST array be emptied when submit is clicked in doc2.php - meaning that the only field available is client_name2. I have a sneaking suspicion that it is the latter but I am hoping that someone will be able to tel me definitively. Apologies for the looong email - I just wan

[PHP] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
an'] again, even though it already has an unserialized instance of $_SESSION['policeman']? If it does unserialize, does that mean that it creates a second instance of $_SESSION['policeman'], thereby breaking the common link that I am trying to provide? I hope someon

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
Jason Wong wrote: On Tuesday 07 December 2004 20:50, Rory McKinley wrote: As Page_3.php is still doing its business the session data file is locked and when page_9.php tries to session_start() and finds it has no access to it will suspend execution until the lock is relinquished by Page_3.php

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
it down and sift through all the gen you guys have given me, and decide which solution works best for me. -- Rory McKinley Nebula Solutions +27 21 555 3227 - office +27 21 551 0676 - fax +27 82 857 2391 - mobile www.nebula.co.za -- Rory McKinley Nebula Solutions +27 21 555 3227 -

[PHP] Is this a bug?

2005-01-13 Thread Rory McKinley
going to bugs.php.net, it seems that it has not been logged as a bug. So, the question would be - do I log it or am I wasting their time? -- Rory McKinley Nebula Solutions +27 21 555 3227 - office +27 21 551 0676 - fax +27 82 857 2391 - mobile www.nebula.co.za -- PHP General

[PHP] Storing a reference to an object in another object

2005-01-19 Thread Rory McKinley
_instance] => Admin Object which is followed by the various attributes of the admin object suggesting that the reference to the admin object is indeed within the module instance. I hope someone can help with this.. Oh, and before anybody asks I am still busy RTFM, STFW, STFA but with n

[PHP] Accessing DLL from PHP

2005-06-02 Thread Rory McKinley
Hi list I do not have much programming experience outside some PHP stuff so please excuse a stupid question: I have a DLL provided to me by a third-party with a small bit of documentation regarding its structure and methods. The DLL caculates event costs based on parameters passed to it. I would

Re: [PHP] Multiple inserts as a single string?

2005-06-02 Thread Rory McKinley
Richard Davey wrote: > > Sure.. mysql_query doesn't support more than one query in the sql > statement. > At the risk of being thick, does the OP not mean something like this: INSERT INTO blah VALUES (value1, value2), (value3, value4) versus INSERT INTO blah VALUES (value1, value2) ne

Re: [PHP] Accessing DLL from PHP

2005-06-02 Thread Rory McKinley
Richard Davey wrote: > If the DLL has a COM interface then you can use PHP to talk to it, the > process is actually quite straight forward (depending on what the DLL > actually does of course). > > Best regards, > > Richard Davey Hi Richard Rory (the other one ;) ) also mentioned a COM interf

Re: [PHP] Accessing DLL from PHP

2005-06-03 Thread Rory McKinley
Rory Browne wrote: > Just bare in mind, that I've never used ffi, and it's still alpha > code, and I'm not taking any blame it causes your dog to > explode. That's ok, I am sure there is no chance...rover, rover,what's the matter boy? (Sound of dog exploding) No

Re: [PHP] OT ??: Form posting without leaving form

2005-06-14 Thread Rory McKinley
Kall, Bruce A. wrote: > This is perhaps a javascript question > > Is there a way to post a form to a url without having a user submit from > the form? > > I have a php web page that is a detailed form with a lot of fields. If > the user does some work on this form and let's it sit, their ses

Re: [PHP] Knowledge Management

2005-08-04 Thread Rory McKinley
Roger Thomas wrote: > I am trying to find a suitable opensource Knowledge Management System to be > used in my organisation; at least with document management, project > management group collaboration capabilities, like http://cortexpro.com/ > > Any clues ? > Hi Roger KnowledgeTree comes hig

Re: [PHP] Suggestions for class design

2005-09-19 Thread Rory McKinley
Chris W. Parker wrote: >> >> class Customer >> { >> var $id; >> var $name; >> function get_customer() >> { $this->name = $customer['name']; >> } >> Where I get tripped up is when I realize I'll need to at some point get >> more than one customer at a

Re: [PHP] OT - database and indexes... but anyone please?

2005-09-26 Thread Rory McKinley
Rory Browne wrote: deleting an index(a good index that > is) would slow the db down in certain cases. Deleting a "bad index" > would speed certain operations up. If the index in question happens to be a unique index or a primary key (really just a special case of index) - you could be breaking t

Re: [PHP] OT - database and indexes... but anyone please?

2005-09-26 Thread Rory McKinley
Rory Browne wrote: >>If the index in question happens to be a unique index or a primary key >>(really just a special case of index) - you could be breaking the logic >>of the table (allowing duplicates where there should be none). > > > Couldn't that only happen if you dropped a UNIQUE or PRIMAR

Re: [PHP] PHP/MySql noob falls at first hurdle

2005-12-09 Thread Rory McKinley
Paul Jinks wrote: >> > while($ouput_row = mysql_fetch_array($result)) { >> ?> >> Paul - is this the actual code that you are using? - because you have a typo in your while statement - $ouput_row instead of $output_row - means that when you try and echo $output_row it does

Re: [PHP] PHP/MySql noob falls at first hurdle

2005-12-09 Thread Rory McKinley
Paul Jinks wrote: > Rory McKinley wrote: > >> Paul Jinks wrote: >> >> >>>>>while($ouput_row = mysql_fetch_array($result)) { >>>?> >>> >> >> >> >> >> >> Paul - is this the a