Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions 4.2.0and 4.2.1

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Greg Donald wrote: > Not only did I get to re-write all my apps the past few months because of > the new register_globals default that was imposed by `the php group`... You didn't have to. The choice was given to you, for your own good. If you have very disciplined programm

Re: [PHP] Pine config

2002-07-22 Thread Miguel Cruz
On Fri, 19 Jul 2002, Michael Hall wrote: > This is sort of off topic, but can anyone tell me why my Pine email client > displays "To: Somebody Or Other" rather than my name "Michael Hall" > whenever I send an email to this list? > > I have attempted to fix this many times but cannot for the lif

Re: [PHP] Passing Special Characters In url

2002-07-22 Thread Miguel Cruz
On Tue, 23 Jul 2002, Ricky wrote: > I am having problems passing variables in a url specifically when there is > an & sign. Any suggestions? There is a special function just for you. http://php.net/urlencode miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Comma question

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, B i g D o g wrote: > I figured that the comma was to concatenate but is was wondering if the > parser handled it different. The comma isn't actually for concatenation. The net effect is the same in this case, but a very different thing is happening. echo "hello " , "there

Re: [PHP] Doing an HTML POST using header()

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Francis wrote: > I'm trying to redirect to another website but doing a post to that website > at the same time. (ie POST rather than a GET (eg: header("Location: > www.anothersite.com/index.php?page=22"); ) > > How do you do an HTML post using the header() whats the syntax?

Re: [PHP] Re: HTML E-mails

2002-07-22 Thread Miguel Cruz
On Sun, 21 Jul 2002, Richard Lynch wrote: > Actually, though, when my clients insist on HTML email, I just tell > them: "No. If you want that feature, you'll have to hire somebody else > to do it. I've already explained why." I don't think I've lost a > single client that way -- Every one of t

Re: [PHP] Inline Images ?

2002-07-22 Thread Miguel Cruz
On Sun, 21 Jul 2002, Roberto Ramírez wrote: > Is there a way to display an image withouth sending the headers first? You have to send the header - that's how the browser knows what sort of image it is. > I'm trying to display an inline image... but when I try it just only > send the raw image d

Re: [PHP] redirecting after login

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Tim Thorburn wrote: > A site I'm working on requires a login screen where various individuals > will log into the site and add information for their various > departments. Rather than setup a different script for each department, I > was hoping to create one script that wo

Re: [PHP] Script executing Telnet Shell Command...

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, Kondwani Spike Mkandawire wrote: > I am trying to execute a Script running a telnet command > testing through a range of IP connections... > Here goes: > > $str = "123.456.789."; > $count = 0; > > while ($count < 999){ > $runTheScriptCommand... > } >

Re: [PHP] Re: HTML E-mails

2002-07-22 Thread Miguel Cruz
On Tue, 23 Jul 2002, Manuel Lemos wrote: > On 07/23/2002 02:40 AM, Miguel Cruz wrote: >> On Sun, 21 Jul 2002, Richard Lynch wrote: >>> Actually, though, when my clients insist on HTML email, I just >>> tell them: "No. If you want that feature, you'll ha

Re: [PHP] number of files in a dir vs. performace

2002-07-22 Thread Miguel Cruz
On Mon, 22 Jul 2002, eat pasta type fasta wrote: > currently I am holding all of the files in 1 directory since the DB can > keep track of them, however their number has grown to over 400 at this > point > > my issue is whether it would be worth it (performance wise) to split them > into thumb

Re: [PHP] The page before for newman.

2002-07-25 Thread Miguel Cruz
On Thu, 25 Jul 2002, Philip J. Newman wrote: > I'm looking for the global veriable that lists the page before the page > that i just came from. Anyone know what i'm talking about? $_SERVER['HTTP_REFERER'] miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] best way to log bad email address'

2002-07-25 Thread Miguel Cruz
On Thu, 25 Jul 2002, Justin French wrote: > what's the best way to log the bad email address' from a mail() loop? > > >From the manual: > "mail() returns TRUE if the mail was successfully accepted for delivery, > FALSE otherwise." > > Is the definition of "accepted for delivery" dependent on eac

Re: [PHP] Re: How do I validate input using php?

