Re: [PHP] IP security check

2001-08-07 Thread René Moonen
Try this code: if(getenv("HTTP_X_FORWARDED_FOR")) { $ip=getenv("HTTP_X_FORWARDED_FOR"); } else { $ip=getenv("REMOTE_ADDR"); } $host = gethostbyaddr($ip); And check out http://www.php.net/manual/en/function.getenv.php However, I think it is very unsafe to base your payment transactions on

Re: [PHP] Multiple line spanning regexp

2001-08-07 Thread Brad Hubbard
On Wed, 8 Aug 2001 14:41, Brad Hubbard wrote: > I'm trying to delete everything in a that spans multiple lines. > > I just want to get rid of the whole thing and thought it would be > relatively straight forward but I'm getting nowhere. > > The list takes the form; > > > Blah > http://somewhere

Re: [PHP] user's ip

2001-08-07 Thread Adrian D'Costa
On Tue, 7 Aug 2001, Renze Munnik wrote: > On Tue, Aug 07, 2001 at 03:55:25PM +0530, Adrian D'Costa wrote: > > Hi, > > > > I am trying to get the ip address of any user browsing a particular page. > > > > I tried $REMOTE_ADDR but that give me only the remote address. What would > > be the best

Re: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Stefen Lars
I just have just found this article, that describes this technique: http://apachetoday.com/mailprint.php3?action=pvFrom: Maxwell Hung <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [PHP] Insecurity with PHP autho

[PHP] regular expression database searches

2001-08-07 Thread Joe Sheble \(Wizaerd\)
I know this would probably be better placed on the mySQL mailing list, but alas I do not subscribe to it and am hesitant to do so to ask one question. Enough PHP users use mySQL that perhaps the answer could be found here. In searching through a text field in a mySQL database, I would like to sea

Re: [PHP] splitting text after 25 words

2001-08-07 Thread karthik
Hi, Best way i guess would be traverse the whole string and check for space. Have a counter var which keeps count of the space. At the 25th occurence do something like this - $text_a = substr($text, 1, $i); i assume that $i is the increment var in the loop. $text_b = substr($text, $i+1); This

Re: [PHP] XML/XPath Position() Syntax

2001-08-07 Thread Girish Nath
Hi Thanks, the "and" didn't work, however a "|" did the business :) product[position() > 25 | position() < 50 ] Maybe there;s smth up with the class i'm using (www.phpxml.org) Gish - Original Message - From: "Gyozo Papp" <[EMAIL PROTECTED]> To: "Girish Nath" <[EMAIL PROTECTED]>; <[

Re: [PHP] splitting text after 25 words

2001-08-07 Thread Chris Lambert
$teaser = explode(" ", $article, 26)); array_pop($teaser); $teaser = implode(" ", $teaser); /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Justin French <[EMAIL PROTECTED]>

[PHP] splitting text after 25 words

2001-08-07 Thread Justin French
Hi all, I'd like to split a text block at 25 words, as a teaser for the full article. Now I know how to split at a certain character, but i don't want a half word or anything, so I want (i guess) to hunt for the 25th occurence of " " (a space), and split $text into two new variables, $text_a

Re: [PHP] close browser

2001-08-07 Thread Evan Nemerson
On Tuesday 07 August 2001 20:20, you wrote: > You wrote: > > > You wrote: > > > > Can anybody tell me what the code to close the browser is? > > > > > > ALT+F4. ;) > > > > PHP cannot execute client side actions, afaik. > > > > - k > > 'Twas a joke. See the winky smilie? You may all laugh now.

Re: [PHP] can i compile php as cgi-module and apache-module on the one server?

2001-08-07 Thread Evan Nemerson
On Tuesday 07 August 2001 22:08, you wrote: > Help yes. when compiling php just do "./configure" then "make" and "make install" first. then go back and "./configure --with-apxs" or "--with-apache" "make", "make install". There are problems if you compile as a module first, so don't do it. --

[PHP] can i compile php as cgi-module and apache-module on the one server?

2001-08-07 Thread liufeng
Help

Re: [PHP] large commercial websites that use php?

2001-08-07 Thread Balaji Ankem
SAFEWEB.COM The Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law

Re: [PHP] large commercial websites that use php?

