[PHP] Solaris 10 libnetsnmp build failure

2005-12-30 Thread Dean
Posted this to php-install with no response. See: http://marc.theaimsgroup.com/?l=php-installm=113579793423896w=2 Hi folks, I am trying to install php-4.4.1 on sparc-solaris 10, but make fails with: /bin/sh /root/tmp/php-4.4.1/libtool 90-line snip -o sapi/cgi/php gcc:

Re: [PHP] what is the problem with this query?

2005-12-30 Thread sunaram patir
thanks. i have resolved the problem by replacing 'read' with 'read_it'. On 12/30/05, Michael Gross [EMAIL PROTECTED] wrote: read is a reserved word in mysql (http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html). You have to double-quote reserved words: mysql_query(SELECT * FROM mailbox

Re: [PHP] PHPMailer inserting unwanted spaces

2005-12-30 Thread Lam Cheuk Hin
Can You Write The Strings/Text? On 12/30/05, René Fournier [EMAIL PROTECTED] wrote: Has anyone encountered this? I am composing an HTML email with PHPMailer, and for some reason PHPMailer is inserted spaces periodically, which breaks the formatting. I've looked through the docs, but can only

Re: [PHP] interfaces - your opinion

2005-12-30 Thread Jochem Maas
hi Marco, I want to apply the idea to interface implementation not class extension. that is to say I want to be able to make an interface only implementable by certain (defined) classes (and their subclasses) with out imposing any restriction on the classes themselves (like that they must extend

Re: [PHP] Re: php / JS / DOM question

2005-12-30 Thread Jochem Maas
Al wrote: jonathan wrote: I know that this is more of a Javascript / DOM question but I cannot for the life of me figure this out: I have this form: form name=query_form input type=text name=q/input input type=button onclick=drawImg('A',document.forms ['query_form'].elements['q']);

[PHP] HAPPY NEW YEAR!!

2005-12-30 Thread Jesús Alain Rodríguez Santos
Happy New Year for all. I weish you the best in this new 2006. Regards. Alain -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio.

Re: [PHP] interfaces - your opinion

2005-12-30 Thread Marco Kaiser
Hi Jochem, i know what you mean, but you can't define code in interfaces to implement a logic. You should use an abstract class to restrict the access. I think a interface should just define a rude prototype of function -- Marco Kaiser

Re: [PHP] Strange Right-Shift Problem

2005-12-30 Thread Jochem Maas
Michael Gross wrote: Hello I have to migrate a PHP-application to a new Linux-Box. Both the old and the new system are Linux and PHP 5.1.1. (the old one has a Pentium 4, the new one two Xeon CPUs). I have a problem using the Crypt_Xtea-Extension. I narrowed it down to the following

Re: [PHP] Re: php / JS / DOM question

2005-12-30 Thread Stut
Jochem Maas wrote: Al wrote: You need to ask in the JAVASCRIPT newsgroup. This is not a php question. anyone every noticed that the question as to where a good javascript mailing can be found comes up every week or so. and nobody ever has an answer. so where the is this

Re: [PHP] Re: php / JS / DOM question

2005-12-30 Thread Jochem Maas
I eat my shoe. ;-) ... but is comp.lang.javascript any good? Stut wrote: Jochem Maas wrote: Al wrote: You need to ask in the JAVASCRIPT newsgroup. This is not a php question. anyone every noticed that the question as to where a good javascript mailing can be found comes up every

Re: [PHP] Re: php / JS / DOM question

2005-12-30 Thread Stut
A: Yes I did. Q: Did you fix the to posting? Jochem Maas wrote: Stut wrote: Jochem Maas wrote: Al wrote: You need to ask in the JAVASCRIPT newsgroup. This is not a php question. anyone every noticed that the question as to where a good javascript mailing can be found comes up

Re: [PHP] unable to load perl extension

2005-12-30 Thread Jochem Maas
dev lamp wrote: On 12/29/05, Jochem Maas [EMAIL PROTECTED] wrote: dev lamp wrote: Hi I am unable to call perl code from PHP, since the extension does not get loaded ! Scenario 1: use dl('perl.so'); in the php code and invoke the script from the command line The script works fine and the

Re: [PHP] Variables and Strings

2005-12-30 Thread Jochem Maas
Jim Moseby wrote: Thanks for the responses guys, but what i'm saying is i would ... I believe what Jochem is trying to tell you is that when you assign the string variable, the variable names are expanded to their values, so the names are no longer available. exactly - nicely put Jim.

[PHP] Which is faster, a MySQL access, or a set of PHP variables?

2005-12-30 Thread Dave M G
PHP General, I have a site where I will set the interface up to be multilingual. This means that all the snippets of text which make up the menu and other elements of navigation common to most pages will be stored as variables. In most web site set ups that I have seen,

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] yeah 'Superman' explain what it is you want to do AND why - then maybe we can give you some help - what you are currently asking is impossible (well actually Jay Blanchard hinted at a way to do it but I firmly believe that its conceptually over your head atm and very probably not a good

Re: [PHP] Which is faster, a MySQL access, or a set of PHP variables?

2005-12-30 Thread Jochem Maas
Dave M G wrote: PHP General, I have a site where I will set the interface up to be multilingual. This means that all the snippets of text which make up the menu and other elements of navigation common to most pages will be stored as variables. In most web site set ups that I

Re: [PHP] Variables and Strings

2005-12-30 Thread Jochem Maas
Jay Blanchard wrote: [snip] yeah 'Superman' explain what it is you want to do AND why - then maybe we can give you some help - what you are currently asking is impossible (well actually Jay Blanchard hinted at a way to do it but I firmly believe that its conceptually over your head atm and very

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] ah heck is that the same code that _we_ (Jay and me, etc) played with to find SQL queries? or something that was based on it? I remember Robin Vickery coming up with a token based variant which was rather nifty - must look into that agian sometime! [/snip] They are all variants of that.

Re: [PHP] Variables and Strings

2005-12-30 Thread John Nichel
Jay Blanchard wrote: [snip] yeah 'Superman' explain what it is you want to do AND why - then maybe we can give you some help - what you are currently asking is impossible (well actually Jay Blanchard hinted at a way to do it but I firmly believe that its conceptually over your head atm and very

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] I wrote a doohickey once which searched for all variable searching doohickies. [/snip] I cannot tell you how happy I am to see you use the past perfect tense correctly there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Which is faster, a MySQL access, or a set of PHP variables?

2005-12-30 Thread Miles Thompson
At 10:32 AM 12/30/2005, Dave M G wrote: PHP General, I have a site where I will set the interface up to be multilingual. This means that all the snippets of text which make up the menu and other elements of navigation common to most pages will be stored as variables. In most

Re: [PHP] Variables and Strings

2005-12-30 Thread John Nichel
Jay Blanchard wrote: [snip] ah heck is that the same code that _we_ (Jay and me, etc) played with to find SQL queries? or something that was based on it? I remember Robin Vickery coming up with a token based variant which was rather nifty - must look into that agian sometime! [/snip] They are

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] They are all variants of that. All nifty little tools. We should gather those up someplace...shouldn't we? Well, I just purchased some domains for that. Who wants to develop it? ;) phpdepository.com phpdepository.org phpdepository.net [/snip] I'll contribute... -- PHP General

