RE: [PHP] fsockopen question

2002-07-03 Thread Martin Towell
That's still running sequentially -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 5:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen question now it's clear thx :D is not the same thing as: while ($i < 100) { $s

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] fsockopen question

2002-07-03 Thread Jose Arce
now it's clear thx :D is not the same thing as: while ($i < 100) { $sock = fsockopen($host, 80); fputs($sock, "GET /file".$i".html HTTP/1.0\r\n\r\n"); } isn't? >From: Martin Towell <[EMAIL PROTECTED]> >To: 'Jose Arce' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: RE: [PHP] fsockop

[PHP] Re: Weird preg problem

2002-07-03 Thread Tracker 1
the /i means case insensitive, remove the i, and it will work as intended. -- === Michael J. Ryan - tracker1[*at*]theroughnecks.com Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net ===

RE: [PHP] PHP in South Africa

2002-07-03 Thread Rudolf Visagie
Rudolf Visagie Principal Software Developer Digital Healthcare Solutions Tel: +27 11 2655484 Cell: 082 895 1598 -Original Message- From: MindHunter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 4:19 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP in S

Re: [PHP] fsockopen question

2002-07-03 Thread Tracker 1
you can do more than one fsockopen, which means you will have multiple sockets open, however, these are part of the same thread in the same process.. in other words, you can't do two things at once by default.. with php-gtk, you can maybe have multiple user events.. and not sure if you can emulate

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: PHP: Script Security: Best coding practices

2002-07-03 Thread SP
I thought it was a good site. I was reading up on the security bugs found and now I know what not to do. -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 2:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP: Script Security: Best coding pra

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

2002-07-03 Thread Tracker 1
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message... > > > > Unfortunately...This is not working. I went to the php manual and it > > basically stated that not all web sites will post the $HTTP_REFERER. I > > believe that is what is happening in this case. > > Also, anyone can fake HTTP_REFERER

RE: [PHP] fsockopen question

2002-07-03 Thread Martin Towell
I mean, you can do each of the fgets()'s will be executed sequentially. But there's two sockets open... -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 4:48 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen question

RE: [PHP] Weird preg problem

2002-07-03 Thread SP
Thanks Miguel it works now! $str = "abcA"; if (preg_match('/^[a-z]*$/', $str)) echo "The string '$str' contains only lower-case letters."; -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 2:29 AM To: SP Cc: [EMAIL PROTECTED] Subject: Re: [PHP] W

RE: [PHP] fsockopen question

2002-07-03 Thread Jose Arce
So...i can do more than one fsockopen()...but is not multi-thread? i don't understand...i mean...if i can open more than one fsockopen...it is multithread, or in wich cases php open more than one fsockopen? thx :D >From: Martin Towell <[EMAIL PROTECTED]> >To: 'Jose Arce' <[EMAIL PROTECTED]>, [

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

[PHP] Re: PHP: Script Security: Best coding practices

2002-07-03 Thread Jean-Christian Imbeault
Manuel Lemos wrote: > > Check out http://www.phpadvisory.com/ . An ok site but only three articles, of which two are on security. One article is too general and the other too specific :) Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

RE: [PHP] fsockopen question

2002-07-03 Thread Martin Towell
you can do more than one fsockopen(), but since php isn't multi-threaded - you'll still only be able to download one file at a time. -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 4:39 PM To: [EMAIL PROTECTED] Subject: [PHP] fsockopen question

Re: [PHP] fopen with external file

2002-07-03 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 08:04:59AM +0100, morka ++ wrote: > i try to open the external file using fopen() function. > I use the example from php.net: > $filename = http://www.aaa.com/index.html; > $fd = fopen ($filename, "r"); > $contents = fread ($fd, filesize ($filename)); "This function will n

[PHP] fsockopen question

2002-07-03 Thread Jose Arce
Hi, i'm making a script to transfer all the zips from my old server to my new one, i mean, server to server. That's the easy part. The cuestion is: Can i open more than just one instance for fsockopen to retrieve more files in the same script, at the same time? i mean, not one by one (that will

[PHP] Java in PHP4

2002-07-03 Thread Idaham
Hi, I'm really new to Java in PHP, and curious to this great features. Q: How do I convert the sample code below so that it can run within PHP? === import com.my.sm.api.*; import com.my.sm.api.interfaces.*; public class my1 { public st

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] Strange MySQL Query Problem

