Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2006, 11:39 PM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Locales and Including functions

Hi All,

I'm trying to do two things that i cant figure out and would appreciate some help.

1) find the locale string for papua new guinea and fiji so i can display the price with the correct international symbol (PGK or FIJ). I know that i can hard code the string but every other locale i have done (indonesian, NZ and AUS) works but not these two, and i cant find the locale string anywhere.

2) have all my database functions in one file, and include this file in all my .php files requiring data access. i used 'include' and 'require' but both seem to just print the text of the file to the screen rather than letting the function calls in the calling php file use the functions. I've searched google and nothing similar to what i want to do, yet it seems to me that this should be rather simple - including these functions in multiple files is not exactly the best practice, imho.

any help will be greatly appreciated!
%simon

 
Old November 23rd, 2006, 08:28 PM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well i've figured out the 2nd question; use classes! i knew there had to be some way of doing it, but can anyone help me with question #1 ?

thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
Including Other Project notrosh Visual C++ 1 April 23rd, 2007 12:09 AM
Including activex ashishprem Beginning VB 6 4 January 23rd, 2007 08:07 AM
Including an .ocx dartcoach VB How-To 9 November 13th, 2006 01:37 PM
SQL Server NLS or Input Locales mike_abc SQL Server 2000 0 May 4th, 2005 12:42 AM
Localisation: Cultures/UICultures/Regions/Locales Prometheus ASP.NET 1.0 and 1.1 Basics 0 October 20th, 2003 07:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.