[PHP] PHP forms

2001-01-31 Thread Victor Hamutenya
Hi, my name is Victor from Namibia, I do web development with PHP, I hapenned to find your email address on one of the PHP sites on the Net, as one of the contributors on the PHP notes. Can you please, if it is possible, tell me how to write in a form field with PHP script. Like in Javascript

RE: [PHP] Editor

2001-01-31 Thread Kritsapon Pukahuta
It's not free.. check at editplus.com -Original Message- From: Christian Sakshaug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 6:47 PM To: Maxim Maletsky Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Editor >EditPlus.com ($?) Free I think... >-Original

Re[2]: [PHP] session question

2001-01-31 Thread Max A. Derkachev
Hello Teodor, Wednesday, January 31, 2001, 10:49:34 AM, you wrote: TC> Hi Mark! TC> On Wed, 31 Jan 2001, Mark Green wrote: >> How about this: >> >> session_start(); >> session_register($funky_session_var); >> $funky_session_var ++; >> print $funky_session_var; TC> the order doesn't matter

Re: [PHP] Function by reference?

2001-01-31 Thread Max A. Derkachev
Hello Niklas, Wednesday, January 31, 2001, 7:02:49 PM, you wrote: NS> $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this->dataToBeParsed); NS> where I want \\1 to be fed into urlencode() I was thinking somewhere along the lines NS> $func=&urlencode; It won't work. You can

[PHP] test, please ignore

2001-01-31 Thread Patrick L.
testing -- 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 administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Naughty Word Catcher

2001-01-31 Thread O.Cook
> -Original Message- > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] > Sent: 31 January 2001 06:58 > To: Maxim Maletsky; 'Chris Aitken'; [EMAIL PROTECTED] > Subject: RE: [PHP] Naughty Word Catcher > > >header("Location: insert_stuff.php?comment=$text"); ... so having seen where th

[PHP] Want to learn PHP

2001-01-31 Thread Patrick L.
I've been struggling with perl, till someone said why not give PHP a shot. Where do I start? Aside from manuals, are there any online courses/tutorials which will get me going? TIA Patrick L. www.choozart.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] Function by reference?

2001-01-31 Thread Wico de Leeuw
At 11:35 31-1-01 +0300, Max A. Derkachev wrote: >Hello Niklas, > >Wednesday, January 31, 2001, 7:02:49 PM, you wrote: >NS> >$tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this->dataToBeParsed); Take a look @ Preg_Replace with the e modifier, i think you are looking for that (p

Re: [PHP] php and forms question

2001-01-31 Thread Michael Hall
Chip: Sessions aren't my forte, but I can't see where you're registering your session variables. You need to do more than simply use 'session_start' if using sessions ... perhaps you're doing this on another page, but if not you'll need to register variables using 'session_register'. You'll also

Re: [PHP] Want to learn PHP

2001-01-31 Thread Tshering Norbu
I am also new to PHP. I think www.wdvl.com has good resources. NOBBY - Original Message - From: Patrick L. <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 31, 2001 2:55 PM Subject: [PHP] Want to learn PHP > I've been struggling with perl, till someone said why

Re: [PHP] Want to learn PHP

2001-01-31 Thread Michael Hall
There are quite a few tutorials at www.devshed.com/Server_Side/PHP. Also some at www.webmonkey.com/programming/php/index.html. PHP is definitely quicker and easier to learn than Perl, and provided you want to do web programming it will do just about everything Perl can do. Mick On Wed, 31 Jan

[PHP-CVS] cvs: php4 /ext/com conversion.c

2001-01-31 Thread Harald Radi
phanto Wed Jan 31 01:30:13 2001 EDT Modified files: /php4/ext/com conversion.c Log: added currency, date, IUnknown and NULL datatypes Index: php4/ext/com/conversion.c diff -u php4/ext/com/conversion.c:1.3 php4/ext/com/conversion.c:1.4 --- php4/ext/com/c

[PHP] wrong math php3

2001-01-31 Thread D.Bucher
Using PHP Version 3.0.18, Apache Version: Apache/1.3.14 on a Linux RH6.2. when i try to do mathematic function eg 4,5*4,5 sometimes iget the result 16 and sometimes the result 20,25. After restarting apache it works for lets say 2-3 hours. Then it comes again. Does anybody had same or similar p

Re: [PHP] HowTo: IBM DB2 w/PHP

2001-01-31 Thread Antonio S. Martins Jr.
On Tue, 30 Jan 2001, Karl J. Stubsjoen wrote: > We have succesfully installed the IBM DB2 RDMS on our Linux box and have > successfully made a connection to our AS400. All through command line > though. What are the versions of your AS400 and DB2 for Linux? I had tryied to connect on an AS400 s

[PHP] round

2001-01-31 Thread AJDIN BRANDIC
Hi Lets say $foo=20.12345 In php4 you can use : $foo=$round($foo,2); to get $foo=20.12 What can I use in php3 to get the same result. $foo=$round($foo); gives me $foo=20 Not what I realy want??? Thanks Ajdin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] PHP forms