[PHP] nifty little tools

2005-12-30 Thread tedd
They are all variants of that. All nifty little tools. We should gather those up someplace...shouldn't we? In similar light, what development environments do you people program in? How do you run and test your code? tedd PS: This is my first posting to this group. --

Re: [PHP] nifty little tools

2005-12-30 Thread Jochem Maas
tedd wrote: They are all variants of that. All nifty little tools. We should gather those up someplace...shouldn't we? In similar light, what development environments do you people program in? How do you run and test your code? of late I have been testing Zend IDE - the integrated debugger

RE: [PHP] nifty little tools

2005-12-30 Thread Jay Blanchard
[snip] They are all variants of that. All nifty little tools. We should gather those up someplace...shouldn't we? In similar light, what development environments do you people program in? How do you run and test your code? tedd PS: This is my first posting to this group. [/snip] Welcome to

RE: [PHP] nifty little tools - resposity - evaluations..

2005-12-30 Thread tg-php
Wasn't this just brought up on another thread? nifty little tools that is and a repository for such things. There are lots of code repositories but none that I go directly to right off. Usually I hit Yahoo/Google and do a search for what I'm looking for and find whatever looks best for my

RE: [PHP] nifty little tools - resposity - evaluations..

2005-12-30 Thread Jay Blanchard
[snip] A buncha' top posted stuff [/snip] I like the ideaand the llama. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] nifty little tools