2001-08-07 Thread ReDucTor
sourceforge.net planetsourceocde.com f2s.com easydns.com hell, just use a search engine, and do a search for say .php .gov .edu and you will find a great load of sites that have pages done it php... - James "ReDucTor" Mitchell - Original Message - From: "jose d lopez" <[EMAIL PROTECTED]>

[PHP] Multiple line spanning regexp

2001-08-07 Thread Brad Hubbard
I'm trying to delete everything in a that spans multiple lines. I just want to get rid of the whole thing and thought it would be relatively straight forward but I'm getting nowhere. The list takes the form; Blah http://somewhere";>Blah So far I've got this; $response = preg_replace( "/()

[PHP] large commercial websites that use php?

2001-08-07 Thread jose d lopez
I'm trying to convince some suits that PHP is widely used on large commercial websites- not just intranets and small sites. I've seen some posts on this, but since this mailing list keeps getting bigger- I wanted to put the question out again: What large commercial websites use php? Some that

Re: [PHP] sample or tutorial for conditional pulldown menus

2001-08-07 Thread Peter Houchin
Why can't you use something like: if ($var){ '.$row[part].''; } ?> } or something of that nature .. will save as steve said a page refresh and will populate the select box given a certain condition. Peter >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm >list-help:

Re: [PHP] close browser

2001-08-07 Thread Ryan Fischer
You wrote: > > You wrote: > > > Can anybody tell me what the code to close the browser is? > > > > ALT+F4. ;) > PHP cannot execute client side actions, afaik. > > - k 'Twas a joke. See the winky smilie? You may all laugh now. ;) -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboar

Re: [PHP] sample or tutorial for conditional pulldown menus

2001-08-07 Thread Steve Werby
"Tom Beidler" <[EMAIL PROTECTED]> wrote: > I have a client that would like to duplicate something they've seen on one > of their competitor's web sites. It's for an automotive parts supplier and > they would like to build a search engine for different make, model, and year > applications. Since a

Re: [PHP] myPhpAdmin/mysql/php/ Problem

2001-08-07 Thread J. Simpson
I've tried every combination of single and or double qoutes i can think of. I don't thats it. thanx though David Robley wrote: > On Tue, 7 Aug 2001 01:52, Julian Simpson wrote: > > who's fault is this?: > > I have a table 'cdrequest' it has columns 'albumfill' and > > 'releasedatefill' among o

Re: [PHP] close browser

2001-08-07 Thread kath
PHP cannot execute client side actions, afaik. - k - Original Message - From: "Ryan Fischer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 10:39 PM Subject: Re: [PHP] close browser > You wrote: > > Can anybody tell me what the code to

Re: [PHP] user's ip

2001-08-07 Thread Chris Birmingham
I would use $HTTP_SERVER_VARS["REMOTE_ADDR"] or $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"] to return the IP address.. I have seen, people using if($ip == $REMOTE_ADDR) { // do whatever } but in some configurations of PHP this can be a bad thing.. index.php?REMOTE_ADDR=10.0.0.1 would override t

Re: [PHP] close browser

2001-08-07 Thread Ryan Fischer
You wrote: > Can anybody tell me what the code to close the browser is? ALT+F4. ;) -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

[PHP] ¡îÓòÃû×¢²á¿Õ¼äÉêÇë¸÷ËÍÈý¸ö´Î¼¶ÓòÃû»¹Ãâ·ÑÊÔÓÃ!

2001-08-07 Thread ÍøÂçʱ´ú
×ð¾´µÄÅóÓÑ£¬ÄúºÃ£¡ ·Ç³£¸ÐлÄúµÄä¯ÀÀ£¬Èç¹ûÄúÕýΪѰÕÒÒ»¸ö¸üºÃµÄISP¶ø·³ÄÕ£¬ÄÇôÎÒÃÇÍøÂçʱ´úhttp://www.now.net.cnΪÄúÌṩÁË×î¼ÑµÄÑ¡Ôñ£¡ ¡î ÓòÃû×¢²á ×¢²áÓòÃûÔùËÍ3¸ö´Î¼¶ÓòÃû(´øVDNS)£¡ ͬʱÉêÇë¿Õ¼äÔÙÔùËÍ3¸ö´Î¼¶ÓòÃû£¡ ¡îÐéÄâÖ÷»ú Ò» ÌØ¶àÓÅ»Ý ·²ÔÚ8.1µ½9.1×¢²áÓòÃûͬʱÉêÇë¿Õ¼äËÍ6¸ö´Î¼¶ÓòÃû£¡

