Re: [PHP] MIME type detection on file

2001-02-22 Thread Chris Lee
when your uploading a file php will create three variables, $db_file $db_file_name $db_file_type $db_file_type should have the mime/type. now should does NOT mean will. some browsers (I dont have a list) will not send the correct type at all. you can use linux's file command [lee@server str

[PHP] Apache & php as a DSO module woes!

2001-02-22 Thread Bob Horton
*** Please reply directly or I'll likely miss the reply in the digest *** Hello, I am attempting to compile php 4.0.4pl1 as a dynamic shared module for Apache 1.3.12 on a Redhat 6.2 box. I followed the detailed directions, and upon attempting make install it went along fine, until... *snip* Mak

Re: [PHP] I'm confused about Regular Expressions.

2001-02-22 Thread Robin Vickery
> "p" == php3 <[EMAIL PROTECTED]> writes: > Addressed to: "Kenneth R Zink II" <[EMAIL PROTECTED]> > [EMAIL PROTECTED] > ** Reply to note from "Kenneth R Zink II" <[EMAIL PROTECTED]> Wed, > 21 Feb 20= 01 11:42:28 -0600 >> --=3D_NextPart_000_00AC_01C09BFB.5E254010 Content-Type: >> t

Re: [PHP] Session problems

2001-02-22 Thread php3
Addressed to: Jack Davis <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Jack Davis <[EMAIL PROTECTED]> Wed, 21 Feb 2001 14:58:13 -0600 > > We have designed a web based email program that we have > recently found a problem with...If you open up two email > accounts in t

RE: [PHP] Terrible Hosting Experience

2001-02-22 Thread Brian V Bonini
Yes, the tech support has been slow lately. I'm told they are receiving an unforeseen amount of inquiries with the release of the Freedom line due to the large number of non-Unix savvy users trying to use the new line. I'm also told that they are in the process of beefing up there tech support dep

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Simon Garner
From: "Blake S." <[EMAIL PROTECTED]> > I have a database of numbers: > > TOTAL HITS: 1000 > PAGE 1: 500 > PAGE 2: 250 > PAGE 3: 250 > > How can I query these numbers and display back a percentage number? For > instance with the numbers above: > > PAGE 1: 50% > PAGE 2: 25% > PAGE 3: 25% > > Or is

Re: [PHP] help change filename.

2001-02-22 Thread Pavel Jartsev
Jan Grafström wrote: > > Hi! > I am trying to change a filename this is my php: > change $filename = "yourfile.php3.xml"; > to $filename = "yourfile2.php3.xml"; > ?> > It doesn´t work do I need some more code to get it working, something > like fopen? > > Thanks for any help. > > Regards > >

Re: [PHP] Displaying an image, that is pulled from a DB, inline

2001-02-22 Thread Chris Lee
dspimage.inc index.php "; ?> -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it possible to pull an image, stored as bin

[PHP] file upload error w/internet exploder!

2001-02-22 Thread Tom Beidler
I've created a simple form that uploads file to my server. I noticed that I'm having problems when I use Internet Explorer 4.5 and 5.0 on the Mac (I haven't checked it yet on the pc). It may have something to do with the path to the file. When I use Netscape, the entire path is displayed in the fo

[PHP] GD / FreeType2

2001-02-22 Thread Dale Frohman
I am trying to get GD and FreeType 2 to work with php so i can do dynamic images from ttf fonts. I am running the following: FreeBSD 4.1 Php version 4.0.4pl1 FreeType Version 2 from http://freetype.sourceforge.net gd 1.8.4 from http://www.boutell.com/gd/ i installed libpng per gd's requirements

RE: [PHP] array headaches

2001-02-22 Thread Matt Williams
> Why do you need to put the values in an array, then read through the > array to print the values? Why not just print each record as you get it > from the DB? The array is formed before the page is called. This is then passed to the page which prints it out. M@ > On Thu, 22 Feb 2001 02:11, M

Re: [PHP] Form Variables!!!!!

2001-02-22 Thread John Monfort
Hey...Bruno from Brazil :) Try this while ( list ( $key,$value ) = each($HTTP_POST_VARS) ) { echo "$key: $value"; } This will list every variable that was past to the browser. Enjoy! __John Monfort_ _+---+_ P E P I