2001-01-31 Thread Johannes Janson
e.g. > Johannes "Victor Hamutenya" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, my name is Victor from Namibia, I do web development with PHP, I > hapenned to find your email address on one of the PHP sites on the Net, > as one of the contributor

Re: [PHP] round

2001-01-31 Thread AJDIN BRANDIC
Oh, number_format (float number, int decimals, string dec_point, string thousands_sep) Sorry Ajdin On Wed, 31 Jan 2001, AJDIN BRANDIC wrote: > Hi > > Lets say $foo=20.12345 > > In php4 you can use : $foo=$round($foo,2); to get $foo=20.12 > > What can I use in php3 to get the same result

Re: [PHP] PC<->Mac

2001-01-31 Thread Christian Reiniger
On Tuesday 30 January 2001 17:26, Markus H. Maussner wrote: > is there a PHP function wich translates from Mac to PC ? Look for the "Recode" extension -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to paraphrase Churchill, while representative democracy may be terrible, it

RE: [PHP] Want to learn PHP

2001-01-31 Thread Boaz Yahav
http://www.weberdev.com > -Original Message- > From: Michael Hall [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 31, 2001 10:08 AM > To: Patrick L. > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Want to learn PHP > > > > There are quite a few tutorials at www.devshed.com/Server_Si

[PHP] File Download Completion

2001-01-31 Thread Boaz Yahav
Is it possible to find out if a client finished to DL a file? Suppose i put a link to a file and people start to DL the file. Some people can stop the DL in the middle. I need to know how many people completed the DL. Any simple ideas how to do this? thanks berber -- PHP General Mailing List

[PHP] About function Include

2001-01-31 Thread Eder Henrique Vieira Ribeiro
Hi, list, I've been using the funcion INCLUDE like this: because file header.htm has to be included in a lot of files. I want to use "/" because file header.htm is in main directory (like E:) and there are files in very directories above E:. But when I have a file in a directory above, like E:fol

[PHP] Uppdating a frame from another frame using PHP

2001-01-31 Thread Rickard Walder
I am using PHP on site using frames. I need to uppdate a frame called basket_right everytime I run a file called cart_add.php (which contains no HTML code) from the frame called menu_and_main I tried using the header("Location: ") command, but don't know how to adress the basket_right frame. Is th

RE: [PHP] string length?

2001-01-31 Thread Maxim Maletsky
I would do : $num = substr_count($numbers, ';'); +/- whatever the difference it could make Cheers, Maxim Maletsky -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 12:29 PM To: Jon Jacob Cc: [EMAIL PROTECTED] Subject: Re: [PHP] string le

[PHP] str_replace

2001-01-31 Thread Augusto Cesar Castoldi
In the begin of my site, I have the following code: And somewhere on tag I write %99. I pretend to replace the %99 with $total. Why it doesn't work? When I publish my site appears the %99 on screen, and not the $total. thanks, Augusto Cesar Castoldi -- PHP General Mailing List (http://www

[PHP] Function by reference

2001-01-31 Thread Niklas Saers
Hi all. I was wondering, can a reference be a function as well? Reason is, I've got to do a little manipulating. I want to do a $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this->dataToBeParsed); where I want \\1 to be fed into urlencode() I was thinking somewhere along th

