[PHP] not related but need pointers

2004-11-28 Thread Brent Clements
I was wondering, does anyone have a good source for web browser components that are compatible with php? There are a heck of alot of activex components available that allow you to create some very nice web applications. Are there any similiar that a cross-browser compatible that have a really

Re: [PHP] Passing Parameters

2004-11-28 Thread Burhan Khalid
David Blackburn wrote: I used to pass parameters to my scripts like this shellphp myscript.php dog=maxcat=jess Since I have upgraded to PHP5 I dont seem to have this functionality any more, has anyone else noticed this ? or know of a way to get this working again ? You can pass parameters in the

Re: [PHP] Read PDF files with Php

2004-11-28 Thread Burhan Khalid
Jacob Friis wrote: Do I need PDFlib in order to read PDF files? Is there another way? http://www.fpdf.org http://www.fuckinggoogleit.com :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql query with exclude

2004-11-28 Thread Reinhart Viane
Well That was indeed what I was searching for but. If I read it out loud, I think with this query I only check if the current user is still onlien and not his conversation partner. In the chat table is store the session_id's of both the chatters of the conversation. There is no way to tell if

RE: [PHP] mysql query with exclude

2004-11-28 Thread Reinhart Viane
Little correction: So something like: select * from chat c1, chat_online c2 where UNIX_TIMESTAMP(c2.activity)=$limit_time and c2.session_id = (c2.user2_sessionid if (c1.user1_sessionid = $thisuser)) or (c2.user1_sessionid if(c1.user2_sessionid = $thisuser)); I

[PHP] Help with GET variables which do not work after upgrading

2004-11-28 Thread Eamon Reyn
Hey, I was happily using GET command line variables in my project under php 4.3.4 but when I upgrade to 4.3.9 they no longer work I can make them work by changing back to my prior version of php but would rather use the newer one can anyone explain why this may happen. here is some sample

Re: [PHP] identifying the country of the people who connect to web site / portal

