[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] Installing 4.0.6 to 4.1.1 patch

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, John Wulff wrote: > I've downloaded the 4.0.6 to 4.1.1 patch but how do i install it? Wouldn't you want to use a current version instead? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Chris Hewitt wrote: > Apache comes with ab for load testing. Maybe that will provide you with > a means of making meaningful comparisons. There will be a "php" aspect > to it, php opposed to say 3-tier java, but also things like is php a > cgi, apache module or actually com

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Andy wrote: > I am wondering how many requests at one time php can serve before the site > brakes down. Someone told me that my site has been down yesterday for a > while after I did anounce it through a university email list going to 2500 > users. It depends on: - Your netw

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Justin French wrote: > I've attached a file I received with Quark 3.32, which has sample text > complete with Quark Xpress tags. XPress Tags is a great format, and easy to work with for auto-generated content. However, all you can do with it is prepare text for a single run

Re: [PHP] php Similar to C in Pointer Memory Accessing or not?

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Kondwani Spike Mkandawire wrote: > Just for interest sake, for those of you who have messed > with C know about Pointers hence probably know that > one can access stuff from Memory Locations in very wierd > ways via pointers and Arrays: > > int * ptr; > ptr = array[0]; > ptr=

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Martin Clifford wrote: > I'd like to get everyone's input on Jobs and Certs. I know there are a > couple Certifications for web developers out there, such as the CIW and > CWP certifications. I don't know if this is what you want to hear, but I can tell you that as a rule,

RE: [PHP] CRON JOB

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Jay Blanchard wrote: > Look at the archives for the past couple of days, it has been covered in > some detail. Make sure to compile PHP without apsx, and for practical > purposes move the PHP executable to the /usr/local/bin directory. Then put > this as the first line of the

Re: [PHP] Opening and Editing Quark Binaries

2002-07-16 Thread Miguel Cruz
On Sun, 14 Jul 2002, Simon Troup wrote: > ... quark reports things like unexpected EOF (even though when I open > the file in a text editor they have same number of lines and "look" > identical), I've also tried a few things with the Mac resource forks to > no avail. > > Has anyone tried somethin

Re: [PHP] PHP codes and variables

2002-07-12 Thread Miguel Cruz
On Fri, 12 Jul 2002, J. Alden Gillespy wrote: > Anyone know how to do have a variable equal the contents of a file? I tried > the include function, but it just prints the file out on the screen rather > than including the contents in the variable itself. I need help with this > ASAP. Thanks. $

Re: [PHP] PHP and ORACLE

2002-07-12 Thread Miguel Cruz
On Fri, 12 Jul 2002, Alberto Serra wrote: > Ricardo Fitzgerald wrote: >> I started with PHP and MYSQL a while ago and now I've been involved in >> a huge database project with ORACLE. > > Have the Oracle box do most of it. Make sure that: > 1) there is a well defined API for external applicatio

Re: [PHP] Re: PHP and geographic maps

2002-07-12 Thread Miguel Cruz
On Thu, 11 Jul 2002, Richard Lynch wrote: > NOTE: End-user GPS units are "off" by like 30 meters (?) on purpose so Joe > Blow can't tell the "enemy" how to find the White House and blow it up. > Sigh. You're never gonna beat that error margin without a *LOT* of repeated > readings over a long p

Re: [PHP] Linux Newsgroup... ('continue');

2002-07-12 Thread Miguel Cruz
On Fri, 12 Jul 2002, Scott Fletcher wrote: > Miguel Cruz <[EMAIL PROTECTED]> wrote in: >> On Thu, 11 Jul 2002, Scott Fletcher wrote: >>> Are you sure these newsgroup work? I tried subscribing to it and got a >>> response saying newsgroup server could not be found

Re: [PHP] Re: Mail() function

2002-07-11 Thread Miguel Cruz
On Thu, 11 Jul 2002, Richard Lynch wrote: > I honestly have no idea how to forge an email routing path, just know it can > be done, and is not rocket-science. But you're going to have to dig into > the guts of sendmail or equivalent at a minimum, or search out "send spam to > 1,000,000 people!!!"

Re: [PHP] Linux Newsgroup... ('continue');

2002-07-11 Thread Miguel Cruz
On Thu, 11 Jul 2002, Scott Fletcher wrote: > Are you sure these newsgroup work? I tried subscribing to it and got a > response saying newsgroup server could not be found. I didn't have that > problem with PHP Newsgroup or mozilla.org Newsgroup. > > --clip-- > comp.os.linux.admin > comp.os.linux

RE: [PHP] getdate

