[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] 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'

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

2005-12-09 Thread Rory McKinley
Paul Jinks wrote: snip ? while($ouput_row = mysql_fetch_array($result)) { ? ?=$output_row[projTitle]?br / snip 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

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

2005-12-09 Thread Rory McKinley
Paul Jinks wrote: Rory McKinley wrote: Paul Jinks wrote: snip ? while($ouput_row = mysql_fetch_array($result)) { ? ?=$output_row[projTitle]?br / snip Paul - is this the actual code that you are using? - because you have a typo in your while statement - $ouput_row

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

2005-09-26 Thread Rory McKinley
Rory Browne wrote: snipdeleting an index(a good index that is) would slow the db down in certain cases. Deleting a bad index would speed certain operations up. snip 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

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

2005-09-26 Thread Rory McKinley
Rory Browne wrote: snip 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 PRIMARY

Re: [PHP] Suggestions for class design

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

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 ? snip Hi Roger KnowledgeTree comes

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 session

Re: [PHP] Accessing DLL from PHP

2005-06-03 Thread Rory McKinley
Rory Browne wrote: snip snip 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. snip That's ok, I am sure there is no chance...rover, rover,what's the matter boy? (Sound of dog exploding)

[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: snip Sure.. mysql_query doesn't support more than one query in the sql statement. snip 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)

Re: [PHP] Accessing DLL from PHP

2005-06-02 Thread Rory McKinley
Richard Davey wrote: snip 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 snip Hi Richard Rory (the other one ;) ) also mentioned a COM

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

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

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

2005-01-19 Thread Rory McKinley
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 no joy so far. -- Rory McKinley

[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] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
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 someone will be able to point me in the right direction... TIA -- Rory McKinley Nebula

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: snip 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

Re: [PHP] Sessions and multiple windows

2004-12-07 Thread Rory McKinley
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 - office +27 21 551 0676 - fax +27 82 857 2391

[PHP] $_POST and multiple windows

2004-11-20 Thread Rory McKinley
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 wanted to make sure that my problem was properly defined. - -- Rory McKinley

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

2004-08-20 Thread Rory McKinley
no 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.nebula.co.za

Re: [PHP] reading txt file - certain lines

2004-07-30 Thread Rory McKinley
can use a 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

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

2004-07-27 Thread Rory McKinley
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 McKinley Nebula Solutions +27 21 555 3227 - office

Re: [PHP] Efficient way to filter this string

2004-07-22 Thread Rory McKinley
($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 and may contain confidential information which may

[PHP] Checking for character absence with regular expressions

2004-07-16 Thread Rory McKinley
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-mail is intended only for the person to whom

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

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

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

2004-02-17 Thread Rory McKinley
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 and those

Re: [PHP] Variables not working!

2004-01-20 Thread Rory McKinley
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 understand binary and those who don't (Unknown) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-01-15 Thread Rory McKinley
, 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 don't (Unknown) -- PHP General Mailing List (http

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

2004-01-15 Thread Rory McKinley
also do something similar with objects e.g. ?php include('header.inc'); this_page_head = new header('Alaska') ? if you are that way inclined. Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] There are 10 kinds of people in this world, those who understand

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} ?php /*State name does not have to be set statically, can be set from SQL query etc*/ I think I

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 and Apache, which had me thinking making PHP

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

2004-01-07 Thread Rory McKinley
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 Solutions +27 82 857 2391 [EMAIL PROTECTED] There are 10 kinds of people in this world, those who understand

Re: [PHP] Regular Expression Help Please

2003-12-01 Thread Rory McKinley
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 (Unknown) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Mysql backup

2003-11-28 Thread Rory McKinley
... 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 this world, those who understand binary and those who don't (Unknown) -- PHP General Mailing List (http

Re: [PHP] Newbie question about Class

2003-10-17 Thread Rory McKinley
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 PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday

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

2003-10-16 Thread Rory McKinley
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 this world, those who

Re: [PHP] Slow searches in large database

2003-10-14 Thread Rory McKinley
with 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] To: [EMAIL PROTECTED] Sent: Tuesday

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 world, those who