RE: [PHP] Images

2001-08-07 Thread Matthew Loff
Resizing a whole page of large images on the fly every time is going to put a heavy load on your CPU... If you insist on doing that, see the PHP image functions available through the GD library... http://www.php.net/manual/en/ref.image.php I recommend you use PHP 4.0.6 with GD 2.0.x... With

Re: [PHP] Images

2001-08-07 Thread Hong Zhang
On Tue, 7 Aug 2001, Fernando Avila wrote: > Date: Tue, 7 Aug 2001 22:25:39 +0100 > From: Fernando Avila <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [PHP] Images > > Hello php-general, > > Hi, I'm having some troubles because i need to resize an image. > I mean, i have a page that

[PHP] 3rd include

2001-08-07 Thread Drew P. Vogel
Has the "3rd include" bug (where variable definitions ar "lost" at the 3rd include), been fixed yet? --Drew Vogel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] Re: mysql escape character \'

2001-08-07 Thread David Robley
On Wed, 8 Aug 2001 09:28, hassan el forkani wrote: > thanks everybody for your help, i actually had the solution before > posting :)) > > > my question was not a 'how to' but why do we need to escape single > quotes on unix systems and not on windows using the same version of php > and mysql? Yo

Re: [PHP] subroutines?

2001-08-07 Thread Miles Thompson
Jason pretty well suggested what to use. PHP scripts with a lot of logic in them usually have all the function definitions and logic at the top of the script and the display stuff at the end. Again, as I'm always recommending, have a look at Julie Meloni's Thickbook tutorials, particularly the

[PHP] Images

2001-08-07 Thread Fernando Avila
Hello php-general, Hi, I'm having some troubles because i need to resize an image. I mean, i have a page that lists every notice in the page with a small picture, and if you click over the notice you get a full article with the big photograph. But i want to put in the server only one pi

[PHP] Re: mysql escape character \'