2002-07-03 Thread Alberto Serra
eat pasta type fasta wrote: > $result = mysql_query("SELECT some_id, some_description, some_feature > FROM '$pop-up1' WHERE some_description LIKE '%$texfield%' AND > some_feature LIKE '%$pop-up2'"); have this query echoed to video and then cut it and paste it to mysql terminal. Most probably

[PHP] how to get calling method identity?

2002-07-03 Thread Alberto Serra
Hi! I already made this question, but probably I kinda made it in obscure terms. Trying to get clearer. let's look at this: function utility() { } Class a { function some_method() { utility(); } } now, how can utility know that it's being called by a::some_method()? What I nee

[PHP] fopen with external file

2002-07-03 Thread morka ++
i try to open the external file using fopen() function. I use the example from php.net: $filename = http://www.aaa.com/index.html; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); however I always get the error "stat failed for http://www.aaa.com/index.ht

[PHP] Weird preg problem

2002-07-03 Thread SP
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 letters with "WEIRD" and it's not working th

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

[PHP] Model View Controller (MVC) frameworks in PHP

2002-07-03 Thread Terence Kearns
I've been developing an open source MVC framework in PHP and it's going OK. However, I wanted to find out about any other frameworks around the place that do a similar thing. I want to see how other people approach this design pattern. Here are my main aims: 1) standardise development patterns

[PHP] Re: PHP: Script Security: Best coding practices

2002-07-03 Thread Manuel Lemos
Hello, On 07/04/2002 02:24 AM, Jean-Christian Imbeault wrote: > I am trying to figure out what are some Bad Things (tm) when it comes to > secure PHP programming and how to avoid them. > > I am looking for a kind of "best practices for security" list for PHP > programming. Do's and Don't, or a