2002-07-25 Thread Miguel Cruz
On Wed, 24 Jul 2002, Mike Mannakee wrote: > Here's the code I use to validate emails: > > function check_email($email) > { > global $email; > $regex="^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$"; > return eregi($regex, $email, $trash); > } Please search the archives on this t

Re: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions4.2.0

2002-07-25 Thread Miguel Cruz
On Wed, 24 Jul 2002, Scott Fletcher wrote: > It work very nicely The whole process take 30 to 45 minutes for just > one server. I wonder how does someone did 12 computers in 10 minutes. > Cool! cd /usr/src/local tar -zxf php-4.2.2.tar.gz cd php-4.2.2 ../php-4.2.1/config.nice make

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0and 4.2.1

2002-07-25 Thread Miguel Cruz
On Tue, 23 Jul 2002, Richard Lynch wrote: > This is excluding support contracts for software you paid for -- Once you > pay Oracle enough money for Support Contracts, they have pretty good > support, from what I hear... :-) They're attentive and responsive and about as knowledgeable as you could

Re: [PHP] Accessing upper directory of public_html directory

2002-07-25 Thread Miguel Cruz
On Wed, 24 Jul 2002, Justin French wrote: > If your ISP doesn't allow you to use .htaccess files in this way, AND can't > provide you with a directory outside the document root for placing sensitive > files, then I'd recommend switching hosts, because they clearly don't have > an understanding of

Re: [PHP] control structure question

2002-07-25 Thread Miguel Cruz
On Tue, 23 Jul 2002, Javier Montserat wrote: > So refering back, i re-wrote the original example using the switch syntax... > > switch (true) { > case doStep1(): > case doStep2(): > case doStep3(): > error(); > break; > default: > valid(); > } > > Each case expressions is evaluated, until

Re: [PHP] Re: can there be a fax gateway?

2002-07-25 Thread Miguel Cruz
On Wed, 24 Jul 2002, Briggsy wrote: > Altn-N have a product called relayfax which is used with e-mail. You could > use forms to send an email and have realyfax fax it > > www.altn.com They have awesome support for their mailserver MDaemon so I > would say realyfax would be equally as good Also,

RE: [PHP] pdf to html

2002-07-25 Thread Miguel Cruz
On Thu, 25 Jul 2002, David Buerer wrote: > I can think of many reasons why displaying the pdf in the browser is a last > resort and not a first resort. Especially in situations where the reader is > not installed. > > Like Tyler, I would be quite interested to see if anyone has any ideas on >

Re: [PHP] preg_match() occurence position

2002-07-25 Thread Miguel Cruz
On Thu, 25 Jul 2002, lallous wrote: > Yes, I'm aware of the strpos() or any other non-regexp string functions... > > but it is either I use regexp to match a certain pattern or I'll have to > write a char-by-char parser to emulate regexp searching and yet get the > position of the occurence! Onc

Re: [PHP] Reg exp to remove line feeds before lines starting withwhite space

2002-07-25 Thread Miguel Cruz
On Thu, 25 Jul 2002, Nicklas af Ekenstam wrote: > I'm trying to do some parsing of mail headers and since not all > headers follow the pattern: > > X-Header-A: A string > X-Header-B: Another string that is longer > X-Header-C: And this string is very very long compared > > But may very well look

[PHP] failure notice (fwd)