2001-08-07 Thread hassan el forkani
thanks everybody for your help, i actually had the solution before posting :)) my question was not a 'how to' but why do we need to escape single quotes on unix systems and not on windows using the same version of php and mysql? At 21:44 07/08/01, you wrote: >Dear PHP-General (bit of strange,

Re: [PHP] Help me please.(Running stand-alone php)

2001-08-07 Thread Tina
The solution: You have to configure php with --enable-discard-path as in: ./configure --without-apache --enable-discard-path before you compile it. This is documented here: http://www.php.net/manual/en/security.php in the section: Case 4: PHP parser outside of web tree Now when you do the #!/p

FW: [PHP] Rewriting a textfile for import into a db..

2001-08-07 Thread Ryan Christensen
Nevermind.. I discovered that this feature was built into MySQL already! Here's the cmd I'm using: LOAD DATA LOCAL INFILE '/home/user/whatever.txt' INTO TABLE Table FIELDS TERMINATED BY '|' ENCLOSED BY '\"' ESCAPED BY '\\' LINES TERMINATED BY '\n' .. for anyone who might have been looking for t

Re: [PHP] close browser

2001-08-07 Thread Christopher CM Allen
Thanks to all for the replies, I am looking into many options. One of which is traveling back in time and creating the table correctly ;p -ccma - Original Message - From: Robert V. Zwink <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Christopher CM Allen <[EMAIL PROTECTED]> Sent: Tues

[PHP] sample or tutorial for conditional pulldown menus

2001-08-07 Thread Tom Beidler
I have a client that would like to duplicate something they've seen on one of their competitor's web sites. It's for an automotive parts supplier and they would like to build a search engine for different make, model, and year applications. Since a picture is worth a thousand words here's a url to

Re: [PHP] Traceroute without traceroute command!

2001-08-07 Thread Andreas D. Landmark
At 07.08.2001 21:12, James Crowley wrote: >Hi, > I would like to perform a traceroute with PHP. However, my ISP >has disabled the traceroute command normally available in >/usr/sbin/traceroute. Is there any other way? > >Regards, > >- James The easiest one, byfar, is to grab a binary suit

Re: [Re: [PHP] user's ip]

2001-08-07 Thread Andreas D. Landmark
At 07.08.2001 13:06, Renze Munnik wrote: >Ahh see, that wasn't clear in the question. Yeah... that's true. >Pain in the ass those proxies. They're also realy useful while >testing your (dynamic) site. NOT!!! "Hey, what's this? I thought I'd >realy changed that error. How's this possible?", "Di

[PHP] Re: File Uploads

2001-08-07 Thread Damiano Ferrari
Scott, I am a Windows/ASP guy who just recently started messing around with PHP, so maybe I am completely off path, however I found this post:

RE: [PHP] subroutines?

2001-08-07 Thread Jason Murray
> How does PHP compensate for an apparent lack of > traditional subroutines (as with Perl, etc.)? It seems > like I'm going to have to script separate pages for > ea. set of processes in my search (i.e., print FORM, > print results for SEARCH, > print DETAILS, etc.). Please tell me I'm mistaken!

[PHP] subroutines?

2001-08-07 Thread CGI GUY
How does PHP compensate for an apparent lack of traditional subroutines (as with Perl, etc.)? It seems like I'm going to have to script separate pages for ea. set of processes in my search (i.e., print FORM, print results for SEARCH, print DETAILS, etc.). Please tell me I'm mistaken! ___

RE: [PHP] Uptime script

2001-08-07 Thread Andreas D. Landmark
At 07.08.2001 03:51, Craig Westerman wrote: > >I'm wanting to chart the server load average data displayed when you run >The correct way to do that would be to read it straight from the source, >(eg. /proc/loadav for linux with procfs). > >That would be much quicker, and it would also save your se

Re: [PHP] Help me please.(Running stand-alone php)

2001-08-07 Thread Tina
On 2001-08-07 at 15:39 Tina wrote: >Because you are running this as a SSI you need to put the folling line at >the top of your php script: > >#!/path/to/php > >usually: > >#!/usr/local/bin/php > >Then your script must be executeable by the webserver user just like any >other cgi script. Actually

[PHP] Rewriting a textfile for import into a db..

2001-08-07 Thread Ryan Christensen
I have a few thousand entries that have been (until now) stored in text-files that I need to get imported into a MySQL database for a new system I'm writing that makes use of them. So.. the long and short of it, I was wondering if someone could help me write a script (or supply me with one.. Perl

Re: [PHP] Help me please.(Running stand-alone php)

2001-08-07 Thread Tina
Hi, Because you are running this as a SSI you need to put the folling line at the top of your php script: #!/path/to/php usually: #!/usr/local/bin/php Then your script must be executeable by the webserver user just like any other cgi script. YTina. On 2001-08-07 at 12:35 miguel valero wrot

[PHP] XML/XPath Position() Syntax

2001-08-07 Thread Girish Nath
Hi I'm trying to select XML nodes 25 to 50 using the position() function in the XPath class. I can select greater or less than but can't figure out a "between". Anyone have the correct syntax for this ? eg "//product[position() >25]" Thanks Gish -- PHP General Mailing List (http://www.ph

RE: [PHP] close browser

2001-08-07 Thread Robert V. Zwink
Did you look in the manual? http://www.php.net/manual/en/function.strtotime.php strtotime() -- Parse about any english textual datetime description into a UNIX timestamp This is probably what you are looking for. As far as converting a CHAR (assuming) type column in MySQL to DATE, I think you

[PHP] Apache Directives

2001-08-07 Thread Sean Cook
I am trying to figure out a way to run an application such that regardless of the url I achieve the same results. This is similar to the way apache/mod_perl works ... example SetHandler perl-script PerlHandler somehandler::foo now anything that access /login/salkdfjaslkjf

RE: [PHP] selecting words

2001-08-07 Thread Alfredeen, Johan
Jamie, There was a post earlier very similar to this. If you have a database, you could use SELECT LEFT(mycolumn, 100) FROM mytable WHERE ... Without a db, you can use the PHP substring function: substr() Hope this helps, Johan Alfredeen www.pongworld.com -Original Message- From: J

[PHP] selecting words

2001-08-07 Thread Jamie Saunders
Hi, What I'd like to do is take a string (paragraph) of text consisting of say 500 words and display only the first 100 words. Is there a function able to do this? Thanks. Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

RE: [PHP] Splitting Text

2001-08-07 Thread Robert V. Zwink
For future reference using explode and counting the words is not the correct way to do this. Your array could be huge, and if you have multiple requests to the page this would be a horrible idea. I believe the correct way to do this is to use MySQL inherent function SUBSTRING_INDEX(str,delim,cou

[PHP] Q: Kill all line brk's and white space on output?

2001-08-07 Thread Marcus James Christian
Hello, I've got this cool auto add email mailing list that is simply a .txt file that PHP writes to. So the visitor goes to a form types in their email addy and is automatically added to the .txt file which is then read when the boss wants to send out to the entire list. This thing works perfec

Re: [PHP] mySQL date converting

2001-08-07 Thread Bjorn Van Simaeys
Hi, You could write a PHP script to get all the current values (I presume that you've put varchar as datatype), parse them with string functions and convert it in the way you'd like them to be. All this is not so difficult to make. I prefer to store my date/times in the UNIX timestamp form. I u

[PHP] Determining browser encryption strength

2001-08-07 Thread Bolivar Shagnasty
My web site it going to be the starting point with a link to an application that only works with browser at 128bit strength. What I would like to do is automatically determine if the user doesn't have a compatible browser and then direct them where to get the correct browser. Does anyone know

[PHP] Hi all! How to rite a cmp function for usort()?

2001-08-07 Thread Thomas Schmid
Hallo, my ISP doesn´t support natcasesort(), can anybody tell me how to write a cmp function? I couldn´t find a documentaton about it. Sorry for my bad english I´m german. Greetings Dyo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [PHP] IP security check

2001-08-07 Thread Tyler Longren
$REMOTE_ADDR will give you the user's IP...it can't get the "un-spoofed" ip though. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 7 Aug 2001 15:37:09 -0500 "matt" <[EMAIL PROTECTED]> wrote: > For secure payment pages, I need for the code to determine

Re: [PHP] close browser

2001-08-07 Thread Christopher CM Allen
Greetings: I have a field entry in a MYQSL table that stores the date as: August 02, 2001 :( Is there anyway to convert this to 08-02-2001 outside of the table via php? Better yet is there ayway I can go back into my table and change these dates into a better format for computation? -- P

[PHP] IP security check

2001-08-07 Thread matt
For secure payment pages, I need for the code to determine the persons IP address, even if they have a "spoofer" running. Is this possible? Getting around the spoofer in order to catch criminals using illegal credit card #'s.. thanks -matt (cs student) -- PHP General Mailing List (http://www.

Re: [PHP] close browser

2001-08-07 Thread Bjorn Van Simaeys
Hi, Yes, Javascript can do this. Look at this: this.window.close(); You can wrap this in a tag as well. Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- Jeremy Morano <[EMAIL PROTECTED]> wrote: > Hi, > > Can anybody tell me what the code to close the > browser is? > > -- > PHP

Re: [PHP] close browser

2001-08-07 Thread Tyler Longren
PHP can't. Javascript, however, does prompt before closing a browser window. On Tue, 7 Aug 2001 13:11:16 -0700 "Ryan Christensen" <[EMAIL PROTECTED]> wrote: > Pretty sure it can, it just prompts the user before it is closed.. > (otherwise JS would have a BIT too much power :) > > Ryan > > > -

[PHP] Sending information to a script on another host....

2001-08-07 Thread Brandon Orther
Hello, I am trying to make a script that automates domain name registration. What I need my script to do is send information to a script that opensrs runs to activate a pending order. But I don't want to redirect the user there. I only want to send information there and then take the user to a

RE: [PHP] close browser

2001-08-07 Thread Ryan Christensen
Pretty sure it can, it just prompts the user before it is closed.. (otherwise JS would have a BIT too much power :) Ryan > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 1:12 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subjec

Re: [PHP] close browser

2001-08-07 Thread Tyler Longren
PHP can't do that because php is serverside. You would need Javascript. I'm not even sure if Javascript can do this. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 7 Aug 2001 16:10:51 -0400 "Jeremy Morano" <[EMAIL PROTECTED]> wrote: > Hi, > > Can any

[PHP] close browser

2001-08-07 Thread Jeremy Morano
Hi, Can anybody tell me what the code to close the browser is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Traceroute without traceroute command!

2001-08-07 Thread James Crowley
Hi, I would like to perform a traceroute with PHP. However, my ISP has disabled the traceroute command normally available in /usr/sbin/traceroute. Is there any other way? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# -

Re: [PHP] Help me please.(Running stand-alone php)

2001-08-07 Thread Bjorn Van Simaeys
Miguel, I see that your script has the extension .html Rename that file to .php and it normally should work. Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- miguel valero <[EMAIL PROTECTED]> wrote: > Unfortunately the -q parameter didn't fix the > problem. > > Is anybody in the PHP ma

Re: [PHP] MySQL connection

2001-08-07 Thread Bjorn Van Simaeys
Hi, I think BRACK a.k.a. Jouri means that the connection string (from the PHP pages) would be visible in the client's browser once the SQL server stops running. However, I am not so sure about this as all commands are processed on the server - it will, however display an error message that the S

RE: [PHP] MySQL connection

2001-08-07 Thread Ryan Christensen
I'm curious as to how the "hacker" would see all this information (the username.. password, etc..) just by going to a site where the SQL backend was down? Ryan > -Original Message- > From: BRACK [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 12:36 PM > To: [EMAIL PROTECTED]

Re: [PHP] MySQL connection

2001-08-07 Thread Tyler Longren
If the SQL server is down how will he hack it? That's like hacking a webserver that doesn't exist. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 7 Aug 2001 21:35:58 +0200 "BRACK" <[EMAIL PROTECTED]> wrote: > I just wanned to bring the issue of securit

[PHP] MySQL connection

2001-08-07 Thread BRACK
I just wanned to bring the issue of security of MySQL connection: Let us imagine that SQL server was down for some hours (of course without us knowing it) and at the same hours our SQL site was visited by some kind of hacker, he can see on his screen all our SQL connection info like username,

[PHP] Help me please.(Running stand-alone php)

2001-08-07 Thread miguel valero
Unfortunately the -q parameter didn't fix the problem. Is anybody in the PHP mailing list that is familiar with this kind of problem and can tell me how to get rid of the path line in the browser output? Any help will be greatly appreciated. Thanks. --- mike cullerton <[EMAIL PROTECTED]> wrote

Re: [PHP] PHP INSTALL

2001-08-07 Thread Tyler Longren
I suggest you uninstall everything that apache installed and do it all from source. It always seems to be much easier that way. Good luck, Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 7 Aug 2001 12:06:57 -0700 (PDT) Christian Cresante <[EMAIL PROTECT

Re: [PHP] WDDX recordset data

2001-08-07 Thread Bjorn Van Simaeys
You can find nice documentation for all WDDX functions on php.net: http://www.php.net/manual/en/ref.wddx.php Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- Vikram Vaswani <[EMAIL PROTECTED]> wrote: > Can anyone point me to a resource which explains how > to iterate through > WDDX record

Re: [PHP] PHP INSTALL

2001-08-07 Thread Christian Cresante
ok, can i do this? build it with all the --enable-blahs, so i wouldn't need to recompile apache since it already knows about php (i would use the same version). would this be a mess? redhat installs in wierd places. i installed php from the source in 6.1 and it worked fine. now, it seems a

Re: [PHP] WDDX recordset data

2001-08-07 Thread Thies C. Arntzen
On Wed, Aug 08, 2001 at 12:21:30AM +0500, Vikram Vaswani wrote: > Can anyone point me to a resource which explains how to iterate through > WDDX recordsets with PHP? wddx_deserialize()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

[PHP] WDDX recordset data

2001-08-07 Thread Vikram Vaswani
Can anyone point me to a resource which explains how to iterate through WDDX recordsets with PHP? Thanks! Vikram -- I wouldn't recommend sex, drugs, and insanity for everyone, but it works for me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: [PHP] something wrong

2001-08-07 Thread Eduardo Kokubo
> Well, I did as you suggested but the page is popping up onload not onunload.forget it. this code is working fine. I was refreshing the page, what was calling the unload function. > > > > function apaga(){ > window.open(compressao2.php?diretorio=d14,"compressao2","toolbar=no");} > > >

Re: [PHP] something wrong

2001-08-07 Thread Eduardo Kokubo
Sorry, forget what I said. The code is working fine with your suggestion. I was refreshing the page constantly and each time it was opening the window. - Original Message - From: Rich Cavanaugh <[EMAIL PROTECTED]> To: Eduardo Kokubo <[EMAIL PROTECTED]>; Chris Cocuzzo <[EMAIL PROTECTED]> C

[PHP] PHP INSTALL

2001-08-07 Thread Christian Cresante
I posted this yesterday and got no response. i know somebody out there went thru this. I have php4.0.4pl1 installed from redhat 7.1 binary cd along w/ apache 1.3.19, mysql, ldap, etc. everything works fine, but now i want support for pdf and swf. i looked for a configure script for php b

Re: [PHP] something wrong

2001-08-07 Thread Eduardo Kokubo
Well, I did as you suggested but the page is popping up onload not onunload. function apaga(){ window.open(compressao2.php?diretorio=d14,"compressao2","toolbar=no");} - Original Message - From: Rich Cavanaugh <[EMAIL PROTECTED]> To: Eduardo Kokubo <[EMAIL PROTECTED]>; Chris Cocuzzo <

Re: [PHP] Upper or Lower Case

2001-08-07 Thread Bjorn Van Simaeys
I must agree with Don that strcasecmp is the best way to go. Combined with the 'trim' function this is completely foolproof. Thanks, Don! Bjorn Van Simaeys www.bvsenterprises.com --- Don Read <[EMAIL PROTECTED]> wrote: > > On 07-Aug-2001 Bjorn Van Simaeys wrote: > > Hi, > > > > I have run a

[PHP] Passing HTTP_POST from one script to another

2001-08-07 Thread Vikram Vaswani
Hi, 'nother question: if I have a form which submits data in POST to script "a.php", and I now want to pass this POSTed data to "b.php" - how do I do this? I have tried the technique of iterating through $HTTP_POST and concatenating the key-value pairs into a GET URL, which works perfectly. Howe

Re: [PHP] checking for null form fields fails

2001-08-07 Thread mike cullerton
on 8/7/01 9:40 AM, Renze Munnik at [EMAIL PROTECTED] wrote: >> a couple things. >> >> although i agree with the general notion of using braces, return is not a >> function (the manual calls it a statement), and atleast from what i can find >> in the manual it doesn't take braces. >> >> http://w

[PHP] Connecting to WDDX server in PHP

2001-08-07 Thread Vikram Vaswani
Hi, I have a script running on a server, which retrieves some values from a DB and encodes them into WDDX. I have another script running on the client, which deserializes WDDX and SAX-parses the XML data. How do I connect the two, so that the client script connects to the server, runs the serve

Re: [PHP] Upper or Lower Case

2001-08-07 Thread Philip Olson
Also keep in mind that sometimes spaces find their ways into the string and using trim() will get rid of them. Something like : if (strcasecmp('neo',trim($name)) == 0) { echo 'You chose our Neo line of goods, way to go!'; } Not to say spaces randomly attach to strings :-) but to be saf

RE: [PHP] something wrong

2001-08-07 Thread Rich Cavanaugh
Ok, this is just a variant of a question asked almost daily. You are trying to call a PHP function using JavaScript. PHP is handled on the server, JavaScript is done client side. The browser doesn't know anything about PHP. Another option might be to use the onunload handler to popup (might piss o

Re: [PHP] something wrong

2001-08-07 Thread Eduardo Kokubo
I tried it using return and without it, but unfortunly neither cases worked. - Original Message - From: Chris Cocuzzo <[EMAIL PROTECTED]> To: Eduardo Kokubo <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 2:21 PM Subject: Re: [PHP] something worong > hey- > > I'm not sure, but maybe

Re: [PHP] converting numeric to a string

2001-08-07 Thread Philip Olson
Have a look here : http://php.net/manual/en/language.types.type-juggling.php http://php.net/manual/en/function.settype.php regards, philip On Tue, 7 Aug 2001, Don wrote: > Hi, > > I'm looking at the 'String' section of the online documentation. I cannot > find a function that converts

RE: [PHP] php_gd.dll for windows, please help me....

2001-08-07 Thread SED
Try this one: http://php4win.de/ SED -Original Message- From: Marius Pertravèius [mailto:[EMAIL PROTECTED]] Sent: 4. ágúst 2001 22:33 To: [EMAIL PROTECTED] Subject: [PHP] php_gd.dll for windows, please help me Sveiki, PHP, Does anyone here has good php_gd.dll file that

Re: [PHP] Upper or Lower Case

2001-08-07 Thread Don Read
On 07-Aug-2001 Bjorn Van Simaeys wrote: > Hi, > > I have run accross this problem too, and I solve it > this way: > > if(strtolower($name1) == strtolower($name2)) > > I compare both variables in lower case, this way > capitals don't matter at all. > > if (0 == strcasecmp('neo', $name)) //

Re: [PHP] mysql escape character \'

2001-08-07 Thread Hugh Danaher
Rasmus, solved this problem for me earlier today. Hope this helps Rasmus, Thank you very much. I ended up using the following statement, and it works!! > $results=mysql_query(stripslashes($sql_statement)); What I have now is a textarea box where I can input trial searches. This is why I'm d

[PHP] something worong

2001-08-07 Thread Eduardo Kokubo
Hi, I'm using this code to delete a file using onunload, but this is not working. Can anyone please tell me why? I know the function apaga() works, but the onunload thing doesn't. I probably missed a detail.

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Mark Maggelet
>Well, Mark... almost! You shouldn't use empty() _instead_ of >isset(). You should use 'm together: > > if (isset ($input) && !empty($input)) { > print ("Okay... form is completed!"); > } else { > print ("No way... can't do!"); > } > >Because, when you check using empty($input) there's still t

Re: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Stefen Lars
Hello Max Thank you for this interesting idea! I have implemented it on my test server and it seems to do what I want. However, at the moment, I do not fully understand what is happening. However, I will study the Apache docs right now. Thanks! Jonathan >From: Maxwell Hung <[EMAIL PROTECTE

RE: [PHP] converting numeric to a string

2001-08-07 Thread Kees Hoekzema
hey, this function does not exists. An interger can be treated as string without any problems, see also: http://www.php.net/manual/en/language.types.string.php#language.types.string .conversion Kees > -Original Message- > From: Don [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07,

[PHP] Database Stored Procedure Result

2001-08-07 Thread James Stevens
I use ODBC on a Win2K system to connect to a MS-SQL database. I use a stored procedure in the database to add a record to a table. The stored procedure returns a result code that is either the records ID or a -1 indication that the record was not added. How do I check the return result in PHP usin

Re: [PHP] converting numeric to a string

2001-08-07 Thread rm
check out settype() however read the doc on types you may not need settype at all rm --- Don <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking at the 'String' section of the online > documentation. I cannot > find a function that converts a numeric to a string, > e.g., 1 --> "1". > > Am I bli

Re: [PHP] converting numeric to a string

2001-08-07 Thread Alexander Wagner
Don wrote: > Hi, > > I'm looking at the 'String' section of the online documentation. I > cannot find a function that converts a numeric to a string, e.g., 1 > --> "1". > > Am I blind or does this not exist? With loose typing, this is not really necessary. If I'm wrong here, you might use setty

[PHP] converting numeric to a string

2001-08-07 Thread Don
Hi, I'm looking at the 'String' section of the online documentation. I cannot find a function that converts a numeric to a string, e.g., 1 --> "1". Am I blind or does this not exist? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] ICMP Ping

2001-08-07 Thread Sean C. McCarthy
Hi All, You meant: http://www.PHPClasses.UpperDesign.com/ didn't you? Sean C. McCarthy SCI, SL (www.sci-spain.com) hassan el forkani wrote: > > look for icmp at > http://phpclasses.upperdesigns.com i beilive there is a class that does > just that > > regards > > At 18:11

[PHP] apache processes & memory use

2001-08-07 Thread WendyIR
ok, I'm confused, any help would be greatly appreciated. Using PHP4 with Apache (version?). My problem is that I'm getting emalloc errors. Not the massive ones like those related to the database bugs, it's anywhere from 1 byte to 43 bytes. In my debug attempt I've been watching apache processe

  1   2   >