2005-12-30 Thread tedd
Welcome to the insanity. Thanks -- been there for a while. your question has been asked before - you might find the list archives gives you more insight into other peoples work envs. Yep, you're right. http://news.php.net/php.general I probably should have looked there first. Sorry.

Re: [PHP] nifty little tools

2005-12-30 Thread John Nichel
tedd wrote: Welcome to the insanity. Thanks -- been there for a while. your question has been asked before - you might find the list archives gives you more insight into other peoples work envs. Yep, you're right. http://news.php.net/php.general I probably should have looked there

Re: [PHP] Re: php / JS / DOM question

2005-12-30 Thread Robert Cummings
On Fri, 2005-12-30 at 07:45, Jochem Maas wrote: Al wrote: jonathan wrote: I know that this is more of a Javascript / DOM question but I cannot for the life of me figure this out: I have this form: form name=query_form input type=text name=q/input input type=button

[PHP] connecting to oracle 9i

2005-12-30 Thread Sue Errico
I am running php 5.0 apache 2.0 oracle 9i on a windows platform receiving the following error: Fatal error: Call to undefined function oci_connect() in C:\Program Files\Apache Group\Apache2\htdocs\Sue\testoci.php on line 3 I edited the php.ini I uncommenting the extension=php_oci8.dll

Re: [PHP] Strange Right-Shift Problem

2005-12-30 Thread Richard Lynch
On Thu, December 29, 2005 5:37 pm, Michael Gross wrote: Hello I have to migrate a PHP-application to a new Linux-Box. Both the old and the new system are Linux and PHP 5.1.1. (the old one has a Pentium 4, the new one two Xeon CPUs). I have a problem using the Crypt_Xtea-Extension. I narrowed

Re: [PHP] connecting to oracle 9i

2005-12-30 Thread Richard Lynch
First, use ?php phpinfo()? to determine several things: Where does PHP think your php.ini file should be? Move your php.ini file there, and then change it. Changes to other php.ini files in other places is pointless. There is a new-fangled Apache directive to tell PHP where to find php.ini, but

Re: [PHP] Which is faster, a MySQL access, or a set of PHP variables?

2005-12-30 Thread Richard Lynch
On Fri, December 30, 2005 8:32 am, Dave M G wrote: I wondered if there was any downside to storing the list of interface texts in a MySQL database, then calling them as an array when the page loads? If you are already connecting to the database, then you are comparing an extra query or

RE: [PHP] nifty little tools - resposity - evaluations..

2005-12-30 Thread tg-php
Haha.. well, with any luck, 10 years from now I'll have as much content. hah (or even ANY code written) = = = Original message = = = I sort of had the same idea almost a decade ago... http://l-i-e.com/compare/ You can see how well I've kept it up :-v On Fri, December 30, 2005 10:33 am,

Re: [PHP] interfaces - your opinion