RE: [PHP] verify that email exist ?

2001-01-31 Thread kaab kaoutar
Hi! What do u fill exaclty ? only the local user and localhost ? do i have to chenge the srever_name,host,username and user ? if i fill it bu kaab_k as local user and hotmail.com as hotmail.com! should it work in ur environment ? thanks ! >From: "Brian V Bonini" <[EMAIL PROTECTED]> >Reply-To: <[

[PHP] check email exists under Windows NT!

2001-01-31 Thread kaab kaoutar
Hi! Is it posiible to check that an email exists before confirming a form under windows NT ? Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Return-Path: <[EMAIL PROTECTED]> Received: (qm

php-general Digest 31 Jan 2001 12:16:00 -0000 Issue 484

2001-01-31 Thread php-general-digest-help
php-general Digest 31 Jan 2001 12:16:00 - Issue 484 Topics (messages 37320 through 37460): Forbidden to browse 2001012 37320 by: dphillips.rfdinc.com Re: these url icons fashion 37321 by: kaab kaoutar 37399 by: Matthew Kendall string length? 37322 by: Kevin

[PHP] Bcc email does not work

2001-01-31 Thread kaab kaoutar
Hi! Have u ever tried to send many emails using Bcc? It does not work for me ! Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Return-Path: <[EMAIL PROTECTED]> Received: (qmail 19528 i

Re: [PHP] Read Vs. Include

2001-01-31 Thread Daniel Grace
On Tuesday, January 30, 2001 at 3:04 PM, Alexandar Skwar wrote: > So sprach Daniel Grace am Thu, Jan 25, 2001 at 07:18:52PM -0800: > > readfile($filename); > > Why not include? > Because include will execute any PHP code in the included file and readfile will not, it just dumps the entire file t

[PHP] REGULAR EXPRESSION

2001-01-31 Thread kaab kaoutar
Hi! I 'd like to have an input that contains only a to Z and space and ëàéêêàäïüöûâç- nothing else like numbers or whatever and also does not start with space ! till now with ur help i get the following : (!ereg("[a-zA-Z[:space:]ëàéêêàäïüöûâç-]", $name)) but it accepts numbers , i tried (!ereg

[PHP] Odbc Vs Oracle

2001-01-31 Thread kaab kaoutar
Hi! i'm using an orcale DB, i'd like to know what's the best way to exploit php ? using odbc or oracle functions ? Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing

[PHP] php changing passwd from unixusers?

2001-01-31 Thread Geert Houben - HICT
Hi, Is it possible using a php -based website to change passwords from unixusers? Php runs at my system under user: www how can I let it execute: passwd and change a password? Nice regards, Geert Houben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] File Download Completion

2001-01-31 Thread Daniel Grace
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it possible to find out if a client finished to DL a file? > > Suppose i put a link to a file and people start to DL the file. > Some people can stop the DL in the middle. I need to know > how many

[PHP] Oracle8 OciLogon !

2001-01-31 Thread kaab kaoutar
Hi! i use oracle and i always get this error: call to undefined function ocilogon()! Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Oracle failed to connect

2001-01-31 Thread kaab kaoutar
Hi! I'm using orcale8 and as long as oracle8 ocilogon does not work, i tried the oracle function and i always get: for Ora_Logon("kaab@KKAnn", "kaab"); connection failed could not resolve service name thanks _ Get Your Pr

[PHP] where to get musql for windows NT

2001-01-31 Thread kaab kaoutar
Hi! where can i get mysql for NT? thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] SQL question

2001-01-31 Thread Daniel Grace
"John LYC" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, > > does mysql support this? > > select * from tablename where id in (select id from table2 where cond) > > thanks > No. MySQL does not support so-called sub-selects. Here's an easy workaround i

Re: [PHP] where to get musql for windows NT

2001-01-31 Thread Augusto Cesar Castoldi
http://www.mysql.com/downloads/index.html On Wed, 31 Jan 2001, kaab kaoutar wrote: > Hi! > where can i get mysql for NT? > thanks > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > -- >

Re: [PHP] File Download Completion

2001-01-31 Thread Andy Woolley
Hi Berber, The only way I've figured this at the moment is to use the web server access logs. They will tell you how many bytes were transfered, if it matches the file size then transmission was potentialy succesful. I'm trying to think of a better way using PHP and maybe JavaScript but at the m

[PHP] PHPub: A Zend IDE/DEBUGGER Alternative

2001-01-31 Thread Ralph Guzman
I am glad to see others working on alternatives to the highly cost Zend products. I came across PHPub, a PHP IDE/Debugger which I've never seen mentioned on this list. Even though it is still not ready for final release, it's seems pretty stable. Great Features. One of it's cool features is a b

[PHP] Php and forking

2001-01-31 Thread Nicklas af Ekenstam
Hi! Is there some way (perhaps using a multi threaded httpd?) that I can get php to fork processes? I.e. I'd like to have a script which prints something to the clients web browser and terminates that http connection, but keeps going in the background doing other processing not related to the

[PHP] RegEx and URLs

2001-01-31 Thread Joe Sheble (Wizaerd)
Either I missed the answer on the mailing list, or it was accidentally skipped, so I'll re-ask... I have a bit of text ( a TEXT field in mySQL ) and there may or may not be URLs in this text. (These URLs are defined as anything starting with http://, mailto:, or www.). Some of these URLs may

[PHP] cURL & telnet

2001-01-31 Thread Montgomery-Recht, Evan
Does anyone have any experience using cURL with Telnet in PHP. thanks, evan -- 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 administrators, e-mail: [EMAIL PROTECTED]

[PHP] print correct values for variables inside variebles ..

2001-01-31 Thread hsmith
I've posted a similar question .. and got hat one resolved .. but now I'ms trugling with this one .. I have a page called edit .. that I pass a variable called $page like this edit.php3?page=index what I'm trying is something like this .. function blah($page){ $query="select * from sit

Re: [PHP] expressions

2001-01-31 Thread CC Zona
[re-arranging quotes to bottom posting] In article <9556pp$sna$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Jeff Warrington") wrote: > > hi, im trying to fix this couple of hours but i couldnt find the > > mistake... can somebody look at it... > > > > first i want to check the $co_area for 3 digita

[PHP] neat html output

2001-01-31 Thread Mark
I'd like my html output to be neatly written, including newlines is helpful but does anyone know of a better way to output newlines than appending ."\n"; to every echo statement. -Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] neat html output

2001-01-31 Thread Joe Sheble (Wizaerd)
Write yourself a function that handles it yourself and include it in every page... something such as: function println( $cTextToPrint ) { print( $cTextToPrint . "" ); } then in your pages just use println() everywhere... At 08:29 AM 1/31/01 -0600, Mark wrote: >I'd like my html output

Re: [PHP] neat html output

2001-01-31 Thread Joe Sheble (Wizaerd)
oops, that function declaration should look like: function println( $cTextToPrint ) { print( $cTextToPrint . chr(13) ); } At 07:40 AM 1/31/01 -0700, Joe Sheble (Wizaerd) wrote: >Write yourself a function that handles it yourself and include it in every >page... something such as: > >

[PHP] Unable to fork???

2001-01-31 Thread Daniel Williams
I continue to get following error when trying to execute external program: "Warning: Unable to fork..." Anyone know what this means? or how to fix it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] where to get musql for windows NT