2002-07-27 Thread Miguel Cruz
ail 22694 invoked by uid 508); 27 Jul 2002 19:21:11 - Received: from localhost ([EMAIL PROTECTED]) by localhost with SMTP; 27 Jul 2002 19:21:11 - Date: Sat, 27 Jul 2002 14:21:11 -0500 (CDT) From: Miguel Cruz <[EMAIL PROTECTED]> To: Tony Harrison <[EMAIL PROTECTED]> cc: [EMAIL PR

Re: [PHP] Only one value from a msSQL field.

2002-06-05 Thread Miguel Cruz
On Wed, 19 Jun 2002, Philip J. Newman wrote: > Only one value from a msSQL field. > I have many values the same in a field and would like to know how i can select one >of each (not mating). > > $sql = "SELECT * FROM brands WHERE 1 ORDER BY `sId` DESC LIMIT 6"; > > lists everything .. I'm not s

Re: [PHP] open a new html page

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Renaldo De Silva wrote: > is there a simple way to automatically load a new page according to a > choice made by a user. > > If one persons logs in they go to one page, If another peson logs in they go > to another page? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Zac Hillier wrote: > Is it possible using php on our own apache server to create global > variables for virtual host without having to use session variables. > > We would like to have three variables that are constant for each virtual > host and that are available from every p

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Nick Wilson wrote: > The only small problem I see is if a user logs out and then registers as > another user and votes again. I will be verifying emails of memebers so > I think this an unlikely scenario but it still bugs me a little. Any web-based unique-user-identification p

Re: [PHP] currency rounding issues

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Paul Berg wrote: > I am putting together an app that involves the adding together of rounded > numbers and displaying in a currency format. > The round() function is causing errors of 1 cent to appear after addition. > Does anyone know of any routines that might assist? It wou

Re: [PHP] Need some suggestions about "community" :)

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Hawk wrote: > Just for fun I, and a few friends were going to make a community, started > about an hour ago :) > Haven't started with the design or anything yet, but I was thinking how the > best way to handle users would be, or atleast what you can recommend, first > I thought

Re: [PHP] Remote file information (PHP 4.0)

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Erik Fears wrote: > Is there a way, when requesting remote files (using fopen() or file()) to > determine the base directory of the file retrieved? For instance, if I did: > > $file = file("http://www.host.com/directory/php";); > > Several things can happen. One is that there

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Miguel Cruz
Try a sub-select: SELECT * FROM (SELECT * FROM rap ORDER BY rcountry,rcity,rsname,rfname DESC LIMIT 30 OFFSET 30) ORDER BY whatever; miguel On Wed, 5 Jun 2002, Andre Dubuc wrote: > Apache 1.3.23 + PHP 4.1.2 + PostgreSQL 7.2 > > I have a query that sorts by name, country, and city, then pages

Re: [PHP] Passing Values to an image script

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Anzak Wolf wrote: > $h=20; > $w=80; > print ""; > > Now this is a much watered down version of what I'm doing, but the idea is > the same. I don't want to put the values I'm passing to the image in the > html code to be passed with a get. I'd like to be able to maybe pass

Re: [PHP] Displaying images with php?

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Ragnar wrote: > no, you did not misunderstand. Thats the way im building the html code for > displaying images now, but in the manual there is a lot of image-functions. > I thought that there maybe was some better way of displaying the images.. The image functions are for buil

Re: [PHP] php and javascript question

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Martin Clifford wrote: > As far as I'm aware you can't create a javascript variable and use it > within PHP on the same page. You can add that variable's value to a > hidden form element to be passed to the next page, but I don't think so > with the same page. You're quite ri

Re: [PHP] Re: sorting a list using regex

2002-06-05 Thread Miguel Cruz
I completely don't understand what you're trying to say, but I have a sneaking suspicion the usort() functions might be helpful here. miguel On Wed, 5 Jun 2002, Joshua E Minnie wrote: > I am trying to sort a list by their first character, my problem comes when > that first character is a number