2004-11-28 Thread Skippy
On Sat, 27 Nov 2004 12:35:53 + [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We would like to identify the country of the people who connect to our website / portal using php. The idea is to provide them directly with the homepage in their language. Is that possible? Has anybody ever doen

Re: [PHP] Help with GET variables which do not work after upgrading

2004-11-28 Thread Burhan Khalid
Eamon Reyn wrote: Hey, I was happily using GET command line variables in my project under php 4.3.4 but when I upgrade to 4.3.9 they no longer work I can make them work by changing back to my prior version of php but would rather use the newer one can anyone explain why this may happen. Please

[PHP] Range: bytes=x-y

2004-11-28 Thread Octavian Rasnita
Hi all, Does anyone know why some servers don't return a partial content when I use the HTTP header: Range: bytes=100-200 It should return the content of the page starting from byte 100 until the byte 200, but it still returns the whole page. Does this happen when the page is sent unbuffered?

[PHP] Weird sessions problem

2004-11-28 Thread steve
I have a routine that uses sessions vars to hold the details of the previous page, so I can bounce back to it if necessary. But I'm having some weird problems with it. In the page I have the following (line numbers included to get you an idea of where these things come): 17.

RE: [PHP] Help with GET variables which do not work after upgrading

2004-11-28 Thread Adrian Portsmouth
Hi Eamon, It looks like you need to upgrade your code to use the superglobal arrays. Change print $unitID; to print $_GET['unitID']; and see if that helps. You can find more information regarding superglobals here: http://uk.php.net/en/language.variables.predefined HTH

Re: [PHP] Comment Speed

2004-11-28 Thread Marek Kilimajer
Raditha Dissanayake wrote: Bruno B B Magalhães wrote: Does anyone has a solid benchmark about comments speed.. I mean, too many comments will decrease speed of the PHP scripts... I've tried without success using a class, and also a simple micro-time operation... Well, cause the file is

Re: [PHP] Range: bytes=x-y

2004-11-28 Thread Marek Kilimajer
Octavian Rasnita wrote: Hi all, Does anyone know why some servers don't return a partial content when I use the HTTP header: Range: bytes=100-200 It should return the content of the page starting from byte 100 until the byte 200, but it still returns the whole page. Does this happen when the page

[PHP] Grammar for PHP

2004-11-28 Thread Dominic Fox
Hi, I would like to parse some PHP files to extract some information about them. Is there a formal grammar (EBNF or other) anywhere that I could use as a reference? I'd like to write the parser myself (in Haskell), so existing PHP parsers (in PHP itself, for instance) aren't quite what I'm

Re: [PHP] identifying the country of the people who connect to web site / portal

2004-11-28 Thread Greg Donald
On Sat, 27 Nov 2004 12:35:53 + [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We would like to identify the country of the people who connect to our website / portal using php. The idea is to provide them directly with the homepage in their language. Is that possible? Has anybody ever

Re: [PHP] not related but need pointers

2004-11-28 Thread Marek Kilimajer
Brent Clements wrote: I was wondering, does anyone have a good source for web browser components that are compatible with php? There are a heck of alot of activex components available that allow you to create some very nice web applications. Are there any similiar that a cross-browser compatible

Re: [PHP] Weird sessions problem

2004-11-28 Thread Greg Donald
On Sun, 28 Nov 2004 13:14:54 +0100, steve [EMAIL PROTECTED] wrote: I have a routine that uses sessions vars to hold the details of the previous page, so I can bounce back to it if necessary. But I'm having some weird problems with it. In the page I have the following (line numbers included to

Re: [PHP] Read PDF files with Php

2004-11-28 Thread Marek Kilimajer
Burhan Khalid wrote: Jacob Friis wrote: Do I need PDFlib in order to read PDF files? Is there another way? http://www.fpdf.org http://www.fuckinggoogleit.com :) Please be nice and learn to read ;) OP asked how to *READ* pdf files. AFAIK there is no way with php. pdf2html may be of some help

Re: [PHP] Comment Speed

2004-11-28 Thread Raditha Dissanayake
Marek Kilimajer wrote: Raditha Dissanayake wrote: Bruno B B Magalhães wrote: Does anyone has a solid benchmark about comments speed.. I mean, too many comments will decrease speed of the PHP scripts... Surely there are more important things for you to worry about. the meaning of life, for

Re: [PHP] Weird sessions problem

2004-11-28 Thread steve
Greg Donald wrote: define('THIS_PAGE',$_SERVER['PHP_SELF']); Why would you need to do this? I'd just use $_SERVER['PHP_SELF'] as is. I make frequent use of this value, so putting it in a constant saves typing and makes the page a little clearer. function get_ref_page() { /* Retrieves

[PHP] Re: Overriding static members?

2004-11-28 Thread Matthew Weier O'Phinney
* Francisco M. Marzoa Alonso [EMAIL PROTECTED]: Can I override static members in someway under PHP5? Is the answer is negative, Why not? If they are marked public (or not marked at all as public, private, or protected, in which case the default is public), then yes, you can override them. --

Re: [PHP] Problem with PHP Curl support and Apache

2004-11-28 Thread Matthew Weier O'Phinney
* Raditha Dissanayake [EMAIL PROTECTED]: Luis Lebron wrote: I have a server running RH 8, Apache 1.3.27, PHP 4.3.9. I tried to recompile PHP with Curl support. that's a very old version of red hat that is no longer supported you might want to upgrade at least to RH 9 if not to fedora

Re: [PHP] Grammar for PHP

2004-11-28 Thread Ryan King
On Nov 28, 2004, at 7:28 AM, Dominic Fox wrote: Hi, I would like to parse some PHP files to extract some information about them. Is there a formal grammar (EBNF or other) anywhere that I could use as a reference? I'd like to write the parser myself (in Haskell), so existing PHP parsers (in PHP

[PHP] automatic responder

2004-11-28 Thread Alessandro Rosa
Yes, but perhaps every 5 minutes. You have to solve this too, either cron job if you have it available or it can be trigered by user http requests (not very reliable). Thanks again! Yours e-mail fixed some procedural doubts I have been thinking about such automatic responder. Solution might

[PHP] Newbie question

2004-11-28 Thread Pascal Platteeuw
Hello everyone, Here is a newbie question for you guys who are much more advanced than me :-) I want ot do an automatic redirection in a php page... Is there something equivalent to response.redirect used in ASP? Thanks in advance, Pascal Platteeuw -- PHP General Mailing List

RE: [PHP] Newbie question

2004-11-28 Thread Mike
Look at header() http://us2.php.net/manual/en/function.header.php -M -Original Message- From: Pascal Platteeuw [mailto:[EMAIL PROTECTED] Sent: Sunday, November 28, 2004 11:34 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie question Hello everyone, Here is a newbie question

Re: [PHP] Newbie question

2004-11-28 Thread John Nichel
Pascal Platteeuw wrote: Hello everyone, Here is a newbie question for you guys who are much more advanced than me :-) I want ot do an automatic redirection in a php page... Is there something equivalent to response.redirect used in ASP? Thanks in advance, Pascal Platteeuw http://us4.php.net/header