Re: [PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread Terence Kearns
I have had "inconsistency" issues when outputing diffrent content-types to IE. It seems to cache the type for a articular file somewhere and deleting temporary files in the usaer agent is no good. I have to shut-down all instances of IE then re-launch it for it to behave like it is supposed to _co

[PHP] Re: Script Security: Best coding practices

2002-07-03 Thread Peter James
A suggestion would be to make sure that the variables you're receiving are coming from where you think they're coming from... For instance, $_SESSION['logged_in'] is also (generally) $logged_in but so is $_GET['logged_in'] A smart user could fake it if they wanted to... check the $_SESSION or

[PHP] Appologies

2002-07-03 Thread Brandon
I've posted to this newsgroup a few times and some of you have replied back via email. Recently I had a virus on my machine that sent out a TON of email to people i've recieved email from - I just wanted to appologize if you recieved any of this spam. I now have updated Anti-Virus software so it

[PHP] PHP: Script Security: Best coding practices

2002-07-03 Thread Jean-Christian Imbeault
I am trying to figure out what are some Bad Things (tm) when it comes to secure PHP programming and how to avoid them. I am looking for a kind of "best practices for security" list for PHP programming. Do's and Don't, or a list of common pitfalls and how to avoid them. Can anyone point me to

Re: [PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread JJ Harrison
It sort of works now. Here is my script so far: The problem is that with excel files it asks me if I want to download twice. Also it opens in excel not IE. Sometimes PDFs open in IE sometimes the don't. What is wrong? Also would I be better of collecting my stats then using a header to re-di

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Jean-Christian Imbeault
Justin French wrote: > This list really does work best (ie best results for you) if you come to us > with a specific problem, rather than something general. I totally agree. Sorry to have asked such a wide question but in this case it is a bit of a chicken-or-the-egg situation. To make your

Re: [PHP] Strange MySQL Query Problem

2002-07-03 Thread Jason Wong
On Thursday 04 July 2002 12:32, eat pasta type fasta wrote: > $result = mysql_query("SELECT some_id, some_description, some_feature > FROM '$pop-up1' WHERE some_description LIKE '%$texfield%' AND > some_feature LIKE '%$pop-up2'"); Again: echo $result; -- Jason Wong -> Gremlins Associates -> w

[PHP] Strange MySQL Query Problem

2002-07-03 Thread eat pasta type fasta
I already got some replies for this but it wasn't it, here is the problem: I have a simple form which queries the database based on 2 pop-up menu choices and keywords entered by the user, it passes on the variables as follows: pop-up1=choice1, pop-up2=choice2, textfield=user specified data the

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Miguel Cruz wrote: > > I'd suggest ignoring IP altogether and focusing on other tactics. There > are just too many pitfalls in trusting IPs and too much user annoyance > possible from not trusting them. Well, the way I made it admins get emailed each every time a user gets refused because of

Re: [PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread Jason Wong
On Thursday 04 July 2002 10:46, JJ Harrison wrote: > I can output the file using readfile(). But the problem is that it appears > to output the data in it's raw form. How can I get it to open in the right > application? You _do_ want it to output the data in it's raw form. However it is your re

Re: [PHP] Question about using XSLT_Process?

2002-07-03 Thread Chris Wesley
You just need the XML and/or XSL as a string. xmldoc() is creating a DOM object, which xslt_process() can't use. In you example that does not work properly, change this: $xsl = xmldoc(implode("",file("test.xsl"))); $xml = xmldoc(implode("",file("test.xml"))); to not use xmldoc(), like this: $

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

2002-07-03 Thread Alberto Serra
Jason Wong wrote: > On Thursday 04 July 2002 09:09, Chris Shiflett 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 >>r

Re: [PHP] storing echo to MySQL or converting to a variable

2002-07-03 Thread Analysis & Solutions
On Wed, Jul 03, 2002 at 08:23:11PM -0600, Jose Arce wrote: > Hi, i want to know if i can convert this: > > echo fgets($conexion,256); > > to a variable, or store it to a MySQL database, and then email that > variable or data in the MySQL database...thx :D Yes. Anything you can echo you can pu

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > > These are just some ideas, mind you. Many people (you sound like such a > person) can develop their applications quite securely once they can step > back and see the big picture and follow a few general guidelines, such > as not trusting data from the client. In this

Re: [PHP] Authentication

2002-07-03 Thread Chris Shiflett
Alberto Serra wrote: > So you mean I have a 32 byte MD5 session id to identify the current > visit, plus another such thing to identify the step within it, right? > But why decrypting it? A presentation attack would give it back to > server in the encrypted form anyway. What do we lose by just

[PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread JJ Harrison
Thx. I can output the file using readfile(). But the problem is that it appears to output the data in it's raw form. How can I get it to open in the right application? I wasn't going to put the file in the DB. I am just working on a stats program for a couple of sites. One had about 50 downloads

[PHP] Re: Problem with menu

2002-07-03 Thread JJ Harrison
Thx. I a bit of a n00b so don't always understand. I is a lot clearer now thank you -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:20020703212954.BFUU903.sccrmhc03.attbi.com@[192.168.1.103]... > >when I echo menu($id) I get the current

[PHP] storing echo to MySQL or converting to a variable

2002-07-03 Thread Jose Arce
Hi, i want to know if i can convert this: echo fgets($conexion,256); to a variable, or store it to a MySQL database, and then email that variable or data in the MySQL database...thx :D _ MSN Fotos: la forma más fácil de compartir

[PHP] Re: Recognition: Richard Lynch

2002-07-03 Thread Manuel Lemos
Hello, On 07/03/2002 07:01 PM, Ed Lazor wrote: > Richard Lynch: It's amazing to see how many helpful and informative > messages you're able to rattle off on a daily basis. You're a major > contribution to the community - Good job! Yeah, for many years Richard is entitled to the Mr-PHP-Help awa

Re: [PHP] Multiple Forms and 1 SQL table

2002-07-03 Thread Alberto Serra
CM wrote: > What do you do if you have a huge form that you want broken up into several > different forms but each time the submit button is pressed the info is saved > to the sql table. > > Do you just create the table on the first form submit and then on each > subsequent form you just update t

Re: [PHP] Multiple Forms and 1 SQL table

2002-07-03 Thread Analysis & Solutions
On Wed, Jul 03, 2002 at 07:18:45PM -0600, CM wrote: > > What do you do if you have a huge form that you want broken up into several > different forms but each time the submit button is pressed the info is saved > to the sql table. > > Do you just create the table on the first form submit and then

Re: [PHP] default/optional parameters in function

2002-07-03 Thread Analysis & Solutions
On Wed, Jul 03, 2002 at 06:03:59PM -0800, Chris Lott wrote: > On Wed, 3 Jul 2002, Analysis & Solutions wrote: > > > Note use of single quotes around the array key names, as well. > > Why is this better-- I assume because PHP doesn't have to check for > variables to interpolate with single quotes

Re: [PHP] default/optional parameters in function

2002-07-03 Thread Chris Lott
On Wed, 3 Jul 2002, Analysis & Solutions wrote: > On Wed, Jul 03, 2002 at 05:44:28PM -0800, Chris Lott wrote: > > > > I have a function that writes meta tags... if a tag (or tags) is not > > specified, then it gets a default value... is there a cleaner way to > > do this? > > Not that I can think

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > Alberto Serra wrote: >> If you want to avoid even this small window, just store on a db file >> the session numbers you give away, along with the IP address of the >> user who got it. Then when you get a new request for that session >> check the IP you are getting it f

Re: [PHP] default/optional parameters in function

2002-07-03 Thread Analysis & Solutions
On Wed, Jul 03, 2002 at 05:44:28PM -0800, Chris Lott wrote: > > I have a function that writes meta tags... if a tag (or tags) is not > specified, then it gets a default value... is there a cleaner way to > do this? Not that I can think of. I do have some thoughts, though... > if ($type["desc

[PHP] default/optional parameters in function

2002-07-03 Thread Chris Lott
I have a function that writes meta tags... if a tag (or tags) is not specified, then it gets a default value... is there a cleaner way to do this? function print_pmeta ($type) { if ($type["description"]) { print ''; } else { print ''; } if ($type["keywords"]) { print '';

Re: [PHP] Authentication

2002-07-03 Thread Jason Wong
On Thursday 04 July 2002 09:09, Chris Shiflett 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 necess

[PHP] Multiple Forms and 1 SQL table

2002-07-03 Thread CM
What do you do if you have a huge form that you want broken up into several different forms but each time the submit button is pressed the info is saved to the sql table. Do you just create the table on the first form submit and then on each subsequent form you just update the table? -- PHP

Re: [PHP] Authentication

2002-07-03 Thread Chris Shiflett
Alberto Serra wrote: > Chris Shiflett wrote: > >> How do sessions help against this? Well, they don't solve the problem >> entirely, of course, but the unique ID you pass around won't be the >> same unique ID *every* time that user visits the site. So, you at >> least have a good chance of mak

Re: [PHP] Authentication

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > How do sessions help against this? Well, they don't solve the problem > entirely, of course, but the unique ID you pass around won't be the same > unique ID *every* time that user visits the site. So, you at least have > a good chance of making the window of time that a

[PHP] mySQL and phpMyAdmin

2002-07-03 Thread Jadiel Flores
Hi, I installed php and mysql today and I'm trying to use phpMyAdmin but I'm receiving the error message: cannot load MySQL extension, please check PHP Configuration. I checked the php.ini and couldn't find anything related, my configure command says '--with-mysql=shared,/usr' and I have no idea

Re: [PHP] odbc_**** failing?

2002-07-03 Thread Analysis & Solutions
David: On Wed, Jul 03, 2002 at 02:19:28PM -0700, David Busby wrote: > > $rs = odbc_exec($db, "spGetItems"); Uh, what is "spGetItems?" The second argument of odbc_exec() is supposed to be a query string. That doesn't look like a query string. --Dan -- PHP classes that make w

[PHP] Question about using XSLT_Process?

2002-07-03 Thread john2 . mccarty
Hello, I'm trying to use xslt_process with $arguments like in the third example in the online documentation, but I'm not having any luck. I can run the same .xml and .xsl using the simple examples, but I cannot when using the $arguments example. I would really like to get this figured out, but

[PHP] Configuration problems concerning sessions.

2002-07-03 Thread Mannequin*
Hi all. I'm having problems using sessions. I've been able to narrow it down to a configuration problem, but I have no idea what to look for in php.ini or whatever. Anyway, let me explain a bit more. For some odd reason php on my local machine will not pass any variables when you either reload th

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Alberto Serra
Chris Shiflett wrote: > Jean-Christian Imbeault wrote: >> In general how does one go about hardening a PHP script. i.e. making >> it as "hacker-proof" as possible There is no such thing as a 100% secure solution (this applies to everything running on a computer, PHP included). But basically you

[PHP] opening pdf file in new window with a POST operation

2002-07-03 Thread Pete James
This is a strange one... test https://my.server/reports.php"; method="post" target="_blank"> https://my.server/reports.php"; method="get" target="_blank"> These forms are identical with the exception of the post/get methods. A PDF file is being dynamically generated and displayed

Re: [PHP] New emalloc() error?

2002-07-03 Thread David Busby
Wow, Thats what that means? There must be some error. The procedure I'm trying to run doesn't return that much data and it will run via 'isql'. Anything else I should check? /B Lazor, Ed wrote: > wow, 107megs of ram in one process is impressive. Have you checked your > php.ini max memory s

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Analysis & Solutions
Hey Clay: On Wed, Jul 03, 2002 at 03:25:42PM -0700, Clay Loveless wrote: > > Looks like your conclusion is the same as mine: the object variables are > readable within the handler functions, but they are not writeable. I don't think that's an accurate description. The object variables are wr

Re: [PHP] Authentication

2002-07-03 Thread Chris Shiflett
Lazor, Ed wrote: >Use sessions. Create a user_id and pass that as a session variable rather >than the user's actual login and password. > >-Original Message- >On my site, when a user logs in, their password is encrypted using md5() and >the username and encrypted password is then passed

RE: [PHP] New emalloc() error?

2002-07-03 Thread Lazor, Ed
wow, 107megs of ram in one process is impressive. Have you checked your php.ini max memory setting? Is there sufficient ram / swap file space? Got enough free drive space? -Original Message- List, I think I saw this one on here before...when reading/writing the database I get

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Chris Shiflett
Jean-Christian Imbeault wrote: > I'm writing my first commercial site and of course I am thinking about > security. I'm worried about someone using a flaw in my PHP script > logic to access information they shouldn't. > > I've read the PHP books I have and Googled around but can't quite find >

[PHP] New emalloc() error?

2002-07-03 Thread David Busby
List, I think I saw this one on here before...when reading/writing the database I get this when executing odbc_exec(...); What was the fix? FATAL: emalloc(): Unable to allocate 1073784417 bytes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Recognition: Richard Lynch

2002-07-03 Thread Greg Donald
On Wed, 3 Jul 2002, Lazor, Ed wrote: >Richard Lynch: It's amazing to see how many helpful and informative >messages you're able to rattle off on a daily basis. You're a major >contribution to the community - Good job! Absolutely. ..and not only does Richard offer lots of great answers in a

Re: [PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Dan, Thanks for your reply ... Glad to be helpful on the one tidbit I uncovered! Looks like your conclusion is the same as mine: the object variables are readable within the handler functions, but they are not writeable. Hence your use of the global variables ... That seems to be the only worka

RE: [PHP] Using PHP to access a Microsoft SQL server

2002-07-03 Thread Lazor, Ed
It sounds like you need to give your apache account access to the database. You can test this by logging in as root and running "su - apache". You'll be logged in as Apache; try running the commands you used to test everything when logged in as root. You'll probably get errors that will hopefull

[PHP] Recognition: Richard Lynch

2002-07-03 Thread Lazor, Ed
Richard Lynch: It's amazing to see how many helpful and informative messages you're able to rattle off on a daily basis. You're a major contribution to the community - Good job! This message is intended for t

[PHP] Using PHP to access a Microsoft SQL server

2002-07-03 Thread David Busby
List, Has anyone done this before? I got it to work for my root account on my computer but I cannot get access from my PHP scripts when I run under the "apache" user? What the dilly yo? Setup: RH7.3 PHP4 unixODBC freeTDS -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Analysis & Solutions
On Wed, Jul 03, 2002 at 12:00:50PM -0400, Martin Clifford wrote: > > Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can > be a number, but it has to follow a letter? Or would you just do > [a-zA-Z][0-9] to do that? Your second question/statement is correct. --Dan --

RE: [PHP] Exim sendmail faults

2002-07-03 Thread Lazor, Ed
Are you able to do an nslookup of these domains from the server? -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Exim sendmail faults I apologize; this may be more a question for the people in ph

Re: [PHP] FW: help with PHPwebsite

2002-07-03 Thread Analysis & Solutions
You started the same thread yesterday. I pointed you to the answer. You replied, saying, in essence, that you don't want put any real effort or thought into learning. Now, you're starting a whole new thread. Sad. --Dan -- PHP classes that make web design easier SQL So

Re: [PHP] adding a variable to a variable name

2002-07-03 Thread Bogdan Stancescu
You are on the right track with the reasoning: $unsetA = "level" . $i . "Name"; unset($$unsetA); HTH Bogdan Tom Beidler wrote: >I'm wondering if this can be done, and if so, what's the proper way to do >it. > >For the current issue I'm trying to unset some variables with common names >and I

RE: [PHP] parsing of SSI scripts.

2002-07-03 Thread Lazor, Ed
Of course. Btw... You aren't running into a PHP limitation. You're experiencing an issue of programming design and how to integrate different technologies. If anything, Apache is what's limiting you, because of the order of presedence in how it processes files. >From what you've said, you want

[PHP] Re: Other than substr

2002-07-03 Thread Richard Lynch
>I need to show up some data from a DB which consist of phone numbers >with area code. They’re stored like () . What is the best >approach to print them into some textboxes so they can be edited? I’m >using substr but area codes (inside parenthesis) goes from 3 to 5 >numbers, so someti

[PHP] Re: GET data in URL

2002-07-03 Thread Richard Lynch
>I just installed php 4.2.1 and i have a couple of URL's that pass variables >through links (www.domain.com/index.php?test=123) and when I run that it >comes up on the next page and the test variable is empty? I can't figure >this out but if I had to guess I would think it's some setting in the >

[PHP] Re: Authentication

2002-07-03 Thread Richard Lynch
>On my site, when a user logs in, their password is encrypted using md5() and >the username and encrypted password is then passed from page to page using >hidden form inputs (clicking on a link submits the form using POST). >Does anyone have any comments on this method e.g. security wise? I know I

[PHP] Re: uploading a file via php - i need some simple code

2002-07-03 Thread Richard Lynch
>I am having the worst trouble trying to write a tiny simple script that >will upload a file. Below is my code - can anyone tell me why it's not >working > >HTML > >enctype="multipart/form-data"> > > > > > >PHP (upload.php) > >$filename = "/test.txt"; >if (!move_uploaded_file($userf

[PHP] Re: $_SESSION (turned off, destory??)

2002-07-03 Thread Richard Lynch
>Say that the end-user closed the browser(s) without logging off. The >$_SESSION can not be destroyed because the broswer(s) is closed. So, if hte >end-user did log off and close the browser(s). How can I destroy the >$_SESSION since the session_register() & session_destroy() can not be used >w

[PHP] Re: Problem With ora_do

2002-07-03 Thread Richard Lynch
>I'm having a weird problem with ora_do. It works fine as long as I don't >have a "WHERE" clause in the query. For example: > >select * from table_name > >works just fine but > >select * from table_name where col_name = value > >returns nothing. > >However, if I use ora_open, ora_parse and or

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Richard Lynch
>magic_quotes is convenient for newbies, but after a while you'll find it >only trips you up, as you've discovered. Odd. In the 5 years I've been doing PHP, magic quotes has never hurt me in the least. It's just more convenient than calling addslashses() all over the place. And do you really

[PHP] Re: addslahes and magic quote woes

2002-07-03 Thread Richard Lynch
>I am trying to make my PHP safe against malicious data user inputs. >Reading up on this most people suggest using addslashes(), magic_quotes >on and other things like mysql_escape_string(); > >But I have been running into the problem that I mess up the user's input >because I use more then one

[PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread Richard Lynch
>I want to show info when my docs are viewed though my stats program. I have >decieded the best way would be to put the info into a DB through php file >then output the PDF, Excel, Zip or Powerpoint file. > >Only trouble is I have no Idea how to do this Stuffing the actual data into your database

[PHP] Re: Program executing in PHP. Please help

2002-07-03 Thread Richard Lynch
>$output = shell_exec("uudeview -i /bla/bla.txt -p /bla/bla/"); >echo ""; >echo $kick_my_ass; >echo ""; >?> > And I get nothing :(. Script like below: Well, no... Your data is in $output, and you are echo-ing out $kick_my_ass... Try echo $output >$output = shell_exec("uudeview"); >echo ""; >ec

[PHP] Re: Submitting Form Data

2002-07-03 Thread Richard Lynch
>I have a php script that performs a query and then dynamically builds a >section of a page for every row returned. Each section has some fields and >three submit buttons. My problem is this. If I make a change to one >particular section, how can I submit the form passing only the relevant >sectio

[PHP] Re: synchronizing php functions

2002-07-03 Thread Richard Lynch
>Well I have a system that people can login to, and I want to produce an >array (or something of the sort) >that holds who is logged in so that I can monitor it. Aha! The "who's logged in right now" feature! :-) Problem #1. First, you need to clearly define "logged in" Am I logged in for the

[PHP] Re: help with PHPwebsite

2002-07-03 Thread Richard Lynch
> >I get the following error when i try to install an app >called "PHPwebsite" ( http://phpwebsite.appstate.edu/ ) > >Warning: Cannot add header information - headers already sent by > (output started at C:\apache\htdocs\php\setup\index.php:9) >in C:\apache\htdocs\php\htmlheader.php on line 30 > >

[PHP] Re: Does Location: headers constantly

2002-07-03 Thread Richard Lynch
>1) does this HTTP protocol work with all browsers? Every one I've ever seen... But it *might* not work with, say, Mozilla 1.0 from 1989 or so... :-) >2) are there any complications that need to be addressed Yes. Once you decide to send a Location: header, all bets are off on the other header

[PHP] Re: Problem with menu

2002-07-03 Thread Richard Lynch
>when I echo menu($id) I get the current page's title. > >How do I print it's peers and it's single parent? You will need a second query to ask for all the children of the parent: $peer_query = "select id as child_id, title from meta_data where pid = $pid"; $peers = mysql_query($query) or error_

[PHP] Re: Stock Prices

2002-07-03 Thread Richard Lynch
>How would I get recent stock prices in a page? I obviously need to get >this from some source. It's so easy, you have to pinch yourself to make sure you're not dreaming... :-) http://www.sometocksite.com') or die("Could not read stock page"); $stockhtml = implode('', $stockhtml); # You now

[PHP] odbc_**** failing?

2002-07-03 Thread David Busby
List, The following code is erroring for me and I can't figure out why $db = odbc_connect("something", "something", "passwd"); printf("%s", $db); // Prints ID 1 // Hangs here it looks like $rs = odbc_exec($db, "spGetItems"); // Never gets here while(odbc_fetch_row($rs)) { printf("

Re: [PHP] parsing of SSI scripts.

2002-07-03 Thread Paul Roberts
>> I think I misunderstood your question. You have a Perl script that >> returns HTML and SSI and you want that string, returned to PHP, to be >> parsed by Apache, so the SSI is evaluated, right? you can do this with apache 2 but not apache 1 Paul Roberts [EMAIL PROTECTED] ++

[PHP] Re: adding a variable to a variable name

2002-07-03 Thread val petruchek
check for eval function -- Sincerely, val petruchek "Tom Beidler" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm wondering if this can be done, and if so, what's the proper way to do > it. > > For the current issue I'm trying to unset

Re: [PHP] Warning: Undefined Index?

2002-07-03 Thread 1LT John W. Holmes
> // Message on my web page > Warning: Undefined index: mode in /var/www/html/inc/header.php on line 3 > > // My Script Here > 1: 2: // These are globals on every page > 3: $mode = $_GET['mode']; > 4: $si_uuid = $_GET['si_uuid']; > 5: $po_uuid = $_GET['po_uuid']; PHP is warning you that 'mode' i

  1   2   3   >