Re: [PHP] Re: Finding out how a variable was registered

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, John Taylor-Johnston wrote: > If you change your header to pragma-nocache, he should not be able > to see the source to know what elements he needs for a . There are plenty of browsers (lynx being the obvious example) that will let you see the source regardless of any headers

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Miguel Cruz
curious - limiting and offsetting will most certainly > affect the results which are then sorted... I don't think that's what he > was after. Just my 2c. > > Bogdan > > Miguel Cruz wrote: > > >Try a sub-select: > > > >SELECT * FROM (SELECT * FROM ra

Re: [PHP] run from telnet...like PERL?

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Robert Packer wrote: > I wrote a script to strip the domain from an e-mail address with PHP. But it > will max out my lousy computer at work. The lists have about 1 million plus > addresses on them... However, a colleague wrote a very similar program with > PERL and ran it from

Re: [PHP] simple email validation ereg

2002-06-05 Thread Miguel Cruz
On Mon, 3 Jun 2002, Alexander Skwar wrote: > So sprach Jason Wong am 2002-06-03 um 12:10:29 +0800 : >> The lack of an MX record doesn't necessarily mean mail will not get >> through, so you cannot use that as a test for whether the address is >> valid. > > It will not? Do you have an example? H

Re: [PHP] Search Engine Friend Dynamic Pages

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Scott Reismanis wrote: > Just a quick question regarding developing search engine friendly > pages. Basically I am re-writing my site so that say mysite.com? > page=support&action=help becomes mysite.com/support/help/ Reason why is > it looks nicer and is search engine friend

Re: [PHP] date problem

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, andy wrote: > I would like to count the users out of a mysql db who registered after a > certain date. > > The column I have in the db is a char and I do not want to change this > anymore. > This is how a typical entry looks like: May 29, 2002 > > This is how I tryed it: > >

Re: [PHP] phpSearch

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, millw0rm wrote: > Hi, I m looking for a Search Engine kinda application which can search > content inside my own website, which includes files like php, text, html & > as well as mySQL db... do u guys hav ne idea where i can find the > application or r there ne1 who can develop

RE: [PHP] Secure File Upload

2002-06-06 Thread Miguel Cruz
On Thu, 6 Jun 2002, Christoph Starkmann wrote: > Yes. In fact, i would like to prevent having users upload too > big files. There are two reasons: > First, I don't want my server space to be consumed by files too big. > Second, I want to be able to prevent my (limited) traffic to > be "exhausted"

Re: [PHP] Retrieving text from a URL using PHP

2002-06-06 Thread Miguel Cruz
echo strip_tags($contents); miguel On Thu, 6 Jun 2002, Anthony Ritter wrote: > I'm still trying to figure out how to implement the strip_tags() function on > the script below so that the output of the URL is straight text. > > Please advise if you get a chance. > > TR > ...

Re: [PHP] Combo box selected value...

2002-06-06 Thread Miguel Cruz
On Fri, 4 Jan 1980, Alexandra Aguiar wrote: > I got the followin code to generate a combo box... Your clock is off by about 20 years. Is it possible to fix it before posting to the list? Thanks. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Re: Anyone?

2002-06-06 Thread Miguel Cruz
Just FYI, I read your previous two messages and decided not to answer them for the following (very subjective) reasons: 1. Your commenting style () made my head hurt. 2. The question was a little too open-ended yet the answer would be very specific. I'm happy to write a long-winded

Re: [PHP] NEED HELP (passing variable to new page)

2002-06-07 Thread Miguel Cruz
1) Why are you using JavaScript to open the window? HTML will do just fine () and will work on all browsers as well as search engines. 2) Your sample page has some password on it and I can't decipher from your message what's actually going on, so without seeing it in action, I'm stumped. mig

RE: [PHP] Trying to list a directory content HELP PLEASE

2002-06-07 Thread Miguel Cruz
On Thu, 6 Jun 2002, webmaster mbtradingco wrote: > Hey Scott, that at least helped me to find out what is going wrong. > > When I use the code as you told me... > >$fd=readdir("/home/casapu/paginas /image/caterleras/"); >if (!$fd) die ("Can't read dir"); > > It gives me:

Re: [PHP] Tracking Problem -- Force full script execution?

2002-06-07 Thread Miguel Cruz
On Fri, 7 Jun 2002, mike wrote: > I am trying to track every user who visits my site (over 100,000 per > minute..) I don't have an answer, but I'm impressed that you're able to get 144,000,000 hits a day - on par with Yahoo which was previously considered the runaway leader in web traffic volum

RE: Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Miguel Cruz
How about if you use htmlentities() and then preg specified tags back into place? That way, the onus for not looking silly falls upon those who use unapproved tags. This would seem like the more conservative approach - and as a security-obsessed paranoid fool, I like conservative approaches. m

Re: [PHP] Re: Search a flat file.

