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

2001-04-25 Thread Andi Gutmans
andiTue Apr 24 23:30:24 2001 EDT Modified files: /php4/ext/standard filestat.c Log: - Fix filetype() and lstat() too. Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.60 php4/ext/standard/filestat.c:1.61 ---

Re: [PHP] Precedence question- cookie value over form value?

2001-04-25 Thread Rasmus Lerdorf
If I have a script that checks to see if a variaable is defined. The variaable is from a form and is sent to the script. There is also a cookie that may be set with a name as the same name as from the form. When the script checks and assuming the cookie is set and a value sent from the form

Re: [PHP] unable to parse php

2001-04-25 Thread elias
you're trying to include test.php w/o specifiying it's correct location in your other PHP script. that's how it looks from here... -elias http://eassoft.cjb.net [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Anyone able to shed some light on this error?

[PHP-CVS] cvs: php4 /sapi/thttpd thttpd.c

2001-04-25 Thread Sascha Schumann
sas Tue Apr 24 23:42:24 2001 EDT Modified files: /php4/sapi/thttpd thttpd.c Log: Fix optimization -- we did not send out custom Response Status Lines. Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.40

RE: [PHP] last modified

2001-04-25 Thread Maxim Maletsky
my own 2c: fopen: fwrite into a file of yours, when doing a check: fopen compare the buffer size to the file size you have saved. or the whole HTML code as a string. But, I guess it is very unreliable since there are such things as banner rotations etc... Maybe there's another way to do it

RE: [PHP] hello

2001-04-25 Thread Ralph Guzman
http://www.webmin.com -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 12:10 AM To: 'SuiteNet Operations Manager'; php-general Subject: RE: [PHP] hello what about Webmin? it's wuite cool, it has it all. (don't remember the URL, it

Re: [PHP] last modified

2001-04-25 Thread CC Zona
In article FA432D4D6C2EC1498940A59C494F153873335B@stca207a, [EMAIL PROTECTED] (Kasten, Holger) wrote: how can I check the last modified date of a website. I mean not my own site, I mean other sites. Use fsockopen(), send a HEAD request, get back (sometimes*) a Last-Modified header. *See

[PHP] the SkyBiz matrix|downline program using PHP mySQL

2001-04-25 Thread Thomas Edison Jr.
we're trying to develop an exact replica of the SkyBiz downline|Matrix system program. But it's getting so complicated niether is the logic coming out. we're in need of help. Anyone familiar with the skybiz matrix, please help!! It's a 2 X 2 matrix system where a person can have only two legs

RE: [PHP] checking url

2001-04-25 Thread Maxim Maletsky
well, you can try fsockopen. see it on php.net/fsockopen it will even return you an error if not connected. start from the example describing the function on PHP.net/fsockopen (did I misspelled it?) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins)

RE: [PHP] Very important.

2001-04-25 Thread Maxim Maletsky
This virus was reply to each email sent. I, that day, have posted a reply here to someone. It reached some poor php-general list subscriber and it's outlook (or whatever) has replied to me personally with that .EXE file attached. I didn't open it of course since I receive such a staff at least

RE: [PHP] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-25 Thread Maxim Maletsky
hey, why not to have one single query? or.. INSERT INTO tmp_table SELECT * FROM first_table; INSERT INTO tmp_table SELECT * FROM second_table; ... do a query on tmp_table, DELETE FROM tmp_table; but, isn't it better to have one table only? - you'll skipp three steps. Sincerely, Maxim

RE: [PHP] Lines

2001-04-25 Thread Maxim Maletsky
I know, it was already answered before me (you), I just though that an SQL database is a good advice for these who are trying to do this kind of jobs. It is obvious that the reason to use this function is to manage a stored data in files. then why not a database, if possible? Sincerely,

RE: [PHP] Newbie question about Classes

2001-04-25 Thread Maxim Maletsky
you should be starting to program from C++ :-) Classes are described in many manuals on the web. Try downloading phplib (phplib.netuse.de) to see then alive phplib is one the most magnificent examples of classes use in PHP. Sincerely, Maxim Maletsky Founder, Chief Developer