2001-01-31 Thread Michael Kimsal
mysql.com kaab kaoutar wrote: > Hi! > where can i get mysql for NT? > thanks > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubs

[PHP] Can you do this

2001-01-31 Thread Boget, Chris
Academic curiosity - You can do the following: echo "3 - 2 = " . ( bcsub( 3, 2 )); and PHP evaluates the expression in parenthesis (in this case a function) before it evaluates the echo statement and what gets printed out is: 3 - 2 = 1 Now, say I have a function where one of the arguments i

[PHP-CVS] cvs: php4 / RELEASE_PROCESS

2001-01-31 Thread James Moore
jmoore Wed Jan 31 05:58:20 2001 EDT Added files: /php4 RELEASE_PROCESS Log: Adding readme for release process, this needs to live somewhere and here seems as good a place as any. -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] neat html output

2001-01-31 Thread php3
Addressed to: "Mark" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Mark" <[EMAIL PROTECTED]> Wed, 31 Jan 2001 08:29:57 -0600 > > I'd like my html output to be neatly written, including newlines is > helpful but does anyone know of a better way to output newlines than

Re: [PHP] php & jsp

2001-01-31 Thread Shashank Tripathi
Hi George, Why should it be a problem? You could easily set this up as a module top Apache (since you did not mention which web server you use, I am assuming you use Apache). For an example of how to use PHP as a module, please take a look at: http://shanx.com/php/install_win32.txt For JSP,