[PHP] RE: How to get information from

2001-02-22 Thread Tim Ward
use isset($action1) and isset($action2) to test each. the nice way to do it would be for them to have the same name but different values as you would do with alternative submit buttons, but I haven't ever needed to find out how to do that and doesn't seem to be quite that simple. Tim War

Re: [PHP] getting what's between

2001-02-22 Thread Simon Garner
From: "Tyler Longren" <[EMAIL PROTECTED]> > Hello, > > I've been reading a LOT on how to solve my problem today, but haven't been > able to come up with anything yet. > > Here's my problem: > I have an html file that contains many table rows like this: > > Item1Item1 Again > Item2Item2 Again > It

Re: [PHP] getting what's between

2001-02-22 Thread Simon Garner
> $data = "Item3Item3 Has Changed"; > > eregi("([^>]+)([^>]+)", $data, $regs); > > echo $regs[1]; // "Item3" > echo $regs[2]; // "Item3 Has Changed" > ?> Oops sorry, that fourth line should say: eregi("([^<]+)([^<]+)", $data, $regs); From: "Simon Garner" <[E

RE: [PHP] Tough one?

2001-02-22 Thread Tim Ward
a quite neat (though maybe no more efficient) way would be ... $keys = array_keys($HTTP_POST_VARS); $key_list = array(); foreach($keys as $fred) { $key_list() = $fred."='".$HTTP_POST_VARS[$fred]."'"; } $updateString=$updateString.implode(",", $key_list)."'"; ... I haven't tested the d

[PHP] file listener

2001-02-22 Thread toto
Hi... I have a file, say temp.txt. It's just a kind of logging file. When my system write one line data to this file, is there any real time way to know this event from php (or other scripting language) ? TIA -toto- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] Tough one?

2001-02-22 Thread Simon Garner
From: "Tim Ward" <[EMAIL PROTECTED]> > a quite neat (though maybe no more efficient) way would be ... > > $keys = array_keys($HTTP_POST_VARS); > $key_list = array(); > foreach($keys as $fred) > { $key_list() = $fred."='".$HTTP_POST_VARS[$fred]."'"; > } > $updateString=$updateString.implode(

[PHP] offshore Dedicated Hosting

2001-02-22 Thread Randy Johnson
Anybody know of an offshore dedicated web server hosting companies? randy -- 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] Postgresql session handling

2001-02-22 Thread Bolt Thrower
I <[EMAIL PROTECTED]> wrote: > It seems the pgsql_session_write() function is not even being invoked. > Here it is: As a followup, it seems that turning register_globals "on" allows the pgsql_session_write() function to be called, and my test script works if I replace $HTTP_SESSION_VARS["count"]

Re: AW: [PHP] Session files? (Very Techy Questions)

2001-02-22 Thread Michael Zornek
At 5:54 PM +0100 2/21/01, Sebastian Stadtlich wrote: > > writing an apache module that did the following: >> >> When a file with .pdf is asked for it looks to see if the user is >> currently in a session (aka 'logged on'). I'm guessing the module can >> know this by using the HTTP headers. Fig

RE: [PHP] PDF Problems

