[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: [EMA

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 vi

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 wh

[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: [EMAI

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 a

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 a

[PHP] Scripts keep refreshing

2002-01-18 Thread Michel van Westen
Hi all, i got a serious problem: I got php3 running for quit a while and it was running fine with all my scripts. About a week ago i decided my time had come and i had to update to php4, now all my scripts keep on refreshing without having loaded the whole script, it just refreshes over and over

[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 (particula

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 Messa

[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 Subj

[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 vari

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 phpscri

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.con

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 Mail

[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 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 Schermer Didriksen "

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 : Exc

[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 ch

[PHP] Re: Feature Suggestion

2002-01-18 Thread Julio Nobrega Trabalhando
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 PROTECTED]> wrote in message [EM

[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 PROTECT

[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 inst

[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' pro

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 for

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 evolve

[PHP] Regular Expressions...

2002-01-18 Thread Tony Arnold
Howdy people... I want to extract the name of a hyperlink which looks like this: this is the name! 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 DuB

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: > > this is the name! > > I tried to do this: > > ereg(">([a-zA-Z0-9_. -]*)<",$hlink, $reg3); > > and it works if it only consists of the above characters, how c

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 h

Re: [PHP] Re: Computer Science and PHP

2002-01-18 Thread py
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 no VB... I think it

[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 kn

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' > w

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

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 on

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 PROTECT

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] Feature Suggestion

2002-01-18 Thread Robert V. Zwink
I think this feature already exists. Check out: http://www.php.net/manual/en/function.range.php Robert Zwink http://www.zwink.net/daid.php -Original Message- From: Mike Eheler [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 7:59 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Su

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: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] strange problem

2002-01-18 Thread Marc Logghe
what the heck !? I would never think on that but you are absolutely right. It all worked again after replacing straights with curlies. Is PHP going the perl way ? Thanks a million for this tip. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

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. If

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: PH

[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_auprivid = $childNodes[$y]->content ;

[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. > F

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 administrator

[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 with

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

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 th

[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 incre

[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 wo

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

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) su

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 object

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]

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]

[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 jus

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. M

[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 0d4f01c1a00e$87036ee0$2916100a@jrbrown">news:0d4f01c1a00e$8

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 eve

[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 mayb

[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 unsubscrib

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.. 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 don't see how this could be a config problem. The ema

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

Re: [PHP] Variable Problem

2002-01-18 Thread val petruchek
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 > > > How do I combine the following so it is treated as one

[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 e

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 subs

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! > > >

[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, 025+6464

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. back-slash

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

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] comman

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 PROTECTED]">ne

[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: > $array = range('a','z'); > ?> > > As usual your mileage may vary but it worked here :-) > > -- > > Julio Nobrega. > > Um dia eu chego lá: > http://so

[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): - Chess "; for ($j=0 ; $j<8 ; $j++) { echo "" . ($i*8)+$j . ""; } echo "\n"; } ?> - Howev

[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 - ignacio.estrada

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 ] | { [args...]} -q Quiet-mode. Suppress HTTP Header output. -C Do not chdir to the script's directory -c Lo

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: "" . ($i*8)+$j . "" are being processed like this: ("" . ($i*8))+($j . "") If you change the line to: "" . (($i*8)+$j) . "" then you'll get

[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

[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 command

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 bef

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 = "\n"; > $openingEntry = " $numberAtt = "number="; > $nameAtt = "name="; > $dateAtt = "date="; > $mes

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: > > "" . ($i*8)+$j . "" > > are being processed like this: > > ("" . ($i*8))+($j

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 http://www.openlinksw.com/support/suppindx

[PHP] quick and easy(php newbie)

2002-01-18 Thread travis
just a quick syntax question: here is my php \n"; $openingEntry = " if done twice it returns this: http://www.me.com/> http://www.me.com/> i want it to display as follows: http://www.me.com/";> http://www.me.com/";> now it is writing to the file I want perfectlybut but but I

[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 s

[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 parse

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? -

[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(); $word->Selection->T

[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 * \n"; $openingEntry = ' \n"; $closingItemTag = "\n"; $Entry= $openingEntry.$numberAtt.$myNumber.$nameAtt.$myName.$dateAtt.$myDate. $messageAtt.$myMessage. $linkAtt.$myLink.$closingEntry; $Item = $openingItemT

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]> S

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" <[EMAI

[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 m

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 withi

[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: File Name: The problem is that it works great with Netscape, but fails with IE. If the client is Netscape, the "somephp.php" program gets the $filename= /tmp/phpmo4QE9 and $f

  1   2   >