Re: [PHP] perl's Config::Ini File Module equivalent in PHP

2005-02-09 Thread Abdul-Wahid Paterson
Hi, http://uk2.php.net/function.parse-ini-file On Wed, 9 Feb 2005 14:57:33 +0530, Nikhil M <[EMAIL PROTECTED]> wrote: > Hi All, > I just wanted to know if there is an equivalent of Perl's Config::Ini = > Module in PHP > > Thanks, > Nikhil. > > -- > PHP General Mailing List (http://www.php.net/

Re: [PHP] Web shopping cart

2005-01-27 Thread Abdul-Wahid Paterson
I would agree with that. Is relatively easy to install and configure. Although the templating is not perfect...I have seen better ways of doing it. It works well though in doing what it is meant to do. regards, Abdul-Wahid On Thu, 27 Jan 2005 07:32:44 -0600, Afan Pasalic <[EMAIL PROTECTED]> w

Re: [PHP] sorting associative array

2005-01-24 Thread Abdul-Wahid Paterson
Hi, How about this foreach ($data as $key => $row) { $scores[$key] = $row['scores']; } array_multisort($scores, SORT_ASC, $data); Abdul-Wahid On Mon, 24 Jan 2005 00:39:17 +1100, Jeffery Fernandez <[EMAIL PROTECTED]> wrote: > I have the following multi-dimentional

Re: [PHP] Parsing HTML files

2004-09-10 Thread Abdul-Wahid Paterson
No easy way of doing it, regex somthing like: $id = preg_replace("/.*/", $1, $string); where $string is a line from your input'd HTML page Abdul-Wahid On Fri, 10 Sep 2004 12:54:37 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > Hi all, > > I was wondering if any classes/functions could help

Re: [PHP] how to redirect ?

2004-09-10 Thread Abdul-Wahid Paterson
What errors is it giving? It should work fine. However, remember that since it is part of the HTTP header information it has to come before any of the main output of the script. Do you have a code sample and the error message? Abdul-Wahid On Fri, 13 Aug 2004 16:03:29 -0700, CBharadwaj <[EMAIL PR

[PHP] after postgres upgrade - ERROR: current transaction is aborted

2003-09-16 Thread Abdul-Wahid Paterson
gainst was Postgres 7.1.3? Anyone have any suggestions on how I can fix this? Regards, -- Abdul-Wahid Paterson Lintrix Networking & Comms. ltd. Web: http://www.lintrix.net/ Tel: +44 (0) 870 285 4703Mobile: +44 (0)7971 506177 Fax: 0870 133 0433 Email/Jabber: [E

Re: [PHP] image button problem

2003-08-14 Thread Abdul-wahid Paterson
ed from cached content due to heavy processing requirements on making the whole page. It is therefore quite difficult for me to change it to something like a series of name="test1" and name="test2" for all the buttons as the form being POST'd to would have a hard job trying

[PHP] image button problem

2003-08-14 Thread Abdul-wahid Paterson
a better way of doing this? All I want is to know which button has been clicked on the form. (The form has to be method=POST) Regards, -- Abdul-Wahid Paterson Lintrix Networking & Communications ltd. Web: http://www.lintrix.net/ Tel

Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Abdul-wahid Paterson
an from following a link on your site. The cookie would have to be some sort of random identifier that you also stored on the web server somewhere so that you could validate the cookie was authentic. Regards, AW -- Abdul-Wahid Paterson Lintrix Networking & Communications ltd. Web: http://w

Re: [PHP] register_globals per virtual host

2003-03-19 Thread Abdul-wahid Paterson
tings and allow users to change others you can force them with php_admin_value. -- Abdul-Wahid Paterson Lintrix Networking & Communications ltd. Web: http://www.lintrix.net/ Tel: +44 7801 070621 Email/Jabber: [EMAIL PROTECTED] ---

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Abdul-wahid Paterson
nse to an email on the list :-( > Peer review is the best way we can improve our programming. It is good to post code so that we can all get a better understanding of better techniques and tricks. Regards, AW -- Abdul-Wahid Paterson Lintrix Networking & Communications ltd. Web: htt

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Abdul-wahid Paterson
- > From: Bryan Koschmann - GKT [mailto:[EMAIL PROTECTED] > Sent: 19 March 2003 07:44 > To: PHP General > Subject: [PHP] random letter/character?[Scanned] > > > Hi, > > I need to get a php script to print out a list of random characters. This > is the list: >

Re: [PHP] How to define a path of download file in header?

2003-03-18 Thread Abdul-wahid Paterson
filename); straight after your header statements. That will read in the file and pass it straight through to the browser. Regards, AW -- Abdul-Wahid Paterson Lintrix Networking & Communications ltd. Web: http://www.lintrix.net/ Tel: +44 7801 070621 Email/Jabber: [EMAIL PROTECTED]

Re: [PHP] Re: Encrypt data to base for authentication...

2003-03-18 Thread Abdul-wahid Paterson
ifferent ways of doing this usually involving a). DES b). md5 both injected with a bit of salt. Different implementations use different amounts of salt etc. Anyway, the function you are looking for is probably crypt: http://uk.php.net/manual/en/function.crypt.php Regards, Abdul-Wahid