2001-02-22 Thread Mathias Meyer
> -Original Message- > From: Mike Tuller [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 22, 2001 12:01 AM > To: Michael Stearne; Sam Goin > Cc: php mailing list > Subject: Re: [PHP] PDF Problems > > If anyone knows how to fix this please let me know. > In fact the Maintainers of t

[PHP] isset()

2001-02-22 Thread [EMAIL PROTECTED]
People I tried to check if teh field has set a vaule in it before submit using isset with the sniplet below if ((isset($AgeChild))=="false") { $AgeChild = "NA"; } The resule is that it always displays NA whether or not it has vaule in the field, what is the correct way of using isset for this

Re: [PHP] isset()

2001-02-22 Thread [EMAIL PROTECTED]
[PHP] isset()yes, it is the var from the form Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Thiva Charanasri To: 'Jacky@lilst' Sent: Thursday, February 22, 2001 3:59 AM Subject: [PHP] isset()

Re: [PHP] isset()

2001-02-22 Thread Philip Olson
> People > I tried to check if teh field has set a vaule in it before submit using isset with >the sniplet below > > if ((isset($AgeChild))=="false") { > $AgeChild = "NA"; > } if you removed the quotes around "false" it should work (as currently "false" is being treated as a string) but anothe

Re: [PHP] Handling File Uploads : ASCII/Binary transfers

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 12:49, Jeff Gannaway wrote: > Here's the deal. My customer needs to upload an ASCII export file of > database info generated by MS Access on their PC. I've written a > script that allows them to upload their Access files then does a LOAD > DATA INFILE command to in

Re: [PHP] Displaying an image, that is pulled from a DB, inline

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 17:09, Chris Lee wrote: > dspimage.inc > index.php > echo " > > "; > ?> Note: better name that to dspimage.php, as webservers typically don't execute *.inc -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she w

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

2001-02-22 Thread Uwe Steinmann
steinm Thu Feb 22 01:38:59 2001 EDT Modified files: /php4/ext/hyperwave hw.c Log: - took out the HwSLS_FETCH to make it compile again on Unix Is this really neccesary at this point? Index: php4/ext/hyperwave/hw.c diff -u php4/ext/hyperwave/hw.c:1.76 php

Re: [PHP] Warning: page expired and cache-control header

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 18:13, Janet Valade wrote: > Previously on this list, there have been questions about the Warning: > page has expired problem. When you submit a form, then press the back > button, you get this message and have to press refresh before the page > will redisplay. > > I

Re: [PHP] I'm confused about Regular Expressions.

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 18:42, Kenneth R Zink II wrote: > > I was just reading at DevShed on how to use Regular Expressions, but > now I'm even more confused. > > Can someone please explain how I would use a REGEX to determine in and > uploaded file is a .gif or .jpg file? if (preg_match (

[PHP] Uploading/Timing scripts

2001-02-22 Thread Matt
Hi, I wondered if anyone knew what would be the better method to use to see if a file has been sent/uploaded? method 1: if ($HTTP_POST_FILES['file']['name'] != "none" && $HTTP_POST_FILES['file'] != "") { method 2: if (@$fp = fopen($HTTP_POST_FILES['file']['tmp_name'],"r")) { method 2 seems to

Re: [PHP] isset()

2001-02-22 Thread Ernest E Vogelsinger
At 00:07 23.02.2001, Jacky@lilst said: [snip] >if ((isset($AgeChild))=="false") { >$AgeChild = "NA"; [snip] isset(): generally spoken, returns true if a variable is _defined_, regardless of it's actual value: iss

Re: [PHP] Print in html

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 20:11, Hrishi wrote: > On Thursday 22 February 2001 00:12, Brandon Orther wrote: > > Hello, > > > > I am trying to finish up a script with instructions on how to add my > > banner add script to someone's .phtml file. I need to print > readfile(""); ?> > > use : > ec

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 00:04, Simon Garner wrote: > > I have a database of numbers: > > > > TOTAL HITS: 1000 > > PAGE 1: 500 > > PAGE 2: 250 > > PAGE 3: 250 > > > > How can I query these numbers and display back a percentage number? > > For instance with the numbers above: > > > > PAGE 1: 5

Re: [PHP] help change filename.

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 08:57, Jan Grafström wrote: > I am trying to change a filename this is my php: > change $filename = "yourfile.php3.xml"; > to $filename = "yourfile2.php3.xml"; > ?> > It doesn´t work do I need some more code to get it working, something > like fopen? Well, Use PHP i

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

2001-02-22 Thread Stanislav Malyshev
stasThu Feb 22 02:15:52 2001 EDT Modified files: /php4/ext/standard exec.c Log: Fix #8992, patch by [EMAIL PROTECTED] Index: php4/ext/standard/exec.c diff -u php4/ext/standard/exec.c:1.49 php4/ext/standard/exec.c:1.50 --- php4/ext/standard/exec.c:1.49

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Simon Garner
> Better (if it works): > SELECT (hitcount / MAX(hitcount)) * 100 AS percentage FROM sometable Nope unfortunately that does not work :( Firstly using MAX() will not work as that finds the largest value in the group; SUM() would be more appropriate as it finds the total for that column in the g

RE: [PHP] system() PHP newbie!!

2001-02-22 Thread PHPBeginner.com
You should escape your backslashes in windows file pathes Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Februar

RE: [PHP] Can you check if someone is online on your homepage?

2001-02-22 Thread PHPBeginner.com
I don't think so, you never know when someone leaves your site. you can detect a visit - yes, but nothing so interactive you can do with PHP as with JavaScript. I've seen some JavaScript counters like this ages ago. Search for that. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeg

RE: [PHP] RE: Can you make a file empty?

2001-02-22 Thread PHPBeginner.com
yeah, you can just fputs() an empty string in it and close the file. In this way you'll empty it all. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Tim Ward [mailto:[EMAIL PR

RE: [PHP] array headaches

2001-02-22 Thread PHPBeginner.com
what I think you've missed is your array starts with []['string'] remove []... $menu['name'] = ... should work ... unless your code is a little specific Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com ---

RE: [PHP] POST against GET

2001-02-22 Thread PHPBeginner.com
strange .. should work ... try it again ... search for some HTML errors and see if in your PHP file there's HTTP_GET_VAR, if is there then change the _GET_ into _POST_ Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner

RE: [PHP] HTTP_REFERER doesn't work with redirects...?

2001-02-22 Thread PHPBeginner.com
HTTP_REFERER work ONLY clicking a link which brings you to a page in the SAME window. this value comes from your browser and it is very unreliable Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original

RE: [PHP] Variable Strangeness

2001-02-22 Thread PHPBeginner.com
you made a comparison in your code. it returned true which is 1. what are you trying to do anyway? if you want to compare and print it only if it's yes then do: $confidential = 0; echo "$confidential " . $confidential ? 'yes' : ''; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBe

RE: [PHP] Print in html

2001-02-22 Thread PHPBeginner.com
if it is in html then do this:

RE: [PHP] Print in html

2001-02-22 Thread PHPBeginner.com
However I think double quote will work as well... (am I wrong?) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Hrishi [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22,

RE: [PHP] Generating percentages of numbers

2001-02-22 Thread PHPBeginner.com
I have once requested a feature like this at PHP-DEV.. here's the code: http://bugs.php.net/?id=7429 Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Blake S. [mailto:[EMAIL PR

RE: [PHP] crontab help

2001-02-22 Thread PHPBeginner.com
Yup, it will... A good idea is to call exec() of a cgi script which sends email without time outs. CGI has it cute feature - never times out. I've seen it in some software. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbegi

RE: [PHP] isset()

2001-02-22 Thread PHPBeginner.com
If the result is always something, for instance in the worth case it is 'N/A' then do: if($AgeChild != 'N/A') you can continue isset check if the variable has at least a byte in it. so this will return true: $var = ' '; if(isset($var)) echo 'got something in it'; Just check

RE: [PHP] file listener

2001-02-22 Thread PHPBeginner.com
from PHP - now, but you can set a script which will check the file size each minute and if finds it different does something. It will have to run under cron. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com ---

RE: [PHP] RE: Can you make a file empty?

2001-02-22 Thread Tim Ward
the manual implies that you don't need to write anything to the file to clear what's in it already, is this not the case? Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -

RE: [PHP] RE: Can you make a file empty?

2001-02-22 Thread PHPBeginner.com
Year.. probably it is I've never tried ... In this cases If I need it empty I just remove it, and when I write in if it doesn't exists then new file is being generating ... It feels easier to me ... -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Thursday, Fe

[PHP] size of directory

2001-02-22 Thread Andris Jancevskis
Hi, how can I determine size of directory with subdirectories? if I see at "ls -l" it returns directory size 4096. I want to know how large is directory (with files into) without looping all files ... thanx, -- Andris mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

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

2001-02-22 Thread Stanislav Malyshev
stasThu Feb 22 02:36:41 2001 EDT Modified files: /php4/ext/standard string.c Log: Safer bin2hex Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.189 php4/ext/standard/string.c:1.190 --- php4/ext/standard/string.c:1.189Sun Feb 1

Re: [PHP] No GIF support in this PHP build???

2001-02-22 Thread jason cox
Are you trying to create images or just display images? If you're trying to create images using GD, you'll need to check the version of GD you have installed. If you have a newer version or don't have it installed at all, you won't be able to use that functionality. If you're trying to display

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Wico de Leeuw
At 11:47 22-2-01 +0100, Christian Reiniger wrote: >On Thursday 22 February 2001 00:04, Simon Garner wrote: > > > > I have a database of numbers: > > > > > > TOTAL HITS: 1000 > > > PAGE 1: 500 > > > PAGE 2: 250 > > > PAGE 3: 250 > > > > > > How can I query these numbers and display back a percentag

[PHP-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php

2001-02-22 Thread Sergey Kartashoff
gluke Thu Feb 22 02:40:44 2001 EDT Modified files: /php4/ext/mnogosearch php_mnogo.c test.php Log: Added Ispell routines to work with Ispell data loaded into sql tables. Example updated. Index: php4/ext/mnogosearch/php_mnogo.c diff -u php4/ext/mnog

[PHP] fopen

2001-02-22 Thread Boget, Chris
I'm trying to fopen a URL that I have no problems getting to if I just past it into the address field of my browser. However, when I use it in my fopen() function call, I'm getting an "Error 0" (zero) message. I've looked all over the documentation and I could not find what 'Error 0' means. Any

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

2001-02-22 Thread Andi Gutmans
You only have the module globals during requests (rinit/rshutdown). You can't access them in module init/module shutdown. Andi At 11:35 PM 2/20/2001 +, Emiliano Heyns wrote: >emile Tue Feb 20 15:35:35 2001 EDT > > Modified files: > /php4/ext/midgard midgard.c > Log: >

[PHP] Cookie stored but cannot trigger the function...

2001-02-22 Thread Dhaval Desai
Hi! Check ou this website: THe problem is that when u Click on anyof the links on the left.. Currently only the Equity link..It will check for a cookie in your browser, if cookie is found then It''ll show u the content but if not found it'll redirect to lohin.php page. Before redirecting it wi

[PHP-CVS] cvs: php4 /win32 php4dllts.dsp

2001-02-22 Thread James Moore
jmoore Wed Feb 21 15:52:57 2001 EDT Modified files: /php4/win32 php4dllts.dsp Log: Adding crypt.c and php_crypt.h to win32 builds, they were missing.. Index: php4/win32/php4dllts.dsp diff -u php4/win32/php4dllts.dsp:1.30 php4/win32/php4dllts.dsp:1.31 --- php4/

[PHP-CVS] cvs: php4 /main main.c

2001-02-22 Thread Andi Gutmans
andiThu Feb 22 03:30:54 2001 EDT Modified files: /php4/main main.c Log: - Fix indentation and remove comment. Index: php4/main/main.c diff -u php4/main/main.c:1.351 php4/main/main.c:1.352 --- php4/main/main.c:1.351 Wed Feb 21 12:50:49 2001 +++ php4

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

2001-02-22 Thread Thies C. Arntzen
On Thu, Feb 22, 2001 at 01:26:45PM +0200, Andi Gutmans wrote: > You only have the module globals during requests (rinit/rshutdown). You > can't access them in module init/module shutdown. could you explain why? ok the the midgard PHP_MINIT_FUNCTION does not allocate a tsrm_id for the mod

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

2001-02-22 Thread Emiliano
Andi Gutmans wrote: > > You only have the module globals during requests (rinit/rshutdown). You > can't access them in module init/module shutdown. Yeah, I realized that moments later and removed it. But ZEND_INIT_MODULE_GLOBALS will call the init_globals function before the request starts, rig

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

2001-02-22 Thread Andi Gutmans
Because thread-wide globals are only available when you're actually in the thread (during a request) and not when the process starts up. If you need true globals you can just use globals. Andi At 12:34 PM 2/22/2001 +0100, Thies C. Arntzen wrote: >On Thu, Feb 22, 2001 at 01:26:45PM +0200, Andi

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

2001-02-22 Thread Andi Gutmans
Yes. It will call your init_globals just in time, usually on your first access to the data if I remember correctly. Your fix is correct. I didn't see it when I sent that Email. Andi At 12:37 PM 2/22/2001 +0100, Emiliano wrote: >Andi Gutmans wrote: > > > > You only have the module globals durin

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

2001-02-22 Thread Thies C. Arntzen
On Thu, Feb 22, 2001 at 01:38:36PM +0200, Andi Gutmans wrote: > Because thread-wide globals are only available when you're actually in the > thread (during a request) and not when the process starts up. If you need > true globals you can just use globals. sorry - you're right (and i'm stpid

[PHP-CVS] cvs: php4 /ext/mnogosearch README

2001-02-22 Thread Sergey Kartashoff
gluke Thu Feb 22 05:02:37 2001 EDT Modified files: /php4/ext/mnogosearch README Log: README for mnoGoSearch module updated. Index: php4/ext/mnogosearch/README diff -u php4/ext/mnogosearch/README:1.5 php4/ext/mnogosearch/README:1.6 --- php4/ext/mnogos

[PHP] Problems with posix_getpwnam

2001-02-22 Thread Liam Gibbs
What does it mean when I get the line 'posix_getpwnam(username) failed with "Error number not set" in /xx.php3 on line ##' printed? It doesn't return anything anymore. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

php-general Digest 22 Feb 2001 13:57:11 -0000 Issue 527

2001-02-22 Thread php-general-digest-help
php-general Digest 22 Feb 2001 13:57:11 - Issue 527 Topics (messages 41087 through 41146): Re: pop textarea field w/ text incl. quotes 41087 by: Simon Garner 41091 by: Paul Warner 41092 by: John Monfort 41093 by: Simon Garner 41094 by: Simon Garner

[PHP] PHP and PAM

2001-02-22 Thread Robert Marzon
Hello I tried to used PHP with autentification I wrote script, but I had got error : Fatal error: Call to undefined function: pam_auth() in /usr/home/httpd/html/farm/dev/test/user.php on line 2 I read some FAQ and I found the answer: For some reason, newer version of php4 do not always s

RE: [PHP] No GIF support in this PHP build???

2001-02-22 Thread Jeremy Gillies
Try using the PNGs instead. They can get very small with good results. > -Original Message- > From: jason cox [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 4:39 PM > To: Ana Carolina Blanco Abascal > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] No GIF support in this PHP

[PHP] java servlets

2001-02-22 Thread Adrian Murphy
Is there anything java servlets can do that php can't. is there any pressing need for me to learn servlet technology,other than to expand the old skillset. the difference between jsp and servlets is that with the former the code is embedded in the html.correct? -- PHP General Mailing List (ht

Re: [PHP] crontab help

2001-02-22 Thread Joe Stump
I send roughly 1M of these and put a sleep() (not usleep - that's microseconds) into the while loop - I've come up with a decent balance that sends out a good number (like 5000) and then sleeps just long enough to get them out of qmail's queue, then it sends another 5000 (and so on). Usually take

Re: [PHP] crontab help

2001-02-22 Thread Joe Stump
BTW when it sleeps PHP takes up no noticable resources. Also I'm running the php binary to send out these messages (that way I can use screen and make sure that my browser doesn't crash, os freeze, etc.) --Joe On Fri, Feb 22, 2002 at 03:36:33PM +0800, Arnold Gamboa wrote: > thanks for the commen

RE: [PHP] Terrible Hosting Experience

2001-02-22 Thread Jeremy Gillies
For Canadian web developers, you might want to check out Magma in Ottawa. They have great packages, fantastic connections, and offer great service help. Also, if you sign up more that 2 accounts, you can bill through YOURSELF and make money... that is, if you develop for others, they pay you and

[PHP] security?

2001-02-22 Thread Conover, Ryan
The company I am interning with is thinking of moving some operations of its intranet to an extranet. I researching different security to use for the connection any recommendations? SSL? Not sure what else to use. Ryan Conover -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP-CVS] cvs: php4 /ext/midgard event.c mgd_event.h mgd_internal.h midgard.c

2001-02-22 Thread David Guerizec
davidg Thu Feb 22 06:26:31 2001 EDT Modified files: /php4/ext/midgard event.c mgd_event.h mgd_internal.h midgard.c Log: Added custom sort on mgd_walk_xxx_tree() function. Index: php4/ext/midgard/event.c diff -u php4/ext/midgard/event.c:1.4 php4/ext/midgar

[PHP] File Upload Mime Headers Garbled

2001-02-22 Thread Joseph Koenig
I've seen this question asked, but I have yet to find the answer. What do I need to do to make IE on Mac stop giving me a warning that the File Upload Mime Headers are Garbled when a user uploads a file? Thanks, Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

RE: [PHP] size of directory

2001-02-22 Thread Robert V. Zwink
If you are running linux try du -shc /path/to/directory If you are running some other unix flavor, omit the -h and try -k Robert Zwink http://zwink.levitate.org -Original Message- From: Andris Jancevskis [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 6:29 AM To: [EMAIL PR

Re: [PHP] Print in html

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 12:14, PHPBeginner.com wrote: > if it is in html then do this: > > > but if you are using PHP then echo 'http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 12:14, PHPBeginner.com wrote: > I have once requested a feature like this at PHP-DEV.. > > here's the code: > http://bugs.php.net/?id=7429 Well, I agree with the last comment on that page - Why should that be added to the language if it's implemented in PHP with only

Re: [PHP] size of directory

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 12:28, Andris Jancevskis wrote: > how can I determine size of directory with subdirectories? if I see > at "ls -l" it returns directory size 4096. I want to know how large > is directory (with files into) without looping all files ... man du -- Christian Reini

Re: [PHP] crontab help

2001-02-22 Thread Arnold Gamboa
hi, thanks again. questions: 1. sleep(300) would mean pause by 300 mins, right? That's why i thought you mean usleep(300) - 300 microseconds. please comment 2. what you mean is i will send 5000 emails, then pause and send again? Thanks for your help. > I send roughly 1M of these and put a sle

RE: [PHP] Generating percentages of numbers

2001-02-22 Thread PHPBeginner.com
However ctype were taken! http://bugs.php.net/?id=7360 Once implemented, many developers will have a whole bunch of fun. :-)) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From:

Re: [PHP] PDF Problems

2001-02-22 Thread Mike Tuller
Do you have any idea when 4.0.5 will be out? > From: "Mathias Meyer" <[EMAIL PROTECTED]> > Date: Thu, 22 Feb 2001 10:57:31 +0100 > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Subject: RE: [PHP] PDF Problems > >> -Original Message- >> From: Mike Tuller [mailto:[EMAIL PROTECTED]] >

RE: [PHP] crontab help

2001-02-22 Thread Boget, Chris
> 1. sleep(300) would mean pause by 300 mins, right? That's > why i thought you mean usleep(300) - 300 microseconds. No, 300 seconds - 5 minutes. Chris

Re: [PHP] crontab help

2001-02-22 Thread Joe Stump
1.) sleep() is in seconds - plain old seconds - so sleep(300) == 5 minutes. 2.) yes - send, sleep, send, ... --Joe On Thu, Feb 22, 2001 at 11:09:05PM +0800, Arnold Gamboa wrote: > hi, > > thanks again. questions: > > 1. sleep(300) would mean pause by 300 mins, right? That's why i thought yo

[PHP] phpPgAdmin ?

2001-02-22 Thread Oguz Demirkapi
Hi, We have a PostgreSQL and Php 4.02 preinstalled Cobalt RaQ4r server and I want to manage PostgreSQL via pgPgAdmin. But when I try to login I got error such as : Fatal error: Call to undefined function: pg_connect() in /home/sites/home/web/mana

Re: [PHP] crontab help

2001-02-22 Thread Dale Frohman
sleep is in seconds. so that would be 5 minutes. On Thu, 22 Feb 2001, Arnold Gamboa wrote: > hi, > > thanks again. questions: > > 1. sleep(300) would mean pause by 300 mins, right? That's why i thought you > mean usleep(300) - 300 microseconds. please comment > 2. what you mean is i will sen

[PHP] -----s--- bit

2001-02-22 Thread Serkan AKÇIN
Hi, I am running apache server as user/group=apache/httpd And want to access the shadow file to authenticate my users from the system. shadow file is owned by root and chmod to 400. server-root:/5:28pm>ls -al /etc/shadow -r 1 root sys 27695 Feb 22 10:06 /etc/shadow I can

Re: [PHP] Uploading/Timing scripts

2001-02-22 Thread Chris Lee
I use the same to see if a file was uploaded, may not be the best, but it works. a simple class that I include works just as well as yours but it gives 4 decimal places on the seconds. one simple line. $debug->time(); $debug->time('finnishing while statement'); start = mtime(); } function

[PHP] SEARCH ?

2001-02-22 Thread Abe Asghar
Hi there, I am implementing a search function on a site that we are working on. We have created a script that will search through the contents of a page and looks for matches etc. It works well but will get slow on a large site. Does anybody know a tutorial or info on how to create an indexing

Re: [PHP] CGI BIN PHP

2001-02-22 Thread bill
Cool, Hrishi. Can you make it work if you use a different url? For example, for SSL connections like: https://www.secure-website.net/~mydomain I'm thinking of using something like this: $spos=strpos($SCRIPT_FILENAME, "/public_html"); // or whatever the name of the public root dir $firstpath

[PHP] RE: How to get information from

2001-02-22 Thread Tim Ward
I've just done some testing and the "Image" type input doesn't seem to pass its anem across as a variable at all when the form is submitted in the way a submit button does. This is contrary to the w3c html specs. I've tested this in nutscrape and micros**t ie5. this is the code that doesn't work:

Re: [PHP] PHP vs. FreeTDS

2001-02-22 Thread Michael Kimsal
FreeTDS is used to provide Sybase and MSSQL-specific TDS protocol instructions to the databases. ODBC is a different protocol (from my understanding). If you're trying to use ODBC stuff, you need an ODBC driver. I think FreeTDS might have this/allow this, but I don't think it's intended to do

[PHP] String manipulation with ereg_replace

2001-02-22 Thread Ian LeBlanc
I am working on a site that has over 1000 pages and all the images need to be made lower case in the HTML. Here is what I have so far. Please someone tell me what I am doing wrong. $contents=""; $contents = EREG_REPLACE("([-_a-zA-Z0-9]+).gif",strtolower("\\0"),$contents); Output of $conten

Re: [PHP] isset()

2001-02-22 Thread Steve Edberg
I would do this: if (!$AgeChild) $AgeChild = 'NA'; More compact, easier to read (to me, anyway). This presumes that a value of '' (empty string, interpreted by PHP as false) is NOT a valid value here. As far as your sniplet goes, it is possible that there may be some PHP type-casting issues

[PHP] Alternate 2 schedules...

2001-02-22 Thread J-Frs Dubé
I' m searching a way to programmatically alternate 2 schedules each sunday at 00:00. Schedule1 start on first sunday and seven days later, schedule2 replace schedule1,and seven days later, schedule1 replace schedule2 etc... Waiting... John

[PHP] String manipulation with ereg_replace

2001-02-22 Thread Ian LeBlanc
I am working on a site that has over 1000 pages and all the images need to be made lower case in the HTML. Here is what I have so far. Please someone tell me what I am doing wrong. $contents=""; $contents = EREG_REPLACE("([-_a-zA-Z0-9]+).gif",strtolower("\\0"),$contents); Output of $conten

  1   2   3   >