Re: [PHP] HowTo: IBM DB2 w/PHP

2001-01-31 Thread Karl J. Stubsjoen
We are running AS400 4.4 and PHP4, not sure what version of Linux we are running. - Original Message - From: "Antonio S. Martins Jr." <[EMAIL PROTECTED]> To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Cc: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 31, 2001 3:23 AM Subjec

Re: [PHP] Want to learn PHP

2001-01-31 Thread php3
Addressed to: "Patrick L." <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Patrick L." <[EMAIL PROTECTED]> Wed, 31 Jan 2001 00:55:47 -0800 > > I've been struggling with perl, till someone said why not give PHP a > shot. > > Where do I start? > > Aside from manuals, are

[PHP-CVS] cvs: php4 /ext/mnogosearch README config.m4 php_mnogo.c php_mnogo.h setup.stub test.php

2001-01-31 Thread Sergey Kartashoff
gluke Wed Jan 31 06:04:30 2001 EDT Modified files: /php4/ext/mnogosearch README config.m4 php_mnogo.c php_mnogo.h setup.stub test.php Log: Added search cache and track query features. @-Added search cache and track query

Re: [PHP] neat html output

2001-01-31 Thread Toby Miller
Mark, The closest way that I know of to accomplish this is to print them more like you would HTML. So in other words, you can do this: $title $content '; ?> or like this: The only way around these methods that I've seen are using template wrapper objects and creating the whole

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-31 Thread Andrei Zmievski
andrei Wed Jan 31 06:23:10 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Zak's karma for qaweb. Index: CVSROOT/avail diff -u CVSROOT/avail:1.65 CVSROOT/avail:1.66 --- CVSROOT/avail:1.65 Tue Jan 30 04:41:40 2001 +++ CVSROOT/avail Wed

[PHP] php4 - MS SQL7 connection problem

2001-01-31 Thread @n Angel
Hello! I'm running: WinNT4, IIS4, php 4.03pl1, and I'm trying to connect to MS SQL 7. Well, I configured the php.ini (extension=php_mssql70.dll), and I copy that .dll to the windows folder. Now I want to connect to the SQL and it doesn't work, it makes a time out. If I do the same things with php

[PHP] Loading extensions