2005-12-30 Thread Richard Lynch
On Thu, December 29, 2005 10:31 am, Jochem Maas wrote: anyone here work with Interfaces? I do and I like them alot; I recently ran into a situation where it would be nice to be able to specify that a given interface is only allowed to be implemented by a certain class (and all subclasses

Re: [PHP] unable to load perl extension

2005-12-30 Thread Richard Lynch
On Thu, December 29, 2005 9:17 am, dev lamp wrote: I am unable to call perl code from PHP, since the extension does not get loaded ! Scenario 1: use dl('perl.so'); in the php code and invoke the script from the command line The script works fine and the perl code gets executed as well.

Re: [PHP] XML-RPC problem with long running times

2005-12-30 Thread Richard Lynch
If you can't get at the PHP internal time-out... First, file a bug report Feature Request and ask for it to be exposed. You won't be the only one who needs it. Second, for the short term, you may be stuck with rolling your own XMLRPC interface, or using one of the others out there as raw PHP

Re: [PHP] what is the problem with this query?

2005-12-30 Thread Richard Lynch
On Thu, December 29, 2005 7:26 am, sunaram patir wrote: could you please tell me what is the problem with this query mysql_query(SELECT * FROM mailbox WHERE read=''); Nope. Because on the face of it, there is NOTHING wrong with the query written above, per se. i always get this

Re: [PHP] XML Reader

2005-12-30 Thread Richard Lynch
On Thu, December 29, 2005 12:40 am, [EMAIL PROTECTED] wrote: Is there any easy php script to run to view an xml file such as new headlines like so: http://news.google.com/?output=rss or can anyone point me in the right direction for good online tutorials or books. If you mean to just READ

Re: [PHP] Variables and Strings

2005-12-30 Thread Richard Lynch
On Thu, December 29, 2005 3:31 pm, PHP Superman wrote: Thanks for the responses guys, but what i'm saying is i would like to return all the variable names i have in a string, $String=Blah Blah Blah $VarName Blah Blah Blah; $VarName = 'xyz'; $String now has Blah Blah Blah xyz Blah Blah Blah in

Re: [PHP] Location ....

2005-12-30 Thread Richard Lynch
On Wed, December 28, 2005 8:15 am, Christian Ista wrote: PHP? I tried this code : header(Location: mypage.php); But in some case, I have error message headers already sent. Then I You know the old saying, You can't step in the same stream twice? Think about it. Really think about it. Now...

Re: [PHP] Location ....

2005-12-30 Thread Robert Cummings
On Fri, 2005-12-30 at 15:04, Richard Lynch wrote: On Wed, December 28, 2005 8:15 am, Christian Ista wrote: PHP? I tried this code : header(Location: mypage.php); *LOL* That was one of the best write-ups I've ever read concerning the headers already sent error message. Similarly, watch out

Re: [PHP] download not working

2005-12-30 Thread Richard Lynch
On Wed, December 28, 2005 6:10 am, Ross wrote: $query= SELECT * FROM publications WHERE alphabet='a'; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ $row['pdf_size'] = $row['pdf_size']/ 1024; $row['pdf_size']= number_format($row['pdf_size'],

Re: [PHP] list a query

2005-12-30 Thread Richard Lynch
On Wed, December 28, 2005 5:53 am, Ross wrote: What does 'list' do in a php query? 'list' is kind of like an array de-constuctor. ?php $example = array(1, 2, 3); list($x, $y, $z) = $example; echo x: $x y: $y z: $z\n\n; ? x: 1 y: 2 z: 3 $result = mysql_query($query) or die('Error, query

Re: [PHP] SELECT?

2005-12-30 Thread Richard Lynch
On Wed, December 28, 2005 2:50 am, William Stokes wrote: I have one MySQL table with about 500 rows. I need to read the table one row at a time, make some changes to data in one field and then store the changed data to another table. I'm using PHP to change the data but I have no idea how

Re: [PHP] Storing serialized data to DB

2005-12-30 Thread Richard Lynch
On Tue, December 27, 2005 7:11 pm, Sumit Chachra wrote: Not very php specific so please pardon me if I am posting in the wrong forum. I have a chunk of data which I am trying to cache. I serialize this data using the serialize() function in php. I am wondering what would be a good

Re: [PHP] Location ....

2005-12-30 Thread Richard Lynch
On Fri, December 30, 2005 2:16 pm, Robert Cummings wrote: Similarly, watch out for BLANK LINES after the last ? in your files. They will trip you up for header() Regarding that last ? in scripts, the PHP engine intentionally supports it's omission so that you don't have to think about

Re: [PHP] SELECT?

2005-12-30 Thread Paul Waring
On 12/30/05, Richard Lynch [EMAIL PROTECTED] wrote: The suggestions so far are good, but watch out for this: If you do one record at a time, and are using LIMIT, and then something gets inserted into the original table... Boom! You could always lock the tables whilst performing the update -

Re: [PHP] Varchar date to real date?

2005-12-30 Thread Richard Lynch
On Tue, December 27, 2005 8:01 am, William Stokes wrote: I have a DB that has dates stored in a table. The date field type is Varchar (don't ask why... :( The dates are stored using european date format DD.MM.. I need somehow convert the dates to the format MySQL uses (-MM-DD) and

Re: [PHP] Strange Right-Shift Problem

2005-12-30 Thread Michael Gross
Hello Thanks for your answers. I now implemented everything new, with the mcrypt-extension. However, I use the crypt_xtea still for a compatibility mode. I had to implement the right-shift and other bit operations. If someone is interested: The problem occurred always when a number exceeded

Re: [PHP] php / mysql / js search result question

2005-12-30 Thread Richard Lynch
On Tue, December 27, 2005 2:03 am, Dave Carrera wrote: I have a very long list of customer names which i know is easy to get from a mysql result using php, no prob there. How long is very long?... But what i would like to do is offer input box and when the user enters a letter, i think this

Re: [PHP] any https / php gotchas ???

2005-12-30 Thread Richard Lynch
On Mon, December 26, 2005 1:42 am, Dave Carrera wrote: Are there any https / php gotchas to take into consideration for an app i am writing that will run within a https environment ??? Thank you in advance for any advice or links regarding this question. HTTPS can be considerably slower than

[PHP] XSLT doesn't work anymore

2005-12-30 Thread Tobi Reif
Hi Can anyone help me with this issue? http://marc.theaimsgroup.com/?l=php-generalm=113456345526736w=2 Tobi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can the URL be controlled for more user-friendly readability?

2005-12-30 Thread Richard Lynch
On Fri, December 23, 2005 10:43 pm, Dave M G wrote: I have a PHP/MySQL web site where there are profiles for performers at a comedy show. Cool! Every entertainment venue should do this. The profiles are accessed by passing a variable to the PHP script via URL, which can then look up

Re: [PHP] any https / php gotchas ???

2005-12-30 Thread Colin Ross
this all depends on the web server (IIS/Apache) being used... On 12/26/05, Curt Zirzow [EMAIL PROTECTED] wrote: On Mon, Dec 26, 2005 at 07:42:48AM +, Dave Carrera wrote: Hi List, Are there any https / php gotchas to take into consideration for an app i am writing that will run

[PHP] Reading body of page being recieved by another php page

2005-12-30 Thread Jamie Kemp
I have data being sent to another php page containing xml styled data. Is it possible to read that data into the script? I have looked into the the globals set but cannot see anything like waht im looking for. Does anyone have any ideas? Thanks Jamie -- PHP General Mailing List

Re: [PHP] Reading body of page being recieved by another php page

2005-12-30 Thread Zareef Ahmed
Hi, How you are sending the data to that script? It must be availble in $_POST, $_GET, or $_REQUEST, depends how you are sending it. Zareef Ahmed - Original Message - From: Jamie Kemp [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, December 30, 2005 8:57 PM Subject:

[PHP] Managing upload files in multiple servers(pawns)

2005-12-30 Thread Srinadh Sannidhanam
Hi All, We have a site in php and two web servers(pawns) to balance the load. There is a page in the site through which user can upload images. When a user uploads an image, the request goes to only one of the two servers. So the image will be uploaded to only one server. How can we copy that

Re: [PHP] how to create a php5 extensions on C/C++, reflecting php Class Api's ?

2005-12-30 Thread Edwin Barrios
Hello Gustavo. ! Thanks for your suggestion, that book it's a interesting material to learn more advanced features of PHP5 and to begin on the C extentions world. The chapter 15 only take a look to extends PHP5 funtions, but there is none section on how to create a PHP5 Class on the C