RE: [PHP] Lines

2001-04-25 Thread Maxim Maletsky
Is there any chance for you to use a database? these thing would become MUCH, MUCH easier. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Rafael Faria [mailto:[EMAIL

[PHP] PHP --with-imap

2001-04-25 Thread Calin Rotaru
Hello. I have a problem with PHP. I want to use imap functions. I receive a message that imap function is not defined. I compiled PHP again with --with-imap option , but I've got an error message at Apache compilation. What is realy happening? Thanks Calin -- PHP General Mailing List

RE: [PHP] Lines

2001-04-25 Thread Jason Murray
I know, it was already answered before me (you), I just though that an SQL database is a good advice for these who are trying to do this kind of jobs. It is obvious that the reason to use this function is to manage a stored data in files. then why not a database, if possible? I didn't

RE: [PHP] Lines

2001-04-25 Thread Jason Murray
it's my first post on this list, and my doubt is... how can i take a file.txt and 1 - know how many lines i have in this text 2 - print line 5 until 10 Is there any chance for you to use a database? these thing would become MUCH, MUCH easier. Actually, this is really easy

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Maxim Maletsky
Open your apache's httpd.conf file: see anything like this on VHost configuration of the site in question? JI Admin Database VirtualHost 1.0.0.10 ServerAdmin [EMAIL PROTECTED] DocumentRoot D:/JI_admin ServerName admin

RE: [PHP] Is there such an array like $array[][]?

2001-04-25 Thread Tim Ward
A multi dimensional array is a matrix. if $array[1][2][3] was an element of a multi-dimensional array then it would directly accessible as an element of $array. It isn't. $array (and $array[n]) only contain arrays. If $array was a 3-d array then ... $array[1][2][3] = fred; if (in_array(fred,

[PHP] RE: getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-25 Thread Tim Ward
how about something like: $count = 0; $list = array(); $sql[]=select * from storyboards, ... ; $sql[]=select * from storyboard2, ... ; $sql[]=select * from storyboard3, ... ; $sql[]=select * from storyboard4, ... ; foreach ($sql as $thissql) { $result=MySQL_query($thissql,$db);

[PHP] payment verification...

2001-04-25 Thread elias
hello, i'm building an online payment form the only thing is that i can't rely on the MOD10 CC validation algo... any one knows any company that provides CC validation (checks if account exists, and the money is enough to pay the price) ... ? I only need a company with such validation

[PHP] PHP Binaries aside from Windows

2001-04-25 Thread Kyutums
I tried looking for other PHP binaries at http://www.php.net/downloads.php. All it displayed was one from Windows. What happened to the versions for Linux? Does it have a version for Solaris? - Andres Montiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] PHP --with-imap

2001-04-25 Thread Alexander Wagner
Calin Rotaru wrote: I want to use imap functions. I receive a message that imap function is not defined. I compiled PHP again with --with-imap option , but I've got an error message at Apache compilation. What is realy happening? What error-message do you get? regards Wagner -- In place

Re: [PHP] PHP Binaries aside from Windows

2001-04-25 Thread Alexander Wagner
Kyutums wrote: I tried looking for other PHP binaries at http://www.php.net/downloads.php. All it displayed was one from Windows. What happened to the versions for Linux? Does it have a version for Solaris? Just grab the source and compile. This will work on most Unices, including Linux and

Re: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Jordan Elver
Thanks for the reply, I'm not using virtual hosts on my local machine but I am on the production machine. What should DOCUMENT_ROOT return? I though it returns the directory of the current script. So if I had a site in /usr/local/apache/htdocs/cha/script.php then I would expect DOCUMENT_ROOT

[PHP] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Daniel BI
Did anybody have the same error? I have this simple script: === ? session_start() ; ? FORM METHOD=POST NAME="form1" ENCTYPE="multipart/form-data" ACTION="another_script.php" SELECT NAME="sel" onChange='hidden_filed.value=this.value3" OPTION VALUE=1 First option /SELECT INPUT

[PHP] Font?

2001-04-25 Thread bpx
Anyone know what font is used in the PHP logo? :) -- 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-general Digest 25 Apr 2001 10:16:05 -0000 Issue 648

2001-04-25 Thread php-general-digest-help
php-general Digest 25 Apr 2001 10:16:05 - Issue 648 Topics (messages 50201 through 50264): Re: File Transfer over HTTPS 50201 by: Rasmus Lerdorf ereg_replace 50202 by: Wade 50203 by: J. Jones Re: Very important. 50204 by: Plutarck 50244 by: Maxim

Re: [PHP] Autoupdate of page

2001-04-25 Thread Richard
You can set a JavaScript to refresh after an amount of time, or call this function whenever the table is updated. echo script language='javascript'jscode/script;// as soon as you are done. -Richard Chris Anderson [EMAIL PROTECTED] wrote in message

Re: [PHP] File Transfer over HTTPS

2001-04-25 Thread Meir kriheli
On Wednesday 25 April 2001 01:15, Rasmus Lerdorf wrote: If I wanted to use this utility to copy a file from a users (Windows) workstation to my (Linux) webserver, how would I do this? The program on the users workstation will create a file called info.txt and place it in c:\wow. I want

[PHP] selected option bla bla

2001-04-25 Thread Hasbullah Pit (sebol)
I have this one :- select name=jenis_biasiswa option selectedPenuh/option optionSeparuh/option optionSendiri/option /select and a field of table which contained with 'Penuh' OR 'Separuh' OR 'Sendiri' I want to make it Ither one is 'selected' during

RE: [PHP] Very important.

2001-04-25 Thread B. van Ouwerkerk
I think, removing the guy of the list would help us to avoid meeting the virus on this list again. Come on.. this is a very_old_common_virus. Any half decent AV product should keep your system clean from this. Rather warn the person and help him to get rid of the virus.. If everyone who send

Re: [PHP] Very important.

2001-04-25 Thread B. van Ouwerkerk
I may have lost several weeks of work to this virus, and I advise you all to watch out, as it was likely sent inadvertantly. Does the word backup ring any bells Ever hear about antivirus software Bye, B. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] user login names/values

2001-04-25 Thread Thimo von Rauchhaupt
Just to mention security, look at this page: http://www.livin4.com/jhacker/jh1.htm A simple login isn?t that easy, -- 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

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Maxim Maletsky
NO, not the directory of the current script. the directory of your virtual host. DOCUMENT_ROOT is your WEB ROOT common. I gave an example... look into your apache (vHOST) DocumentRoot is what your $DOCUMENT_ROOT is Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where

RE: [PHP] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Maxim Maletsky
correct: we are PHP developers, not JavaScript. However, I am sure that the amount and configurations of your computers don't matter here. try to look for a simple problem. Try to rewrite it all again, etc... not a big deal - don't hit your head to the wall. Sincerely, Maxim Maletsky

Re: [PHP] How to turn off warnings ???

2001-04-25 Thread ahmad varoqua
::-Original Message- ::From: Christian Reiniger [mailto:[EMAIL PROTECTED]] ::Sent: Tuesday, April 24, 2001 12:57 AM ::To: Php-General ::Subject: Re: [PHP] How to turn off warnings ??? :: :: ::On Monday 23 April 2001 23:50, Roee Rubin wrote: :: Whenever I try to execute some code I

Re: [PHP] payment verification...

2001-04-25 Thread B. van Ouwerkerk
hello, i'm building an online payment form the only thing is that i can't rely on the MOD10 CC validation algo... any one knows any company that provides CC validation (checks if account exists, and the money is enough to pay the price) ... ? I only need a company with such validation

Re: [PHP] Fatal Errors and Error Handling

2001-04-25 Thread Svein Roar Nilsen
Christian Reiniger [EMAIL PROTECTED] wrote in message 01042417490700.07614@chrisbig">news:01042417490700.07614@chrisbig... Well, needed to use might be incorrect, because return value evaluation can be used instead (unless some functions never signal errors via their return value). Aside from

Re: [PHP] checking url

2001-04-25 Thread Subodh Gupta
Hi Dmitry, In case you want a regular expression to check if it is a valid url you can try this... $url = yoururl; if(empty($url) !eregi(^http://[A-Za-z0-9\%\?\_\:\~\/\.-]+$,$url)) $errmsg=$url doesn't look like a valid URL\n; I hope this helps. Subodh Gupta I have learned, Joy is not

Re: [PHP] selected option bla bla

2001-04-25 Thread Wade
I am sure my solution is not the most elegant, but this is what I did: ? switch($acc_state){ case 0: $st0 = selected; break; case AL: $stAL = selected; break; . print SELECT size=1 tabindex=11 name=accstate option value=\0\ $st0 /option option

Re: [PHP] Fatal Errors and Error Handling

2001-04-25 Thread Christian Reiniger
On Wednesday 25 April 2001 13:32, Svein Roar Nilsen wrote: [...] This is quite similar to what I am trying. If you now corrupts the xmlData variable, e.g. by changing article to rticl without changing the closing tag, you will get an error message saying br bFatal error/b: XML parser

Re: [PHP] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Yasuo Ohgaki
Do you enable trans-sid? What happen if you disable it? (There are several trans-sid related bugs are fixed since 4.0.1, I think.) Regards, -- Yasuo Ohgaki ""Daniel BI"" [EMAIL PROTECTED] wrote in message 002201c0cd70$2f8d6240$02001aac@adsl">news:002201c0cd70$2f8d6240$02001aac@adsl... Did

[PHP] Re: PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Daniel BI
Hi ! Don't bother with it, anybody! I recompiled all under php-4.0.4pl1 version and it works just fine! It seems it was the php version's fault.. thank u all! Daniel BI Did anybody have the same error? I have this simple script: === ? session_start() ; ? FORM

[PHP] Generating XML

2001-04-25 Thread Young Chi-Yeung Fan
Hi, I'm trying to write a script that generates XML dynamically and is viewable in a browser (IE). Even though I send a header saying Content-type: text/xml\n, PHP still puts in a Content-type of text/html before that. How can I write the script so that this doesn't happen? Here's the script:

[PHP] Problem in sending mail with mail() function

2001-04-25 Thread Vishak K Tomy
Hello, I tried to send mail through the mail function but it is not working. I am using php version 3.0.12 under linux, following is the code I used to send mail. So what is the problem with it, any body please solve this. Regards Vishak html ?php if ($submit) { $recipient =

[PHP] roblem in sending mail with mail() function

2001-04-25 Thread Vishak K Tomy
Hello, I tried to send mail through the mail function but it is not working and it is not showing any error. I am using php version 3.0.12 under linux, following is the code I used to send mail. So what is the problem with it, any body please solve this. Regards Vishak html

Re: [PHP] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?

2001-04-25 Thread Pavel Jartsev
Daniel BI wrote: Did anybody have the same error? I have this simple script: === ? session_start() ; ? FORM METHOD=POST NAME=form1 ENCTYPE=multipart/form-data ACTION=another_script.php SELECT NAME=sel onChange='hidden_filed.value=this.value3 Maybe it's just

[PHP] PHP and system()

2001-04-25 Thread Tym Rehm
I'm a newbie and I trying to write a program that will take an email address from a form and send an email to that address. I'm trying to use mutt to send the email, due to needing to attach a file to the email. I'm using system() to call mutt, but it doesn't appear to work. I'm passing php

[PHP] HTTP message

2001-04-25 Thread Young Chi-Yeung Fan
Is it possible from PHP to look at the HTTP message sent to a script? If so, how can I do it? e.g.: POST /MessageReceiver.jsp HTTP/1.0 Host: www.SomeHost.net Content-Type: application/x-www-form-urlencoded Content-Length: 105

Re: [PHP] payment verification...

2001-04-25 Thread elias
thank you. B. van Ouwerkerk [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hello, i'm building an online payment form the only thing is that i can't rely on the MOD10 CC validation algo... any one knows any company that provides CC validation (checks if

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Jaxon
Not to beat a dead horse, but assuming a site structure like this: /htdocs /htdocs/modules /htdocs/includes /htdocs/templates where all my PHP logic scripts are in htdocs, and all the bits and pieces are in the other dirs, is there any way to set include_path to: $include_path =

[PHP] mcrypt help please

2001-04-25 Thread ryan.barnett1
Does anyone know how to install the mcrypt libraries for PHP in windows? I'm running: Apache 1.3.12 PHP 4.0.2 Windows 98 I've downloaded libmcrypt-2.4.5b-win32.zip (I think that this contains everything I need.) I just need to

Re: [PHP] Escaping Characters

2001-04-25 Thread Yasuo Ohgaki
""Wade"" [EMAIL PROTECTED] wrote in message 9c6dcb$h8e$[EMAIL PROTECTED]">news:9c6dcb$h8e$[EMAIL PROTECTED]... Aside from " (quotes), which HTML characters should be preceded with a \ (backslash) to avoid parsing errors? No. I have the following, which I have in an .inc file outside my web

RE: [PHP] DOCUMENT_ROOT

2001-04-25 Thread PHPBeginner.com
what about having an .htaccess file in each web root? You can't have vartiables in your server's config files. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jaxon

[PHP] Wierd error messages

2001-04-25 Thread Euan Greig
Today my php 4/Apache/NT 4/Oracle 8i setup has started misbehaving. First sign was a huge slowing down in the delivery of pages. Then Apache crashed. I couldn't find anything interesting in the apache error log, but in the php error log there are hundreds of messages like the ones below. Can

[PHP] OOP and Future of PHP

2001-04-25 Thread Reuben D Budiardja
The only thing that I feel lack of in PHP is the real Object Oriented stuff, such as information hiding in the object in classes i.e. private and public variables, methods/functions. This in a sene make it really difficult for developer to build an API for other developers that is secure. I

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

2001-04-25 Thread Sascha Schumann
sas Wed Apr 25 06:14:40 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Past profiling has shown that we waste too much time in the message scanner. In the context of a channel message which is supposedly addressed to a large number of users, we

RE: [PHP] Escaping Characters

2001-04-25 Thread PHPBeginner.com
double quotes ' single quotes (yes, they are used quite often) \ backslash (JavaScripts etc.) there are your enemies, nothing else. forget about + = $ ... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com

RE: [PHP] php FTP

2001-04-25 Thread PHPBeginner.com
I really don't think you can compile PHP on (not yours) server. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: ryan.barnett1 [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

[PHP] php FTP

2001-04-25 Thread ryan.barnett1
Hi there, I would like to use the PHP FTP functions. Unfortunately, my webhost hasn't compiled PHP with the FTP extensions. So, I thought that I might upload the extension myself into my webspace then call it using the command dl() from within a PHP webpage. That way, I could (hopefully) get

[PHP] Some questions on PHPUnit

2001-04-25 Thread Steven Haryanto
Does anyone here use PHPUnit? 1. If a test script needs some external input to do testing (notably, database connect info), is it a good idea to present an HTML form to ask input from user? Or should it also be able to prompt the user for these in case the test script is run by the PHP

[PHP] safe uploading with PHP

2001-04-25 Thread Steven Haryanto
I am sorry if this is one of the FAQ. Last time I checked (well, a few months ago), PHP has the vulnerability that the user who submitted the form can manipulate the global namespace to let PHP pick up arbitrary file in the system. Can we now do safe file uploading without turning off

[PHP] SVG PHP

2001-04-25 Thread Nick Winfield
Hi, This might be a bit of a long shot, but I'm willing to give it a go. :) Does anyone know of a server-side SVG parser that can be called via some kind of PHP extension? I want to be able to parse an SVG XML file and write it out to disk, for usage with customisable menus. I have been given a

RE: [PHP] php FTP

2001-04-25 Thread Matt Schroebel
I've never done it but here it is: http://conf.php.net/pres/index.php?p=slides%2Fintroid=ac2 -Original Message- From: ryan.barnett1 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 10:03 AM To: [EMAIL PROTECTED] Subject: [PHP] php FTP Hi there, I would like to

Re: [PHP] Wierd error messages

2001-04-25 Thread Brian S. Dunworth
At 03:03 PM 4/25/01 +0100, Euan Greig wrote: [25-Apr-2001 14:34:48] PHP Warning: Missing ] in üu variable in Unknown on line 0 [25-Apr-2001 14:34:50] PHP Warning: Missing ] in }´üt variable in Unknown on line 0 [...] etc I hate to say it, but this looks suspiciously like a memory leak

[PHP-CVS] cvs: php4 /ext/ircg ircg.c ircg_scanner.c ircg_scanner.re

2001-04-25 Thread Sascha Schumann
sas Wed Apr 25 06:50:35 2001 EDT Modified files: /php4/ext/ircg ircg.c ircg_scanner.c ircg_scanner.re Log: Use the system malloc in the scanner Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.62 php4/ext/ircg/ircg.c:1.63 ---

Re: [PHP] SVG PHP

2001-04-25 Thread Phil Driscoll
I don't know of anything specifically - all the existing java stuff we've played with is very big and very slow. One possible solution might be to write a wrapper for the Adobe SVG browser plugin - it would be a reasonable amount of work though, and of course the plugin would have to be available

RE: [PHP] SVG PHP

2001-04-25 Thread Matthew Luchak
What about writting a gimp plug-in...? http://www.gimp.org Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Nick Winfield [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 9:50 AM To: PHP General Mailing List

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-25 Thread Nikhil Goyal
I wrote a similar script of my own... Works fine for me function email_valid($email) { $pattern=^[0-9a-zA-Z_-]+(\.[0-9a-zA-Z_-]+)*@[0-9a-zA-Z_-]+(\.[0-9a-zA-Z_-]+ )+$; return ereg($pattern, $email); } (returns false if email is not valid, true if it is) N Martin Skjöldebrand [EMAIL

[PHP] rounding up

2001-04-25 Thread Joseph Bannon
Is there a PHP command to round up to the nearest integer? J -- 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] rounding up

2001-04-25 Thread Matt Williams
Hi Is there a PHP command to round up to the nearest integer? www.php.net/ceil www.php.net/round HTH M@ -- 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,

RE: [PHP] php FTP

2001-04-25 Thread Miles Thompson
Interesting - looks just great with Netscape Navigator 4.7; Netscape 6.1 and Opera 5.? My IE 5.x does not show the links, the title or the background, nor does it have blind hot area where the links are at the top of the page. That could be my IE and I curse Microosft daily. I can't

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

2001-04-25 Thread Sascha Schumann
sas Wed Apr 25 07:07:48 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: display cache info Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.63 php4/ext/ircg/ircg.c:1.64 --- php4/ext/ircg/ircg.c:1.63 Wed Apr 25 06:50:35 2001 +++

RE: [PHP] rounding up

2001-04-25 Thread John Huggins
Is there a PHP command to round up to the nearest integer? www.php.net/ceil www.php.net/round These are the correct functions, but take great care in reading the user contributed notes in the round function concerning x.5 rounding randomness. Sometimes this can get you. If you want to be

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

2001-04-25 Thread Sascha Schumann
sas Wed Apr 25 07:15:09 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Fix format strings typo. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.64 php4/ext/ircg/ircg.c:1.65 --- php4/ext/ircg/ircg.c:1.64 Wed Apr 25 07:07:47 2001

Re: [PHP] Escaping Characters

2001-04-25 Thread Yasuo Ohgaki
My previous post is a bit misleading. ""Wade"" [EMAIL PROTECTED] wrote in message 9c6dcb$h8e$[EMAIL PROTECTED]">news:9c6dcb$h8e$[EMAIL PROTECTED]... Aside from " (quotes), which HTML characters should be preceded with a \ (backslash) to avoid parsing errors? No and Yes. NO: You don't have to

RE: [PHP] php FTP

2001-04-25 Thread Matt Schroebel
Show fine in my I.E. 5.50.4134.0600 Incidentally, you need page 42 of the conference material for the ftp dl(). instructions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 11:03 AM To: [EMAIL PROTECTED] Subject: RE: [PHP]

Re: [PHP] Problem in sending mail with mail() function

2001-04-25 Thread Sigitas Paulavicius
Vishak K Tomy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I tried to send mail through the mail function but it is not working. I am using php version 3.0.12 under linux, following is the code I used to send mail. So what is the problem with it,

[PHP] Newbie struggling to set $PGDATA

2001-04-25 Thread Geoff Caplan
Hi Please help out a Linx/Postgres newbie. I simply want to set the $PGDATA environmental variable, but can't figure out how. The docs assume you already know... I have tried setting it in my bash /etc/profile configuration file, and it shows up ok if I echo $PGDATA in the shell. But none of

[PHP] forms and RETURN key

2001-04-25 Thread Bill Rausch
I've observed a difference between how IE and NS interact with even simple forms. With IE, hitting the RETURN or ENTER key usually but not always triggers the submit button, but almost never with NS. Is this behavior controllable by my scripts? For example: headtitletest form/title/head body

Re: [PHP] safe uploading with PHP

2001-04-25 Thread Rasmus Lerdorf
Last time I checked (well, a few months ago), PHP has the vulnerability that the user who submitted the form can manipulate the global namespace to let PHP pick up arbitrary file in the system. Can we now do safe file uploading without turning off register_globals? Yes, this was fixed a

Re: [PHP] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-25 Thread Nicolas Mermet
I did put a spot ID because I never thought of building a temp table on the fly and dropping it at the end of the script. :-) Now that is an elegant concept ! I was going for a permanent table, wich would have been heavier to feed when other tables got updated (but wich would have been

RE: [PHP] Lines

2001-04-25 Thread Rafael Faria
I should tell you that the text file is an htm that i have to print withou the header HTMLTITLE and footer /BODY/HTML :PP Rafael I know, it was already answered before me (you), I just though that an SQL database is a good advice for these who are trying to do this kind of jobs. It is

[PHP] Upload a File

2001-04-25 Thread Rafael Faria
Hey Guys, i'm here thinking what i did wrong.can u guys help me? i did 2 ways to upload a file and none of them work fine! :/ first way $folder = /tmp; if(!copy($MyFile,$folder.$MyFile)){ echo can't copy; } else { echo work it!;

Re: [PHP] Upload a File

2001-04-25 Thread Rafael Faria
i tried: if (!move_uploaded_file($MyFile,/home/vacamarela/public_html/rafael)) { echo can't copy; exit; } and retur can't copy my form is input type=file name=MyFile size=40 :/ Rafael Acesso fácil, rápido e ilimitado? Suporte 24hs? R$19,90? Só no AcessoBOL.

Re: [PHP] Upload a File

2001-04-25 Thread Rasmus Lerdorf
On Wed, 25 Apr 2001, Rafael Faria wrote: i tried: if (!move_uploaded_file($MyFile,/home/vacamarela/public_html/rafael)) { echo can't copy; exit; } and retur can't copy Does your web server used id have write permission in that directory and execute permission

[PHP] simple querying mysql in a WML card problem :(

2001-04-25 Thread Sandeep Hundal
hi all! i'm trying to get simple 2 line results from mysql in a wml card, but i can't seem to manage it. here's my code: ? header(Content-type: text/vnd.wap.wml); header(Cache-Control: no-cache, must-revalidate); header(Pragma: no-cache); echo (?xml version='1.0'?); ? !DOCTYPE wml PUBLIC

[PHP] maximum length of email address

2001-04-25 Thread Dennis Gearon
I've gone through the archives and through a bunch of RFC's, but have had no luck in finding maximum length for email addresses. Anybody know if there is one and what it is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-25 Thread sono
If you have separate physically separate drives and F is one of them. Installing it should not be too big a problem. Nothing is your Windows Bios should need to be changed This has to do with your master boot record. Grab a Linux dist. Most of them come with good installers now adays and make

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

2001-04-25 Thread Andy Sautins
asautinsWed Apr 25 10:48:31 2001 EDT Modified files: /php4/ext/oci8 oci8.c Log: Collections cleanup - Removed date specific methods. Dates work consistently with the rest of the oci8 code. - Removed unused

[PHP] LDAP listing from Exchange

2001-04-25 Thread Mike Tuller
I am having troubles displaying all the information I need from an Exchange server. I can display name, department, title, but can't get the phone number to show up. Can someone show me a script that will pull the object identifiers from the server so that I can make sure I have everything set

Re: [PHP] Newbie Question

2001-04-25 Thread Jeff Warrington
In article 9c1gqf$i3j$[EMAIL PROTECTED], Wade [EMAIL PROTECTED] wrote: well, in your first IF clause, you refer to my_type without the $. For the else clause, you are outputting HTML while still inside the PHP block. try one of these: } else { ? select tabindex=13 name=my_type

[PHP] LDAP listing from Exchange

2001-04-25 Thread Mike Tuller
I am having troubles displaying all the information I need from an Exchange server. I can display name, department, title, but can't get the phone number to show up. Can someone show me a script that will pull the object identifiers from the server so that I can make sure I have everything set

[PHP-CVS] cvs: php4 /ext/fbsql php_fbsql.h

2001-04-25 Thread Frank M. Kromann
fmk Wed Apr 25 11:00:55 2001 EDT Modified files: /php4/ext/fbsql php_fbsql.h Log: removed unused code Index: php4/ext/fbsql/php_fbsql.h diff -u php4/ext/fbsql/php_fbsql.h:1.3 php4/ext/fbsql/php_fbsql.h:1.4 --- php4/ext/fbsql/php_fbsql.h:1.3 Tue

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-25 Thread B. van Ouwerkerk
Also if you are a newbie to linuxget a different machine or be prepared to lose data or windows on your present machine. Never lost any data.. Not even when I still was a newbie.. But it's always a good idea to create backups. Bye, B. -- PHP General Mailing List

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

2001-04-25 Thread Frank M. Kromann
fmk Wed Apr 25 11:01:23 2001 EDT Modified files: /php4/ext/fbsql php_fbsql.c Log: make fbsql_field_flags return a value Index: php4/ext/fbsql/php_fbsql.c diff -u php4/ext/fbsql/php_fbsql.c:1.12 php4/ext/fbsql/php_fbsql.c:1.13 ---

[PHP-CVS] cvs: php4 /ext/oci8 php_oci8.h

2001-04-25 Thread Andy Sautins
asautinsWed Apr 25 10:44:08 2001 EDT Modified files: /php4/ext/oci8 php_oci8.h Log: Cleanup collections - removed unused members from oci_collection structure Index: php4/ext/oci8/php_oci8.h diff -u php4/ext/oci8/php_oci8.h:1.14

Re: [PHP] maximum length of email address

2001-04-25 Thread Steven Haryanto
At 4/26/2001 01:08 AM, Dennis Gearon wrote: I've gone through the archives and through a bunch of RFC's, but have had no luck in finding maximum length for email addresses. Anybody know if there is one and what it is? Perhaps it's one of those undefined values (like the maximum length of an

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

2001-04-25 Thread Rasmus Lerdorf
rasmus Wed Apr 25 10:45:52 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Jascha Wetzel Index: CVSROOT/avail diff -u CVSROOT/avail:1.151 CVSROOT/avail:1.152 --- CVSROOT/avail:1.151 Sun Apr 22 17:24:05 2001 +++

  1   2   3   >