2001-01-31 Thread Shimon Dekel
Hi , I was running PHP 4 on NT 4 SP6 with IIS4 with no problems. Yesterday I have upgraded to PHP 4.0.5. Now if I have any "extension=" line in php.ini not disable (i.e. not having a semicolon (;) in front the first php page being called pops up a message on the server screen with the message "Una

RE: [PHP] Uppdating a frame from another frame using PHP

2001-01-31 Thread Ryan Gaul
What about something like this javascript: parent.basket_right.location=page You can encapsulate it in a function like this: function refresh_frame(page,frame_name) { parent.frame_name.location=page; } Then you could call this from an onlo

Re: [PHP] ID value

2001-01-31 Thread Piotr Duszynski
> $sql = "INSERT INTO songs (id,name,url) VALUES > ('','Foobar','test.php?id=)"; > > The id is autoincrement so obviously left blank, yet I'd like to put it into > the url where is. > > How do I go about dragging back the id even though it is being created (I > suppose) while the statement is

Re: [PHP] Killing session cookies, caches and everything.

2001-01-31 Thread Angel Behar
> Try doing SetCookie(SESS_ID, ''); as well. I try it but doesn't work either... If someone fix this please help, I'm very worried right now. Thanks again. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Unable to fork???

2001-01-31 Thread johnny p.
It means there's a limit on number of processes for your user id. If you're using bash, try typing 'ulimit -a' and see how many user processes you are allowed to have. ulimit -a prints out all the limits that are imposed on your user account. then try increasing that number to something higher

[PHP] Session Code debug help requested

2001-01-31 Thread Matthew Mundy
Hello all. Sorry, I know sessions come up a lot. I am attempting to use sessions for login tracking. The session starts fine, sends the cookie fine(login as the session name), registers login as a session var, then location should switch to index. all my files except login include() a file calle

Re: [PHP] Can you do this

2001-01-31 Thread Christian Reiniger
On Wednesday 31 January 2001 16:03, Boget, Chris wrote: > Now, say I have a function where one of the arguments > is passed by reference and is modified within the function. > I can call this function on one line > > myFunc( &$modifiedVariable ); > > and print out the value (if any) of $modifiedV

RE: [PHP] Can you do this

2001-01-31 Thread Boget, Chris
> What about using normal pass-by-value and returning the result? > function MyFunc ($SomeVal) { > $SomeVal += 42; > return $SomeVal; > } > echo MyFunc ($StrangeVal); I'm already using the return value for something else. > Anyway - functions that get their parameters by reference and > mo

Re: [PHP] str_replace

2001-01-31 Thread Jason Murray
Augusto Cesar Castoldi wrote: > > In the begin of my site, I have the following code: > $buffer = str_replace("%99", $total, $buffer); > ?> > > And somewhere on tag I write %99. > > I pretend to replace the %99 with $total. Why it doesn't work? When I > publish my site appears the %99 on scre

Re: [PHP] str_replace

2001-01-31 Thread Philip Olson
Because you must replace it after $total and $buffer are defined, not before. This works : This does not work : Regards, Philip Olson http://www.cornado.com/ On Wed, 31 Jan 2001, Augusto Cesar Castoldi wrote: > In the begin of my site, I have the following code: > $buffer = str_

RE: [PHP] File Download Completion

2001-01-31 Thread Boaz Yahav
I thought of this log thing but we are talking about logs that can be hundreds of MB per day. I'm talking about logs of a very big portal, starting to analyze this is useless :) thanks berber -Original Message- From: Andy Woolley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2

[PHP] Cobalt Raq Servers & PHP

2001-01-31 Thread Jamie Thompson
Has anyone had any experience using php on a Cobalt Raq4 server? any bugs or weird stuff i should know about? -- There are more than 1,000 chemicals in a cup of coffee. Of these, only 26 have been tested, and half caused cancer in rats.

RE: [PHP] sessions - max number of variables before things get bad?

2001-01-31 Thread Jon Snell
The number of variables you are using probably won't make much of an impact on performance. You may want to test doing it both ways, you can use the gettimeofday function to do function profiling, it will return the time with microsecond accuracy. I'm guessing one call to the database at the sta

[PHP] gethostbyaddr timeout

2001-01-31 Thread Aaron Gould
I'm at the end of my rope here... I have a 100,000+ line file containing IP addresses. For each line, I need to run a "gethostbyaddr" command. However, some lines take a long time to timeout. Is there a way I can decrease this timeout period to one or two seconds? Thanks!! -- Aaron Gould Pro

[PHP-CVS] cvs: php3 / configure.in

2001-01-31 Thread Sascha Schumann
sas Wed Jan 31 08:51:01 2001 EDT Modified files: /php3 configure.in Log: s/ /:/ for AC_PROG_PATH PR: #9026 Index: php3/configure.in diff -u php3/configure.in:1.507 php3/configure.in:1.508 --- php3/configure.in:1.507 Thu Dec 14 13:38:12 200

[PHP] File uploading?

2001-01-31 Thread Lauri Vain
Hello everybody, I'm trying to do a file upload from the users computer via HTML file form element to a Linux server running Apache. The file is selected by the user from her or his computer, they hit the submit button and the file goes to /print/ folder (dir relative to uploading script on the

[PHP] Is correct ??

2001-01-31 Thread Miguel Loureiro
Hi, Anybody knows if this sourcecode is correct to calculate the numbers of days in certain date ? $m - month; $d - day, $y - year if($m<=2){ $y--; $m+=13; } else $m++; $nd = (1461 * $y / 4) + (153*$m/5) + $d; Because I use this code in a function and sometimes it your and others dont ...

RE: [PHP] Is correct ??

2001-01-31 Thread Boget, Chris
> Anybody knows if this sourcecode is correct to calculate the > numbers of days in certain date ? Why are you going through all that effort? $janOne = mktime( 0, 0, 0, 1, 1, date( "Y" )); $myDate = mktime( 0, 0, 0, $m, $d, $y ); $daysInYear = ( $myDate - $janOne ) / 86400; That should do it

RE: [PHP] Is correct ??

2001-01-31 Thread Boget, Chris
> > Anybody knows if this sourcecode is correct to calculate the > > numbers of days in certain date ? > Why are you going through all that effort? > $janOne = mktime( 0, 0, 0, 1, 1, date( "Y" )); > $myDate = mktime( 0, 0, 0, $m, $d, $y ); > $daysInYear = ( $myDate - $janOne ) / 86400; > That s

Re: [PHP] File uploading?

2001-01-31 Thread Ben
Lauri, supposing you name the file input tag "myfile" (like ), then $myfile contains the name of the temporary file on the server, while $myfile_name contains the filename on the client's system. See also http://www.php.net/manual/en/features.file-upload.php Drop me a line if you are still stu

RE: [PHP] Is correct ??

2001-01-31 Thread johnny p.
Ahh, date math... I spent 2 weeks trying to solve this once. I'm not exactly sure what you are trying to calculate here. If you want the number of days since the year 1601, no problem. I'm not sure where you get your 1461 from, tho... here's an algorthm I did in perl, which is fairly similar:

Re: [PHP] File uploading?

2001-01-31 Thread James Smith
Here is the code i'm running for my file upload and it work correctly: // file with submit form // This is the file that you want to use as post // example is postfile.php // That will copy the file. here is the full function I have implemented with my page to store path into mysql. fun

[PHP] copy() ??

2001-01-31 Thread Fredrik Arild Takle
I'm trying to upload i file through a webpage... --> add.php3 --> do_add.php3 copy($userfile, "/imgs/artikler/test.jpg"); unlink($userfile); --> ERROR msg..: Warning: Unable to create '/imgs/artikler/test.jpg': No such file or directory in c:/programfiler/apache group/apache/htdocs/do_ad

Re: [PHP] gethostbyaddr timeout

2001-01-31 Thread Jon Jacob
Aaron Gould wrote: > > I'm at the end of my rope here... > > I have a 100,000+ line file containing IP addresses. For each line, I need > to run a "gethostbyaddr" command. However, some lines take a long time to > timeout. Is there a way I can decrease this timeout period to one or two > seco

[PHP] imap (nntp) message tracking

2001-01-31 Thread Larry Hotchkiss
Can anyone recommend a good (eficient) way of tracking downloaded (read) messages from a nntp server? I would like to run a script to retrieve a couple news groups and archive them, but I am unsure as to the best method of tracking which messages I have. I will likely be storing messages i

[PHP-CVS] cvs: php4 /ext/iconv iconv.c iconv.dsp

2001-01-31 Thread Daniel Beulshausen
dbeuWed Jan 31 08:57:00 2001 EDT Added files: /php4/ext/iconv iconv.dsp Modified files: /php4/ext/iconv iconv.c Log: make iconv compile under win32 using libiconv # http://clisp.cons.org/~haible/packages-libiconv.html Inde

[PHP-CVS] cvs: php4 /ext/pdf pdf.c

2001-01-31 Thread Daniel Beulshausen
dbeuWed Jan 31 09:00:10 2001 EDT Modified files: /php4/ext/pdf pdf.c Log: fix typo Index: php4/ext/pdf/pdf.c diff -u php4/ext/pdf/pdf.c:1.67 php4/ext/pdf/pdf.c:1.68 --- php4/ext/pdf/pdf.c:1.67 Fri Jan 26 10:52:37 2001 +++ php4/ext/pdf/pdf.c Wed J

[PHP-CVS] cvs: php4 /ext/ming ming.dsp php_ming.h

2001-01-31 Thread Daniel Beulshausen
dbeuWed Jan 31 09:05:01 2001 EDT Added files: /php4/ext/ming ming.dsp Modified files: /php4/ext/ming php_ming.h Log: nuke warning, and add dsp Index: php4/ext/ming/php_ming.h diff -u php4/ext/ming/php_ming.h:1.1 php4/ext/m

[PHP] What is "foo"?

2001-01-31 Thread SED
Hi, Probably some of you are laughing while reading this :) But I have seen the word "foo" used so many time (in programming) from different resources for different reasons. Has it any meaning? (e.g. in PHP) Regards, Sumarlidi Einar Dadason SED - Graphic Design

