[PHP] Geo-IP: Lookup country by IP Address

2002-01-18 Thread Boaz Yahav
Does anyone know about a PHP API for http://geo-ip.com/ ? Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] installing php3 and php4 on the same server

2002-01-18 Thread Manu Verhaegen
We have the following problem, we have now apache 3 and php 3 ,we have upgrade the apache and the php3 tot php4 evereting will working fine. 2 internetproviders in belgium will working with proxyservers if you want to view a webpage on the lastversion of apache an php4 the page will not correct

RE: [PHP] Getting the last record in a mysql table FINALLY!!

2002-01-18 Thread Chris Schneck
Also, PHP has a built in function for finding the ID of the last insert query. ill show some brief code. $query = (insert into tbl_blah (fld_blargh) values ('$roar')); $result = mysql_query($query) or die (mysql_error()); $last_id = mysql_insert_id(); echo $last_id; this should print out

[PHP] checking the content?????

2002-01-18 Thread Dani
hi! I 'm trying to make my script to check one by one whether there is a content in the field on a record. How do I do that? I use mysql_num_fields() but it doesn't work. Any reply is appriciated! regards, Dani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] htmlspecialchars() alias

2002-01-18 Thread Jon Haworth
I was wondering if it would be feasible to create an alias for this function, say hsc() or something short. function hsc ($foo) { $foo = htmlspecialchars ($foo); return $foo; } HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-18 Thread Jason Wong
On Friday 18 January 2002 04:11, Floyd Baker wrote: Yes. I was using the url to pass variables without a form. It looks like the javascript idea would cover that now that you remind me. I've used it before to refresh two frames at once. But even so I'd rather not go that way if at all

[PHP] Installing PHP4

2002-01-18 Thread Manu Verhaegen
Hi, We have installed Apache 1.3.6 and PHP4 If we use phpscripts with the extention .php everiting will working fine, if we use .php3 this will not working Can you help my Greetings, Manu

Re: [PHP] MySQL and PHP

2002-01-18 Thread DL Neil
Brandon, Please do some 'homework': Will the native query run from the MySQL command line, or in a admin tool? Have you tried varying the number of fields? What are the column specifications? In and amongst this you might like to check where you should have spaces (a) for legibility

Re: [PHP] Generating a new line in a text file