Re: [PHP] automatic responder

2004-11-28 Thread Ryan King
On Nov 28, 2004, at 10:38 AM, Alessandro Rosa wrote: Yes, but perhaps every 5 minutes. You have to solve this too, either cron job if you have it available or it can be trigered by user http requests (not very reliable). Thanks again! Yours e-mail fixed some procedural doubts I have been thinking

[PHP] automatic responder

2004-11-28 Thread Alessandro Rosa
This seems like a very weak re-implementation of cron. Seriously, this problem has been solved. -ryan Then, what do you exactly mean for cron job? Alessandro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] buffer

2004-11-28 Thread Brad Ciszewski
is there a code you can put at the top of the your php files so that the imgs etc. load as the are put on to your computer, and it doesnt wait for the whole site to be downloaded until it is loaded to the user? *turning off the buffer basicly* Brad Ciszewski www.BradTechnologies.com 99.9% Uptime

[PHP] Re: Newbie question

2004-11-28 Thread Brad Ciszewski
try, ?PHP header(Location: Page_here); ? www.BradTechnologies.com 99.9% Uptime 24/7 FREE Support Plans starting at $3.50 per month www.BradTechnologies.com Pascal Platteeuw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everyone, Here is a newbie question for you guys who

Re: [PHP] automatic responder

2004-11-28 Thread John Nichel
Please set your mailer to *NOT* ask for reply reciepts when mailing to a mailing list. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mass MySQL INSERT

2004-11-28 Thread Travis Conway
I am fairly new to the concept of working wity mysql and php. I am looping thru a text file full of county names and attempting to add these to a database. Now the table exists and if I enter the SQL statement manually against the database it works. The user also has read and write

Re: [PHP] Weird sessions problem

2004-11-28 Thread Jason Wong
On Sunday 28 November 2004 22:46, steve wrote: I tried printing out the values before and after each of those lines. After line 53, $ref_page is an array containing precisely the values I expect, so the function is working. After line 54, the session var has been reset, as expected, to match

Re: [PHP] Mass MySQL INSERT

2004-11-28 Thread Jason Wong
On Monday 29 November 2004 03:54, Travis Conway wrote: I am fairly new to the concept of working wity mysql and php. Questions regarding the use of databases with PHP should be posted to the php-db list. I am looping thru a text file full of county names and attempting to add these to a

Re: [PHP] buffer

2004-11-28 Thread Greg Donald
On Sun, 28 Nov 2004 12:48:57 -0600, Brad Ciszewski [EMAIL PROTECTED] wrote: is there a code you can put at the top of the your php files so that the imgs etc. load as the are put on to your computer, and it doesnt wait for the whole site to be downloaded until it is loaded to the user? *turning