[PHP-CVS] cvs: php4 /win32 php_modules.dsw

2001-01-31 Thread Daniel Beulshausen
dbeuWed Jan 31 09:12:12 2001 EDT Modified files: /php4/win32 php_modules.dsw Log: add iconv and ming Index: php4/win32/php_modules.dsw diff -u php4/win32/php_modules.dsw:1.35 php4/win32/php_modules.dsw:1.36 --- php4/win32/php_modules.dsw:1.35 Thu Jan 25

Re: [PHP] What is "foo"?

2001-01-31 Thread Soeren Staun-Pedersen
> Probably some of you are laughing while reading this :) But I have seen the > word "foo" used so many time (in programming) from different resources for > different reasons. Has it any meaning? (e.g. in PHP) It's just one of those words which stuck around. People like Leslie Lamport (LaTeX) and

Re: [PHP] What is "foo"?

2001-01-31 Thread Philip Olson
Check out : http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo Within is a lengthy explanation of the word and its origin. Btw, it's just a word as is 'blah' and 'bar' and 'apple'. But 'foo' is a cult classic! Regards, Philip Olson http://www.cornado.com/ On Wed, 31 Jan 2001, SED wrote

[PHP-CVS] cvs: php4 /pear HTTP.php

2001-01-31 Thread Chuck Hagenbuch
chagenbuWed Jan 31 10:34:39 2001 EDT Modified files: /php4/pear HTTP.php Log: use $HTTP_SERVER_VARS, in case register_globals is Off, and use !empty() instead of just if () to avoid errors. Index: php4/pear/HTTP.php diff -u php4/pear/HTTP.php:1.5