2002-01-18 Thread DL Neil
Chris, \n = *nix \r = Mac \r\n = PC (now that you've 'dropped' MS Notepad into the conversation...) The simplest M$ tools content themselves with black blocks (apparently not being interested in your comfort), but the more sophisticated tools will sometimes oblige... =dn - Original

[PHP] Mod function

2002-01-18 Thread Jim
I am looking for a mod() function in PHP but unfortunately I am unable to find one. Please help... ( ° Jim-Christian Flatin //\\ Skien / Norway / \/ ) [EMAIL PROTECTED] '- http://niteshift.d2g.com

Re: [PHP] checking the content?????

2002-01-18 Thread DL Neil
Dani, Am slightly confused/finding the question ambiguous. Could you provide the code you have so far, and the relevant column specification(s)? Could be simple or complex! =dn - Original Message - From: Dani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 18 January 2002 12:22 Subject:

[PHP] Re: [PHP-WIN] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Jeff, The following batch files works for me (WinNTWS 4.0 SP6a):- cd c:\program files\php php.exe -q c:\.path.\w.php c:\.path.\webute.log NB the first line reflects my PHP config - your mileage may vary! Of course the other possibility is to add the PHP folder into the PATH environment

Re: [PHP] Installing PHP4

2002-01-18 Thread Neil Freeman
Open up your server's config file, eg httpd.conf , and ensure that PHP's AddType line has the extension .php3 Should look something like this: AddType application/x-httpd-php .php .phtml .php3 HTH Neil Manu Verhaegen wrote: Hi, We have installed Apache 1.3.6 and PHP4 If we use

Re: [PHP] Installing PHP4

2002-01-18 Thread Manu Verhaegen
Thanks, Evereting will working fine - Original Message - From: Neil Freeman [EMAIL PROTECTED] To: Manu Verhaegen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, January 18, 2002 12:12 PM Subject: Re: [PHP] Installing PHP4 Open up your server's config file, eg httpd.conf , and

RE: [PHP] Mod function

2002-01-18 Thread Jon Haworth
I am looking for a mod() function in PHP but unfortunately I am unable to find one. Please help... As in modulus? if ($foo % 2 == 0) { // if there's no remainder after dividing by 2 } if ($foo % 5 != 0) { // if there is a remainder after dividing by 5 } HTH Jon -- PHP General

[PHP] PHP 4 on OSX 10.1.2

2002-01-18 Thread Kaj Schermer Didriksen
Hi all Im trying to get setlocale to work on my OSX box ?php print (strftime (%A in Danish is )); setlocale (LC_ALL, da); print (strftime (%A.\n)); ? this should give me Friday in Danish is Fredag but no matter what I set the languagecode to it always returns Friday Why? regards Kaj

Re: [PHP] Generating a new line in a text file

2002-01-18 Thread Chris Janes
: Chris, : \n = *nix : \r = Mac : \r\n = PC : (now that you've 'dropped' MS Notepad into the conversation...) The simplest M$ tools content themselves with : black blocks (apparently not being interested in your comfort), but the more sophisticated tools will sometimes : oblige... : =dn :

[PHP] Re: Scripts keep refreshing

2002-01-18 Thread Julio Nobrega Trabalhando
Maybe you were doing something like this: if (function() == true) { header(Location: this_page.php); } And your function() is now broken because you upgraded to php4? It's probaly something like this, some function that worked on php3 and now it's not. -- Julio Nobrega. Um dia eu

[PHP] Re: Feature Suggestion

2002-01-18 Thread Julio Nobrega Trabalhando
?php $array = range('a','z'); ? As usual your mileage may vary but it worked here :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Mike Eheler [EMAIL

[PHP] encrypt in php?

2002-01-18 Thread Hawk
I have encrypted the passwords for my login script with the mysql command password('$password') ... is there any way to encrypt to the same format in php? Seems like the above isn't working atleast.. Hawk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] PHP/ Oracle 'undefined function'

2002-01-18 Thread gkin
I get undefined function when I use PHP/Oracle-functions like ociconnect. For example: $connection = ocilogon(loginname,password); In the documentation i have found there is only mentioned Oracle 8i, so I do not know if the same functions can be used for the 9i release. Oracle is just

[PHP] Re: printing an XML node

2002-01-18 Thread Christian Stocker
In [EMAIL PROTECTED], Christian Stocker wrote: In [EMAIL PROTECTED], Thomas Gagne wrote: dumpmem works great for entire documents, but what is the strategy for printing the contents of a single node? It is impossible to use dumpmem on a node since the code looks for a 'doc' property that

Re: [PHP] help installing php

2002-01-18 Thread Miles Thompson
If I remember correctly, when you install MySQL and Apache from rpm you get the binary version and no source is installed on your system. It's been a while since I've looked for them, but there used to be a source rpm for MySQL at the MySQL site, and it took some digging to find it. Ditto

Re: [PHP] Computer Science and PHP

2002-01-18 Thread Erik Price
Where I went to school (UMass Amherst), they primarily use Java and C/C++. The reason has been cited that the skills learned in programming with these languages are scalable to many other languages, including PHP, and thus form a solid foundation from which other programming skills can

[PHP] Regular Expressions...

2002-01-18 Thread Tony Arnold
Howdy people... I want to extract the name of a hyperlink which looks like this: a href=this is the name!/a I tried to do this: ereg(([a-zA-Z0-9_. -]*),$hlink, $reg3); and it works if it only consists of the above characters, how can I tell ereg to include all characters? not only a-zA-Z0-9_.

Re: [PHP] Does any have the 'edit_member.php' script ....

2002-01-18 Thread Erik Price
I thought that all of the source code for that book was available at http://mysql.he.net/Downloads/Contrib/Examples according to page 497. Erik On Thursday, January 17, 2002, at 08:48 PM, Mike C wrote: In electronic format that I can have? It is included in the book 'MySQL' by Paul

Re: [PHP] Regular Expressions...

2002-01-18 Thread Jason Wong
On Friday 18 January 2002 22:09, Tony Arnold wrote: Howdy people... I want to extract the name of a hyperlink which looks like this: a href=this is the name!/a I tried to do this: ereg(([a-zA-Z0-9_. -]*),$hlink, $reg3); and it works if it only consists of the above characters, how can I

RE: [PHP] Regular Expressions...

2002-01-18 Thread Tony Arnold
Thank you! -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: den 18 januari 2002 15:14 To: Tony Arnold; [EMAIL PROTECTED] Subject: Re: [PHP] Regular Expressions... On Friday 18 January 2002 22:09, Tony Arnold wrote: Howdy people... I want to extract the name of a

[PHP] Session Time Out - Question

2002-01-18 Thread Phil Schwarzmann
I've noticed that the user sessions automatically time out after X amount of minutes without me putting any extra code in the scripts. How do I set the amount of time before the sessions time out? I've looked all over my 3 books on PHP/MySQL and haven't found a damn thing Thanks!

[PHP] strange problem

2002-01-18 Thread Marc Logghe
Hi, my PHP (PHP Version 4.1.1) suddenly does not take this anymore: $a['color'] = 'red'; I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' when I remove the quotes around the key, it works. Problem is , that a certain key is %coding (I know, I

Re: [PHP] strange problem

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 15:49 * Marc Logghe said Hi, my PHP (PHP Version 4.1.1) suddenly does not take this anymore: $a['color'] = 'red'; I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' when I

Re: [PHP] strange problem

2002-01-18 Thread Malte Fucks
hmmm try $coding = %coding; $a[$coding]='whatever this array shall contain'; please let me know if it worked... diggn - Original Message - From: Marc Logghe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 18, 2002 3:44 PM Subject: [PHP] strange problem Hi, my PHP (PHP

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-18 Thread Floyd Baker
On Fri, 18 Jan 2002 18:13:50 +0800, you wrote: On Friday 18 January 2002 04:11, Floyd Baker wrote: Yes. I was using the url to pass variables without a form. It looks like the javascript idea would cover that now that you remind me. I've used it before to refresh two frames at once. But

RE: [PHP] Setting up an XML platform/website

2002-01-18 Thread J.Vasquez
hi... I work in php and need a XML tutorial ... ¿where I fin any? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] strange problem

2002-01-18 Thread Malte Fucks
hmmm try $coding = %coding; $a[$coding]='whatever this array shall contain'; please let me know if it worked... diggn this is a test because my email client gave me an error message so if this message arrives twice, it wasnt meant to be spam...

Re: [PHP] strange problem

2002-01-18 Thread Bas Jobsen
No idea, but a fella on this list told me [] had been deprecated in favour of {} Maybe that has something to do with it? Maybe: $a[${'%coding'}] = 'red'; this works: ? ${'%coding'}='blue'; $a[${'%coding'}]='red'; echo $a[blue];//print red ? -- PHP General Mailing List

Re: [PHP] help installing php

2002-01-18 Thread R'twick Niceorgaw
I just installed Apache and PHP 4.1.1 on my home computer ( Red hat Linux 7.2) from source and they are isntalled without any problem. If you have already installed apache, then find out the installation directory ( probably /usr/local/apache) and then see if its bin directory is in your path.

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread mike cullerton
on 1/18/02 12:00 AM, Jeff D. Hamann at [EMAIL PROTECTED] wrote: I've been trying to figure out what was wrong with my script... ? mail([EMAIL PROTECTED], Subject, command line mail() test); ? from the command line, php mail_test.php and getting, X-Powered-By: PHP/4.0.6

[PHP] String to array ???

2002-01-18 Thread Sandeep Murphy
Hi, I have a for loop in which a variable $privid reads and stores the content from a xmlfile in the form of a string.. the string has 5 different values... I want to call this variable $privid outside the loop like this... for($y_au=0; $y_ausizeof($priv); $y_au++)

[PHP] Re: PHP/ Oracle 'undefined function'

2002-01-18 Thread Philippe Saladin
PHP has to be compiled with the oci8 support (built-in module). The oracle extension is the old one, the newest is oci8. Regards, Philippe Gkin [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] I get undefined function when I use PHP/Oracle-functions like ociconnect. For

RE: [PHP] Session Time Out - Question

2002-01-18 Thread Johnson, Kirk
How do I set the amount of time before the sessions time out? See session.gc_maxlifetime in the php.ini file. Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] odbc linux to win2000

2002-01-18 Thread Ergin Aytac
I want to make a database connection with odbc. My php-script is running on linux, the database (centura sqlbase 7.5) is running on win2000. Is it possible to make a direct odbc-connection to the database or do I really need a software-bridge for this connection? Someone said it is unpossible

Re: [PHP] help installing php

2002-01-18 Thread mike cullerton
hi juni, although i totally agree with the folks who recommended you compile php from source, maybe it's time you sat down :) compiling apache, mysql and php from source can tax even the greatest patience the first time it is tried. hopefully, here's a couple things to think about. create a

[PHP] Re: Computer Science and PHP

2002-01-18 Thread Ron Clark
py wrote: Do you guys really think PHP should be in computer science curriculum? In my curriculum (in canada) I learned C/C++, Software Design (database architecture and OO Design), SQL, Unix and Networks (OSI, TCP-IP and HTTP mainly) There was no Perl, Python, PHP, ASP, JSP and even

Re: [PHP] strange problem

2002-01-18 Thread Erik Price
On Friday, January 18, 2002, at 09:52 AM, Nick Wilson wrote: my PHP (PHP Version 4.1.1) suddenly does not take this anymore: $a['color'] = 'red'; I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' when I remove the quotes around the key, it

[PHP] $this objects and vars

2002-01-18 Thread TD - Sales International Holland B.V.
Hey there, got a question about $this. I thought this was a fixed variable to point to the currently used object but I've seen a script wherein it's used within an object like this class a { $var = 0; function b { do something... $this -var++; } } the $this here will

[PHP] Re: htmlspecialchars() alias

2002-01-18 Thread Martin Wickman
Jason G. wrote: Hello General and Dev list, Considering the fact that it is good practice to use htmlspecialchars() anytime you are outputting non-html content to the browser... After typing the 16 characters in the htmlspecialchars() function thousands of times... I was wondering

Re: [PHP] Generating a new line in a text file

2002-01-18 Thread Martin Wickman
Jason Murray wrote: : Don't know why it's got everyone else stumped. : : \n is the new line character. Make sure you use it in and : not in ''. : : Jason Unfortunately, that doesn't work either, it changes the \n that appeared at the end of the new line to a single black block. It does not

Re: [PHP] strange problem

2002-01-18 Thread TD - Sales International Holland B.V.
On Friday 18 January 2002 15:52, you wrote: So hashes are now $var{'keyname'} (with curly brackets) and arrays are $var[0] (with normal brackets?) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 15:49 * Marc Logghe said Hi, my PHP (PHP Version 4.1.1) suddenly

Re: [PHP] $this objects and vars

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 17:00 * TD - Sales International Holland B.V. said Hey there, got a question about $this. I thought this was a fixed variable to point to the currently used object but I've seen a script wherein it's used within an

Re: [PHP] $this objects and vars

2002-01-18 Thread mike cullerton
on 1/18/02 8:58 AM, TD - Sales International Holland B.V. at [EMAIL PROTECTED] wrote: now further in the script you'll get an sql query $this = mysql_fetch_array(indentifier); now as far as I knew you shouldn't be possible to use $this for this purpose, it has nothing to do with objects...

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
nope. no difference. jeff. Mike Cullerton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on 1/18/02 12:00 AM, Jeff D. Hamann at [EMAIL PROTECTED] wrote: I've been trying to figure out what was wrong with my script... ? mail([EMAIL PROTECTED], Subject,

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread mike cullerton
what about the [EMAIL PROTECTED]? is it failing on a 'bad' email address? or maybe putting everything in variables and trying mail($to,$subject,$message); on 1/18/02 9:14 AM, Jeff D. Hamann at [EMAIL PROTECTED] wrote: nope. no difference. jeff. Mike Cullerton [EMAIL PROTECTED] wrote in

[PHP] PHP and COM - Syntax question

2002-01-18 Thread J Wynia
I sent this to the php.windows group as well, but haven't heard an answer, so I'm escalating it to the general list. Please don't be offended by the redundant posting. I've scoured the web for an answer, but virtually all COM examples using Word are copies of the code in the PHP manual. I'm just

Re: [PHP] Generating a new line in a text file

2002-01-18 Thread TD - Sales International Holland B.V.
On Friday 18 January 2002 17:00, you wrote: FYI, In windows a newline is usualy made by CRLF (Carriage Return (\r) , Line Feed (\n)), in linux/unix it's usually just LF (\n) Jason Murray wrote: : Don't know why it's got everyone else stumped. : : \n is the new line character. Make sure

[PHP] Re: [PHP-WIN] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
the path to php is already in the PATH variable... I'm not doing anything different that http://bugs.php.net/bug.php?id=6742 ,but for some reason the -c doesn't make a difference... Jeff. Dl Neil [EMAIL PROTECTED] wrote in message

Re: [PHP] help installing php

2002-01-18 Thread Carl J Meyer
On Fri, 18 Jan 2002, Juni Adi wrote: Ok, I'm now in the middle of installing it from source code. But I'm not sure where the path to apache and mysql source code to fill in : ./configure --with apache=/path/to/apache_source_code --with mysql=/path/to/mysql_source_code I 'm even not I

[PHP] Addslashes not working correctly?

2002-01-18 Thread Gonzalez, Zara E
Hi all, I am having a problem with one of my forms. I was testing to see if it would except data with apostrophes, and it doesn't. I thought maybe I had forgotten to addslashes to the variables...but I had the addslashes in my code... I was reading the manual page about addslashes to see if

[PHP] Variable Problem

2002-01-18 Thread programmer
How do I combine the following so it is treated as one variable $i=10 $result$i=test; I want this to be: $result10=test; $i changes so I cannot just put in 10 instead of I. anybody know how i can do that? TIA Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
This will work from the dir that contains php.exe.. ? mail( [EMAIL PROTECTED], subject, test ); ? here are the php.ini smtp lines... [mail function] ; For Win32 only. ;SMTP = stimpy - this works fine as does SMTP = 192.168.0.2 ; For Win32 only. sendmail_from = [EMAIL PROTECTED] I

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Mike and Jeff, what about the [EMAIL PROTECTED]? is it failing on a 'bad' email address? or maybe putting everything in variables and trying mail($to,$subject,$message); =there's a difference between the way PHP talks to an SMTP server (using mail()) on Win32 compared to *nix - which can

Re: [PHP] Variable Problem

2002-01-18 Thread val petruchek
?php $i = 10; eval (\$result$i=\test\;); echo $result10; ? Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 19, 2002 2:47 AM Subject: [PHP] Variable Problem

[PHP] /19, the / doesn't work??

2002-01-18 Thread Scott Fletcher
Hi! When I put the data, /19; into a PHP variable, I found that it produce only 9 in the variable. PHP probably think that /1 is like /r, /n, etc. So, what substitute do I need to use to make it /19 instead of 9. I don't know of any PHP code or shortcut to cancel out that effect.

Re: [PHP] Re: [PHP-WIN] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Jeff, Let's start 'casting around' then. If you've already done these (I may not have read all of your posts) please discuss the results of the following: 1 what happens when you run the script in a browser? 2 with/without the -c and/or -q options, what happens when you run another PHP script

Re: [PHP] /19, the / doesn't work??

2002-01-18 Thread Richard Crawford
That's weird. But try '\/19; use the back-slash to escape the control character. Scott Fletcher wrote: Hi! When I put the data, /19; into a PHP variable, I found that it produce only 9 in the variable. PHP probably think that /1 is like /r, /n, etc. So, what substitute do I

Re: [PHP] /19, the / doesn't work??

2002-01-18 Thread Scott Fletcher
I tried your suggest and it doesn't work. Sorry! Thanks, Scott Richard Crawford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... That's weird. But try '\/19; use the back-slash to escape the control character. Scott Fletcher wrote: Hi! When I put

[PHP] Does somebody knows a good Authentication Sample in PHP

2002-01-18 Thread ignacio . estrada
Hi, I am looking for a good sample in order to implement security in some htm pages using PHP using Login/Paswword implementation. Let me know if somebody knows about it. Best Regards !! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463,

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
No, but you're getting close. The .ini is in the same dir as the .exe and I'm guessing you guys aren't trying to diagnose this on a windows machine since we're covering all the simple things first. I don't mean to sound like a jerk, but I've covered all the possibilties I can think of.

Re: [PHP] /19, the / doesn't work??

2002-01-18 Thread val petruchek
/19 is ok, but \19 really fails. Try put \\19 instead. Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 18, 2002 7:45 PM Subject: [PHP] /19, the /

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread Jeff D. Hamann
do you have an ini, not the exe, file in c:\winnt\system32 ? jeff. - Original Message - From: DL Neil [EMAIL PROTECTED] To: Jeff D. Hamann [EMAIL PROTECTED]; mike cullerton [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 18, 2002 9:53 AM Subject: Re: [PHP] command line are -c

Re: [PHP] /19, the / doesn't work??

2002-01-18 Thread Scott Fletcher
I'm posting the result and solution that work! At least the problem is now fixed, thanks to Richard Crawford. - clip Oh! In your first e-mail, you used a forward slash, not a back slash. That was kind of confusing. Heh. Try using \\19 -- two back slashes. It worked well for me; you

[PHP] Re: odbc linux to win2000

2002-01-18 Thread Ergin Aytac
I think I know it again. There is no sqlbase-odbc driver available for linux, only for win2000. So I have to write a bridge, which runs on win2000 and answers the php-sql-requests. sorry for this question ergin aytac Ergin Aytac [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

[PHP] Re: Feature Suggestion

2002-01-18 Thread Mike Eheler
range() is good, but what I was getting at was a shorthand/shortcut/alternate syntax kinda thing. Mike Julio Nobrega Trabalhando wrote: ?php $array = range('a','z'); ? As usual your mileage may vary but it worked here :-) -- Julio Nobrega. Um dia eu chego lá:

[PHP] bug in echo function?

2002-01-18 Thread Billy Harvey
I ran across a curious bug in the echo function this morning. My PHP is Debian binary 4.1.1-1. The first example below does not work (it should draw a checkerboard-like table): - html head titleChess/title body table border=1 ? for ($i=0 ; $i8 ; $i++) { echo tr align=center

[PHP] Does somebody knows a good Authentication Sample in PHP

2002-01-18 Thread ignacio . estrada
I am using: PHP4.01 CGI Version on W2K Greetings !! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469 - Remitido por Ignacio Estrada Fonseca/CEN/GDL/CFE con fecha 01/18/2002 12:41 -

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Jeff, If mail is working, then agree with your point about config. Appendix B. Using PHP from the command line Usage: php [-q] [-h] [-s [-v] [-i] [-f file] | {file [args...]} -q Quiet-mode. Suppress HTTP Header output. -C Do not chdir to the script's directory -c

RE: [PHP] bug in echo function?

2002-01-18 Thread Darren Gamble
Good day, The reason that the first statement doesn't work as intended is due to the order that the operands are processed. The operands in the line: td . ($i*8)+$j . /td are being processed like this: (td . ($i*8))+($j . /td) If you change the line to: td . (($i*8)+$j) . /td then you'll

[PHP] Re: Scripts keep refreshing

2002-01-18 Thread Michel van Westen
Yeah i thought it would be something like that too at first, but it happens to all scripts and most of them don't use header(Location:...); Julio Nobrega Trabalhando [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Maybe you were doing something like this: if

[PHP] mailing list manager

2002-01-18 Thread NU Webmaster
Hello, i need a mailing list manager in php, with which i can send html email and store my subscribers in a mysql database anyone knows where i can get one? thanks, Christophe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] bug in echo function?

2002-01-18 Thread Darren Gamble
Good day, No, that's not it. It's just a simple matter of order of operations. You have an expression- that expression needs to be evaluated into one thing, and that one thing is then passed to echo() as the single argument. I'm not a php expert, but evidently the . operator is evaluated

Re: [PHP] quick and easy(php newbie)

2002-01-18 Thread Richard Crawford
Try something like: $Entry = $openingEntry . $numberAtt . \ . $myNumber . \ . $nameAtt... and so on. travis wrote: just a quick syntax question: here is my php ? $openingItemTag = item\n; $openingEntry = entry ; $numberAtt = number=; $nameAtt = name=; $dateAtt = date=; $messageAtt

RE: [PHP] bug in echo function?

2002-01-18 Thread Billy Harvey
On Fri, 2002-01-18 at 13:54, Darren Gamble wrote: Good day, The reason that the first statement doesn't work as intended is due to the order that the operands are processed. The operands in the line: td . ($i*8)+$j . /td are being processed like this: (td . ($i*8))+($j . /td)

RE: [PHP] Re: odbc linux to win2000

2002-01-18 Thread Andrew Hill
Hi Ergin, Not entirely true - ODBC drivers to MS SQL Server and Sybase, etc are available. You may use OpenLink's Multi-Tier driver, which has linux client support. Free downloads are available at http://www.openlinksw.com and free support is offered at

[PHP] quick and easy(php newbie)

2002-01-18 Thread travis
just a quick syntax question: here is my php ? $openingItemTag = item\n; $openingEntry = entry ; $numberAtt = number=; $nameAtt = name=; $dateAtt = date=; $messageAtt = message=; $linkAtt = link=; $closingEntry = /\n; $closingItemTag = /item; $Entry=

[PHP] disable_functions on virtual hosts?

2002-01-18 Thread Ing. Daniel Manrique
I'd like to disable certain functions for a particular virtual host, and leave them as is for all the rest. The usual way to do this would be to include something like: php_admin_value disable_functions system,exec in the virtual host's configuration block. However, this doesn't work, and

[PHP] Re: quick and easy(php newbie)

2002-01-18 Thread travis
heres a question, I am using this to update an xml file... the vars originate from a flash interface, so they are all strings, do I need to worry about anything here? should i be usiung arrays in php to house the info or is this sufficient? I am using php only to add new entries, the flash

RE: [PHP] Variable problem

2002-01-18 Thread Yoel Benitez Fonseca
Use an array !?, I mean : $result[$i] = test; How do I combine the following so it is treated as one variable $i=10 $result$i=test; I want this to be: $result10=test; $i changes so I cannot just put in 10 instead of I. anybody know how i can do that? -- Yoel Benitez

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Figured it out. Pulled out the -Close() and had the quit() just override the save. Here's the new function in case anyone cares. function spellcheck($string){ $word = new COM(word.application) or die(Unable to instanciate Word); $word-Visible = 0; $word-Documents-Add();

[PHP] function arguments

2002-01-18 Thread Malte Fucks
Hi, how do i tell a function which arguments can be passed and which must be passed... example: function func($arga, $argb, $argc) { do_something_with_arga; do_another_thing_with_argb; and_if_argc_was_passed_do_something_with_it_too; } because i dont want to pass argc if i dont need it, and to

[PHP] writing xml with php

2002-01-18 Thread travis
this is a long one so bear with me... my current php script * ? $openingItemTag = item\n; $openingEntry = ' entry '; $numberAtt = 'number='; $nameAtt = ' name='; $dateAtt = ' date='; $messageAtt = ' message='; $linkAtt = ' link='; $closingEntry = \/\n; $closingItemTag

Re: [PHP] function arguments

2002-01-18 Thread Ben Sinclair
You can do something like this: function myFunction($a = hello, $b = world) { } Both arguments are optional and have default values. This is in the documentation. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Malte Fucks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread DL Neil
Jeff, FWIW my system is set up to hold PHP in C:\program files\php, which is where the php.exe can be found. PHP.ini is supposed to be in c:\winnt isn't it? =dn - Original Message - From: Jeff D. Hamann [EMAIL PROTECTED] To: DL Neil [EMAIL PROTECTED]; mike cullerton [EMAIL

[PHP] printing html

2002-01-18 Thread fitiux
Hi friends, =) someone have experience using printer functions ? I mean... I would like to print a php generated page with a link within this page example: I have an html page with a table..but I need to print without header, footer and also I need to print in landscape... all of this with a

Re: [PHP] function arguments

2002-01-18 Thread mike cullerton
expanding on this... function func($arga, $argb, $argc='') { do_something_with_arga($arga); do_another_thing_with_argb($argb); if ($argc != '') do_somthing_with_argc($argc); } on 1/18/02 1:19 PM, Ben Sinclair at [EMAIL PROTECTED] wrote: You can do something like this: function

Re: [PHP] printing html

2002-01-18 Thread Richard Crawford
You might have better luck using the Print command from MSIE or Netscape, something which allows you to set up printer parameters. fitiux wrote: Hi friends, =) someone have experience using printer functions ? I mean... I would like to print a php generated page with a link within

[PHP] Uploading file to php

2002-01-18 Thread Mike Schroeder
Hi, I followed the examples in the FAQ and was able to make the upload work, using client HTML code similar to this: FORM NAME=the_form ENCTYPE=multipart/form-data METHOD=POST ACTION=somephp.php File Name: INPUT NAME=filename TYPE=file INPUT TYPE=submit VALUE=submit /FORM The problem is that

[PHP] how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Can anyone advise or direct me to the documentation that references how to send a user to a URL if an 'if' statement is satisfied? Thanks! Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Ing. Daniel Manrique
Can anyone advise or direct me to the documentation that references how to send a user to a URL if an 'if' statement is satisfied? Assuming you hadn't sent any output before: if ($condition){ header(Location: http://wherever.com;); exit; } -- PHP General Mailing List

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Sorry, I'm new at this... I have already sent output... any way to do this? Thanks again, Andrea Ing. Daniel Manrique [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone advise or direct me to the documentation that references how to send a user to a

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Hopefully this is my last reply on this thread. I discovered after opening Word normally after a few dozen tests, that it tried to recover all those lost documents. The following demo script has that fixed. ?php function spellcheck($string){ $word = new COM(word.application) or die(The

  1   2   >