Re: [PHP] Getting static member for a class which name is stored

2004-11-28 Thread Greg Beaver
Jake Press wrote: Simas Toleikis wrote: Jake Press wrote: Hi Francisco, Your not alone, a number of other users have enountered this bug. string get_class ( object obj ) Its not a bug... You are getting class name as a string for output purposes etc.. Doing something like TestClass::some_static

[PHP] Re: Overriding static members?

2004-11-28 Thread Greg Beaver
Matthew Weier O'Phinney wrote: * Francisco M. Marzoa Alonso [EMAIL PROTECTED]: Can I override static members in someway under PHP5? Is the answer is negative, Why not? If they are marked public (or not marked at all as public, private, or protected, in which case the default is public), then

[PHP] sql insert into 2 tables

2004-11-28 Thread Dustin Krysak
Hi there - I was wondering if anyone could point me in the right direction to be able to add data to two different tables (I am using mysql and php V4). I understand joins, etc for the query of the data, however adding the data - still getting my head wrapped around it (multiple tables).

Re: [PHP] sql insert into 2 tables

2004-11-28 Thread Larry E . Ullman
Hi there - I was wondering if anyone could point me in the right direction to be able to add data to two different tables (I am using mysql and php V4). I understand joins, etc for the query of the data, however adding the data - still getting my head wrapped around it (multiple tables).

Re: [PHP] Weird sessions problem

2004-11-28 Thread steve
Jason Wong wrote: On Sunday 28 November 2004 22:46, steve wrote: I tried printing out the values before and after each of those lines. After line 53, $ref_page is an array containing precisely the values I expect, so the function is working. After line 54, the session var has been reset,

Re: [PHP] Weird sessions problem

2004-11-28 Thread Andre Dubuc
On Sunday 28 November 2004 05:46 pm, steve wrote: Jason Wong wrote: On Sunday 28 November 2004 22:46, steve wrote: I tried printing out the values before and after each of those lines. After line 53, $ref_page is an array containing precisely the values I expect, so the function is

[PHP] php 4 to 5

2004-11-28 Thread Travis Conway
I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers? Trav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: php 4 to 5

2004-11-28 Thread Greg Beaver
Travis Conway wrote: I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers? Depends on what you wish to do with php. PHP 5 has far better support

Re: [PHP] Getting static member for a class which name is stored

2004-11-28 Thread Jake Press
Greg Beaver wrote: How about: ?php class Myclass { public static $myvar = easy enough; } echo Myclass::$myvar; ? The only problem is if you want to be able to generically access a static variable from any class that has it, like $Myclass::$myvar. Greg Hi Greg, Yup, Exactly That is the

[PHP] exclude - mysql query

2004-11-28 Thread Brad Ciszewski
i have several tables with data, and they all have a server column. there are a few tables which i need to exclude a particular server from that table. i am currently running an array to extract the data, and was wondering if i could either use PHP code or a mysql-query exclude function or

Re: [PHP] Re: php 4 to 5

2004-11-28 Thread Travis Conway
Well, I look at other people's code sice I am new to the whole language. I have only been working with it for about a month and half now. I do have prior experience with languages such as ASP (both JScript and VBscript based). I am probably not going to upgrade now since my stuff just

[PHP] Help with DB.php in PHP5

2004-11-28 Thread [EMAIL PROTECTED]
I upgraded to PHP 5 and now I am having some problems with DB.php. 2 problems: 1. I get this notice Notice: Undefined property: DB_mysql::$disconnect 2: the $db-query no longer works. I have gone as far as to place this line at the beginning of the file: set_include_path(.:/usr/local/lib/php);

Re: [PHP] php 4 to 5

2004-11-28 Thread Curt Zirzow
* Thus wrote Travis Conway: I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers? The active development on php4 is strictly to fix bugs or