2002-06-07 Thread Miguel Cruz
If the file is of a reasonable size (not hundreds of kilobytes), then you can just slurp it all into an array and foreach through it: $matched = 0; $myfile = file('/usr/home/crud/myfile'); foreach ($myfile as $line) { $split_line = explode(':', $line); if ($split_line[1] == 'bob'

Re: [PHP] restricting files

2002-06-08 Thread Miguel Cruz
On Sat, 8 Jun 2002, Justin French wrote: > When you say serve the files through a script, I assume you mean > "download.php" force-feeds an MP3 (or whatever) to the browser. > > Is this correct? > > I read people have lots of problems with this... Only until they get it working (I should hope).

Re: [PHP] Removing ^M

2002-06-08 Thread Miguel Cruz
On Sun, 9 Jun 2002, Michael Hall wrote: > I am trying remove ^M characters (some kind of newline character) from > an HTML file. I've tried all sorts of ereg_replace and sed possibilities > but the things just won't go away. Does anyone have a way of removing > such characters? $str = str_repla

Re: [PHP] What are pros and cons of the Apache module verses cgiversion?

2002-06-08 Thread Miguel Cruz
On Sat, 8 Jun 2002, Al wrote: > I notice that some webhosts offer the apache module and some the cgi. > > On the surface, the cgi version appears to be a lot of extra hassle. The Apache module runs faster and has smoother integration with the web server. The CGI version allows you to run in di

Re: [PHP] Removing ^M

2002-06-08 Thread Miguel Cruz
'chomp' removes the end-of-line character(s) from its input, which is different from doing an EOL conversion (which is what the OP was after). The result of the below perl would be to concatenate all lines together as one. miguel On Sat, 8 Jun 2002, Chris Knipe wrote: > Perl apparently also w

Re: [PHP] Removing ^M

2002-06-08 Thread Miguel Cruz
I don't think tr expects to receive a filename on the command line. Try: tr -d "\r" < oldfile.html > newfile.html miguel On Sat, 8 Jun 2002, Steve Buehler wrote: > I get this when running that command: > tr: only one string may be given when deleting without squeezing repeats > > > I looke

Re: [PHP] how to test if rewrite rule is working

2002-06-08 Thread Miguel Cruz
On Sat, 8 Jun 2002, Nicole Lallande wrote: > I have created the following htaccess file using rewrite rules for the > purpose of having search engine friendly files created from my dynamic > files. > > RewriteEngine On > RewriteRule ^index-(.*),(.*)\.html$ index.php?section=$1&page=$2 > Rewr

Re: [PHP] Re: Date?

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, John Taylor-Johnston wrote: > > Sunday, June 09, 2002 > > But I would use: > > > > Don't know why, but someone told me once it had something to do with versions. date() just wants a plain ordinary string for the first argument (as the manual clearly says). I don't know wh

Re: [PHP] Getting users monitor size

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Tom Ray wrote: > Is there a way to do this with PHP? I couldn't find it in the online > docs and the archive search is offline :( Use JavaScript to detect it, and then you can set a cookie or add it to a request posted to the server. In either case your PHP program can then

Re: [PHP] Another Flat File question.

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Tom Ray wrote: > I have a flat file database that is delimited with colons. This file > will have new records added to it on a regular basis. What I want to do > is be able to search that file based on a keyword that is inputted by a > user, then it will search that database

Re: [PHP] PHP/MySQL

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Jason Soza wrote: > When I make a change to the mysql_connect() function in my PHP script, > then save and reload that page, it doesn't seem to have any effect at > the time. For example, I don't allow any anonymous access to my MySQL > server, but I can take out host, user, an

Re: [PHP] phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Greg Beaver wrote: > June 9, 2002 > RELEASE ANNOUNCEMENT > phpDocumentor version 1.1.0rc1 > http://www.phpdoc.org Best of all, with OSX IE 5.14, the page comes up completely blank. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Store/Retrieve Word Documents in MySQL/PHP?

2002-06-11 Thread Miguel Cruz
On Tue, 11 Jun 2002, Håkan Askengren wrote: > I have managed to load images to database through php, but what about other > file types as MS Word (yes I dare to mention it here...) > What headers etcetera are needed? Content-Type: application/msword miguel -- PHP General Mailing List (http:

Re: [PHP] subscription problem

2002-06-11 Thread Miguel Cruz
On Tue, 11 Jun 2002, Doug DeVries wrote: > Why am I getting all the messages from this newsgroup delivered to my > mailbox? > > I subscribed to the newsgroup -- or at least that is all I wanted. > >> To unsubscribe, visit: http://www.php.net/unsub.php The above link would be a good start. You d

Re: [PHP] Unlink question more or less

2002-06-11 Thread Miguel Cruz
On Tue, 11 Jun 2002, Tom Ray wrote: > I want to use unlink() to delete a wildcard, but at the moment I keep > getting parse errors. Here's what happening: > > I'm mucking around with some login stuff, when a user logs in it writes > a flat file that collects some information about them, the fla

Re: [PHP] Store/Retrieve Word Documents in MySQL/PHP?

2002-06-11 Thread Miguel Cruz
efore and had to hunt high and low for the mime type for a > file. Does anyone know of a listing for mime types (besides going > through the built-ins in the browser). Seems like a really handy > resource. File it near the local copy of the php manual and the websafe > palette. =) >

Re: [PHP] catching plurals

2002-06-11 Thread Miguel Cruz
On Tue, 11 Jun 2002, Zac Hillier wrote: > I'm trying to write a function to catch and remove plurals from a search > feature, can anyone suggest how I can efficiently remove 'ies' and 's' > from the right hand end of each word within an array? You are wasting your time (and preparing to really an

Re: [PHP] apache/oracle/php

2002-06-11 Thread Miguel Cruz
On Tue, 11 Jun 2002, Michael P. Carel wrote: > Is there anyone who could give me some reasons why does my php script with > oracle function does'nt work if i run apache as nobody/nobody? > > My script only work if i run apache as oracle/dba. Maybe your environment variables (ORA_BASE, etc.) are

Re: [PHP] Email - Php !

2002-06-12 Thread Miguel Cruz
On Wed, 12 Jun 2002, Septic Flesh wrote: > I use the following php.ini config. > > Do I need to configure the sendmail seperatly to successfully send an email > ? with Linux ? > > ; For Unix only. You may supply arguments as well (default: > "sendmail -t -i"). > sendmail_path =/usr/sbin/sendm

Re: [PHP] sending 1000 emails to subscribed members via php?

2002-06-12 Thread Miguel Cruz
On Wed, 12 Jun 2002, andy wrote: > I am wondering whats wrong with my php script. I am trying to write a > newsletter to 150 members. Therefore I did seperate the adresses with a , > After about 1 minute php gave up telling me mail has failed. > > Is there a restriction on sening mail via mail(xx

Re: [PHP] Detecting Usernames

2002-06-12 Thread Miguel Cruz
On Wed, 12 Jun 2002, Carl Whittaker wrote: > Ive asked this question in another group with no luck so maybe you guys have > an answer. > > Im looking for a way to detect the clients Win2k network username, im > using Apache2 PHP4.2.1 on a Win2K network with a domain, ive tried > REMOTE_USER and t

Re: [PHP] Fw: Hosting_submission

2002-06-12 Thread Miguel Cruz
On Wed, 12 Jun 2002, The_RadiX wrote: > Well anybody who wants to join Liam Mackenzie's hosting... > > Here's the touching response I got... > > After all customers would be very very upset if there was some kind of > publicity stunt against his company. wouldn't they? > > * snigger snigge

Re: [PHP] Dynamic Arrays

2002-06-12 Thread Miguel Cruz
On Wed, 12 Jun 2002, Tom Ray wrote: > I have an array question. I want to use a dynamic array but I don't know > how to do this. What I want to do is this, I want to write a form script > that takes the elements of the form and submits them in the array then I > want to do a loop and check to s

Re: [PHP] embedded media from DB

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Brad Wright wrote: > well i got the wav files from the mysql database and can get them to play in > a web page using the following code: > > > > IF ($row = mysql_fetch_array($result)) { > > > $data = $row["wavFile"]; > $name = $row["wav FileName"]; > $siz

Re: [PHP] Re: Email not getting

2002-06-13 Thread Miguel Cruz
It's trying to send a message to (somewhere)@aurica.com. But in any case, the output from the nslookup command suggests that your machine's DNS resolver is misconfigured. You'll have to get that sorted out before you can get much mail off the machine (not a PHP issue). miguel On Thu, 13 Jun 2

RE: [PHP] PHP with No Web Server?

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, John Holmes wrote: >> In other words.. Can PHP serve as the Web Server or is another web >> server required to handle the socket connections, etc.? > > You can run PHP on the command line without a web server, but it doesn't > do much good. For anyone else to see your PHP cre

Re: [PHP] Printer friendly version script

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Angelo Marcos Rigo wrote: > Anybody knows a good printer friendly version php script > thank´s in advance Well, it's entirely dependent on your particular HTML; there's no general-purpose solution. miguel -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] newbie question - retaining values

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Leston Drake wrote: > I've been creating forms that use hidden inputs to retain variables and > values from one instance of the form to the next (by calling itself in the > FORM ACTION). > > Are there other ways to retain *global* variables and values between > instances o

Re: [PHP] Code Improvement

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Pong-TC wrote: > I run the simple code to display data from the database. There are around > 5000 records and 50 fields. It takes around 1 1/2 min to retrieve the > data to the browser. I'd like to know if we can improve my code. So, I > can retrieve the data in a shorter

Re: [PHP] question about ? :

2002-06-13 Thread Miguel Cruz
On 13 Jun 2002, Lee Doolan wrote: > the arrays below have dates like > dateA= array( 0=> "03", 1=> "22", 2=> "02") > > for 22march2002. > > why does this work: > > $retval= ($dateA[2] != $dateB[2]) > ? strcmp($dateA[2], $dateB[2]) > : (($dateA[0] != $dateB[0]) >

Re: [PHP] Editor

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Daniele Baroncelli wrote: > Although any editor should be fine when coding PHP, I find that the standard > Notepad it's a real pain in the ass. Especially when the script gives you an > error at line 222 ! Each time I have to scroll and count each single line! The best is BBE

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-13 Thread Miguel Cruz
On Fri, 14 Jun 2002, Justin French wrote: > on 14/06/02 12:45 PM, Manuel Lemos ([EMAIL PROTECTED]) wrote: >> I prefer to leave the less-than-0-dot-5-percent-non-Javascript-browser >> users fixing the address that had @ replaced. > > I agree. And in the case of a user site like yours, and email f

Re: [PHP] php server on Windows

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Phil Schwarzmann wrote: > Can I use IIS instead of Apache ? If you hate yourself. IIS is not very configurable, so you'll find yourself unable to do an awful lot of things. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Email validation

2002-06-13 Thread Miguel Cruz
On Fri, 14 Jun 2002, Manuel Lemos wrote: > The following classes use this validation regular expression string. It > does not exclude some invalid addresses but includes all valid addresses. > > >"^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~?])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~?]+\\.)+[a-zA-Z]{2,4}\$" It

Re: [PHP] Gathering user info with php or php and mysql.

2002-06-13 Thread Miguel Cruz
On Fri, 14 Jun 2002, Chris Bunting wrote: > My htaccess file: > > ErrorDocument 401 /error/error401.php > ErrorDocument 403 /error/error403.php > ErrorDocument 404 /error/error404.php > ErrorDocument 500 /error/error405.php > > My question is this, Is it possible to use php to get the referring

Re: [PHP] Advanced User Authentication

2002-06-13 Thread Miguel Cruz
I think you're making it needlessly complicated. Why don't you just select * from * FROM auth WHERE authname = '$username' AND authpass = password('$password') and not worry about "WHERE authlevel = 1"? Then, if that query is successful, you can just fetch the result row and see what 'auth

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-13 Thread Miguel Cruz
On Fri, 14 Jun 2002, Analysis & Solutions wrote: > On Thu, Jun 13, 2002 at 10:36:56PM -0500, Miguel Cruz wrote: >> If you're doing the site for the US government, you're (thank goodness) >> required by law to make sure it works without JavaScript. > > REA

Re: [PHP] Re: Email validation

2002-06-13 Thread Miguel Cruz
On Fri, 14 Jun 2002, Manuel Lemos wrote: > On 06/14/2002 03:06 AM, Miguel Cruz wrote: >> On Fri, 14 Jun 2002, Manuel Lemos wrote: >>> The following classes use this validation regular expression string. >>> It does not exclude some invalid addresses but inclu

Re: [PHP] Different colors on lines

2002-06-13 Thread Miguel Cruz
On Fri, 14 Jun 2002, Bård Tommy Nilsen wrote: > Can anyone help out with this ?? > > Since i do the search after the query, there is an problem if line 1 in the > Sql table matches, line 2 does not, but line 3 does. > > Then the result will display the same color on the two lines > That would be

Re: Re[2]: [PHP] sessions help

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Kevin Stone wrote: > Your problem is here.. > > return ($_SESSION['node'] = $node_id); > > I do not believe that you can both set and return a varaible on the same > line. FYI, the variable which you're returning in this function is global.. > so there's no

Re: [PHP] Nested IF's (Is there a LIMIT ?)

2002-06-13 Thread Miguel Cruz
I am too lazy to count your braces for you, but no, there's not really a limit to how many ifs you can nest. It helps to use an editor that flashes the bracket's companion when you type or edit one. That way you can easily see whether they're balanced in the right place. miguel On Fri, 14 Ju

Re: [PHP] Re: Spam Bots/E-mail Addys

2002-06-13 Thread Miguel Cruz
On Fri, 14 Jun 2002, Manuel Lemos wrote: > I would say that the long standing users are even more aware that they > should not turn off Javascript because they are experienced enough to > know that some sites of their preference do not work right without > Javascript. > > I believe that users

Re: [PHP] pdf_show_boxed

2002-07-02 Thread Miguel Cruz
On Tue, 2 Jul 2002, Hugo Wetterberg wrote: > I have a problem with pdf_show_boxed(), it doesn't output anything. > Everything else shows up just fine. Is there something that I have > overlooked in this code? > > pdf_show_boxed ( > $pdf,//Object > $issuedesc, //text > 70,//left > 700

Re: [PHP] Authentication

2002-07-03 Thread Miguel Cruz
On Thu, 4 Jul 2002, Alberto Serra wrote: >> As a caveat to Mr. Serra's suggestion, remember that there are *many* >> users who will go through an IP masquerading gateway or proxy, so >> their IP may fluctuate, even though they are actively browsing. For >> this reason, it is often necessary to tol

Re: [PHP] Re: mac ie and force download

2002-07-03 Thread Miguel Cruz
On Tue, 2 Jul 2002, Richard Lynch wrote: > If you can't do .htaccess, for whatever reason, second-best choice is: > > HREF=download.php/filenameyouwant.doc?filename=filenameyouwant.doc>Download< > /A> > > Apache and PHP are gonna ignore the bogus /filenameyouwant.doc part, while > the browser s

Re: [PHP] Weird preg problem

2002-07-03 Thread Miguel Cruz
On Thu, 4 Jul 2002, SP wrote: > Hi I am trying to check if a word contains only capital letters. For > some reason it's not working. The below example is checking the word > "weird" to see if it's all capital letters but it's saying it's matches. > I've tried checking for only lower case lette

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Miguel Cruz
On Wed, 3 Jul 2002, Jean-Christian Imbeault wrote: > Erik Price wrote: >> Turn off magic_quotes and do addslashes() explicitly every time you do >> a database insert. Then make sure you always stripslash() data >> returned from a database query. >> >> magic_quotes is convenient for newbies, but

Re: [PHP] checking the path from which someone has arrived at aspecific script

2002-07-03 Thread Miguel Cruz
On Fri, 28 Jun 2002, Kris Vose wrote: > Basically I want to check to see if a user has gone to PayPal.com and > paid for a product before I disseminate the username and password > through a script called thankyou.php. > > I tried using an if statement that checks the global variable > $HTTP_REFER

Re: [PHP] gc_probability: requests tallied per server or domain?

2002-07-03 Thread Miguel Cruz
On Tue, 2 Jul 2002, Johnson, Kirk wrote: > Is the number of requests (used for garbage collection), tallied on a per > server basis, or on a per domain basis? What about in a load-balanced > environment? Pretty fair bet it's a per-server basis. miguel -- PHP General Mailing List (http://www.p

Re: [PHP] Re: Handling of constants in strings

2002-07-03 Thread Miguel Cruz
On Tue, 2 Jul 2002, Uwe Birkenhain wrote: > A question - since english is not my first language - what do you mean with > >It's not all that common to bury constants in strings > > Is something bad about it? I think so. It would slow parsing down to a crawl and create a host of ambiguities if ev

  1   2   3   4   5   6   7   8   >