Re: [PHP] Problem with Include

2010-12-19 Thread Simcha Younger
On Sun, 19 Dec 2010 17:41:20 + "a...@ashleysheridan.co.uk" wrote: > Is your server even set up to recognise .inc files as php? You can't just put > any old extension on and expect the server to know what to do with it. > > Thanks, > Ash > http://www.ashleysheridan.co.uk Since it is being i

Re: [PHP] All records not displaying...

2010-12-19 Thread Gary
same >> file, >> so if anyone want to take a stab at that, I'll be happy to post it. >> > > This code will totally eliminate the first row of data. > >> if (mysql_num_rows($result) == !'0') { >>$row = mysql_fetch_array($result); > &

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
The "name" and "id" attributes do not have to be the same. Thank you, I thought it should be the same You're probably thinking of: http://www.w3.org/TR/html401/struct/links.html#h-12.2.3 "The id and name attributes share the same name space. This means that they cannot both define an anchor w

[PHP] Performance Improvement on Calling C++ executable from PHP

2010-12-19 Thread Shiplu
=== Recently I my this php-general doesn't accept my mail for some reason. So I send it again from anther email === Hello Everybody, I am devel

[PHP] Problem with Include

2010-12-19 Thread Bill Guion
Many, many thanks to Tamara, Govinda, and Ashley. Adding the php tags to the include file solved the problem. -= Bill =- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Performance Improvement on Calling C++ executable from PHP

2010-12-19 Thread shiplu
Hello Everybody, I am developing a php application that interfaces with an external executable binary. The program is written in C++. I open the program (say a.out) using proc_open. Write some command at its stdin and fetch data stdout. Then close the program. The timing of only "a.out" is real 4

Re: [PHP] Problem with Include

2010-12-19 Thread a...@ashleysheridan.co.uk
Is your server even set up to recognise .inc files as php? You can't just put any old extension on and expect the server to know what to do with it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Tamara Temple" Date: Sun, Dec 19, 2010 17:07 Subject: [PHP] Problem w

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Benjamin Hawkes-Lewis
On Sun, Dec 19, 2010 at 4:57 PM, Martin C wrote: >> The "name" and "id" attributes do not have to be the same. > > Thank you, I thought it should be the same (for same reason, maybe > compatibility between XHTML and HTML). But could not find anything on the > net which states this. So my memories

Re: [PHP] All records not displaying...

2010-12-19 Thread a...@ashleysheridan.co.uk
x27;' . $row['bottles'] . ''; echo '' . $row['tap'] . ''; echo '' . $row['size'] . ''; echo '' . $row['descrip'] . ''; ''; } echo ''; } All but the fir

Re: [PHP] Problem with Include

2010-12-19 Thread Tamara Temple
On Dec 19, 2010, at 10:43 AM, Bill Guion wrote: In an effort to clean up some code, I tried taking four lines out of 6 or 7 programs and putting them into an include file. The file structure is Root data clubs.php include fmt.inc Originally, clubs.php had the following code: Th

Re: [PHP] Problem with Include

2010-12-19 Thread Govinda
$file_name= basename($_SERVER['PHP_SELF']); $last_modified = filemtime($file_name); print("This page last modified "); print(date("m/j/y", $last_modified)); you need to wrap the contents ^^^ of the include file with php ?> Govinda -- PHP General Mailing List (http://www.p

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
How should I follow the HTML specification while having the passed parameters automatically converted to arrays in PHP? The "name" attribute, not the "id" attribute, is used as the key when submitting form values. The "name" and "id" attributes do not have to be the same. Thank you, I thought

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
How should I follow the HTML specification while having the passed parameters automatically converted to arrays in PHP? The "name" attribute, not the "id" attribute, is used as the key when submitting form values. The "name" and "id" attributes do not have to be the same. Thank you, I thought

Re: [PHP] All records not displaying...

2010-12-19 Thread Tamara Temple
On Dec 19, 2010, at 9:46 AM, Gary wrote: I have an issue that the first record in a query is not being displayed. It seems that the first row in alphabetical order is not being brought to the screen. I have run the query in the DB and it displays the correct result, so it has to be in

[PHP] Problem with Include

2010-12-19 Thread Bill Guion
In an effort to clean up some code, I tried taking four lines out of 6 or 7 programs and putting them into an include file. The file structure is Root data clubs.php include fmt.inc Originally, clubs.php had the following code: This code works - on the web page I get This page

[PHP] All records not displaying...

2010-12-19 Thread Gary
ho '' . $row['bottles'] . ''; echo '' . $row['tap'] . ''; echo '' . $row['size'] . ''; echo '' . $row['descrip'] . ''; ''; } echo ''; } All but the

[PHP] Upgraded system and now $_SERVER['SERVER_NAME'] is not more working

2010-12-19 Thread Michelle Konzack
Hello *, I upgraded one of my servers from Debian/Etch to Lenny and now the var $_SERVER['SERVER_NAME'] is not more working. Did I have overseen something? The offending code sniplet is this: 8<-- T_setlocale(LC_MESSAGES, $lo