[PHP] Re: dynamic class loaders

2005-04-20 Thread Markus Fischer
[EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which is what i am doing too slow for each

[PHP] Re: PHP script problem (with MySQL)

2005-04-20 Thread Satyam
May I sugest that you assemble the SQL statement in a different way? With such a big conditional, it will slow down the Sql server. if ($tit != '') $condition .= and tit1 like '%$tit%'; and so on for each search field ... $sql = Select *, substring(loc1, 1, 3) as loc1 from openart_table

Re: [PHP] Thanks but problem again! Re: [PHP] PHP script problem (with MySQL)

2005-04-20 Thread Petar Nedyalkov
On Wednesday 20 April 2005 06:07, Sugimoto wrote: Thank you, Richard, I simply change this part (select * from openart_table) into (select substring(loc1, 1, 3) as THREE_LETTER_CODE, * from openart_table) but Ive got this error, whats wrong with it? Warning:

Re: [PHP] dynamic class loaders

2005-04-20 Thread Petar Nedyalkov
On Wednesday 20 April 2005 06:28, [EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which

[PHP] Re: Thanks but problem again! Re: [PHP] PHP script problem (with MySQL)

2005-04-20 Thread Satyam
I think that in your database it is : substring(loc, 1, 3) as loc1 Anyway, the error is not where you are getting the message, the query failed and this you don't have a valid resource to ask the number of rows or do anything else. You should add an 'or die(message: . mysql_error()) to your

Re: [PHP] Re: dynamic class loaders

2005-04-20 Thread Dan Rossi
Thanks this seemed to work except say you had a class Packagename_Classname its trying to load the file like that Packagename_Classname.php On 20/04/2005, at 4:23 PM, Markus Fischer wrote: [EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to

[PHP] One more time (Duft Punk) about hyperlink

2005-04-20 Thread Sugimoto
Thank you very much, I do appreciate your help. Ur script doens work, but, curiously, it works when I changed a bit... select left(loc1,3) as locx, openart_id, tit1, pub1, id1, ref1 from openart_table If possible, can I ask one more thing? This part is the problem A

RE: [PHP] Why is the default value for arg_separator.output ''?

2005-04-20 Thread David Dorward
Jared Williams wrote: Given this, why is the default value of arg_separator.output '' and not 'amp;'? URLs don't have amp; in them. The amp; is specific escaping for _only_ XML. No, XML and SGML which includes XHTML and HTML. How often are PHP sessions used to generate output for languages

Re: [PHP] Encoding help!

2005-04-20 Thread Petar Nedyalkov
On Wednesday 20 April 2005 03:05, Brian Dunning wrote: I know this is a common question but I have RTFM and STFW until I'm blue in the face - I really need some help here. :) I've got some forms into which users are going to enter text that frequently contains funny characters (pilcrows,

Re: [PHP] Why is the default value for arg_separator.output ''?

2005-04-20 Thread David Dorward
Richard Lynch wrote: But if it's going to break a billion scripts, it's probably not gonna happen to follow a standard that isn't the only game in town. XHTML is not ubiquitous. [shrug] Representing characters as amp; has been a requirement of SGML and XML based languages, HTML included,

Re: [PHP] Re: dynamic class loaders

2005-04-20 Thread Markus Fischer
Dan Rossi wrote: Thanks this seemed to work except say you had a class Packagename_Classname its trying to load the file like that Packagename_Classname.php Well, you can put whatever logic you need into the autoload function. It's up to you. HTH -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] One more time (Duft Punk) about hyperlink

2005-04-20 Thread Mark Rees
Why not try selecting both the short and the full values of loc1 from the database? Then you can display them both in the html output. Select loc1, left(loc1,3) as locx, etc Have I missed your point here? Mark -Original Message- From: Sugimoto [mailto:[EMAIL PROTECTED] Sent: 20

RE: [PHP] set cookie function problem

2005-04-20 Thread Mark Rees
You might consider using JavaScript to set the cookie, as that will execute on the client and therefore use the client's time to make any calculations regarding expiry. This may or may not suit your purpose. Mark -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 20

[PHP]Gunzip problem

2005-04-20 Thread Oskar
Hello, I have txt file text.txt that contains: line1:one line2:two line3:three line4: Line 4 contains empty string. If I use f*() functions to read from the file: $handle=fopen(text.txt,r); while (!feof($handle)) echo(-.chop(fgets($handle)).-BR);

[PHP] Classe Variable

2005-04-20 Thread marc serra
Hi, i got a problem to write automaticaly varibles in classes. i got a simple object name test like this classes Test{ public $id; public $text; } i want to affect my value to my variable like this $test = new Test $champ = id; $valeur_champ = 4; $test-$champ = $valeur_champ; my

Re: [PHP] explode a string

2005-04-20 Thread Jochem Maas
Richard Lynch wrote: On Tue, April 19, 2005 7:03 am, Jochem Maas said: The 'other' guy mentioned that while() is faster than foreach, is this true? Don't know ; Don't care. You should never loop through so many things in PHP that it matters in the first place :-) I read a few days ago somewhere

Re: [PHP] Classe Variable

2005-04-20 Thread Petar Nedyalkov
On Wednesday 20 April 2005 13:29, marc serra wrote: Hi, i got a problem to write automaticaly varibles in classes. i got a simple object name test like this classes Test{ public $id; public $text; } i want to affect my value to my variable like this $test = new Test

[PHP] delete session cookie?

2005-04-20 Thread William Stokes
Hello, Is it possible to delete a session cookie from browser? If so how? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] explode a string

2005-04-20 Thread Rory Browne
Sorry jocham, for you getting this twice. I'd assume foreach is recommended because it lends to more readable code. More readable code, is generally considered better code. Personally I'd disagree and use while( list() = each() ), because it doesn't create a copy of the array in memory,

Re: [PHP] delete session cookie?

2005-04-20 Thread Petar Nedyalkov
On Wednesday 20 April 2005 14:51, William Stokes wrote: Hello, Is it possible to delete a session cookie from browser? If so how? Just unset it. Thanks -Will -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP

Re: [PHP] delete session cookie?

2005-04-20 Thread Burhan Khalid
William Stokes wrote: Hello, Is it possible to delete a session cookie from browser? If so how? http://www.php.net/manual/en/function.session-destroy.php See the example. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables [LONG]

2005-04-20 Thread Leif Gregory
Hello Jay, Tuesday, April 19, 2005, 1:28:25 PM, you wrote: J Normalization has no effect on sort order where any DB is concerned. J Sort order is determined in the sort clause in the query. So if you want J to sort by location and you are using MySQL your ORDER BY clause should J be

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables [LONG]

2005-04-20 Thread Chris Boget
The actual SELECT statement is as follows: $sqlCourses=SELECT * FROM . $tbl_courses . WHERE courseDate ' . date(Y-m-d) . ' ORDER BY . $orderBy . ASC; the $orderBy variable is set via $_GET['orderBy'] which is sent by the table headers as below: I'm curious why you aren't joining the

Re: [PHP] explode a string

2005-04-20 Thread Saswat Praharaj
explode by , $output1 = explode(,,$string); use a loop and explode array $output1 by : Hope this helps. Saswat On 4/18/05, Sebastian [EMAIL PROTECTED] wrote: $string = '4:gaming,5:hardware,3:software,8:security'; what is the best way to explode then loop this string after its taken

RE: [PHP] Sorting table columns dynamically on normalized MySQL tables [LONG]

2005-04-20 Thread Jay Blanchard
[snip] SELECT * FROM Course ORDER BY locationID ASC Now the ORDER BY can be any one of five things based on the variable passed by the hyperlink for the column they clicked on (location, course, date, category, and instructor [/snip] If you had a JOIN to the location table you could order by the

[PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread Saswat Praharaj
Hello , Need to do handle a file upload done via http POST. I can read the content length and from POST and get the contents. But, how do I get the exact file ?? Eg. suppose for uploading a .doc file I could see that it sends the font type and other parameters also.. I am not sure how does

RE: [PHP] Sorting table columns dynamically on normalized MySQL tables [LONG]

2005-04-20 Thread Jay Blanchard
[snip] Sorry that this has degenerated into a MySQL question rather than PHP. I was originally looking for how people handled it in PHP. --- Actually it didn't degenerate, it was a SQL question all along. Unless you had a desire to build sortable arrays in PHP this type of sort should always be

RE: [PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread Jay Blanchard
[snip] Need to do handle a file upload done via http POST. I can read the content length and from POST and get the contents. But, how do I get the exact file ?? Eg. suppose for uploading a .doc file I could see that it sends the font type and other parameters also.. I am not sure how does it

Re: [PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread Prathaban Mookiah
Did you try using the $_FILES superglobal? -- Original Message --- From: Saswat Praharaj [EMAIL PROTECTED] To: Sent: Wed, 20 Apr 2005 18:26:14 +0530 Subject: [PHP] handling file upload (OT not exactly PHP) Hello , Need to do handle a file upload done via http POST. I

[PHP] Cannot load mysqli extensions

2005-04-20 Thread chistian
Hi, I've installed PhpMyAdmin 2.6.2, PHP 5.0.4 and Mysql 4.1.11 and PHP is working fine but when I try to start PhpAdmin I get this message: PHP cannot load mysqli extensions, please controll your PHP configuration. In Paths and directories I wrote: extensions_dir=e:\php\ext\ and in Dynamics

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Kim, Tuesday, April 19, 2005, 6:44:58 PM, you wrote: K If you are still looking for tips and want to get K complicated/fancy, I have seen columns used called sort_order more K than a few times. This should not be too hard to maintain for K things like a few buildings, etc., where the lookup

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Richard, Tuesday, April 19, 2005, 9:12:14 PM, you wrote: R Just build a JOIN query and do one query. Doing a join on four tables is ok? (serious question, not being facetious). R No, it is *NOT* sorting on the ID number. I can definitely say it is sorting on locationID, categoryID, or

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Leif Gregory
Hello Chris, Tuesday, April 19, 2005, 1:23:53 PM, you wrote: C Firstly, what DB are you using? MySQL. C SELECT C course.name, C location.name, C instructor.name C FROM C course C INNER JOIN location ON location.id = course.locationID C INNER JOIN instructor ON instructor.id =

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Chris Boget
R Just build a JOIN query and do one query. Doing a join on four tables is ok? (serious question, not being facetious). Yes. I've built a query before (for reporting purposes) that join 15 tables... Just make sure the tables are indexed properly. thnx, Chris -- PHP General Mailing List

RE: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-20 Thread Jay Blanchard
[snip] Doing a join on four tables is ok? (serious question, not being facetious). [/snip] Yes, it is OK. Make sure that you have the tables properly indexed and you'll have no problems. [snip] R By definition, in SQL, if you don't specify a sort order (or in R this case a second order) then the

RE: [PHP] Last visitors

2005-04-20 Thread Tom Crimmins
On Tuesday, April 19, 2005 18:46, Ryan A wrote: Hey, Thanks for replying, I tried using the test example of Petar Nedyalkov, but when i try to create the following: CREATE TABLE `profile_log` ( `profile_id` int(10) default NULL, `user_id` int(10) default NULL, `last_login`

Re: [PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread John Nichel
Saswat Praharaj wrote: Hello , Need to do handle a file upload done via http POST. I can read the content length and from POST and get the contents. But, how do I get the exact file ?? Eg. suppose for uploading a .doc file I could see that it sends the font type and other parameters also.. I

[PHP] Replacement Question.

2005-04-20 Thread Bob Palma
I have a database field that I need to read and do some conversion on. Here is what the raw data from the database looks like: -- 1084751309jpenaDisney Vignette Fleximon disk utilization alert C:\ at 85%1084799703bpalmafixed.1084799713bpalmaclosed -- After conversion, it should look

Re: [PHP] Replacement Question.

2005-04-20 Thread Duncan Hill
On Wednesday 20 April 2005 15:22, Bob Palma typed: I have a database field that I need to read and do some conversion on. Here is what the raw data from the database looks like: -- 1084751309jpenaDisney Vignette Fleximon disk utilization alert C:\ at

RE: [PHP] Last visitors

2005-04-20 Thread Ryan A
clip 1 Thanks for replying, I tried using the test example of Petar Nedyalkov, but when i try to create the following: CREATE TABLE `profile_log` ( `profile_id` int(10) default NULL, `user_id` int(10) default NULL, `last_login` timestamp NOT NULL ) ENGINE=MyISAM

Re: [PHP] Replacement Question.

2005-04-20 Thread Bob Palma
Wow! Thanks.. That works great. Just one small hitch though. After it prints all of the data properly, it adds one more '$date' on the end which gets printed as '12/31/69 7:00:pm'. Is there a way to do all groups - 1 ? Bob Palma [EMAIL PROTECTED] Duncan Hill wrote: On Wednesday 20 April

Re: [PHP] Replacement Question.

2005-04-20 Thread Duncan Hill
On Wednesday 20 April 2005 16:01, Bob Palma typed: Wow! Thanks.. That works great. Just one small hitch though. After it prints all of the data properly, it adds one more '$date' on the end which gets printed as '12/31/69 7:00:pm'. Is there a way to do all groups - 1 ? No reason for it to

Re: [PHP] Replacement Question.

2005-04-20 Thread Bob Palma
Thanks. I took a look, and you were right. It was creating another entry in the array at the end, so I used an if statement checking the value of [1] and [2] in $array_of_fields. Thanks for all the great help Bob Palma [EMAIL PROTECTED] Duncan Hill wrote: On Wednesday 20 April 2005 16:01,

RE: [PHP] Last visitors

2005-04-20 Thread Tom Crimmins
On Wednesday, April 20, 2005 09:57, Ryan A wrote: clip 1 Thanks for replying, I tried using the test example of Petar Nedyalkov, but when i try to create the following: CREATE TABLE `profile_log` ( `profile_id` int(10) default NULL, `user_id` int(10) default NULL, `last_login`

RE: [PHP] Last visitors

2005-04-20 Thread Ryan A
Theres something wrong coz its not working as expected... I followed instructions and created a table like this: CREATE TABLE test_last_visitors ( profile_id int(10) default NULL, user_id int(10) default NULL, ttimestamp timestamp(14) NOT NULL) TYPE=MyISAM; then I ran this 5 times:

Re: [PHP] Last visitors

2005-04-20 Thread John Nichel
Ryan A wrote: snip then from my php script (test_last_visitors.php) I ran this test SQL: $SQL = UPDATE test_last_visitors SET profile_id=.$profile_id., user_id=user_id+1, ttimestamp=now() WHERE profile_id=1 ORDER BY ttimestamp ASC LIMIT 1; Why are you setting the profile_id equal to a value when

Re: [PHP] Last visitors

2005-04-20 Thread Ryan A
Hey, Why are you setting the profile_id equal to a value when you also have that in your WHERE clause? I may have missed something here, but I though the purpose of this was to track the last ten visitors to a certain page, and if this is the case, why increment the user_id when updating

Re: [PHP] Images - Converting TIFF Format?

2005-04-20 Thread The Disguised Jedi
I searched through my server's system (I'm not running it, it's my ISP) and finally found that TIFF isn't compiled into GD. I can get them to do it, but I need to know what functions to use! Are they under a different file type? I'm pretty sure I searched through thoroughly for the function.

[PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Evert | Rooftop Solutions
Hi, I have this piece of code: class test1 { var $data = 'hi', $node = false; function test1() { $this-node = new test2($this); } } class test2 { var $data = 'yoyo', $root = false;

Re: [PHP] Classe Variable

2005-04-20 Thread Jochem Maas
Petar Nedyalkov wrote: On Wednesday 20 April 2005 13:29, marc serra wrote: Hi, i got a problem to write automaticaly varibles in classes. i got a simple object name test like this classes Test{ public $id; public $text; } i want to affect my value to my variable like this $test = new

RE: [PHP] Re: post redirect

2005-04-20 Thread Olivier GOEGEL
hello, I created little script in PHP 5 in which I entered the following line form name=transfert method=post action=wogl_transfert.php input name=rep_final type=hidden value=?=$rep_final? input name=rep_source type=hidden value=?=$rep_source? input type=submit value=TRANSFERT the hidden input

Re: [PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Jochem Maas
Evert|Rooftop Solutions wrote: Hi, I have this piece of code: class test1 { var $data = 'hi', $node = false; function test1() { $this-node = new test2($this); } } class test2 { var $data = 'yoyo',

[PHP] To mysqli or not to mysqli

2005-04-20 Thread list_php_general
Looks like mysqli is the new method of talking to mysql? Should I be moving away from the legacy mysql_* functions? I'm running php5 and mysql 4.1.11 on IIS5 and Apache 2. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding help!

2005-04-20 Thread Jochem Maas
Petar Nedyalkov wrote: On Wednesday 20 April 2005 03:05, Brian Dunning wrote: I know this is a common question but I have RTFM and STFW until I'm blue in the face - I really need some help here. :) I've got some forms into which users are going to enter text that frequently contains funny

Re: [PHP] Why is the default value for arg_separator.output ''?

2005-04-20 Thread Jochem Maas
David Dorward wrote: Richard Lynch wrote: But if it's going to break a billion scripts, it's probably not gonna happen to follow a standard that isn't the only game in town. XHTML is not ubiquitous. [shrug] Representing characters as amp; has been a requirement of SGML and XML based languages,

Re: [PHP] parse error, unexpected T_CLASS

2005-04-20 Thread Jochem Maas
Dasmeet Singh wrote: ... Get some decent editor with syntax highlighting ditto. :-) Thanks.. That was really silly.. BTW.. pls suggest some good editor.. I use notepad currently.. OFFS. http://www.php-editors.com/ http://www.google.com/search?hl=enlr=q=good+editor+for+phpbtnG=Search choose one. --

Re: [PHP] To mysqli or not to mysqli

2005-04-20 Thread Greg Donald
On 4/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Looks like mysqli is the new method of talking to mysql? Should I be moving away from the legacy mysql_* functions? I'm running php5 and mysql 4.1.11 on IIS5 and Apache 2. Finding clients who even run 4.0.x is rare for me, most still

Re: [PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Evert | Rooftop Solutions
Jochem Maas wrote: also I believe print_r() and var_dump() have a few odditities regarding display of recursion with regard to objects... internals mailinglist archive might tell you more on that. I think I have the answer, when I pass a var to print_r it isn't passed by reference, so there

Re: [PHP] Re: post redirect

2005-04-20 Thread John Nichel
Please don't hijack threads. Olivier GOEGEL wrote: hello, I created little script in PHP 5 in which I entered the following line form name=transfert method=post action=wogl_transfert.php input name=rep_final type=hidden value=?=$rep_final? input name=rep_source type=hidden value=?=$rep_source?

[PHP] 32 bit PNG (256 color alpha channel), TGA images, etc

2005-04-20 Thread Andrew D. Keyser
I find it not quite right that imagecolorallocatealpha is limited to 128 levels right now (0-127) ... the png format can support 256 with true 32bit images. I am concerned about this because I am using php to make an application that loads a nonstandard image format (MM2/MC TEX) and converts it

RE: [PHP] To mysqli or not to mysqli

2005-04-20 Thread Jared Williams
Looks like mysqli is the new method of talking to mysql? Should I be moving away from the legacy mysql_* functions? I'm running php5 and mysql 4.1.11 on IIS5 and Apache 2. Why not use PDO :) Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Robustly using XSLT across different versions of PHP?

2005-04-20 Thread D. D. Brierton
Has anyone written anything, perhaps in PEAR or elsewhere, that allows for some portability of XSLT use across PHP 4 with Sablotron, PHP 4 with domxml, and PHP 5? I'm doing some work on a project at the moment, and the server it will be hosted on initially has PHP 4 compiled with Sablotron

Re: [PHP] To mysqli or not to mysqli

2005-04-20 Thread Greg Donald
On 4/20/05, Jared Williams [EMAIL PROTECTED] wrote: Why not use PDO :) Pacific Decadal Oscillation? I'm stumped. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] To mysqli or not to mysqli

2005-04-20 Thread Jared Williams
On 4/20/05, Jared Williams [EMAIL PROTECTED] wrote: Why not use PDO :) Pacific Decadal Oscillation? I'm stumped. PHP Data Objects http://www.php.net/pdo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 32 bit PNG (256 color alpha channel), TGA images, etc

2005-04-20 Thread Marek Kilimajer
Andrew D. Keyser wrote: I find it not quite right that imagecolorallocatealpha is limited to 128 levels right now (0-127) ... the png format can support 256 with true 32bit images. I am concerned about this because I am using php to make an application that loads a nonstandard image format

Re: [PHP] To mysqli or not to mysqli

2005-04-20 Thread Greg Donald
On 4/20/05, Jared Williams [EMAIL PROTECTED] wrote: PHP Data Objects http://www.php.net/pdo Sweet.. DBI for PHP. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] converting word document to plain text file

2005-04-20 Thread Cima
hi, i need to store some files that contain text in my database. im planing to upload the file using a php script. what id like is to be able to take the info(text writen in the file) from the file and store it on a plain text file and then store it since i plan to consult the info in these plain

[PHP] Abstract Legacy question

2005-04-20 Thread Andy Pieters
Hi group This is kinda hard to say in words, so I'll give a little example Class A function x calls function guid function y function z function guid Class B extends A function y calls function x function guid So what I'm wondering is when class B calls its function Y, it will

[PHP] Re: Abstract Legacy question

2005-04-20 Thread Matthew Weier O'Phinney
* Andy Pieters [EMAIL PROTECTED]: This is kinda hard to say in words, so I'll give a little example Class A function x calls function guid function y function z function guid Class B extends A function y calls function x function guid So what I'm wondering is when

Re: [PHP] Why is the default value for arg_separator.output ''?

2005-04-20 Thread David Dorward
Jochem Maas wrote: Representing characters as amp; has been a requirement of SGML and XML based languages you might be able to put this func to use somewhere: Not really, since my concern is with URLs modified by the session handling code and that can be fixed by changing the

Re: [PHP] Re: Abstract Legacy question [SOLVED]

2005-04-20 Thread Andy Pieters
On Wednesday 20 April 2005 23:36, Matthew Weier O'Phinney wrote: Since Class B overrides method guid, function x will call the method from Class B. Thank you. Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK- Version: 3.1 GAT/O/E$ d-(---)+ s:(+): a--(-)?

Re: [PHP] converting word document to plain text file

2005-04-20 Thread Andy Pieters
On Wednesday 20 April 2005 23:14, Cima wrote: them. is there a way to these types of files in php or some other way? The easiest way is to tell your users you expect file format to be text only. You can test for mime type by using built-in php functions (and should do so!). The hard way

Re[2]: [PHP] Images - Converting TIFF Format?

2005-04-20 Thread Tom Rogers
Hi, Thursday, April 21, 2005, 3:15:31 AM, you wrote: TDJ I searched through my server's system (I'm not running it, it's my ISP) and TDJ finally found that TIFF isn't compiled into GD. I can get them to do it, but TDJ I need to know what functions to use! Are they under a different file type?

RE: [PHP] Abstract Legacy question

2005-04-20 Thread Rob Agar
Andy Pieters wrote: This is kinda hard to say in words, so I'll give a little example Class A function x calls function guid function y function z function guid Class B extends A function y calls function x function guid So what I'm wondering is when class B

Re: [PHP] script

2005-04-20 Thread tommy
Thank you both, this was indeed helpful. Now for one more question... I'd like to get my code to calculate the time between the current date (when the page is loaded by the visitor) and the very next Tuesday at 11pm. I suspect I can do this with date(w) but I can't quite figure out how to make

Re: [PHP] script

2005-04-20 Thread Philip Hallstrom
I'd like to get my code to calculate the time between the current date (when the page is loaded by the visitor) and the very next Tuesday at 11pm. I suspect I can do this with date(w) but I can't quite figure out how to make Tuesday the beginning or end of the week in order to accomplish

Re: [PHP] parse error, unexpected T_CLASS

2005-04-20 Thread Kim Briggs
On 4/20/05, Jochem Maas [EMAIL PROTECTED] wrote: Dasmeet Singh wrote: BTW.. pls suggest some good editor.. I use notepad currently.. http://www.php-editors.com/ http://www.google.com/search?hl=enlr=q=good+editor+for+phpbtnG=Search choose one. This can take a long time, I know. My

[PHP] Regular Expression to replace pseudo-HTML?

2005-04-20 Thread Murray @ PlanetThoughtful
Hi All, I'm hoping someone can help me figure out a regex that will replace pseudo-HTML codes in a string with desired HTML equivalents. In particular, I'm trying to implement a message quoting facility, such as when you click on the 'quote' button in phpBB. An example of a source string