Re: [PHP] today and yesterday (finding them)

2001-01-30 Thread Mohamed LRHAZI
Isnt it ? $yesterday = date("Y-m-d",mktime(0,0,0,date("m") ,date("d")-1,date("Y"))); Mohamed~ - Original Message - From: "Chuck Barnett" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 11:10 PM Subject: [PHP] today and yesterday (finding

[PHP] disabling page caching, yes or no

2001-01-30 Thread Noel Akins
Hello, I'm trying to build the first page to a database driven website. The first thing I'm trying to do is detect if cookies are enabled on the users browser, and then, via a header(location: mysite.php), redirect the user to either a cookie supported page, or cookie unsupported page. I will

Re: [PHP] session question

2001-01-30 Thread Teodor Cimpoesu
Hi Mark! 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; the order doesn't matter (as it did in PHPLib sessions). If it doesn't work I guess it's because you have regis

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

2001-01-30 Thread Teodor Cimpoesu
Hi Karl! On Tue, 30 Jan 2001, Karl J. Stubsjoen wrote: > Hello, > > 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. > I am new to PHP, and am wondering: > How do I instantiate the IBM DB2

[PHP] Windows Share access with filesystem functions.

2001-01-30 Thread Cameron Just
Hi, I am running PHP 4.0.4pl1 on a windows box as a CGI. Why can't I access files on the network via a windows share? ie \\nt4server\wwwroot\thisfile.phtml It used to work on other systems I have used PHP on. It seems that PHP now only accepts files references like this. d:\wwwroot\thisfile.phtml

RE: [PHP] Naughty Word Catcher

2001-01-30 Thread Maxim Maletsky
Alright ... the last review ('cause I never like what I write ... ) here: function naughty_words($text) { $query="select naughty_words from prude_list"; $result=mysql_query($query); while ($loop=mysql_fetch_array($result)) { if(stristr("$text","$loop[naughty_words]")) {

RE: [PHP] Naughty Word Catcher

2001-01-30 Thread Maxim Maletsky
Actually your function does header() on each loop ... This is correct .. $query="select naughty_words from prude_list"; $result=mysql_query($query); while ($loop=mysql_fetch_array($result)) { if(stristr("$block_of_text","$loop[naughty_words]")) { $Gotcha = 1;

RE: [PHP] Naughty Word Catcher

2001-01-30 Thread Maxim Maletsky
Will work well, I think ... plus this is on submission which makes a little discount on load times. And it is quite expandable function. Cheers, Maxim Maletsky -Original Message- From: Chris Aitken [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 2:04 PM To: [EMAIL PROTECTE

RE: [PHP] Link Validator

2001-01-30 Thread Maxim Maletsky
What do you mean by 'Not always right' ? If it wouldn't be right your server would be crashing every 0.001 seconds ... anyway ... If this is locally, and all you need to know is if there a page called foo.html on the same server from where you are trying to check you can then use file_exist

Re: [PHP] php and forms question

2001-01-30 Thread Chip
Michael Hall wrote: > , you > have session variables or writing information a database or > file. Hi Michael, I have set up a couple test pages using session variable like this: --- Your products have been registered"; } ?> RA772 RA40 Series

[PHP] SQL question

2001-01-30 Thread John LYC
hi all, does mysql support this? select * from tablename where id in (select id from table2 where cond) thanks -- 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

RE: [PHP] question ! show binary

2001-01-30 Thread Maxim Maletsky
Why on the earth would you do that? It always happens to me associate images with my databases but I never actually insert them in. I just *copy* these graphics to somewhere on my server (or often even on in a webroot) and give them a logic name. So then when you need to call a graphic you do ( i

[PHP-CVS] cvs: php4 / NEWS

2001-01-30 Thread Uwe Steinmann
steinm Tue Jan 30 22:13:08 2001 EDT Modified files: /php4 NEWS Log: - note about change of pdf api Index: php4/NEWS diff -u php4/NEWS:1.573 php4/NEWS:1.574 --- php4/NEWS:1.573 Tue Jan 30 18:09:11 2001 +++ php4/NEWS Tue Jan 30 22:13:08 2001 @@ -2

[PHP] Link Validator

2001-01-30 Thread Huseyin
hi i am a newbie and i was wondering how can i check the link if it exists i tried file_exists but it is not laways right thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Function by reference?

2001-01-30 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

[PHP] No input file specified. (using PHP for shell and CGI scripting)

2001-01-30 Thread Frank Joerdens
I am playing with PHP as a shell scripting tool and trying to use it for CGI programming that way. This may seem kinda pointless, seeing that PHP is _way_ more efficient when being used as an Apache module. However I need to pass stuff from a database query to another CGI program which is designed

Re: [PHP] feature that should be there and isn't

2001-01-30 Thread Brian White
Let me start by saying "Can of Worms!" At 20:07 30/01/2001 -0800, Joe Stump wrote: >BUT you can't do this: > > function foo($var=date("Y-m-d")) > { > > > } > >Why? This would be a kick ass little trick! The question is: when do you resolves something like this? Is it at "compile time" or

[PHP] question ! show binary

2001-01-30 Thread Yui Hiroaki
HI! I am using PHP in mySQL. I create table in database and insert 'binary'(*.gif). But I do not know how to use this binary using PHP and show website. Please help me. $)create table xxx (col longlob); $)insert into xxx values("image\yyy.gif"); I want to display :yyy.gif in html Th

[PHP] Naughty Word Catcher

2001-01-30 Thread Chris Aitken
Hi all, Ive just been asked whether I can do the following task. When a block of text is submitted via a web form, for it to be checked for offensive words, and rejected if there is. So I put my brain hard to work and came up with a possibly solution. I know this method should work but im

Re: [PHP] today and yesterday (finding them)

2001-01-30 Thread Josh G
pulling it out of my ass, but try: $today = getdate(time()-(60*60*24)) Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Chuck Barnett" <[EMAI

[PHP] Encode a PHP script

2001-01-30 Thread Ian
Any comments of Zend Encoder Unlimited product. http://www.zend.com/store/products/zend-encoder.php Can we do something like Zend Encoder Unlimited by ourselves? Any idea? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] today and yesterday (finding them)

2001-01-30 Thread James Purvins
Try checking out this hot link. It has quite a bit on sliding dates: http://www.php.net/manual/en/function.getdate.php - Original Message - From: Chuck Barnett <[EMAIL PROTECTED]> To: PHP General List <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 8:10 PM Subject: [PHP] today and

RE: [PHP] today and yesterday (finding them)

2001-01-30 Thread Jason Murray
> $today = getdate(); > $mon = $today[mon]; > $mday = $today[mday]; > $year = $today[year]; > $text=sprintf("%s-%s-%s", $year, $mon, $mday); > $date=$text; > > This code gets me today in the form -00-00 > > What do I need to do to get yesterday in that form? $today = Date("U"); $yesterd

Re: [PHP] php and forms question

2001-01-30 Thread Jeff Lacy
Hia Chip, If I were you (but I'm not, thankfully for both of us), I would use a multiple select, and, maybe sessions. I think sessions are better/easier than hidden fields, but only in php4. Multiple selects are nice. They come back as an array, which is pretty easy to deal with by using a loo

[PHP] today and yesterday (finding them)

2001-01-30 Thread Chuck Barnett
$today = getdate(); $mon = $today[mon]; $mday = $today[mday]; $year = $today[year]; $text=sprintf("%s-%s-%s", $year, $mon, $mday); $date=$text; This code gets me today in the form -00-00 What do I need to do to get yesterday in that form? Thanks, Chuck -- PHP General Mailing List (http:/

RE: [PHP] feature that should be there and isn't

2001-01-30 Thread Jason Murray
> BUT you can't do this: > > function foo($var=date("Y-m-d")) > { > > > } But, you can do function foo($var='defaultvaluethatwillneverhappen') { if ($var == 'defaultvaluethatwillneverhappen') { $var = date("Y-m-d"); } } > Why? This would be a kick ass little trick! Mmmm, well ...

[PHP] Re: Editor

2001-01-30 Thread John Hinsley
[EMAIL PROTECTED] wrote: > Hi, > > I know this has been asked before but I can`t seem to get the archive email > thingy to work, basically I`m looking for a free or cheap editor that has the > lines numbered so that it`s a bit easier for me to debug my scripts. You don't mention w

RE: [PHP] Override already-declared function?

2001-01-30 Thread Jason Murray
> You can override (and yet still have access to) inherited > class methods in subclasses. Have you looked at applicability > of OOP in your implementation? Unfortunately, I'm pretty much an old-school programmer, I just can't wrap my brain around OOP and don't have the time to stop and learn :

[PHP] feature that should be there and isn't

2001-01-30 Thread Joe Stump
in php to have a "optional" parameter in a function you can do: function foo($var='') { } To have it be default to 'bar' you can do: function foo($var='bar') { } BUT you can't do this: function foo($var=date("Y-m-d")) { } Why? This would be a kick ass little trick! -

Re: [PHP] php and forms question

2001-01-30 Thread David Robley
On Wed, 31 Jan 2001 14:26, Chip wrote: > I am trying to build a multi-part form and am > using the example from the book Beginning PHP4 > by Choi, Kent, Lea, et al. in chapter 8. > Here's what I want to do - > form_page1 - 10 input fields size=3 > then onwards to > form_page2 - 5 input fields size

Re: [PHP] php and forms question

2001-01-30 Thread Michael Hall
One way to do this is to include information in hidden form fields that pass information along from page to page. If this is too unwieldy, you have session variables or writing information a database or file. Mick On Tue, 30 Jan 2001, Chip wrote: > I am trying to build a multi-part form and am

[PHP] Help Loading Oracle Dll

2001-01-30 Thread Shimon Dekel
I need help loading Oracle libraries. The environment: Windows NT 4.0 SP6 IIS4 PHP 4.0.5 I have upgraded from PHP 4. something, in order to add the ability to access Oracle, and got it working fine with MySql as it did before I touched it. I have enabled the osi8.dll extension and on any call to

Re: [PHP] Override already-declared function?

2001-01-30 Thread John Donagher
I don't know of a way to override a function. Functions declarations, because they reside in the global namespace, should be unique. You can override (and yet still have access to) inherited class methods in subclasses. Have you looked at applicability of OOP in your implementation? John On W

Re: [PHP] PHP MySQL password

2001-01-30 Thread Michael Hall
One way to handle this is to put your password (along with any other database details) into a config file (eg. yoursite.cfg) and include/require this file in your script. The config file can then be stored outside the web tree, and referred to with an absolute path. Mick On Tue, 30 Jan 2001, Eg

[PHP] php and forms question

2001-01-30 Thread Chip
I am trying to build a multi-part form and am using the example from the book Beginning PHP4 by Choi, Kent, Lea, et al. in chapter 8. Here's what I want to do - form_page1 - 10 input fields size=3 then onwards to form_page2 - 5 input fields size=3 then onwards to form_page3 - 5 input fields size=

[PHP] Override already-declared function?

2001-01-30 Thread Jason Murray
Hi folks, Is there a way to override a declared function? For example, if my site is running under a specific theme, I want function X to work in a slightly different way to normal. The theme will include a specific functions.<>.php file, which includes various function definitions and other co

Re: [PHP] these url icons fashion

2001-01-30 Thread Matthew Kendall
"kaab kaoutar" <[EMAIL PROTECTED]> wrote ... > Hi tried it ! > and get the icon by email and add the following : > http://www.idnetdor.com/favicon.ico"> > but it still does not work !? Delete all existing favorites for that site (not just the page; all pages on the site), clear your browser cache

Re: [PHP] parse form input

2001-01-30 Thread David Robley
On Wed, 31 Jan 2001 01:55, Robert wrote: > > variables passed from form = > part=68030&quan=500&I=x&part=68040&quan=350&I=x&sid=6754g543a76 I am > sending several part numbers from the form, but when parsed it only gives > me the last one How do I get it to return all of the parts? I'm a PHP > ne

[PHP] parse form input

2001-01-30 Thread Robert
variables passed from form = part=68030&quan=500&I=x&part=68040&quan=350&I=x&sid=6754g543a76 I am sending several part numbers from the form, but when parsed it only gives me the last one How do I get it to return all of the parts? I'm a PHP newbie, only been programming for 2 weeks...

RE: [PHP] disabling php ability via .htaccess

2001-01-30 Thread Nold, Mark
- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are no

Re: [PHP] Server VS Client script validation

2001-01-30 Thread Chris Adams
On 29 Jan 2001 13:38:20 -0800, kaab kaoutar <[EMAIL PROTECTED]> wrote: >What's best ? using client script while validating form inputs(javasript or >vbscript) or using php for validating! The only acceptable approaches must be server side - otherwise you've just decided that security and reliabi

Re: [PHP] string length?

2001-01-30 Thread Joe Stump
if you just want to know how many numbers are in it you can do this: $num_of_numbers = sizeof(explode(';',$string)); --Joe On Tue, Jan 30, 2001 at 04:46:50PM -0800, Jon Jacob wrote: > Kevin Connolly wrote: > > > > Hi, > > I am quite new to PHP scripts and I have run into a little problem with

Re: [PHP] How can I make PHP to work on Win98 ?

2001-01-30 Thread Shane McBride
Here's my input: Get Xitami for Windows. You can not do any version of IIS on win98. Xitami is VERY easy to configure. Then you of course will need PHP. First, install Xitami, then PHP. The PHP installer will ask you what type of web server you run and configure PHP and the web server for

[PHP] Real prob w/ NT5 and $PHP_AUTH_USER

2001-01-30 Thread Shane McBride
I have PHP loaded as ISAPI, not CGI. I originally had PHP installed as cgi. When I have a script that authenticates a user, it never authorizes them. I have set the permissions in IIS to only allow Anonymous access. The other two options are disabled. I have tried all the different security opt

Re: [PHP] Problems with PHP mail()

2001-01-30 Thread Louis LeBlanc
Richard Lynch wrote: > > > Anyway, I have the sendmail path set (/usr/sbin/sendmail -t -i), but > > something isn't working right. > > Do you have quotes around that "/usr/sbin/sendmail -t -i" ? You need quotes > in php.ini there, or it ignores the -t -i part cuz it's after a space. I didn't

Re: [PHP] verify that email exist ?

2001-01-30 Thread Chad Guilette
It's nearly impossible to validate an e-mail address as completely valid. The example given by Mr. Clark is very in-depth and well done. If you are looking for something a little simpler here's a snippet of code that checks to see if the format of the email address is valid meaning it contains x

Re: [PHP] [Newbie] Php.ini

2001-01-30 Thread Richard Lynch
> When I configure php4, is it possible to say it to look for the php.ini in > /etc/php4? > > Which argument should I append to ./configure --?=/etc/php4 http://php.net/manual/en/install.configure.php --with-config-file-path This is one of the few things on that page that is *not* just a circul

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

2001-01-30 Thread Richard Lynch
>I'm exploring sessions in PHP4 as I build a new site, and I have decided to rely on them more heavily than in the past. > >Basically, I'd like to set things up so that when someone logs into the site, all of their accounts variables are queried from a >database and loaded into session variables (

Re: [PHP] .jpg/.gif extension problem!

2001-01-30 Thread Richard Lynch
>But I can't fetch the extension, since php copies the file to c:\windows\temp and calles the file something like phpdfdfe.tmp --> I cant get the extension right (i'm writing it to a db) and the copy() outputs permission denied! If your filename variable is $foo, then $foo_name will have the orig

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

2001-01-30 Thread Richard Lynch
> under /tmp but the session is still alive in the browser so the cookies are > the problem. Try doing SetCookie(SESS_ID, ''); as well. Or whatever that variable is that has the session id in it. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: ht

Re: [PHP] trouble with a query object

2001-01-30 Thread Richard Lynch
> $nameArray = array("Last", "Suffix", "Prefix", "First", "Middle"); > while (list($key, $value) = each ($nameArray)){ > if ($infoObject->$value != ""){ > echo "$infoObject->$value";#this is the problem line... > } > } > > > If I take out the "$infoObject->" on th

Re: [PHP] void function();

2001-01-30 Thread Richard Lynch
> void function(integer); > > What does the void mean? And how would I use the function? I just get a > parse error when I use the function with the "void" in it and the "called to > undefined function" (even with an integer) when I omit the "void." The word in that location in the documentatio

Re: [PHP] httpd-prozess doesn't get killed

2001-01-30 Thread Richard Lynch
> i code a streaming chat in PHP4. Everithing works fine, it is very fast due > to use of shared memory. But i have this problem: Every time i start the > script a new httpd-process is started (Apache 1.3.12). So far so good. But > the process doesn't get killed when aborting or reloading the scri

[PHP] trouble with reading session variables: BUG?

2001-01-30 Thread Matthias Krehl
When using Cookies for session management everything works fine (the authentication part). But not passing the values of the session variables. In the example below the existence of '$ident' is verified. But no chance to get its value: no 'echo' prints out anything! Even isset() denies the existen

Re: [PHP] OT probably- Resource id# shows up in select box.

2001-01-30 Thread Chuck Barnett
yes, I was echoing :) dumb me - Original Message - From: "David Harrison" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 8:33 PM Subject: RE: [PHP] OT probably- Resource id# shows up in select box. > Probably printing the result of a DB

Re: [PHP] OT probably- Resource id# shows up in select box.

2001-01-30 Thread Chuck Barnett
Sorry to reply to my own question... This only happens in Netscape. 4 chuck - Original Message - From: "Jason Murray" <[EMAIL PROTECTED]> To: "'Chuck Barnett'" <[EMAIL PROTECTED]>; "PHP General List" <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 8:31 PM Subject: RE: [PHP] OT probab

Re: [PHP] regex with non-ascii characters

2001-01-30 Thread Jeff Warrington
In article <059301c08981$7859a020$[EMAIL PROTECTED]>, "Remco Chang" <[EMAIL PROTECTED]> wrote: You need to find the ASCII codes for these characters and include them in the range of acceptable chars in the ereg. something like: [\xc0-\xff] where this represents a range of ASCII codes in octal

RE: [PHP] OT probably- Resource id# shows up in select box.

2001-01-30 Thread David Harrison
Probably printing the result of a DB call somewhere accidentally. ie: $dbh = mysql_connect($host,$user,$pass)); echo $dbh; would do that. --dave > -Original Message- > From: Chuck Barnett [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 31 January 2001 12:34 PM > To: PHP General Li

RE: [PHP] OT probably- Resource id# shows up in select box.

2001-01-30 Thread Jason Murray
> Pardon for the OT but what would cause "Resource id #"x to > show up in my select box from a select box populated from a database? You're probably echo()'ing your database connection resource, instead of the actual value you've pulled from the database. Jason -- PHP General Mailing List (ht

[PHP] Oracle Function list

2001-01-30 Thread Jon Jacob
I found a list of some of the Oracle Functions at the main PHP site. Is this all there is? -- 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] OT probably- Resource id# shows up in select box.

2001-01-30 Thread Chuck Barnett
Pardon for the OT but what would cause "Resource id #"x to show up in my select box from a select box populated from a database? Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

Re: [PHP] session question

2001-01-30 Thread Mark Green
How about this: session_start(); session_register($funky_session_var); $funky_session_var ++; print $funky_session_var; Cheers, ^^@rk Peter Van Dijck wrote: > > Hi, > help: shouldn't this increase the number every time you reload the page? > > session_start(); > $funky_session_var ++; >

[PHP] kerberos support in PHP's LDAP functions?

2001-01-30 Thread Liam Hoekenga
Our ldap servers use K4 credentials to bind against the server. We're interested in developing a new web based ldap client, but it doesn't appear that PHP's ldap implementation actually supports kerberos. If I'm wrong, is it documented someplace? Has someone done this before? Liam Hoekenga UM W

Re: [PHP] .jpg/.gif extension problem!

2001-01-30 Thread Chris Lee
$somefile $somefile_name $somefile_type nice eh ? -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Fredrik Arild Takle"" <[EMAIL PROTECTED]> wrote in message 009d01c08adb$b67d26a0$accd4382@hp">news:009d01c08adb$b67d26a0$accd4382@hp... Hi! I have a form that copies a file trough a

[PHP] session question

2001-01-30 Thread Peter Van Dijck
Hi, help: shouldn't this increase the number every time you reload the page? session_start(); $funky_session_var ++; session_register($funky_session_var); print $funky_session_var; Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Read Vs. Include

2001-01-30 Thread Alexander Skwar
So sprach Daniel Grace am Thu, Jan 25, 2001 at 07:18:52PM -0800: > readfile($filename); Why not include? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die

Re: [PHP] Editor

2001-01-30 Thread Kristofer Widholm
At 08.02 + 01-01-30, Philip Olson poked the keyboard as follows: >http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=editor > > >mac >- bbedit On the Mac there is also a wonderful new editor just ported over from BeOS called Pepper. It's really elegant, and incredibly customizable. I

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

2001-01-30 Thread Stig Bakken
ssb Tue Jan 30 17:27:11 2001 EDT Modified files: /php4/pear PEAR.php.in Log: whitespace Index: php4/pear/PEAR.php.in diff -u php4/pear/PEAR.php.in:1.12 php4/pear/PEAR.php.in:1.13 --- php4/pear/PEAR.php.in:1.12 Mon Jan 29 16:55:27 2001 +++ php4/pear/PE

[PHP] PHP v4.0.4pl1 breaks phpMyAdmin

2001-01-30 Thread Rob McMillin
Is anyone else having this problem? phpMyAdmin running under RedHat 6.1 with PHP v4.0.4pl1 makes all kinds of noise about missing tables in the database. It appears as though this may be caused by bug 8966. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

RE: [PHP] Uploading images only

2001-01-30 Thread Benjamin Munoz
You can check the mime type of the uploaded file. First upload the file, as usual. Then check the mime type before copying from the temp directory to the files directory. If this is your form: > File: Then on submission, $userfile will be your file, $userfile_name will automatically

RE: [PHP] Editor

2001-01-30 Thread Maxim Maletsky
No it is not, but you can use it for as long as you wish in unregistered mode. Cheers, Maxim Maletsky -Original Message- From: Christian Sakshaug [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 8:47 PM To: Maxim Maletsky Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Editor >Edit

Re: [PHP] string length?

2001-01-30 Thread Philip Olson
Hi Kevin, First thought that comes to mind is explode() so something like : I assume that would work. That explodes it into an array then counts it, check out : http://www.php.net/manual/en/function.explode.php It's a really fun function to play with. Regards, Philip Olson http://

Re: [PHP] [Newbie] Php.ini

2001-01-30 Thread David Robley
On Wed, 31 Jan 2001 04:35, Steve Haemelinck wrote: > When I configure php4, is it possible to say it to look for the php.ini > in /etc/php4? > > Which argument should I append to ./configure --?=/etc/php4 > > Steve THX ./configure --help |less will give you lots of info, including --with-config-

Re: [PHP] verify that email exist ?

2001-01-30 Thread Michael Kimsal
It's close, but it won't ALWAYS tell you if in email is "deliverable". Many configurations (some I've used in the past) *accept* mail for any address, and only later, if the delivery mechanism can't/won't deliver it locally, will it get bounced back as 'undeliverable'. But in *some* cases, classe

[PHP] Uploading images only

2001-01-30 Thread Brandon Orther
Hello, Is there a way to only let images get upload while doing a simple file upload form? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com ---

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

2001-01-30 Thread Sean Bright
elixer Tue Jan 30 17:14:55 2001 EDT Modified files: /php4/ext/mysql php_mysql.c Log: Fixed conditional. # Woops! Index: php4/ext/mysql/php_mysql.c diff -u php4/ext/mysql/php_mysql.c:1.64 php4/ext/mysql/php_mysql.c:1.65 --- php4/ext/mysql/php_mysql.c:1

[PHP] [Newbie] Php.ini

2001-01-30 Thread Steve Haemelinck
When I configure php4, is it possible to say it to look for the php.ini in /etc/php4? Which argument should I append to ./configure --?=/etc/php4 Steve THX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: [PHP] How can I make PHP to work on Win98 ?

2001-01-30 Thread Benjamin Munoz
You can find some info here... http://php.net/manual/en/install-windows95-nt.php And more here... http://php.weblogs.com/easywindows First requirement is to have a web server (Xitami, Apache, Personal Webserver) on your Win98 box. Then you can run one of the installers found on one of the above

RE: [PHP] Making sure a variable doesn't contain a comma

2001-01-30 Thread Mark Roedel
> -Original Message- > From: Brandon Orther [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 30, 2001 3:46 PM > To: PHP User Group > Subject: [PHP] Making sure a variable doesn't contain a comma > > > Does anyone know how I can check a variable for a comma and > remove it if it does

RE: [PHP] PDF Questions

2001-01-30 Thread Benjamin Munoz
http://www.phpbuilder.com/columns/perugini20001026.php3 http://www.phpbuilder.com/columns/uwe20001116.php3 http://php.net/manual/en/ref.pdf.php -Ben -Original Message- From: Conover, Ryan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 6:31 AM To: [EMAIL PROTECTED] Subject:

Re: [PHP] email headers!

2001-01-30 Thread Chris Hayes
> On Tuesday kaab kaoutar wrote: > > how can i add Bcc Cc and others to my email? > > i use > > $headers="Bcc:[EMAIL PROTECTED]\nCc:[EMAIL PROTECTED]"; > > mail($email,$subject,$body,$headers)) > > but i receive it only once ? > > I guess your mail server is simply too intelligent - it recogniz

[PHP] Querying Radius Server?

2001-01-30 Thread Brent Edwards
Has anyone used PHP to query a Radius server? Any info would greatly be appreciated. Thanks, -- Brent Edwards -- 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-m

[PHP] authenicate against Radius server

2001-01-30 Thread Brent Edwards
Has anyone used PHP to query a Radius server? Any info would greatly be appreciated. Thanks, -- Brent Edwards -- 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-m

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

2001-01-30 Thread Andrew Elliston
I'm exploring sessions in PHP4 as I build a new site, and I have decided to rely on them more heavily than in the past. Basically, I'd like to set things up so that when someone logs into the site, all of their accounts variables are queried from a database and loaded into session variables (w

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

2001-01-30 Thread Sean Bright
elixer Tue Jan 30 16:55:29 2001 EDT Modified files: /php4/ext/mysql php_mysql.c Log: Fix for bug #8991. mysql_field_type() now returns "year" for columns of type YEAR. Index: php4/ext/mysql/php_mysql.c diff -u php4/ext/mysql/php_mysql.c:1.63 php4/ext

RE: [PHP] IIS and PHP authorization

2001-01-30 Thread James Moore
> [snip] > >There is an ISAPI module. > [snip] > > yes, which is more than unstable as I found... Using a good > machine (2xXeon > 550, 512 MB, NT4/SP6a/IIS4) it constantly crashed being a filter, and > crashed being

[PHP] .jpg/.gif extension problem!

2001-01-30 Thread Fredrik Arild Takle
Hi! I have a form that copies a file trough a webpage... (using copy()) But I can't fetch the extension, since php copies the file to c:\windows\temp and calles the file something like phpdfdfe.tmp --> I cant get the extension right (i'm writing it to a db) and the copy() outputs permission de

[PHP] Killing session cookies, caches and everything.

2001-01-30 Thread Angel Behar
Hi !! I'm working with php 4.0.4pl1 under windows NT, and I really need big help here. I can't delete, kill, erase the session after the user end shopping. I try session_unset, session_destroy and header ("Expires: Fri,09 Sep 1966 06:09:06 GMT"); header ("Last-Modified: " . gmdate("D, d M Y H:i

[PHP] How can I make PHP to work on Win98 ?

2001-01-30 Thread nastaran kashani
Hi, I work with Winows98 , and I want to make my system a really server.I have two questions : 1}What component I should install on my system to make it a really server ? IIS3 ? or IIS4 ? 2)Where can I get this component (IIS3 or IIS4 for Windows98) ? Thanks a lot Atieh

Re: [PHP] Editor

2001-01-30 Thread Shaun Thomas
On Tue, 30 Jan 2001 [EMAIL PROTECTED] wrote: > I know this has been asked before but I can`t seem to get the archive > email thingy to work, basically I`m looking for a free or cheap editor > that has the lines numbered so that it`s a bit easier for me to debug > my scripts. If you're on windows

[PHP] PDF Questions

2001-01-30 Thread Conover, Ryan
I was wondering if anyone has any good places to answer questions pertaining to PDF and PHP. Ryan -- 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 PRO

Re: [PHP] string length?

2001-01-30 Thread Jon Jacob
Kevin Connolly wrote: > > Hi, > I am quite new to PHP scripts and I have run into a little problem with my string! > I have a string called $numbers which is 5;6;12;21;36;42 (for example, it can be any >6 numbers between 1 and 42). > Is there an easy way that I can find out how many numbers ther

[PHP] Readfile only return error

2001-01-30 Thread Karl J. Stubsjoen
Hello, I'm performing a readfile, and am expecting that if the file isn't found and error will return unless you add the @ symbol before the readfile function as in: $retrn = @readfile ($FileName); My page only errors, and doesn't return false. I don't want my page to error, I would like to di

[PHP-CVS] CVS is down?

2001-01-30 Thread Colin Viebrock
Can't seem to update ... - Colin -- PHP CVS 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] PHP4.04pl1 upgrade

2001-01-30 Thread Erich Kolb
Does anyone know where to obtain instructions on how to upgrade to PHP 4.04pl1? Has anyone done this yet? What kind of problems did you run into?

[PHP] help:php

2001-01-30 Thread ky reddy
hai, i am facing problem. i clearly mentioned in the attached file. please reply i a held up. regards, _ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com dear richard, [EMAIL PROTECTED] i am

[PHP] Making sure a variable doesn't contain a comma

2001-01-30 Thread Brandon Orther
Does anyone know how I can check a variable for a comma and remove it if it does have one? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

[PHP] Re: Cookie with Netscape

2001-01-30 Thread Kristofer Widholm
At 11.08 -0800 01-01-29, Eugene Yi (InfoSpace Inc) poked the keyboard as follows: >I set up a cookie using the following command and it works fine under IE but >not in Netscape. Am I doing something wrong? > >setcookie("mycookie[1]",$domain,"","/","mydomain.com"); > >Please help me. Thanks much

RE: [PHP] Richard Heyes HTML Mime Mail class

2001-01-30 Thread Richard Heyes
> I've just downloaded and started playing aorund with echo($subject); ?> ;-) > > Looks great! Only one problem though: > > I'd like to be able to use the included smtp-class for > delivering serveral > messages through the same smtp-connection before closing it > and I'm too > stupid to fi

Re: [PHP] Interactive external program execution

2001-01-30 Thread Brian Clark
Hello Paul, (P == "Paul") [EMAIL PROTECTED] discovered: P> During the course of a cronjob scheduled script, I need to execute an P> external program which connects to another server using an P> implementation of eftp (sort of ftp for ISDN). The eftp program returns P> no success/error codes, i

  1   2   >