Re: [PHP] What is "foo"?

2001-01-31 Thread Christian Reiniger
On Wednesday 31 January 2001 19:35, SED wrote: > Probably some of you are laughing while reading this :) But I have seen > the word "foo" used so many time (in programming) from different Read http://www.tuxedo.org/~esr/jargon/html/entry/foo.html for a detailed explanation :) -- Christian Rein

Re: [PHP] Php and forking

2001-01-31 Thread Chris Lee
This isnt exactly what your looking for, Im sure of it, but it works for me in the past. If you have a page that does something like email 1000 shareholders about a new press release, this takes some time. You dont need to sit here for 30min to wait for the page to finnish. send your web clie

Re: [PHP] connecting to AS400 DB2

2001-01-31 Thread Larry Hotchkiss
Its my understanding that you use the odbc functions to access db/2 400. I also recall reading that the db2/400 functionality is true db2 functionality and does not use the generic odbc layer even though it is grouped in. Apparently its smart enough to know. Depending on where you got your

RE: [PHP] copy() ??

2001-01-31 Thread johnny p.
>From the fine manual: A file upload screen can be built by creating a special form which looks something like this: Example 19-1. File Upload Form Send this file: The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must precede the file input field and its value is the m

[PHP] Symbolic link fails when User Authentication comes in

2001-01-31 Thread david klein
I am using Apache user authentication, and it works fine. However, if there is a symbolic link inside a securied directory, the symbolic linked file will deny any access. For example, directory "/apps/apache/docs/test1" is a securied directory, and there is a symbolic linked file "file1.txt",

RE: [PHP] File Download Completion

2001-01-31 Thread Boaz Yahav
All of the examples on weberdev.com use a download script that should send the file like you describe. This used to work but now that I'm testing it, It seems that instead of the file name I get the script name.htm or something else. The only thing that has changed is that I upgraded to 4.0.4pl1

  1   2   >