2002-07-11 Thread Miguel Cruz
The 'date' command-line utility reads the time zone from environment variable 'TZ'. It then adjusts the system time before displaying it. So your server is probably set to GMT, and your login environment specifies EDT, which is 4 hours earlier. PHP is defaulting to GMT. Look into putenv(). migue

Re: [PHP] Generate a file

2002-07-11 Thread Miguel Cruz
On Wed, 10 Jul 2002, Phillip S. Baker wrote: > Okay here is what I want to do. > > Select the field of a database that I want. > Hit submit. > Execute a query of a database based on the said form. > Gather all the data and rows and plug them into an excel generated file. > Display a dialogue box

Re: [PHP] php loopholes

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, Chris Taylor wrote: > Hi every1, i am currently undertaking some research into PHP security > and its flaws / loopholes etc. What i am looking for is information on > any aspects of PHP that can be hacked or cracked and how developers have > got around these problems. If there

Re: [PHP] Mail() function

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, César Aracena wrote: > I wonder if there’s a way to *HIDE* some parts from the Heading of the > emails sent with PHP. I’m trying to create an anonymous mail sender but > in the header of the message appears: > > Received: (from httpd@localhost) > by www.whateverdo

Re: [PHP] Odd Request: Image 2 HEX

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, JSheble wrote: > I'm using a Zebra label printer in an application I have and in order to > display an image on the label, according to the ZPL II printer language, > any image must be converted to HEX code. Does anyone hvae a code snippet > or know of a free utility that will

