[PHP] cursor to text field

2005-03-15 Thread William Stokes
Hello, This might be more of a HTML question but I think that someone here can help me. How can I put, automatically, the cursor to a spesific text field in web form. So that the user doesn't have to select the first field with mouse. Thanks -Will -- PHP General Mailing List

Re: [PHP] cursor to text field

2005-03-15 Thread Jesper Goos
Try something like this... body onload=document.loginForm.username.focus();document.loginForm.username.select(); form name=loginForm input type=text name=username /form /body Jesper William Stokes wrote: Hello, This might be more of a HTML question but I think that someone here can help me.

[PHP] filesize ????

2005-03-15 Thread aldo . mailinglistphp
I need to calculate the size of an html email with embedded images. Filesize doesn't work to this purpose. How could I do without parsing the html file? Chau Aldo __ Tiscali Adsl 3 Mega Flat con 3 MESI GRATIS! Con Tiscali Adsl 3

[PHP] Referencing different static members in inheriting classes

2005-03-15 Thread André Pletschette
Hi, In the static function toHtml_table_heading I want to use a static array $fields, which has different content for each implementation (sub-class) My first trial was to use self::$fields[] to access this array, but this only sees the member of DBTable (the class where it is been used, not

[PHP] croping an image with GD and putting it into html code

2005-03-15 Thread Frank Arensmeier
Hi! I ran into a little problem today and I would like to get some help. I create a thumbnail image with GD from a jpeg image stored on my web-server with this function: function thumb($img_scr) { $thumbWidth = 100; $thumbHeight = 100; $scourceImg = @imagecreatefromjpeg($img_scr); $thumbImg

Re: [PHP] filesize ????

2005-03-15 Thread Rasmus Lerdorf
[EMAIL PROTECTED] wrote: I need to calculate the size of an html email with embedded images. Filesize doesn't work to this purpose. How could I do without parsing the html file? If the images are embedded, by which I suppose you mean attached, then filesize() should be fine. If you mean they are

[PHP] Why is the behavior between Apache2 and Tomcat so different?

2005-03-15 Thread david joffrin
Hi, I have the same piece of PHP script running on either Apache2 or Tomcat. On Tomcat, I have the folllowing errors: 1- Cannot modify header information - headers already sent OR 2- Undefined index: error in ... For one, I think this is because I am using the header PHP function. For two, I

Re: [PHP] cursor to text field

2005-03-15 Thread William Stokes
Thanks Jesper. That did it! -Will Jesper Goos [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] Try something like this... body onload=document.loginForm.username.focus();document.loginForm.username.select(); form name=loginForm input type=text name=username /form /body Jesper

RE: [PHP] php compiler

2005-03-15 Thread Jay Blanchard
[snip] Sooo.. I'm assuming there's no stable project for compiling php code to native binary machine code huh? (I've done some searching) Even anything commercial? (I didn't care for Zend's optimizer so much.. still has *RUN*time configuration) [/snip] http://www.priadoblender.com ? -- PHP

RE: [PHP] php compiler

2005-03-15 Thread Zac Barton
You could try this Jay (I havent used it before, has anybody?) http://www.roadsend.com/home/index.php?SMC=1 Zac -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 15 March 2005 11:21 To: Davy Durham; php-general@lists.php.net Subject: RE: [PHP] php compiler [snip]

[PHP] Is their something like $classname::$tablename ?

2005-03-15 Thread André Pletschette
Hi, I've got one function getTableName() which returns the Database-Table with the data of a class (see below). As you can see it always calls the static $tablename of the subclass described by $this-classname. Thankyou, André Here the function: function getTableName() { if

[PHP] in Germania niente di nuovo..

2005-03-15 Thread Communicatore italo tedesco
Title: in Germania niente di nuovo.. Alla cortese attenzione...Il COMMUNICATORE propone la visione gratuita delle ns. novità sia in Italia come anche in Germania, del tutto NO-profit,come per esempio Villa Rosa, il 06.03.2005 Anzitutto devo lamentarmi, che attualmente dalla Germania

Re: [PHP] MySQL, PHP and JBOSS

2005-03-15 Thread Marek Kilimajer
david joffrin wrote: Hi, I finally managed to run JBOSS/Tomcat with PHP, however, I am facing the following error message when my PHP code is accessing MySQL: Fatal error: Call to undefined function mysql_connect() in

Re: [PHP] Is their something like $classname::$tablename ?

2005-03-15 Thread Jochem Maas
André Pletschette wrote: Hi, I've got one function getTableName() which returns the Database-Table with the data of a class (see below). As you can see it always calls the static $tablename of the subclass described by $this-classname. I solved this problem by doing the following: abstract

Re: [PHP] file/array manipulation

2005-03-15 Thread Jochem Maas
Mignon Hunter wrote: Hello Hello Hello Hello (and 1 extra Hello just in case you decide to post the same question for a fourth time) I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB

Re: [PHP] Why is the behavior between Apache2 and Tomcat so different?

2005-03-15 Thread Burhan Khalid
david joffrin wrote: Hi, I have the same piece of PHP script running on either Apache2 or Tomcat. On Tomcat, I have the folllowing errors: 1- Cannot modify header information - headers already sent OR 2- Undefined index: error in ... For one, I think this is because I am using the header PHP

Re: [PHP] Why is the behavior between Apache2 and Tomcat so different?

2005-03-15 Thread Ken
Cannot modify header information - headers already sent output buffering is off on tomcat? check the php.ini or did some error message happen before this - which will cause this error since the error was sent to the browser before your headers. In which case fix it by turning off php.ini

Re: [PHP] Why is the behavior between Apache2 and Tomcat so different?

2005-03-15 Thread david joffrin
It has not been an easy task. In fact, the configuration is running under PHP5/JBOSS! 1- I modified the web.xml to append the following: servlet servlet-namephp/servlet-name servlet-class net.php.servlet /servlet-class load-on-startup1/load-on-startup

[PHP] Configure PHP

2005-03-15 Thread Steven Sher
Can someone please help me configure php. I have installed php on SUSE 9.2 by default it loads php with session support disabled how do I enable it, I know I am supposed to use some configure command or something but not sure how, please help. Thanks Steve -- Click here to get Firefox Free

[PHP] date of the end of support (security updates)

2005-03-15 Thread zdust
Hi i am searching the date of the end of support for the different versions of php where can i find them? thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] TPC-W Implementation for PHP

2005-03-15 Thread Devraj Mukherjee
Hi everyone, We are implementing the Transaction Process Council (Web) standard in PHP and are going to make it available under a LGPL license. Is there anyone there who would be interested in making use of this to benchmark the performance of their web setup? We would appreciate the response,

Re: [PHP] Configure PHP

2005-03-15 Thread Ken
You should check your php.ini file... i haven't used linux for a while so i can't remember where it is... and this is probably distro specific... do a search for it. php.ini. change the settings for session support, the file should be pretty self explanatory then restart apache. On Tue, 15 Mar

Re: [PHP] Configure PHP

2005-03-15 Thread Steven Sher
I have checked the php.ini file all setting ok, when you load ph there are certain paramters you can specify such as --disable-session or in my case I would like to --enable-session but not sure exactly how. steve Ken wrote: You should check your php.ini file... i haven't used linux for a while

Re: [PHP] Configure PHP

2005-03-15 Thread Ken
in which case you'll have to recompile php again... but according to the manual session is enabled by default... (again, it really depends on what distro). find the source folder for php, and do ./configure --enable-session (and lots of other stuff if you want it)... do ./configure --help to see

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-15 Thread [EMAIL PROTECTED]
David OBrien wrote: At 04:53 PM 3/14/2005, [EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I

[PHP] Re: can't pull products from DB with REGEXP?

2005-03-15 Thread [EMAIL PROTECTED]
Yup! That works just fine. I took out all spaces after comma and it's ok now. Thanks Jaime. -afan Jamie Alessio wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ...

[PHP] (SOLVED) Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Ok, well the mystery is solved. Earlier in the script, I had used HEREDOC string delimiting to output some html blocks (I feel, asthetically, that HEREDOC is more readable than escaping out to HTML then back into PHP). Somehow, and I'm not sure how, because I don't remember typing the spaces,

[PHP] Zend II api's RETURN_STRING macro

2005-03-15 Thread usya usya
hi I need some help please.I have beeen tyring to compile a PHP Dynamic Extension( for PHP 5.3.3 - that is the source code i have),but whenever I try to do so, the following errors come up, especially if I use the RETURN_STRING() Macro. I have tried RETURN_LONG() Macro and it worked just

[PHP] Zend II api's RETURN_STRING macro

2005-03-15 Thread usya usya
hi I need some help please.I have beeen tyring to compile a PHP Dynamic Extension( for PHP 5.3.3 - that is the source code i have),but whenever I try to do so, the following errors come up, especially if I use the RETURN_STRING() Macro. I have tried RETURN_LONG() Macro and it worked just

[PHP] Zend II api's RETURN_STRING macro

2005-03-15 Thread usya usya
hi I need some help please.I have beeen tyring to compile a PHP Dynamic Extension( for PHP 5.3.3 - that is the source code i have),but whenever I try to do so, the following errors come up, especially if I use the RETURN_STRING() Macro. I have tried RETURN_LONG() Macro and it worked just

Re: [PHP] Configure PHP

2005-03-15 Thread Dirk Kredler
Hi, in case you installed php4 from the SuSE-CD or -DVD: just install via yast2 (or your favourite rpm install tool) the php4 extension module called php4-session (its a rpm-package). The package should come with your SusE-CD or -DVD. In case you didnt installed php4 from SuSE, you must

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Hello, I've made the source available at: http://www.weldingconsultants.com/wcapp/admin.phps Chris W. Parker wrote: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just

Re: [PHP] Is their something like $classname::$tablename ?

2005-03-15 Thread Andr Pletschette
Thanks Jochem, I now solved the problem with your help, the following way: In the parent-class I define: static function getTableName($classname) { if (defined($classname::TABLE_NAME)) { return(constant($classname::TABLE_NAME)); } else { throw new Exception(No TABLE_NAME for .$classname.

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jason Barnett
Jeff Schmidt wrote: Hello, I've made the source available at: http://www.weldingconsultants.com/wcapp/admin.phps 404 error when I just tried. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

[PHP] Re: Zend II api's RETURN_STRING macro

2005-03-15 Thread Jason Barnett
Usya Usya wrote: ... Please do not send multiple messages to the list, especially that many so close together. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW

[PHP] Re: TPC-W Implementation for PHP

2005-03-15 Thread Jason Barnett
Devraj Mukherjee wrote: Hi everyone, We are implementing the Transaction Process Council (Web) standard in PHP and are going to make it available under a LGPL license. Is there anyone there who would be interested in making use of this to benchmark the performance of their web setup? We

[PHP] How can i calculate total process time?

2005-03-15 Thread JoShQuNe \(TR\)
Hi, i wanna ask if anybody knows how to calculate the total process time of a script. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe

[PHP] making links out of records? newbie

2005-03-15 Thread Nick
Hi there, i have a page called squad.php which queries a mysql table and outputs all the squad members from by football team. This is fine, however i would like to make each returned record into a hyperlink which when clicked on displays more details about that player. I believe i need to use

[PHP] 5.0.3 will not compile on solaris x86 v9 - zend_strtod fails to compile

2005-03-15 Thread Bob Tadlock
5.0.3 will not compile on solaris x86 v9 - zend_strtod fails to compile 5.0.2 compiles and runs fine PHP 5.0.3 solaris x86 version 9 gcc 3.3.2 (gnu) make 3.80 (gnu) flex 2.5.4 (gnu) bison 1.875 (gnu) m4 1.4.2 (gnu) autoconf 2.59 (gnu) automake 1.9 (gnu) perl 5.6.1 gzip 1.3.3 (gnu) tar 1.14 (gnu)

RE: [PHP] How can i calculate total process time?

2005-03-15 Thread Jay Blanchard
[snip] Hi, i wanna ask if anybody knows how to calculate the total process time of a script. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont

[PHP] Screen resolution in php

2005-03-15 Thread virtualsoftware
Hi, How can i get the screen resolutin in php. I've read that i can't this. With java i can do this. SCRIPT LANGUAGE=JavaScript document.write(Your Screen Resolution Is : ); document.write(screen.width + x + screen.height); /script My question is how can pass the screen resolution from java to

Re: [PHP] php compiler

2005-03-15 Thread Jason Barnett
Jay Blanchard wrote: [snip] Sooo.. I'm assuming there's no stable project for compiling php code to native binary machine code huh? (I've done some searching) Even anything commercial? (I didn't care for Zend's optimizer so much.. still has *RUN*time configuration) [/snip]

Re: [PHP] How can i calculate total process time?

2005-03-15 Thread Chris Boget
Hi, i wanna ask if anybody knows how to calculate the total process time of a script. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates but i dont believe

Re: [PHP] newbie:changing variable to type resource

2005-03-15 Thread Jason Barnett
Saswat Praharaj wrote: ... Without which I can't distinguish between different connections. Regards, -Saswat http://ecoustics-cnet.com.com/Tracking+PCs+anywhere+on+the+Net/2100-1029_3-5600055.html -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

Re: [PHP] Screen resolution in php

2005-03-15 Thread John Nichel
[EMAIL PROTECTED] wrote: Hi, How can i get the screen resolutin in php. I've read that i can't this. With java i can do this. SCRIPT LANGUAGE=JavaScript document.write(Your Screen Resolution Is : ); document.write(screen.width + x + screen.height); /script My question is how can pass the screen

[PHP] Re: Screen resolution in php

2005-03-15 Thread Jim Plush
you can get the resolution from javascript then pass that info to php using HTTP REQUEST http://jibbering.com/2002/4/httprequest.html or super low budget way could be to get that information from javascript then right after forward the page using javascript with the resolution variable in the

Re: [PHP] How can i calculate total process time?

2005-03-15 Thread John Nichel
JoShQuNe (TR) wrote: Hi, i wanna ask if anybody knows how to calculate the total process time of a script. I guess there exists a function to perform but i dont know which one it is. I mean if u c any PHP Nuke site, it says this page is produced in seconds. I made some codes it calculates

RE: [PHP] Screen resolution in php

2005-03-15 Thread Jay Blanchard
[snip] How can i get the screen resolutin in php. I've read that i can't this. With java i can do this. SCRIPT LANGUAGE=JavaScript document.write(Your Screen Resolution Is : ); document.write(screen.width + x + screen.height); /script My question is how can pass the screen resolution from java

Re: [PHP] How can i calculate total process time?

2005-03-15 Thread Ken
I do that for my site and sometimes for some very strange reason it returns a negative figure. so i use abs() to make sure it's positive always (but then it might not be true value...) On Tue, 15 Mar 2005 09:08:31 -0600, Chris Boget [EMAIL PROTECTED] wrote: Hi, i wanna ask if anybody knows

[PHP] Re: PHP-CLI Debugging Question

2005-03-15 Thread Jason Barnett
Davy Durham wrote: Hi.. I'm working on converting some CLI (not CGI) bash scripts to php and was wondering if there's an equivalent to 'set -x' from bash in php set -x in bash basically causes the statements to be printed to stderr as they are executed. Does php have something similar?

Re: [PHP] Is their something like $classname::$tablename ?

2005-03-15 Thread Andr Pletschette
I now solved my third problem as followed, I write the fields of a table into global Variables. If anybody has a better (nicer) way of doing this, I would be pleased to know ;) /** * Returns the Fields of a class */ static function getFields($classname) { $tablename =

Re: [PHP] How can i calculate total process time?

2005-03-15 Thread John Nichel
Chris Boget wrote: snip // At the very beginning of the script $startTime = date( 'U' ); // At the very end of the script $endTime = date( 'U' ); echo 'Total processing time: ' . ( $endTime - $startTime ) . ' second(s)'; /snip I would use microtime instead of date('U') or time(); since date and

Re: [PHP] How can i calculate total process time?

2005-03-15 Thread JoShQuNe \(TR\)
Thnx for yr answers. I fixed it. Problem was the places of codes. They were line under line now i took to the beginning and itz calculating correctly.. The code was: //Beginning $mtime = explode( ,microtime()); $starttime = $mtime[1] + $mtime[0]; //Just before i print $mtime = explode(

[PHP] How to call a function from $classname

2005-03-15 Thread André Pletschette
Hi, What do I have to do to call a function from $classname? Like: $classname-test( ); Thankyou, André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to call a function from $classname

2005-03-15 Thread Dan Joseph
What do I have to do to call a function from $classname? Like: $classname-test( ); Two methods: First: $classname = new ClassName(); $classname-test(); Second: ClassName::test(); -- -Dan Joseph Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and

Re: [PHP] How to call a function from $classname

2005-03-15 Thread François-Xavier Lacroix
Maybe With the eval() function ? Hi, What do I have to do to call a function from $classname? Like: $classname-test( ); Thankyou, André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to call a function from $classname

2005-03-15 Thread Richard Davey
Hello André, Tuesday, March 15, 2005, 3:42:44 PM, you wrote: AP What do I have to do to call a function from $classname? Like: $classname-test( ); Erm, you do exactly that. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I

[PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
Hi guys, Few days ago somebody asked something about listing content of directories and subdirectories. How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) Thanks -afan -- PHP General Mailing List (http://www.php.net/) To

[PHP] recommending a PHP book?

2005-03-15 Thread Danny Lin
Can any one recommend a good book that discusses MVC design patterns with PHP (and mySQL)? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] listing directories

2005-03-15 Thread John Nichel
[EMAIL PROTECTED] wrote: Hi guys, Few days ago somebody asked something about listing content of directories and subdirectories. How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) Search the archives. -- John C. Nichel ÜberGeek

Re: [PHP] making links out of records? newbie

2005-03-15 Thread Richard Lynch
Hi there, i have a page called squad.php which queries a mysql table and outputs all the squad members from by football team. This is fine, however i would like to make each returned record into a hyperlink which when clicked on displays more details about that player. I believe i need to

Re: [PHP] How to call a function from $classname

2005-03-15 Thread Andr Pletschette
Thankyou, That works ;) Here the code: $get_table_fields_cmd = $classname.::intializeClass(\$dbConnect);; eval($get_table_fields_cmd); Andr Franois-Xavier Lacroix wrote: Maybe With the eval() function ? Hi, What do I have to do to call a function from $classname? Like: $classname-test( );

[PHP] PHP file as homepage?

2005-03-15 Thread Phil Neeb
I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to call a function from $classname

2005-03-15 Thread Jochem Maas
André Pletschette wrote: Hi, What do I have to do to call a function from $classname? Like: $classname-test( ); ?php // does $classname contain a name of a class? e.g: class Test { function doIt() { echo done it!\n; } } $className = Test; $t = new $className; $t-doIt(); // also look at

Re: [PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
That's a problem - didn't know where to look :) Thanks! Chris Ramsay wrote: [snip] How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) [/snip] Check out the mail archive, mate...

RE: [PHP] listing directories

2005-03-15 Thread Jay Blanchard
[snip] Hi guys, Few days ago somebody asked something about listing content of directories and subdirectories. How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) [/snip] http://www.php.net/readdir -- PHP General Mailing List

[PHP] Re: listing directories

2005-03-15 Thread Jason Barnett
[EMAIL PROTECTED] wrote: How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) Thanks for being considerate! Check out STFA below... -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA |

Re: [PHP] Why is the behavior between Apache2 and Tomcat so different?

2005-03-15 Thread Richard Lynch
I have the same piece of PHP script running on either Apache2 or Tomcat. On Tomcat, I have the folllowing errors: 1- Cannot modify header information - headers already sent Figure out what's sending out HTML / text / blank lines / error messages *before* your header() call, and make it

[PHP] Re: PHP file as homepage?

2005-03-15 Thread Jason Barnett
Phil Neeb wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? Yes. I don't know for 100% sure what they're using, but it's likely

Re: [PHP] croping an image with GD and putting it into html code

2005-03-15 Thread Richard Lynch
This function will return only the raw data for the new thumbnail image. Is there a way to output the thumbnail image directly to a img tag in my html file? You *can* do that, but it's such a bad idea, I don't even remember how... And not all browsers support it anyway. Is there a way to do

Re: [PHP] php compiler

2005-03-15 Thread Rasmus Lerdorf
Jason Barnett wrote: Jay Blanchard wrote: [snip] Sooo.. I'm assuming there's no stable project for compiling php code to native binary machine code huh? (I've done some searching) Even anything commercial? (I didn't care for Zend's optimizer so much.. still has *RUN*time configuration) [/snip]

Re: [PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
Ok, I wasn't able to find anything in archive to fit my needs... This is a problem: To display content of directory I have this code: if ($dir = opendir($path)) { while($file = readdir($dir)) { if ($file != . $file != ..) { echo $file; if (is_dir($file))

Re: [PHP] listing directories

2005-03-15 Thread Chris Ramsay
[snip] How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) [/snip] Check out the mail archive, mate... http://marc.theaimsgroup.com/?l=php-generalr=1w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] incrementing a number from a text file

2005-03-15 Thread Richard Lynch
BAD (probably): Select blablabla FROM t1,t2,t3 WHERE customers LIKE '%$s%' OR name LIKE '%$s%' OR domain LIKE '%$s%' OR email LIKE '%$s%' OR log LIKE '%$s%' AND t1.id = t2.t1_id AND t1.id = t3.t1_id GOOD (usually): Select blablabla FROM t1,t2,t3 WHERE (customers LIKE '%$s%' OR name

Re: [PHP] PHP file as homepage?

2005-03-15 Thread John Nichel
Phil Neeb wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? Using Apache? Change and/or add your DirectoryIndex; restart Apache. --

Re: [PHP] Array Help

2005-03-15 Thread Richard Lynch
I'm running into the problem of not having a server that gives me database access or ability to use files to store my data ... Yeah, I know, it sucks. If switching servers isn't an option, just pay for another one somewhere, and then re-direct or something. The time you save HAS to be worth

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Chris Shiflett
Phil Neeb wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? You can specify these, in order or preference, with the DirectoryIndex

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Chris Ramsay
Usually index.php is defined as a default document in httpd.conf if you are using apache, or set using the internet services dialogue in IIS On Tue, 15 Mar 2005 11:10:30 -0500, Phil Neeb [EMAIL PROTECTED] wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as

Re: [PHP] function reverse to get_object_vars

2005-03-15 Thread Richard Lynch
Hello Do you know how to implement function reverse to get_object_vars? For example if I have class and I wish to set it's properties from database with loop through the columns in table? If you are willing to have the object properties be the same names as the columns, you do an

[PHP] Re: recommending a PHP book?

2005-03-15 Thread Jim Plush
Hey Danny, no good books on that subject regarding php/mcv that I've seen but PHP Architecht has some good articles on MVC, I believe they have a free issue that has a huge article on PHP/MVC. www.phparch.com Danny Lin wrote: Can any one recommend a good book that discusses MVC design patterns

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Graham Cossey
On Tue, 15 Mar 2005 11:10:30 -0500, Phil Neeb [EMAIL PROTECTED] wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? Yes, it's normally

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Richard Lynch
I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? Yes. http://apache.org Search for Index I believe. -- Like Music?

Re: [PHP] making links out of records? newbie

2005-03-15 Thread Nick
Thanks, that seems to work fine. Richard Lynch wrote: Hi there, i have a page called squad.php which queries a mysql table and outputs all the squad members from by football team. This is fine, however i would like to make each returned record into a hyperlink which when clicked on displays more

Re: [PHP] file/array manipulation

2005-03-15 Thread Richard Lynch
Hello I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB RABC company ABC company ABC company ABC

[PHP] OT - C programming

2005-03-15 Thread Jason Barnett
Rasmus Lerdorf wrote: Jason Barnett wrote: Jay Blanchard wrote: ... In the end you are probably much better off learning a bit of C or C++ and writing your own PHP extensions than hoping that someone will make a compiler that will magically speed everything up. PHP was designed

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Robby Russell
On Tue, 2005-03-15 at 11:10 -0500, Phil Neeb wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else? Apache handles this... or your web

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Joe Harman
Hey Phil, this can be defined in the apache config file Joe On Tue, 15 Mar 2005 11:10:30 -0500, Phil Neeb [EMAIL PROTECTED] wrote: I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php

Re: [PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
I replaced is_dir() with filetype() and code works just fine. But the question is still there! :) -afan [EMAIL PROTECTED] wrote: Ok, I wasn't able to find anything in archive to fit my needs... This is a problem: To display content of directory I have this code: if ($dir = opendir($path)) {

Re: [PHP] listing directories

2005-03-15 Thread Richard Lynch
if ($dir = opendir($path)) { while($file = readdir($dir)) { if ($file != . $file != ..) { echo $file; if (is_dir($file)) USE: is_dir($path/$file) to get the full pathname so that PHP has some idea *which* directory it's supposed to be looking

[PHP] Auto logout

2005-03-15 Thread Vaibhav Sibal
Hi I wanted to implement an auto-logout feature for my project so that if a terminal is left unattended for say 10 minutes, it should automatically logoff the user. Apart from this, there is another problem that I am encountering with my authentication scheme, the scene is as follows : (1) I am

Re: [PHP] Auto logout

2005-03-15 Thread Dan Tappin
I do not think there is really any way around the dual login from the same browser issue. As for the auto-logout I have a suggestion. I have the same set-up for one of my sites. I have a session MySQL database and I track the id of a user once they login and then that record is updated with

[PHP] RE: [PHP-DB] recommending a PHP book?

2005-03-15 Thread Bastien Koert
Martin Fowler is the man behind most of this style of Enterprise Architecture (http://www.martinfowler.com/books.html#eaa) His Pof EAA is the definitive book on this and is used as the model for php bastien From: Danny Lin [EMAIL PROTECTED] To: php-db@lists.php.net, phpdoc@lists.php.net,

[PHP] Re: Auto logout

2005-03-15 Thread Jason Barnett
Vaibhav Sibal wrote: Hi I wanted to implement an auto-logout feature for my project so that if a terminal is left unattended for say 10 minutes, it should automatically logoff the user. Apart from this, there is another How critical is it that the user be automatically logged out after 10

Re: [PHP] Re: PHP-CLI Debugging Question

2005-03-15 Thread Davy Durham
No, I was looking for php to print each line of the code as it executes it. Jason Barnett wrote: Davy Durham wrote: Hi.. I'm working on converting some CLI (not CGI) bash scripts to php and was wondering if there's an equivalent to 'set -x' from bash in php set -x in bash basically causes the

Re: [PHP] Re: PHP-CLI Debugging Question

2005-03-15 Thread Jason Barnett
Davy Durham wrote: No, I was looking for php to print each line of the code as it executes it. In that case, you want ob_implicit_flush() http://php.net/manual/en/function.ob-implicit-flush.php signature.asc Description: OpenPGP digital signature

Re: [PHP] How to call a function from $classname

2005-03-15 Thread Jochem Maas
Andr Pletschette wrote: Thankyou, That works ;) Here the code: $get_table_fields_cmd = $classname.::intializeClass(\$dbConnect);; eval($get_table_fields_cmd); welldone for figuring a way to do it! I have to tell you tho that eval() is a very heavy function to use - my advice don't use it unless

[PHP] Can I use ftp_put to bypass upload_max_filesize?

2005-03-15 Thread SED
I have been thinking about a way to upload a file through a web-browser, bigger than the upload_max_filesize is set in the php.ini on the server. Is it somehow possible, to use ftp_put to upload a file bigger than the upload_max_filesize is set in the php.ini? (eg. upload 100Mb while

Re: [PHP] date of the end of support (security updates)

2005-03-15 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi i am searching the date of the end of support for the different versions of php there is no support as such. php4 is pretty much bugfix only. all the new work is being focused on php5. php3? (cue trumpets, cue 70's yellow, scrolling text, 'once a upon a time, long long

[PHP] Re: recommending a PHP book?

2005-03-15 Thread Philip Olson
Do. Not. Cross. Post. Use ONE mailing list at a time. Please have all further replies to this unfortunate thread go to php-general and only php-general. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Hello, Sorry about that. I took the source down after I solved the problem. The problem was a nasty type of syntax error caused by PHP implementation of HEREDOC string delimiting. I was using HEREDOC to stuff multiple lines of HTML into a string, in several places in my file, which is all

  1   2   >