Re: [PHP] php 4 to 5

2004-11-28 Thread Michael Leung
Hi all, I am developing a new application in PHP 5. OO design is so great! If you are developing a new application, I think you can have a look on PHP 5. yours, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] and statement

2004-11-28 Thread Brad Ciszewski
is there an 'and' statement for mysql, when you are doing multiple wheres? www.BradTechnologies.com 99.9% Uptime 24/7 FREE Support Plans starting at $3.50 per month www.BradTechnologies.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: and statement

2004-11-28 Thread Brad Ciszewski
err i mean ... an 'or' statement sry www.BradTechnologies.com 99.9% Uptime 24/7 FREE Support Plans starting at $3.50 per month www.BradTechnologies.com Brad Ciszewski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there an 'and' statement for mysql, when you are doing multiple

Re: [PHP] Re: and statement

2004-11-28 Thread Larry E . Ullman
err i mean ... an 'or' statement sry is there an 'and' statement for mysql, when you are doing multiple wheres? MySQL allows SQL statements that support both AND and OR. With OR, you can often use IN instead. SELECT columns FROM tablename WHERE (condition1) AND (condition2)... All of this is

Re: [PHP] Re: and statement

2004-11-28 Thread Robert Cummings
On Sun, 2004-11-28 at 21:56, Brad Ciszewski wrote: err i mean ... an 'or' statement sry Two comments: 1. This is the PHP General list. See the PHP part... that means it's NOT the MYSQL General list. 2. For such a trivial question you could have spent a whole 5 seconds executing the query

[PHP] similar function like getimagesize for Quicktime?

2004-11-28 Thread Dustin Krysak
Hi there - I was wondering if there was some kind of PHP function to determine hte pixel size of a quicktime movie. Something like what GetImageSize() is to images, but for quicktime. thanks! d -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exclude - mysql query

2004-11-28 Thread David Robley
On Mon, 29 Nov 2004 10:58, Brad Ciszewski wrote: i have several tables with data, and they all have a server column. there are a few tables which i need to exclude a particular server from that table. i am currently running an array to extract the data, and was wondering if i could either use

Re: [PHP] and statement

2004-11-28 Thread John Nichel
Brad Ciszewski wrote: is there an 'and' statement for mysql, when you are doing multiple wheres? Is there a PHP question in your MySQL question? -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] newbie web services

2004-11-28 Thread Andras Kende
Hello, I want to create a simple web service. So far tried NuSoap but don't know how to modify its default xml envelope.. I could create REST for response but not sure about how to process the request, maybe with simplexml ? RAW DATA: Request: XML ID5/ID /XML Response: XML NAMEJones/NAME /XML

Re: [PHP] Weird sessions problem

2004-11-28 Thread Jason Wong
On Monday 29 November 2004 06:46, steve wrote: No to both. When I arrive at the new page, the sessions vars (as expected) contain the values set by the previous page. $ref_page is not set. The values are transferred to $ref_page by the function. That works as planned. I then reset the value

[PHP] Re: Help with DB.php in PHP5

2004-11-28 Thread ShenKong
[EMAIL PROTECTED] wrote: I upgraded to PHP 5 and now I am having some problems with DB.php. 2 problems: 1. I get this notice Notice: Undefined property: DB_mysql::$disconnect 2: the $db-query no longer works. I have gone as far as to place this line at the beginning of the file:

[PHP] Re: php 4 to 5

2004-11-28 Thread Shen Kong
Travis Conway wrote: I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers? Trav here can help you . http://www.php.net/manual/en/history.php

Re: [PHP] Re: php 4 to 5

2004-11-28 Thread Lester Caine
Travis Conway wrote: Well, I look at other people's code sice I am new to the whole language. I have only been working with it for about a month and half now. I do have prior experience with languages such as ASP (both JScript and VBscript based). I am probably not going to upgrade now