Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 22nd, 2006, 11:39 PM
Registered User
Join Date: Nov 2006
Location: , , .
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!

Reply With Quote
  #2 (permalink)  
Old November 23rd, 2006, 08:28 PM
Registered User
Join Date: Nov 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

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 ?


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:38 PM.

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