[PHP] Yo: webmaster@php.net dude

2001-11-16 Thread jtjohnston
Hmmm. Well they both work. Now I've learned two ways :) Coming from Perl, Javascript, Delphi, ASP, etc. it's always fun to know someone has done something different. > > if (!strpos(...)) > > will be better... > Why? The only thing I would love to know is why isn't error checking more precise/h

RE: [PHP] Regular expressions?

2001-11-16 Thread Jack Dempsey
If you'd really like to develop your regex skills, and everyone should, pickup Mastering Regular Expressions by Jeffrey Friedl(O'Reilly Press). Its the best out there, and will probably teach you more than you thought possible. Jack -Original Message- From: Martin Thoma [mailto:[EMAIL PR

Re: [PHP] Re: strpos

2001-11-16 Thread jtjohnston
Andrew Kirilenko wrote: > Oops. Forgot about 0 return ;( Which means ??? They both work for me, yeah? No? This tells me that the user made a boo boo: if((strpos($yourimage, "\.jpg") !== false) || (strpos($yourimage, "\.jpeg") !== false)) So what does this do? if((!strpos($yourimage, ".jpg")

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread jtjohnston
See these. Reduire.phps probably has what you want. http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/afficher.phps http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/charger.phps http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/lire_binaire.phps http://www.collegeshe

[PHP] custom errors

2001-11-16 Thread Oosten, Sjoerd van
Hi, I know how to make an error message when the connection is lost with the database, with the @ and the OR DIE in the connection with the database. Is there also a way to display a custom error message when this error is displaid? "Warning: Supplied argument is not a valid MySQL result reso

[PHP] How to save a dynamic search result for later use as a static page?

2001-11-16 Thread Tom Smith
Hi All, Here is the problem: I have a quey building form that returns results from a database as a form to generate a new query. On open, it shows a form, then on submit it shows resutls that are in a form (checkboxes that let you omit that record from the next query by $id). What I want to do

Re: [PHP] Jump to internal link after $PHP_SELF post

2001-11-16 Thread Rob van Jaarsveld
Hi Chris, Just a small modification and it works!!! Many thanks! Syntax: onclick=\"document.pageform.action='$PHP_SELF#$value'; submit()\" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Sending mail without using mail()

2001-11-16 Thread Jaime Iniesta Aleman
Ok, where can I find a tutorial about sending mail using fsockopen ? *** > Hi, is it possible to send SMTP mail if the server where are my pages > hosted forbids the use of the mail() function ? I mean, by opening a > sockets connection to an external SMTP server and writing the commands > the

[PHP] Re: Sending mail without using mail()

2001-11-16 Thread Johan Holst Nielsen
> Ok, where can I find a tutorial about sending mail using fsockopen ? > > *** http://www.phpbuilder.com/columns/tim19990221.php3 Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To co

[PHP] Display gif/jpg etc.?

2001-11-16 Thread Raymond
Hi ! Do I have to edit mu ini file to display pictures with php? Is it possible to have pictures in include files? Best regards Ramyond LIlleødegård -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Re: custom errors

2001-11-16 Thread CC Zona
In article , [EMAIL PROTECTED] (Sjoerd Van Oosten) wrote: > Is there also a way to display a custom error message when this error is > displaid? > > "Warning: Supplied argument is not a valid MySQL result resource in > /opt/guide/www.domain.nl/HTM

[PHP] PHP with ORACLE 8i/9i

2001-11-16 Thread Steve Haemelinck
Question: I want to build php withd support for ORACLE 8i or 9i. Normally you use the option with-oci=. So far so good. How can I achieve this when the oracle database is running on another server? Thx Haemelinck Steve Haemelinck.be - Developers Unite (Under construction ) http://www.haemelin

[PHP] link to a pdf file

2001-11-16 Thread Oosten, Sjoerd van
Hello, a question again. I have a pdf file which can be downloaded. How can i link to this file so, that the file isn't opened in the browser (if acrobat reader is installed) but the file download popup appears? Greetings, Sjoerd van Oosten Digitaal vo

[PHP] Filling a text field from a different window

2001-11-16 Thread Carlo Loiudice
Hi, I'm Carlo. Is there a way (probably javascript) to fill a text field (or another form object) selecting from a select box on a window different from that where's the text filed ? Ciao, Carlo __ Abbonati a Yahoo! ADSL con A

[PHP] Re: Filling a text field from a different window

2001-11-16 Thread _lallous
You can do that only if you've got a reference to the window you want to change its properties. the reference is obtained like this: var w = window.open('file.htm'); w.document.theform.theControl.theProperty = someValue here; "Carlo loiudice" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTEC

[PHP] Copying into another table

2001-11-16 Thread _lallous
Hello! Is there is anyway to copy from a table to another but by applying a filter? Example: SELECT * FROM table1 WHERE (condition) INSERT INTO table2 (the results of the last query) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: [PHP] Copying into another table

2001-11-16 Thread Alexander Weber
_lallous wrote: > > Hello! > > Is there is anyway to copy from a table to another but by applying a filter? > > Example: > > SELECT * FROM table1 WHERE (condition) > INSERT INTO table2 (the results of the last query) Just try this one: INSERT INTO table2 SELECT * FROM table1 WHERE (condition)

Re: [PHP] Copying into another table

2001-11-16 Thread Andrey Hristov
INSERT INTO table2 SELECT * FROM table1 WHERE (condition); Easy, isn't it *grin* Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "_lallous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001 1:16 PM Subjec

Re: [PHP] PHP with ORACLE 8i/9i

2001-11-16 Thread Thies C. Arntzen
On Fri, Nov 16, 2001 at 10:49:17AM +0100, Steve Haemelinck wrote: > Question: > > I want to build php withd support for ORACLE 8i or 9i. > Normally you use the option with-oci=. So far so good. > How can I achieve this when the oracle database is running on another > server? you need to ins

Re: [PHP] link to a pdf file

2001-11-16 Thread Stefan Rusterholz
Hi Besides that I think this is the wrong mailing list for dealing with that question: Zip that pdf-file and link to the zipped file. Everything else (AFAIK) won't work because this phenomenon is caused by the client and not by the server. Stefan Rusterholz, [EMAIL PROTECTED]

[PHP] problem with xgettext and php with javascript file

2001-11-16 Thread Pavel Novák
Hello all! I want to use gettext for multilanguage webs, so I'm pleasing you to help me. When I use this: xgettext --keyword=_ file.php on this file: ---