Re: [PHP] Took the job into my own hands

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, Liam Gibbs wrote: > Mr. Hegreberg will be getting an unsubscription notice > shortly, telling him how to complete his request. I tried that about half an hour ago; I don't think he's smart enough to follow the instructions. miguel -- PHP General Mailing List (http://www.p

RE: [PHP] ????????????????????????????????????????????

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, Ben Ramsey wrote: > I've just joined this mailing list this afternoon. Does this kind of thing > happen often? If so, I'm going to leave the list. This is the first time I've seen it anything like this. I've been here off and on for over 3 years. Usually people just say "He

Re: [PHP] Trying to locate an image file name from another site

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, Merritt, Dave wrote: > I have a page on our intranet site that is pulling an image from our > corporate web server. The corporate server & the image I am accessing is > beyond my control. The image is generated daily and appears to be named > with a timestamp in the file name

Re: [PHP] Postal / Zip Code Proximity Search

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, Peter J. Schoenster wrote: >> From: "Brandon Pearcy" <[EMAIL PROTECTED]> >>> Not only does it need to find the establishments, it needs to >>> calculate the distances (straight line, of course). > > I don't know what you mean by straight line. AFAIK all of this will be > as "t

Re: [PHP] Editing Word Documents

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, David Russell wrote: > I have just had a request about editing Word Documents... > > I have an intranet, which provides access to, amongst others, Word > Documents about policies, etc. What the guys are looking for is a way to > do the following: > > 1. Show a list of files

Re: [PHP] PHP Script Speed

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Crane, Christopher wrote: > I hope I am explaining this well enough to understand. Doing it the newer > way for me with the global variables makes it easier to design the web page, > but I am wondering if it is at the cost of a slower page loading. The reason > I think this is

Re: [PHP] HTTPS vs. HTTP ?

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Analysis & Solutions wrote: > Allow me to emphasize Richard's point about not trusting certificate > authorities. I have an SSL certificate. It was fairly simple to get, > despite several discrepancies in my documentation. > > While it made things easier for me, which I'm

Re: [PHP] getting the IP address off a visitor

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Justin French wrote: > 1. in the case of most dial-up users with an ISP, the IP address is usually > dynamically assigned, so next time they dial-up (or re-connect) they will > more than likely have a different IP address. > > 2. in the many cases of computers with a static IP

Re: [PHP] Linux Newsgroup???

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Scott Fletcher wrote: > Is there a Linux newsgroup? A place where people can send emails or posting > about Linux, like tech support, programming, installation, feedback, > advices, work around, etc. Just like hte same concept as the PHP newsgroup > here. comp.os.linux.admin

Re: [PHP] Converting PCX to ...

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, BB wrote: > I'm writing a reporting system and I have a problem. > > I need to insert PCXs into a PDF (using PDFLib), but it doesn't support > PCXs. > > So, to get round the problem, I need to convert the PCXs to JPGs or GIFs > > Does anyone know of a piece of PHP that can d

RE: [PHP] HTTPS vs. HTTP ? - the weakest link

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Brinkman, Theodore wrote: > Think about it for a moment. E-commerce involving properly signed sites is, > at the very least, more secure than handing your credit card to a waiter in > a restauraunt. The waiter can walk off with your card, and come back 2 > minutes later with

Re: [PHP] Referencing function return value

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Anas Mughal wrote: > I have a general question about referencing... > > Would it be safe to reference a function return value? Sure, unless the function returned a reference itself, in which case you have to continue keeping track of the validity of that reference (i.e., if

Re: [PHP] compare variables from text fields...

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Jas wrote: > What is the best function or operator to compare two text strings being > inputted by a text field within a form? Any help is appreciated. == is always handy. Depending on your needs, you may want to throw in a couple calls to strlower (if you don't care about c

Re: [PHP] ini_set() broken?

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Greg Donald wrote: > On Sun, 7 Jul 2002, Miguel Cruz wrote: >>> >> if(ini_set("register_globals", "0")) >>> echo "ini_set success"; >>> else >>> echo "ini_set failed"; >>> ?&g

Re: [PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-07 Thread Miguel Cruz
;REL_PLAN8")); > printf("REL_PLAN9: %s\n", mysql_result($result,0,"REL_PLAN9")); > > //Problem code // > > // Then show image and/or details > echo "http://www.website.com/images/".$result[FRONT_REND].";>"; > > > //printf("FRONT_REND: %s\n"

Re: [PHP] ini_set() broken?

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Greg Donald wrote: > This code doesn't work: > > if(ini_set("register_globals", "0")) > echo "ini_set success"; > else > echo "ini_set failed"; > ?> Please don't say "this code doesn't work." Say why you think it didn't work, whether that's because you received an error

Re: [PHP] newbie: question about question marks

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Alexander Ross wrote: > Can someone explain to me what the ? does. I have a vague idea of what > it means in a URL (please cearify that) but I haven't the slightest what > it means in php code. Thanks for your help Read about the ternary operator at: http://www.php.net/ma

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Miguel Cruz
On Mon, 8 Jul 2002, Alberto Serra wrote: > Chris Shiflett wrote: >> Of course, as users of Web browsers such as Netscape and Internet >> Explorer, we have to trust AOL/Time Warner and Microsoft, respectively, >> (yeah, scary thought) to only trust CAs that have high integrity, >> security, etc.

Re: [PHP] Sockets & 'requested address is not valid in its context'

2002-07-07 Thread Miguel Cruz
On Sat, 6 Jul 2002, Zac Hillier wrote: > I'm opening a port on a remote machine presently I'm using fsockopen() which > is fine for opening the port and sending data however I'm having trouble > reading data back from the port. > > So I've considered using socket functions but do not appear to be

Re: [PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-07 Thread Miguel Cruz
On Sat, 6 Jul 2002, markbm wrote: > I am trying to build a "product detail" page that pulls data from a > MYSQL database using PHP. The data for the page includes product images, > which I am trying to link to (i.e. from their location on the web > server) instead of loading the images into the da

Re: [PHP] Printing Problem

2002-07-07 Thread Miguel Cruz
On Mon, 8 Jul 2002, Chris Kay wrote: > I'll repeat my ealier question because some people can not think for > themselves.. Why insult people who are trying to help you? Nobody gets paid to read this list; they're doing it to be nice. > I want to run a print job of 200+ invoices > > I have a ja

Re: [PHP] please I want them to erase me of their mail lists

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Rodolfo Contreras T. wrote: > please I want them to erase me of their mail lists In every single message from the list it say: list-unsubscribe: So why not send a message to [EMAIL PROTECTED] ? I think you will like the results. miguel -- PH

Re: [PHP] Linked drop down selection lists and dynamically generatedlinks

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Alberto Serra wrote: > A 100% robust solution should contain both, and call PHP only if jscript > is not available on the client. But this is costly and requires the two > procedures to be realigned everytime you have some change going on. Most > applications can just use ja

Re: [PHP] inserting linebrakes in multisite forms

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, andy wrote: > Alberto Serra <[EMAIL PROTECTED]> schrieb: >> andy wrote: >>> One Form has a textfield, I submit it to another html site where there >>> is another form with a textfield. Inside this textfield I place a >>> hidden field with the value of the field from page 1 then

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Miguel Cruz
On Sat, 6 Jul 2002, Richard Lynch wrote: > I think we both agree that any old certificate is secure from snooping, > right? I would disagree with that. In order to snoop on a connection, you need to have some access to the link. This may be by being in the same building with one of the endpoin

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-06 Thread Miguel Cruz
On Sat, 6 Jul 2002, Patrick Teague wrote: > $query = "SELECT * " . > "FROM Headers LEFT JOIN Pages ON (Headers.Header_ID=Pages.Header_ID) " . > "ORDER BY HeaderOrder DESC, Header, PageOrder DESC, PageTitle;"; > > Any ideas on optimizing this? DB stuff doesn't come near the top of things > I'm

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Miguel Cruz
On Fri, 5 Jul 2002, Richard Lynch wrote: > But unless you paid the $200 to get it from a CA, surfers will see a nasty > (and totally inaccurate/misleading) warning about how insecure it is. It is easy to launch a man-the-middle attack against a session being initiated between a client and a serve

Re: [PHP] Cannot enable extensions. Why?

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, Alberto Serra wrote: > Don't fire back, today is Ivan Kupala Day and I am sitting here working > while everyone else in town is having a drink, so I'm in the mood for > cracking jokes a bit :)) I can't believe it! I totally forgot it was Ivan Kupala Day! miguel -- PHP Ge

Re: [PHP] Re: I am probably dumb but why isn't this inserting stuffinto my DB?

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, JJ Harrison wrote: > $query = "INSERT INTO tececo_stats values ('', $id, $visited, $time, > $remote_dns, $remote_ip, $referer, $browser, $system)"; > mysql_query($query); You should always do the following if you are having trouble: 1) print out $query and try it yourself at

Re: [PHP] suppressing errors with "@"

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, Uri Even-Chen wrote: > I tried to suppress warnings in isset expressions (Uninitialized string > offset warnings). The original line was something like this: > > if (!(isset($GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME']))) > > When I added the "@" sign like this: > > if (!(is

Re: [PHP] help with eval problems...

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Kelly Meeks wrote: > If I had this information stored in a database field, > "> > > how could I assign it to a variable and output it? I'm not sure that you can eval() HTML. Perhaps if your cell contained: echo "" you would have better luck. Don't quote me on it though

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz
On Sat, 6 Jul 2002, Alberto Serra wrote: > yes, but in that case your Apache is running just ONE web site. Most > people buy VirtualDomains which are namebased and not IP based. And they > cannot share an IP number with other sites with SSL, AFAIK. Or am I > misunderstanding the docs? You're r

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Scott Fletcher wrote: > For Miguel Cruz posting back there. If I understand correctly, the private > key are inside the public key. Is this correct? I'm not completely sure I understand your question. When you visit a site using HTTPS, here's basically

RE: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Lazor, Ed wrote: > I saw that Microsoft has a Certificate Authority server package that allows > you to create your own key. Is there a way to do this in linux? In this > particular instance, it's me accessing my own web site. I'd like to encrypt > the session and I'm don't

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

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Johnson, Kirk wrote: >> 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? >> >> Pretty fair bet it's a per-server basis. > > Thanks, miguel. That would be my guess

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

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Uwe Birkenhain wrote: > Miguel Cruz schrieb ... >> 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 c

Re: [PHP] localhost - passing variables

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Tony Tzankoff wrote: > Is it possible to pass variables in PHP on the localhost server? Is there > some kind of setting or something that I need? I am new to this and am not > sure how to go about this. When I upload to a server, the script I have > works just fine; but when I

Re: [PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Scott Fletcher wrote: > We also use the "$_SERVER['REMOTE_ADDR'] to allow only the credit bureau > employee to log in to the administration website that is if the > employee's machine is at the credit bureau place. This help with some > security but not a full security because

Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Jerome Houston wrote: > if the browser is making a request, and it sees an https:// at the beginning > of the request URL, it will : > 1. get the domain's public key from a public key server > 2. encrypt the whole request with the domain's public key > 3. submit it to the w

Re: [PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Kondwani Spike Mkandawire wrote: > Quick Question on Cookies vs. IP Number: > > They appear to be easy to set (well at least in PHP), hence quite > easily to get around (The user of your Site simply deletes the > Cookie on his Hard Drive...) In Konqueror you are actually > gi

Re: [PHP] Scheduling tasks

2002-07-05 Thread Miguel Cruz
On Fri, 5 Jul 2002, Frank S. Kicenko wrote: > I couldn't find anything in the help files or the faq... but. > > Are there any scheduling fuctions with PHP? What I'm looking for is > something functionally close to a crontab. Crontab would work. Or you could make a library that you include in of

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

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] 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] 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] 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] 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] 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] 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] 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] 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: 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] 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: [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] 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] 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] 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] 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

  1   2   3   4   5   6   7   8   >