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

2001-03-05 Thread Emiliano Heyns
emile Tue Mar 6 00:12:52 2001 EDT Modified files: /php4/ext/midgard sitegroup.c Log: Bug #123 Index: php4/ext/midgard/sitegroup.c diff -u php4/ext/midgard/sitegroup.c:1.6 php4/ext/midgard/sitegroup.c:1.7 --- php4/ext/midgard/sitegroup.c:1.6Tue Feb 2

Re: [PHP] Session not destroying properly

2001-03-05 Thread trogers
Hi You will need to kill the session data on the exit of your failed login not on entry to the login page as the data will already be overwritten by the previous session value. I use unset($name); unset($password); ... Tom At 04:24 PM 6/03/01 +0900, Yasuo Ohgaki wrote: >Do you use custom sess

Re: [PHP] Newbie: Can't find function error.

2001-03-05 Thread Pavel Jartsev
Darren Ward wrote: > > ... > > The file looks like: > > > > Any ideas on what i should be looking at or for? > Try phpinfo(). :) -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: [PHP] Session not destroying properly

2001-03-05 Thread Yasuo Ohgaki
Do you use custom session handlers? Try session_unset() also. It may help. Regards, Yasuo Ohgaki > Got a problem with sessions. > > On my index page, there's a place for people to login. Well, when I test > with two different user names (ie: mike and jlo) it reverts to the first > one when l

Re: [PHP] Almost working Regex

2001-03-05 Thread Murray Shields
Yes. > Did you try escaping it with the \? > > > At 04:51 PM 3/6/01 +1000, Murray Shields wrote: > >For data validation, I am using the following regex: > > > >$Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, > >$List)); > > > >This works perfectly for the moment. Howeve

[PHP] Newbie: Can't find function error.

2001-03-05 Thread Darren Ward
Hi Guys, Newbie to the list and the world of PHP. I'm having a LOT of trouble getting PHP to work. The PHP and Apache installs have gone well as evidenced by: # ./httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_in

Re: [PHP] Almost working Regex

2001-03-05 Thread Yasuo Ohgaki
> For data validation, I am using the following regex: > > $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, > $List)); > > This works perfectly for the moment. However, I need to add both square > brackets [] to the list of allowed characters above. This is JavaScripts R

Re: [PHP] Almost working Regex

2001-03-05 Thread Rick St Jean
Did you try escaping it with the \? At 04:51 PM 3/6/01 +1000, Murray Shields wrote: >For data validation, I am using the following regex: > >$Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, >$List)); > >This works perfectly for the moment. However, I need to add both sq

[PHP] Almost working Regex

2001-03-05 Thread Murray Shields
For data validation, I am using the following regex: $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, $List)); This works perfectly for the moment. However, I need to add both square brackets [] to the list of allowed characters above. But when I add the closinjg brack

[PHP] OT Perl help

2001-03-05 Thread Matt Friedman
Any easy way to make this script take it's input from the command line like so: ./porter_stemming.pl string where string is the argument? #!/usr/bin/perl -w # Porter stemmer in Perl. Few comments, but it's easy to follow against the rules in the original # paper, in # # Porter, 1980, An algo

[PHP] Calling Perl from PHP -- Help --

2001-03-05 Thread Matt Friedman
I'm stumped. I've searched all over and can't figure this one out. I have a perl script that waits for input on the command line. You type in a string and it returns a string. I'd like to be able to this via php, since I can't rewrite the script in php, since it's a little over my head. So, h

RE: [PHP] is_uploaded_file false if file too big

2001-03-05 Thread Rick St Jean
ok ... I have been doing some more reading... the file uploads are limited by a directive in php.ini, upload_max_filesize.. and it defaults to 2 meg. If it is large it will act like nothing was uploaded. At 03:46 PM 3/6/01 +1030, Tyson Lloyd Thwaites wrote: >Funny, because I can upload stuff tha

Re: [PHP] removing characters

2001-03-05 Thread Rick St Jean
I have just started with php a few days ago but in the book that I am reading it uses a foreach loop that is specifically for arrays. foreach($Area as $key=>$value) { your concatination string here } Rick At 04:45 PM 3/6/01 +1030, you wrote: >On Tue, 6 Mar 2001 15:50, [EMAIL PROTECTED] wro

