RE: [PHP] spaces in select
Another suggestion is to use country codes - generally accepted by most i.e. uk, us, ch, cn, za etc > -Original Message- > From: Matt M. [mailto:[EMAIL PROTECTED] > Sent: 11 October 2004 15:42 > To: Angelo Zanetti > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] spaces in select > > > I have a select/option that gets populated with countries. The value of > > these option are also set to the country name. The problem i have is > > that some countries have spaces in them > > > > eg: United States of America. > > what doe your select loo like? something like this should work > > > United States of America > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] function.filetime in PHP5
Does anyone know what function.filetime has been replaced by in PHP5? Cheers Nunners
[PHP] Floating values
Simple question. I'm writing an accounting package, and have setup the MySQL database with decimal(6,2) types for the amount of transactions etc. Is there a way I can reproduce this in the php output? i.e. the number sorted is 8.70 and when you output the value it comes out as 8.7 The question is how do I add the .00? Cheers Nunners
RE: [PHP] Recomedation for 2 scripts
Hi Ryan, Try this site: http://Php.resourceindex.com It's normally got most things you might need!!!! Nunners > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: 13 April 2004 15:58 > To: [EMAIL PROTECTED] > Subject: [PHP] Recomedation for 2 scripts > > Hi, > I'm looking for 2 scripts and was wondering if anybody can recomend them: > > 1. Ticketing system - I found one that seems pretty good after spending > quite some time on hot scritps and google, > its called RT and can be downloaded off bestpractical.com/rt/ thing I dont > like is it is very dependant on > PERL and certain versions of PERL...Know of any free PHP ones? > > 2. An affiliate system - Hot scripts has a load of them and the free ones > arn't really all that good and the paid ones > are pretty hard to judge...can you recomend one(or two) based on features > and performance? > > Thanks, > -Ryan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP editor
www.chami.com/htmlkit/ Excellent product Nunners > -Original Message- > From: pete M [mailto:[EMAIL PROTECTED] > Sent: 15 April 2004 11:50 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: PHP editor > > I use dreameaver. > > Arthur Radulescu wrote: > > Hello! > > > > > > This might sound like a stupid question but could anyone recommand a > good > > PHP editor... > > I have used some editors until now but each one has some problems... > > > > Right now I am using PHPed which is pretty good but oine of the major > > problems is that it does fills the tabs with spaces which will increase > a > > lot the size of pages specially the templates... > > > > Also using Zend which is very good but this is extremly slowly and some > > times it is almost crashing the computer so it is not very good for fast > > editing... > > > > What I am looking for is something to work pretty fast, have code > > autocompletion (even for functions defined in the included files like > zend > > does) and also code ident in a similar manner with zend studio > > > > > > > > Arthur > > > > > > > > > > Looking for a job!? Use the smart search engine!! > > Find a Job from Millions WorldWide... > > http://search.jobsgrabber.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] <button> tag
is not a standard HTML v4 tag You need: > -Original Message- > From: Richard Lewis [mailto:[EMAIL PROTECTED] > Sent: 20 April 2004 09:45 > To: [EMAIL PROTECTED] > Subject: [PHP]
RE: [PHP] Re: Converting XML into something PHP like....
Hi Folks, At the end of the email is a var_dump of my XML... I can go through and do foreach on each section, however, this is completely useless in practice. How do I call things like $data["Title"] and $data["avail_dataset"]["0"]["dept_date"]? At the moment, every time I do this, it comes out as NULL Cheers Nunners > var_dump($data); > ?> > Output: > > object(stdClass)(3) { > ["Title"]=> > string(12) "Example TopX" > ["Type"]=> > string(7) "Package" > ["avail_dataset"]=> > object(stdClass)(8) { > ["avail_record"]=> > array(6) { > [0]=> > object(stdClass)(26) { > ["arr_time_int"]=> > string(0) "" > ["content_link"]=> > string(0) "" > ["dept_code"]=> > string(3) "LGW" > ["dept_date"]=> > string(10) "2004-04-24" > ["dept_name"]=> > string(7) "GATWICK" > ["dept_time_int"]=> > string(0) "" > ["dest_name"]=> > string(7) "Majorca" > ["dest_code"]=> > string(3) "PMI" > ["holiday_type"]=> > string(0) "" > ["nights"]=> > string(1) "7" > ["poll_date"]=> > string(10) "2004-04-20" > ["poll_time"]=> > string(5) "10:53" > ["price1"]=> > string(2) "89" > ["price2"]=> > string(0) "" > ["price3"]=> > string(3) "155" > ["price4"]=> > string(3) "235" > ["price5"]=> > string(0) "" > ["price6"]=> > string(2) "55" > ["rtn_code"]=> > string(0) "" > ["rtn_name"]=> > string(0) "" > ["tag"]=> > string(0) "" > ["tourop_code"]=> > string(3) "COS" > ["tourop_name"]=> > string(0) "" > ["currency"]=> > string(3) "GBP" > ["can_cost"]=> > string(5) "False" > ["can_book"]=> > string(5) "False" > } > [1]=> > object(stdClass)(26) { > ["arr_time_int"]=> > string(0) "" > ["content_link"]=> > string(0) "" > ["dept_code"]=> > string(3) "LGW" > ["dept_date"]=> > string(10) "2004-04-24" > ["dept_name"]=> > string(7) "GATWICK" > ["dept_time_int"]=> > string(0) "" > ["dest_name"]=> > string(12) "Costa Blanca" > ["dest_code"]=> > string(3) "ALC" > ["holiday_type"]=> > string(0) "" > ["nights"]=> > string(1) "7" > ["poll_date"]=> > string(10) "2004-04-20" > ["poll_time"]=> > string(5) "10:53" > ["price1"]=> > string(2) "89" > ["price2"]=> > string(0) "" > ["price3"]=> > string(3) "159" > ["price4"]=> > string(0) "" > ["price5"]=> > string(0) "" > ["price6"]=> > string(2) "69" > ["rtn_code"]=> > string(0) "" > ["rtn_name"]=> > string(0) "" > ["tag"]=> > string(0) "" > ["tourop_code"]=> > string(3) "COS" > ["tourop_name"]=> > string(0) "" > ["currency"]=> > string(3) "GBP" > ["can_cost"]=> > string(5) "False" > ["can_book"]=> >
[PHP] FW: Variables within Variables
I've had no luck on the smarty list. does anyone else know? _ From: Nunners [mailto:[EMAIL PROTECTED] Sent: 03 June 2004 16:22 To: '[EMAIL PROTECTED]' Subject: Variables within Variables (Sorry for the naff subject - that's the only way I could describe it.!) I'm trying to setup an application that uses various things, including Smarty, PEAR:DB and anything else I think I can fit in I've got to a point where I want to dynamically create a menu item, with two layers of information. The first is establishing the url of the link, which might be in the form of: /travel.php?id=$agent_id&password=$password Then, using a saved cookie (a reference to call customer details), also pass $agent_id and $password according to the customer's details (i.e. the cookie). Is that easily possible? As further reference/guide, the url is saved as a variable within the Smarty setup, and then appears in the template accordingly.
[PHP] MySQL & PHP
I've just installed Fedora Core 2, including I believe both PHP & MySQL.. However whenever I try and run something that connects to MySQL, it comes up with the following: "cannot load MySQL extension, please check PHP Configuration." Does this mean anything to anyone? I've checked loads of things, like MySQL is running, etc etc But without luck.. Cheers Nunners
[PHP] Best solution for creating variables from mysql statements
I'm creating an application which has multiple users, with their own logins etc etc. >From it, they have a number of links to external websites, to which I need to pass certain details, e.g. http://somewebsite.com/index.php?username=bob <http://somewebsite.com/index.php?username=bob&password=fred> &password=fred For management purposes, I am wanting to have the overall URL in a MySQL table, and want to be able to use that to get the appropriate variables from another table. So I have: Table: Websites ID Name Website 1 Somewebsite http://somewebsite.com/index.php?username=$username <http://somewebsite.com/index.php?username=$username&password=$password> &password=$password 2 Anotherwebsite http://anotherwebsite.net/login.php?agent=$agent 3 Agreatwebsite http://agreatwebsite.com/index.php?user=$user <http://agreatwebsite.com/index.php?user=$user&id=$id> &id=$id Table: User_Website_Details User Website_ID Variable Value Bob 1 Username Bob Bob 1 Password Fred James 2 Agent 03658264 Greg 3 User Bob_fred Greg 3 Id 49y5h9-845yf9 How can I get the values from the user's individual details into the required output? Cheers Nunners
[PHP] XML Parsing
Hi Folks, I've got an XML output from a website (http://tawl.holiday.co.uk/EntryPoints/TopXasXML.aspx?WebsiteGUID=E325538D-5 B1E-4EC6-B888-35EB46418DB9) and want to display it's output on one of my pages I've looked at using the PHP XML Parse functions, however, I'm not certain how to get it working Do I need something like PEAR? Or is it easier? Can someone give me a pointer please? Cheers Nunners -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XML Parsing
Is there a way of doing this without installing PEAR? I.e. a decent PHP Class? -Original Message- From: electroteque [mailto:[EMAIL PROTECTED] Sent: 01 April 2004 13:52 To: Nunners; [EMAIL PROTECTED] Subject: RE: [PHP] XML Parsing I found the XML_Tree class really easy to use, highly recommend it. > -Original Message- > From: Nunners [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 01, 2004 10:40 PM > To: [EMAIL PROTECTED] > Subject: [PHP] XML Parsing > > > Hi Folks, > I've got an XML output from a website > (http://tawl.holiday.co.uk/EntryPoints/TopXasXML.aspx?WebsiteGUID= > E325538D-5 > B1E-4EC6-B888-35EB46418DB9) and want to display it's output on one of my > pages > I've looked at using the PHP XML Parse functions, however, I'm not certain > how to get it working Do I need something like PEAR? Or is it easier? > Can someone give me a pointer please? > Cheers > Nunners > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mktime error
I got 1081033200 Two thoughts: 1 - is $time a global variable predefined as the current time? Don't think it is?!?!?! 2 - Could it be to do with local time settings i.e. comparing american dates with UK dates (1/Aug/04 and 8/1/04)? Nunners > -Original Message- > From: Andy B [mailto:[EMAIL PROTECTED] > Sent: 05 April 2004 11:29 > To: [EMAIL PROTECTED] > Subject: [PHP] mktime error > > "On my personal machine the return value is: > > 1081026000" > interesting... i got 1081054800 from mine with the code: > $time=mktime(0,0,0,4,4,2004); > echo $time; > ?> > > even on cli it gives the same thing > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP]
I've got a series of functions which return a list in an array. How can I create an empty array? Or do I need to check it's a valid array before I use it? Cheers James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can't get anything outside PHP
Hi Folks, Yes, that strange heading is exactly what it says I'm trying to get a procedure working that takes a feed from an XML page, and puts it into English... that should be common sense, but I can't seem to get anything from my server I've installed Apache on Win XP, with PHP, and tried installing PEAR, but that doesn't want to work, even using a file that I know works from another server; I've tried various ones from the web, but to no avail. Whenever I run scripts that try and get anything, either Pea or otherwise, it just comes up with a blank page, or anything that is not HTML. I know PHP is working because I've got other scripts running, and even added silly things like an echo(Date()); on every other line ... but still nothing from the XML side of things. Have I missed something silly (:probably:) Someone help! Please Nunners -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTTP AUTH in PHP5
I'm having some problems with using HTTP Auth in PHP5 - how do I check whether the old $PHP_AUTH_USER exists? Cheers Nunners
[PHP] Splitting a webpage
I'm trying to create an application that stores details from another website. I've successfully downloaded the webpage - that was the easy bit - now I want to be able to pick out specific details from the page. Unfortunately, the designer of the page didn't do nice things like put summary bits in tables, or labelling to say what everything is within the page! So, I've got the following string, the info I want is the address (House, Sandbrook ParkSandbrook Way Rochdale Lancashire OL11 1SA) and the telephone no (Tel : 01706 745832). Can someone suggest a way of going through the string to find the relevant bits - is split the easiest way? Cheers James ABTAnet - Searching for ABTA Number V6896 ABTAnet Search: ABTA Number: "V6896" MyTravel Tour Operations LtdHead Office Scandinavia V6896 Holiday House, Sandbrook ParkSandbrook Way Rochdale Lancashire OL11 1SA Tel : 01706 745832 Additional Trading Names registered with ABTA: (V6896) Tradewinds (V6896) Sun Cruises (V6896) MyTravel (V6896) Escapades (V6896) Aspro Holidays (V6896) Aspro (V6896) Airtours Flight Warehouse (V6896) Airtours Early Bookings (V6896) Airtours Direct Lates (V6896) Airtours Direct (V6896) Airtours Cancellations (V6896) Airtours (V6896) Airtours Holidays Search completed in 0 seconds
[PHP] Friday afternoon - being thick
Hi All, I'm having one of those Friday afternoon moments - I can't remember what tag to use. I've got some text that contains carriage returns, which are not . what tag do I need to use to display the text with the carriage returns? Can't even remember whether it's html or php. Cheers Nunners
[PHP] RE: Friday afternoon - being thick
Found it - went for a cup of tea and thought.. ! Sorry _ From: Nunners [mailto:[EMAIL PROTECTED] Sent: 29 October 2004 16:52 To: '[EMAIL PROTECTED]' Subject: Friday afternoon - being thick Hi All, I'm having one of those Friday afternoon moments - I can't remember what tag to use. I've got some text that contains carriage returns, which are not . what tag do I need to use to display the text with the carriage returns? Can't even remember whether it's html or php. Cheers Nunners
[PHP] Syslog Parser
Does anyone know of a good syslog parser? I've successfully got the syslog server to write to a mysql table, but I now want to find something that will give me graphs, breakdowns etc for the syslog. Cheers James