[PHP] Shopping Baskets

2001-03-05 Thread Sean Weissensee
Does anyone have a sample shopping basket class they could show me, I tried to use one of the phpbuilder site but could not get it working ? Sean Weissensee ION Solutions

Re: [PHP] removing characters

2001-03-05 Thread David Robley
On Tue, 6 Mar 2001 15:50, [EMAIL PROTECTED] wrote: > A problem of inexperience... > > I am trying to store an array in mysql. I obtain the array like so-- > > $partcount = count($Area); > reset($Area); > for ($i = 0; $i < $partcount; $i++){ >$key = key($A

[PHP] Session not destroying properly

2001-03-05 Thread Mike Yuen
Got a problem with sessions. On my index page, there's a place for people to login. Well, when I test with two different user names (ie: mike and jlo) it reverts to the first one when login fails. For example: I enter in the username "myuen" and a wrong password. I get my "Password/Username in

[PHP] removing characters

2001-03-05 Thread rpruitt
A problem of inexperience... I am trying to store an array in mysql. I obtain the array like so-- $partcount = count($Area); reset($Area); for ($i = 0; $i < $partcount; $i++){ $key = key($Area); $val = $Area[$key]; $string1 .= $val . "\') o

Re: [PHP] config question

2001-03-05 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from [EMAIL PROTECTED] Mon, 5 Mar 2001 20:00:47 EST > > My server admin is being stupid... magic_quotes_gpc have been turned off > unexpectadly so phpMyAdmin aint working, as well as half my scripts. He says > no

RE: [PHP] HREFs that can't be

2001-03-05 Thread php3
Addressed to: "Boget, Chris" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Boget, Chris" <[EMAIL PROTECTED]> Mon, 5 Mar 2001 08:25:25 -0600 > > This is pretty much acceptable to search engines. Even better add: > > > > ForceType application/x-httpd-php > > > > to

[PHP] is_uploaded_file false if file too big

2001-03-05 Thread Tyson Lloyd Thwaites
Hi, I am having a problem with is_uploaded file returning false if the file uploaded is over a certain size. I have used ini_set("upload_max_filesize", "8M"), as well as setting MAX_FILE_SIZE like this: (ie real big :) Still, if I try to upload a file over about 2mb, is_uploaded_file returns f

Re: [PHP] Quick Regex Question

2001-03-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Jeff Oien") wrote: > if (preg_match("/[a-Z],[a-Z]/",$text)) { > > Can you tell me where I'm failing here. I want to do something > if the string has commas in between words with no spaces. > Like: > > blah,blah,blah "Does it have *any insta

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

2001-03-05 Thread Sean Bright
elixer Mon Mar 5 20:42:04 2001 EDT Modified files: /php4/ext/standard file.c Log: Typo. # I don't know where I got 4.02 from Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.146 php4/ext/standard/file.c:1.147 --- php4/ext/standard/file

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

2001-03-05 Thread Sean Bright
elixer Mon Mar 5 20:34:06 2001 EDT Modified files: /php4/ext/standard file.c Log: get_meta_tags now allows attributes that are not quoted as well as those that are. It follows the HTML 4.01 specification for attribute values outlined here -> http://www.w3.

[PHP] Quick Regex Question

2001-03-05 Thread Jeff Oien
if (preg_match("/[a-Z],[a-Z]/",$text)) { Can you tell me where I'm failing here. I want to do something if the string has commas in between words with no spaces. Like: blah,blah,blah Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

[PHP] compile error

2001-03-05 Thread Doug Kite
I am having trouble installing php4. When I try to compile, it stops with the following error: In file included from /usr/src/php4/ext/standard/fsock.h:43, from /usr/src/php4/ext/standard/php_standard.h:43, from main.c:52: /usr/include/sys/socket.h:48: conflicti

Re: [PHP] speeding a site with lots of includes

2001-03-05 Thread Chris Lee
I found 0.002 for the first include, and 0.0001 second for a refresh not to bad. PIII-500 512mb ram PHP-4.0.4pl1 no zend-optimizer, no zend-cache the refresh is less because linux caches the file in it internal buffer. I wouldnt consider 0.002sec that bad of a hit. you could have 50hit/

[PHP-CVS] cvs: CVSROOT / cvswrappers

2001-03-05 Thread Andrei Zmievski
andrei Mon Mar 5 17:26:41 2001 EDT Modified files: /CVSROOTcvswrappers Log: Recognize .png as binary files. Index: CVSROOT/cvswrappers diff -u CVSROOT/cvswrappers:1.2 CVSROOT/cvswrappers:1.3 --- CVSROOT/cvswrappers:1.2 Tue Nov 2 10:01:35 1999 +++

Re: [PHP] config question

2001-03-05 Thread Philip Olson
phpinfo() and if you want it to work now, you'll want to create a .htaccess and put this in it : php_flag magic_quotes_gpc on and kindly ask them why it's been turned off and plan accordingly. regards, Philip Olson http://www.cornado.com/ On Mon, 5 Mar 2001 [EMAIL PROTECTED] wrote: >

Re: [PHP] what does $$ mean?

2001-03-05 Thread Stephan Ahonen
An example of $$variables: Returns: wimpymeat smelly ditto wimpymeat smelly Now, why anyone would want to write a script that returns words like "wimpymeat" is beyond me. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a di

Re: [PHP] config question

2001-03-05 Thread David Robley
On Tue, 6 Mar 2001 11:30, [EMAIL PROTECTED] wrote: > My server admin is being stupid... magic_quotes_gpc have been turned > off unexpectadly so phpMyAdmin aint working, as well as half my > scripts. He says nothing has been changed so it must be my fault, is > there a command in php to displays t

Re: [PHP] config question

2001-03-05 Thread Kelly Corkill
On Mon, 5 Mar 2001 [EMAIL PROTECTED] wrote: > Date: Mon, 5 Mar 2001 20:00:47 EST > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [PHP] config question > > My server admin is being stupid... magic_quotes_gpc have been turned off > unexpectadly so phpMyAdmin aint working, as

[PHP] config question

2001-03-05 Thread PeterOblivion
My server admin is being stupid... magic_quotes_gpc have been turned off unexpectadly so phpMyAdmin aint working, as well as half my scripts. He says nothing has been changed so it must be my fault, is there a command in php to displays the PHP config options so i can show this mofo that th

[PHP] PHP Conference In San Diego?

2001-03-05 Thread Jonathan Sharp
I've submitted a proposal for a tutorial for the PHP conference and it says that you'll be notified on the 1st of March...but I haven't heard anything...has anyone else that submitted something heard anything? Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] mysql_connect() with timeout

2001-03-05 Thread php
A few months ago I modified PHP 3.0.16 to add an optional fourth parameter to the mysql_connect() functions. The parameter specifies a timeout (in seconds) on the connect(). The patch simply uses the existing mysql_options() function in the MySQL library so it's quite stable code. I'm in the pr

[PHP] Translation using FastTemplates

2001-03-05 Thread ADnoctum
Hi. I'm using FastTemplates for a little project of mine and I want to include several translations for that. Have any of you made translations with templates? I don't know were to start. HELP! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: [PHP] mail ....any idea's?

2001-03-05 Thread Peter Houchin
That wasn't it :< & if i use any other headers .. ie $mailheaders .= "X-Priority: 1\n"; they work .. its just with the CC that wont work :< -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 10:45 AM To: 'Peter Houchin' Subject: RE: [PHP] mai

[PHP] mail ....any idea's?

2001-03-05 Thread Peter Houchin
Hiya, am near completeion of a site only i can't get any mail to send to multiple recipients at all .. either in the "To:" section or having on email in "To" and one email address in "CC" section.. and i need to be able to do this ... can any one offer any suggestions ...( I'd prefer to have one i

Re: [PHP] comparing values

2001-03-05 Thread David Robley
On Mon, 5 Mar 2001 18:27, Paul wrote: > below is the code I am using, $sourcefile is a url var > for example http://url/?sourcefile=/this/path/to/whatever.php > > $filelist = array("", > "db_auth.conf", > "config.php", > "master.functions.inc" > );

[PHP] php, mysql and htaccess

2001-03-05 Thread george
I am trying to protect a folder with an htaccess file which pulls the username and passwords out of a db but I cant get it to work Can someone have a look at the code below from the htaccess file. TIA george AuthName "Admins Only" AuthType Basic require valid-user Auth_MySQL_Host Auth_MySQL_

Re: [PHP] function --> global variables

2001-03-05 Thread Hardy Merrill
Augusto Cesar Castoldi [[EMAIL PROTECTED]] wrote: > I have a html form and his "action" is a php file. > > this is the php file: > >function checasenha($ID) { ^^^ > $as="\""; > global $ID, $limite, $cdusuario, $usuario, $s

[PHP] To the PHP developpers / DOMXML (Update and delete??)

2001-03-05 Thread Dominique Paquin
Greetings PHP Developpers. I am presently making a web based application that will be able to add nodes as well as update and remove them from XML documents. I saw in my researches, up to now, That XMLDOM does not support update and delete of nodes. I just wanted to know if someone is presently w

[PHP] Sites Using PHP - For a presentation

2001-03-05 Thread Brad Landis
Hi all, I am looking for some big name sites using PHP. I will be doing a presentation next month and would like to show a list of sites that are using PHP. Thanks for your Help ___ Send a cool gift with your E-Card http://www.bluemountain

[PHP] function --> global variables

2001-03-05 Thread Augusto Cesar Castoldi
I have a html form and his "action" is a php file. this is the php file: function checasenha($ID) { $as="\""; global $ID, $limite, $cdusuario, $usuario, $senha; . . . } checasenha($ID); ---

[PHP] PHP and MySQL ....dynamic query?

2001-03-05 Thread Blueriver Networking Services
Hello everyone. :) I am attempting to construct a query with PHP and MySQL based on user input from a referring form page. Here is an example of what I need this to do: This will involve multiple variables, but I will just use 2 here: if ($dig== "1") { $qual1 = "WHERE (track >= 0)"; } if (

RE: [PHP] mail problem

2001-03-05 Thread Peter Houchin
Now if i include $headers .= "Cc: [EMAIL PROTECTED] " . " , "; $headers .= "[EMAIL PROTECTED]\n"; My page won't load at all apart from the first include i have on my page.. does any one have any idea's? Hiya, am near compl

Re: [PHP] Get text between

2001-03-05 Thread Henrik Hansen
> I need some help with a program, I need to get every > instance of text between GET TEXT HERE > and save the results in a variable. Does anyone > have some example code of how to do it along with how > to put the results into just one variable? Try with: $string = "GET TEXT HERE"; $string =

[PHP] speeding a site with lots of includes

2001-03-05 Thread Eduardo Dominguez
An app I am currently developing has grown a lot. It currently handles aproximately 12 includes, more or less 13 thousand lines of code. By doing some benchmarks, i realized that the bottleneck is the include() payload. How can I optimize a program like this one ? thanks in advance -- PHP Ge

[PHP] Get text between

2001-03-05 Thread Keith Mayo
I need some help with a program, I need to get every instance of text between GET TEXT HERE and save the results in a variable. Does anyone have some example code of how to do it along with how to put the results into just one variable? __ Do Yo

php-general Digest 5 Mar 2001 21:48:18 -0000 Issue 549

2001-03-05 Thread php-general-digest-help
php-general Digest 5 Mar 2001 21:48:18 - Issue 549 Topics (messages 42593 through 42676): Re: function questions 42593 by: Tim Ward Is it possible to get call stack information? 42594 by: Neil Kimber Re: Get remote IP ot Host 42595 by: Michael Meinl Re: help gurus

RE: [PHP] get current events from mysql query by date?

2001-03-05 Thread php3
Addressed to: <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from <[EMAIL PROTECTED]> Mon, 5 Mar 2001 14:10:28 -0600 > > This is just a guess but wanted to take a shot at it. > > Something like > > SELECT EventID, EventName, EventDescription, > EventStartDate, EventEndDate >

Re: [PHP] Is it odd or even??? Optimize!!!

2001-03-05 Thread Julian Wood
Clever. For those of us unfamiliar with bitwise ops, here's how this works: The bitwise and op (&) works on bits like this: dig1 dig2 Result 000 010 100 111 An even number's binary representation always ends with 0 (ie 12 = 1100) while an odd ends with 1 (ie 13

Re: [PHP] Document Contains No Data in Netscape?

2001-03-05 Thread Chris Lee
this is caused by netscape receiving no data. ie. will product no data, because nothing is echo'd. netscape hates this, and will display a warning. the other reason could be there is something wrong with a funky function your using. ie. if pdflib isnt compiled properly with TTF then when

[PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-05 Thread Ken
At 02:39 PM 3/5/01 -0500, Chris Poirier wrote: >There is a suggestion in the PHP online documentation that has worked for >me (except in Opera 5, which seems to ignore the Realm). Add a timestamp >to the Realm that changes with each new session. IE 5.0 will prompt for a >different password, beca

Re: [PHP] carriage return in multipart/form-data form post

2001-03-05 Thread Chris Lee
even the simplest forms product a 0x013 0x10 imediatly after the I wish there was a way to control this behaviour. I thought it was normal, and anoying. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Jef

[PHP] carriage return in multipart/form-data form post

2001-03-05 Thread Jeff Schwartz
We've just moved to a new server and I'm running into an odd problem. The code is below. On my old server it correctly returns: [test] t 116 e 101 s 115 t 116 But on my new server I get: [ test] 13 10 t 116 e 101 s 115 t 116 Has anyone else run into this? "; while ($action){

RE: [PHP] Is it odd or even???

2001-03-05 Thread Boget, Chris
> Color me confused because I though true was any non zero > value and false was zero. Right. And if( $num % 2 ) { echo "it's odd"; } means that the operation returned a remainder - a non zero value. > I know I am using the following code: > if (!($num % 4){ do something} > and it does s

Re: [PHP] Hide Include-Files from the Web

2001-03-05 Thread mailing_list
Hi! As I wrote before, I don't have .htaccess nor access to the apache-conf!!! michi > How bout an Apache redirect for .inc files to go to denied.htm or > something? PHP scripts could get to them, but they wouldn't be accessible > via http. > > > > At 08:01 PM 3/3/01 +0100, [EMAIL PROTECTE

RE: [PHP] Is it odd or even??? Optimize!!!

2001-03-05 Thread Nathan Cassano
You all are a bunch of un-optimizing novices. Just do some bit banging. i.e. if(1 & number){ echo "$number is odd"; }else{ echo "$number is even"; } -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 12:18 PM To: PHP User Gro

RE: [PHP] Is it odd or even???

2001-03-05 Thread John Guynn
Color me confused because I though true was any non zero value and false was zero. I know I am using the following code: if (!($num % 4){ do something} and it does something when $num is evenly divisible by 4 (ie. $num % 4 = 0). If I were testing for odd vs even I'd do the following: if (!($n

RE: [PHP] Is it odd or even???

2001-03-05 Thread Brian V Bonini
Use the modulus operator > -Original Message- > From: Brandon Orther [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 05, 2001 3:18 PM > To: PHP User Group > Subject: [PHP] Is it odd or even??? > > > Hello, > > Is there an easy way to check and see if a number is odd or even? > >

RE: [PHP] Is it odd or even???

2001-03-05 Thread Boget, Chris
> That won't work. % returns the remainder from a division of > the number divided by the mod number. Yours: > if($num %2 == 0){ > echo "even"; > }else{ > echo "odd"; > } Mine: > > if( $num % 2 ) { > > echo "Odd"; > > > > } else { > > echo "Even"; > > > > } Ours are identical, just the

RE: [PHP] Is it odd or even???

2001-03-05 Thread Larry Jeannette
use the modulus operator: ($number % 2) returns 0 if the value is even Larry Jeannette MIS Director, e.Republic -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 12:18 PM To: PHP User Group Subject: [PHP] Is it odd or even??? Hello, Is

Re: [PHP] Is it odd or even???

2001-03-05 Thread Jon Rosenberg
You could divide it by 2, odd numbers will always have a remainder even umbers never will. here are math functions, but none for odd/even that i see. Jon - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Monday, March 05, 2001

RE: [PHP] Is it odd or even???

2001-03-05 Thread Boget, Chris
> Is there an easy way to check and see if a number is odd or even? if( $num % 2 ) { echo "Odd"; } else { echo "Even"; } Chris

[PHP] Is it odd or even???

2001-03-05 Thread Brandon Orther
Hello, Is there an easy way to check and see if a number is odd or even? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP Ge

RE: [PHP] get current events from mysql query by date?

2001-03-05 Thread Jeff Oien
This is just a guess but wanted to take a shot at it. Something like SELECT EventID, EventName, EventDescription, EventStartDate, EventEndDate WHERE EventStartDate > CURRENT_DATE ORDER BY EventStartDate ASC LIMIT 5; How did I do? Jeff Oien > I have a mysql database of events. It contains the f

Re: [PHP] Hide Include-Files from the Web

2001-03-05 Thread Richard Kitamura - Media Net Link, Inc.
How bout an Apache redirect for .inc files to go to denied.htm or something? PHP scripts could get to them, but they wouldn't be accessible via http. At 08:01 PM 3/3/01 +0100, [EMAIL PROTECTED] wrote: >Hi! > >as I wrote in my mail: >1. >I won't name them ".inc" but ".inc.php" (so *I* know, it

Re: [PHP] get current events from mysql query by date?

2001-03-05 Thread Henrik Hansen
> I have a mysql database of events. It contains the following fields: > > - EventID > - EventName > - EventDescription > - EventStartDate > - EventEndDate > > I would like to query the database for the next 5 events from the current > date (today). Any ideas? works if EventStartDate is a timest

[PHP] Document Contains No Data in Netscape?

2001-03-05 Thread Robert Cooper
I have a set of pages I've been working on to do address entry for registered users to a MySQL database. I'm running up against a wall that I've been fighting for two days... process is thus: checks session vars to see if user is logged in. if not, present login screen. if logged in: see if t

[PHP] get current events from mysql query by date?

2001-03-05 Thread Matthew Delmarter
I have a mysql database of events. It contains the following fields: - EventID - EventName - EventDescription - EventStartDate - EventEndDate I would like to query the database for the next 5 events from the current date (today). Any ideas? Regards, Matthew Delmarter Web Developer -- PHP Ge

[PHP] RPMs for PHP accessing PostgreSQL via ODBC over RedHat

2001-03-05 Thread Paulo Parola
Hi, We are currently running the following configuration on our server: Linux Red Hat 7.0 PostgreSQL 7.1beta4-1 PHP 4.0.1pl2 I need to add some RPM package (or perhaps an apache module) to enable PHP to access PostgreSQL via ODBC. In order to have PostgreSQL native access support we installed

Re: [PHP] Regular Expression Help

2001-03-05 Thread Henrik Hansen
> I want to delete everything after a tab (or space) on each line of > a text file and can't figure it out. > > An example line is > ARIA 5.19 -0.0625 -1.19 5.25 4.5 48.5 100300 > you can explode on a tab $arrlines = explode("\t", $the_line); then save $arrlines[0] from every line. Don't kno

[PHP] Regular Expression Help

2001-03-05 Thread Jeff Oien
I want to delete everything after a tab (or space) on each line of a text file and can't figure it out. An example line is ARIA5.19-0.0625 -1.19 5.254.5 48.5100300 I want to the output to be ARIA Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: [PHP-WIN] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-05 Thread Chris Poirier
Hi Ken, > At 10:56 AM 3/5/01 -0600, John Henckel wrote: > >1. open mytest.php and when the password prompt appears, I enter a userid/password. > >2. I see the "Hello" page with my userid and password. > >3. close IE and reopen mytest.php, again the prompt appears -- this is good. > >4. close IE

[PHP] Pam Auth 0.2 released

2001-03-05 Thread Chad Cunningham
Hi, I've released Pam Auth 0.2 after many months :) Pam Auth is a php4 extension that allows simple pam authentication. Possible uses for this include using php to authenticate against local password files (dangerous!), samba/nt domains, ldap, mysql databases, and anything else which pam support

RE: [PHP] getting info.. help!

2001-03-05 Thread Larry Jeannette
ltrim removes spaces on the left rtrim removes spaces on the right trim removes spaces on both the left and right Larry Jeannette MIS Director, e.Republic -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 11:08 AM To: PHP User Group Subject:

Re: [PHP] getting info.. help!

2001-03-05 Thread Henrik Hansen
> Hello, > > Is there a way to remove all the spaces in the beginning of a string? > > Example: > > " 45 fasfda asdfasf" would be "45 fasfda asdfasf" > > and > > " 45 fasfda asdfasf" would be "45 fasfda asdfasf" > look at http://www.php.net/manual/en/function.ltrim.php or maybe http://w

Re: [PHP] getting info.. help!

2001-03-05 Thread Chris Lee
trim() -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Brandon Orther"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Is there a way to remove all the spaces in

[PHP] getting info.. help!

2001-03-05 Thread Brandon Orther
Hello, Is there a way to remove all the spaces in the beginning of a string? Example: " 45 fasfda asdfasf" would be "45 fasfda asdfasf" and " 45 fasfda asdfasf" would be "45 fasfda asdfasf" No matter how many spaces in the begging in I just want it to delete the first spaces. I hope you

[PHP] HELP!!! FTP!!!!

2001-03-05 Thread Bruno Freire
Hi my name is bruno from Brazil. I have a linux server with Apache and PHP 4 running. What i wanna do is upload a file. Look the problem: I have a lan.(local Network) Consider this: Network server running apache : 6.6.6.6 Network client station : 6.6.6.5 If The apache server executes t

Re: [PHP] Supress error message to apache log?

2001-03-05 Thread Michael A. Peters
I feel dumb... $string="rpm -qd $rpmname 2>/dev/null |head -1 |sed s?\"$documentdir\"?\"\"? |cut -d\"/\" -f2"; On Monday, March 5, 2001, at 09:33 AM, Michael A. Peters wrote: > I have the following php function- > > function doclink ($documentdir, $rpmname, $doc_file) { > $string="rp

Re: [PHP] Start you php script over??

2001-03-05 Thread Chris Lee
header() http://$SERVER_NAME/$PHP_SELF"); exit(); } ?> i your using sessions without coookies. header("Location: http://$SERVER_NAME/$PHP_SELF?PHPSESSID=$PHPSESSID"); -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.55

Re: [PHP] Verify session in function

2001-03-05 Thread kaab kaoutar
U just have to add global $PHPSESSID to make the session variable global; >From: "Tobias Talltorp" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [PHP] Verify session in function >Date: Mon, 5 Mar 2001 18:30:00 +0100 > >I am building my first basic function to verify a session. >If the ver

RE: [PHP] Start you php script over??

2001-03-05 Thread Boget, Chris
> Is there a way for me to tell my php script to start over? I > want to have an if then statement to check if something is > done. Then if it isn't I want the php script to start over. header( "location: $PHP_SELF" ); OR header( "location: $REQUEST_URI" ); if you are using a query string/G

Re: [PHP] delete an element from an array

2001-03-05 Thread Christian Cresante
Since its the last element, just pop it out: array_pop() --- kaab kaoutar <[EMAIL PROTECTED]> wrote: > Hi! > how can i decrement the length of an array! > In fact i'm trying to delete an element from an > array , i'v put the content > of i in i-1 (loop) and i tried to decrement the > array legnt

[PHP] Supress error message to apache log?

2001-03-05 Thread Michael A. Peters
I have the following php function- function doclink ($documentdir, $rpmname, $doc_file) { $string="rpm -qd $rpmname |head -1 |sed s?\"$documentdir\"?\"\"? |cut -d\"/\" -f2"; $rpm_installed=exec($string); $DOC_ABSOLUTE="$documentdir/$rpm_installed"; if (file_exists

[PHP] Start you php script over??

2001-03-05 Thread Brandon Orther
Hello, Is there a way for me to tell my php script to start over? I want to have an if then statement to check if something is done. Then if it isn't I want the php script to start over. Thank you, Brandon Orther WebIntellects Design/Development Man

[PHP] Verify session in function

2001-03-05 Thread Tobias Talltorp
I am building my first basic function to verify a session. If the verification is not in the function it works... What am I missing? (I couldn“t find anything about this in the mailing list archive) -- This works --> session_start(); if (isset($PHPSESSID)){ echo "ok";

[PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-05 Thread Ken
At 10:56 AM 3/5/01 -0600, John Henckel wrote: >1. open mytest.php and when the password prompt appears, I enter a userid/password. >2. I see the "Hello" page with my userid and password. >3. close IE and reopen mytest.php, again the prompt appears -- this is good. >4. close IE and Restart Windows

[PHP] imap problems.

2001-03-05 Thread Chris Lee
ok, here we go. imap functions seem tobe funny. I could not get php to compile with the latest imap, I was getting errors about xml, go figure. and could not not like lib/yes go figure. I downloaded php 4.0.5dev all compiled well, but I get strange things happening, like imap functions

Re: [PHP] input textfield value cat!

2001-03-05 Thread Batonik
On Mon, 5 Mar 2001, kaab kaoutar wrote: > I'm using a variable! > > Quote the value: \"> Greets, Batonik -- 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] passing variable via url

2001-03-05 Thread Christian Reiniger
On Monday 05 March 2001 17:43, you wrote: > using PHP 3.x on Linux, I've always been able to pass along a variable > like http://www.domain.com/index.php3?foo=bar > > and then I could print out this with something like > echo $foo; > would print out "bar" > > I've recently installed the latest PH

Re: [PHP] input textfield value cat!

2001-03-05 Thread Christian Reiniger
On Monday 05 March 2001 17:29, you wrote: > I'm using a variable! > > Well, you *still* need to have quotes around it: > >Make sure you have quotes around the value. > > > > -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to paraphrase Churchill, while representative demo

[PHP] Re: [PHP-WIN] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-05 Thread John Henckel
At 09:51 PM 3/4/01 -0500, Ken wrote: >Anyway, can someone please test to see if this doesn't happen in IE5.0? > >I really hate this situation, yessir. I have installed IE 5.00.2614.3500 (that's what came with Win 98 2nd edition CDROM vers 4.10.A) and it does NOT have the problem you have d

[PHP] passing variable via url

2001-03-05 Thread Kansas Territory
using PHP 3.x on Linux, I've always been able to pass along a variable like http://www.domain.com/index.php3?foo=bar and then I could print out this with something like echo $foo; would print out "bar" I've recently installed the latest PHP4 onto a Windows2000 server, I'm trying the same thing h

Re: [PHP] delete an element from an array

2001-03-05 Thread Hardy Merrill
kaab kaoutar [[EMAIL PROTECTED]] wrote: > Thanks! but i know this function! > i can't do that cause my varibale is multidimenssional, and i don't want to > update all that ! for one element ! > we can't decrement the length of the array ?! no way ? Here's an example of a multidimensional array -

Re: [PHP] NETSCAPE Screws QUERY STRING!!!!!!

2001-03-05 Thread Chris Adams
On 4 Mar 2001 04:17:18 -0800, Thomas Edison Jr. <[EMAIL PROTECTED]> wrote: >The Internet Explorer converts the spaces in a query >string into it's hexadecimal value of "%20" >automatically, but netscape is not doing so. It's not >reading the space and thus not displaying the page at >all and givin

Re: [PHP] input textfield value cat!

2001-03-05 Thread kaab kaoutar
I'm using a variable! > >From: "Brad S. Jackson" <[EMAIL PROTECTED]> >To: "kaab kaoutar" <[EMAIL PROTECTED]> >Subject: Re: [PHP] input textfield value cat! >Date: Mon, 5 Mar 2001 10:08:21 -0600 > > > >Make sure you have quotes around the value. > > > > >Hi! >i'm storing values in session vari

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

2001-03-05 Thread Rainer Schaaf
rjs Mon Mar 5 08:18:50 2001 EDT Modified files: /php4/ext/pdf pdf.c Log: fixed bug in PDF_getbuffer (happend only on Windows) When using PDFlib V4.0 the pdf_set(grey/rgbcolor) functions are replaced by the PDFlib V4.0 function pdf_setcolor Ind

Re: [PHP] stumped on mailing a complete page

2001-03-05 Thread Chris Adams
On 3 Mar 2001 17:17:15 -0800, Brett <[EMAIL PROTECTED]> wrote: >I want to send a confirmation email upon receiving an order, and would like >to send the page that I display on the browser to the user. ob_start(); // do something mail('confirm@somewhere', 'confirmation', ob_get_contents()); ob_e

  1   2   >