Re: [PHP] class and error handling

2002-05-16 Thread Gerard Samuel
I modified my example against user comment dated 01-Mar-2002 11:52 and I got the desired output. Thanks Martin Towell wrote: Have a look at this page http://www.php.net/manual/en/function.set-error-handler.php and at the user comments dated: 09-Sep-2001 03:16 and 01-Mar-2002 11:52 these

Re: [PHP] PhP 4.2.1 (and various)

2002-05-16 Thread Olav Bringedal
--- Analysis Solutions [EMAIL PROTECTED] wrote: Olav: Perhaps because you're ignoring what I said. This will generate an error message if there's no player variable in the request string and you have error reporting set high enough. Evaluate for empty($_GET['player']) Why

[PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Patrick Hsieh
Hello list, I have a php program which executes a heavy mysql query upon request. Normally, it should not be requested too often, but I am afraid malicious user trying to massively call this program. I am considering to use $HTTP_REFERER to restrict the connection source, but is it worth

Re: [PHP] Tellwhich browser

2002-05-16 Thread Wolfram Kriesing
Justin French wrote: A simple looks around at phpbuilder.com will result in an article on browser detection CSS... the browser detection function he writes can be used for many things, including what you want. Justin French on 16/05/02 12:09 AM, Diana Castillo ([EMAIL PROTECTED]) wrote:

[PHP] help with arrays

2002-05-16 Thread Josh Edwards
This is a basic question but I'm a basic fellow. If I have an array $timespread = array(12am-01am=0); $timespread[01am-02am]=0; $timespread[02am-03am]=0; etc Using $time which is a number, I want to add 1 to the value of $timespread[$time] without changing the key so if $time =1 I want to have

RE: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Craig Vincent
I have a php program which executes a heavy mysql query upon request. Normally, it should not be requested too often, but I am afraid malicious user trying to massively call this program. I am considering to use $HTTP_REFERER to restrict the connection source, but is it worth trusting? Is

Re: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Dan Hardiker
Is it possible for a hacker to make an identical $HTT_REFERER in the header? I have no idea how $HTTP_REFERER is made, is it made from the http client and put in the http header? Thats exactly how its done. The user agent (browser) takes the URL it was on when a link was clicked / form

[PHP] Re: IF Statements

2002-05-16 Thread Martin Wickman
Jon Yates wrote: People, hope you can help. The below IF statement is getting a PARSE error. Can anyone spot why? if (($this-checkReferralCB($this-benefitRef, $this-benefitNo, $this-childDOB)) (!$this-checkLocation($this-post, W)) (!empty($this-childDOB))) ||

Re: [PHP] Using Sessions under Win98/Apache

2002-05-16 Thread Neil Freeman
FYI... I'm using sessions successfully using PHP v4.1.0 on Windows NT. Neil Edward Marczak wrote: * This Message Was Virus Checked With : SAVI 3.57 May 2002 Last Updated 13th May

RE: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Dan Hardiker
Craig Vincent wrote: The best thing you can do is temporarily record the IPs of connections to your script, and then block IPs that connect to the script too often directly from your routing table. It doesn't necessarily stop those using proxies but definately is more reliable than an

Re: [PHP] I'm doing something wrong....

2002-05-16 Thread Martin Wickman
Robert Rothe wrote: Thanks. So the next() and prev() functions just traverse an array some type of linked list? This is what precludes direct access to specific elements? Yup, there is an internal position pointer in every array which are used by most array_ functions. -- PHP

[PHP] Re: Generate every possible combination

2002-05-16 Thread Martin Wickman
Evan Nemerson wrote: I need to generate every possible combination of the the values in an array. For example, if... $array = Array(A, B, C); I really have no idea where to begin. The best lead I can think of is that there are going to be n! elements in the output array, where n is the

[PHP] Re: help with arrays

2002-05-16 Thread Martin Wickman
Josh Edwards wrote: This is a basic question but I'm a basic fellow. If I have an array $timespread = array(12am-01am=0); $timespread[01am-02am]=0; $timespread[02am-03am]=0; etc Using $time which is a number, I want to add 1 to the value of $timespread[$time] without changing the key

Re: [PHP] Re: help with arrays

2002-05-16 Thread Dan Hardiker
This is a basic question but I'm a basic fellow. If I have an array $timespread = array(12am-01am=0); $timespread[01am-02am]=0; $timespread[02am-03am]=0; etc Using $time which is a number, I want to add 1 to the value of $timespread[$time] without changing the key so if $time =1 I want

[PHP] Mysql Query Help needed

2002-05-16 Thread Chris Kay
I have a query select cust_fnn, cust_name, agroup_access.group_access_cust from cust, agroup_access where agroup_access.group_access_group='$id' cust.cust_fnn!=agroup_access.group_access_cust order by cust.cust_name The 2 tables are as follows agroup_access agroup_access_id

Re: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Patrick Hsieh
Hello Dan Hardiker [EMAIL PROTECTED], Then, it is not safe to do IP-based blocking, right? Any alternative? On Thu, 16 May 2002 10:10:44 +0100 (BST) Dan Hardiker [EMAIL PROTECTED] wrote: Craig Vincent wrote: The best thing you can do is temporarily record the IPs of connections to your

[PHP] select statement

2002-05-16 Thread Wilbert Enserink
Hi all, I want to select some records with e.g. ID's 1,3,7 and 8 How can this be done best? is it: SELECT * FROM myTable WHERE ID=1,3,7,8 ?? thx. Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL

Re: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Dan Hardiker
Then, it is not safe to do IP-based blocking, right? Any alternative? As I mentioned in an earlier post (my original reply to you): If I can't trust $HTTP_REFERER, how can I deny malicious attack like that? The best way is authentication... that is asking the user for a username and

RE: [PHP] select statement

2002-05-16 Thread John Holmes
Nothing to do with PHP... SELECT * FROM myTable WHERE ID IN (1,3,7,9); If you're using MySQL, read the manual: http://www.mysql.com/documentation/mysql/bychapter/ ---John Holmes... -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002

Re: [PHP] select statement

2002-05-16 Thread Jason Wong
On Thursday 16 May 2002 19:19, Wilbert Enserink wrote: Hi all, I want to select some records with e.g. ID's 1,3,7 and 8 How can this be done best? is it: SELECT * FROM myTable WHERE ID=1,3,7,8 ?? Is this a PHP question? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open

RE: [PHP] Mysql Query Help needed

2002-05-16 Thread Jay Blanchard
[snip] select cust_fnn, cust_name, agroup_access.group_access_cust from cust, agroup_access where agroup_access.group_access_group='$id' cust.cust_fnn!=agroup_access.group_access_cust order by cust.cust_name [/snip] try this (note syntactical differences); select cust_fnn, cust_name,

php-general Digest 16 May 2002 11:53:17 -0000 Issue 1348

2002-05-16 Thread php-general-digest-help
php-general Digest 16 May 2002 11:53:17 - Issue 1348 Topics (messages 97840 through 97895): phpmysqladmin ? still viable? 97840 by: Erik Gilchrist 97842 by: Jason Murray 97843 by: Damian Harouff 97844 by: Danny Shepherd 97845 by: Erik Gilchrist

RE: [PHP] IF Statements

2002-05-16 Thread Patrick Lynch
Hi Jon, Your brackets are just a bit out of sync: Here is a version that parses. You will have to make sure that my change does not affect your intended logic. if ( ($this-checkReferralCB($this-benefitRef, $this-benefitNo,$this-childDOB)) (!$this-checkLocation($this-post,

[PHP] PHP and MySQL

2002-05-16 Thread City Colleges of Chicago - Mannheim
My program is no longer giving a parse error, but my database is not being updated (as far as the stock numbers are concerned). Any ideas??? I made the changes below per a few people on the list: PQuantity of books:br SELECT name = quantity size=1 OPTION value=11/OPTION OPTION

RE: [PHP] PHP and MySQL

2002-05-16 Thread Craig Vincent
mysql_select_db( $db, $link ) or die ( Couldn't open the $db: .mysql_error() ); if ($submit){ if( $booktitle AND quantity ){ $sql = UPDATE Book2 SET stock ='$stock-quantity' WHERE booktitle='$booktitle' AND quantity=quantity; } Easy enough =) You're not running the mysql query =)

RE: [PHP] PHP and MySQL

2002-05-16 Thread Craig Vincent
Missed a spot =) if( $booktitle AND quantity ){ I'm not certain if this if statement is accurate. I've never used a statement like this but from the looks of it the AND quantity part would always be true (assuming it parses it). This could be adding to your problem as well. I think you were

RE: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Steve Bradwell
(25) - Here's a virtual quarter, call someone who cares. Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 5:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Done w/ PHP - VB or C# ? I know I'll get mauled big-time on this mailing

RE: [PHP] Plz dont hate me for this

2002-05-16 Thread John Horton
Hi, Also try www.uklinux.net They have php and perl cgi (with a mysql or postgres backend) -Original Message- From: Salman Ahmed [mailto:[EMAIL PROTECTED]] Sent: 16 May 2002 03:05 To: PHP List Subject: [PHP] Plz dont hate me for this Hi, I am also PHP lover plz dont hate me for this

[PHP] Multiple drop-down lists

2002-05-16 Thread Brian McGarvie
All, How would you implement 4 drop down lists Data in list 2 dependant on list 1, list 3 dependant on list 2 and list 4 dependant on list 3? Using an ODBC source. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Informix.so module

2002-05-16 Thread Mike Baranski
Has anyone gotten this working with the newest version of PHP? We have an app that uses this, and can't seem to get it to compile. Bug 15177 is marked as critical, but nothing has been done. Any idea when it'll be fixed? Mike. -- ## # Mike Baranski

[PHP] snmp replies not printed

2002-05-16 Thread Razvan Cosma
Hello, I have installed php 4.1.2 and ucd 4.2.4 both from tarballs on a linux box, and compiled php both as an apache module and standalone (same options, except for the --with-apxs). Now, when I use snmpwalk or whatever other function from within apache, it works (almost) correctly:

Re: [PHP] Multiple drop-down lists

2002-05-16 Thread Chris
You may wanna search the archives for this, as its been discussed quite a few times before. Basically it comes down to either using some sort of client scripting language (Javascript, VB script etc...), or refreshing the page everytime someone makes a choice in the list box and then

[PHP] Newline in fputs

2002-05-16 Thread Henry Grech-Cini
Dear All, Firstly, I am a newbie to php so please be gentle. I'm having problems with carriage returns placed in a file on a Linux based server. When this file is download to a WindowsXP machine the carriage returns are quite frankly useless. I just get [] (where [] represents an undisplayable

[PHP] fsockopen

2002-05-16 Thread Scott St. John
I am using fsockopen to test several of our SQL and WEB servers at our office. Testing ports 80, 1433 and 8080 work fine, but I would like to set something up to test ports on our mainframe. These are printers listening on 9100 and when I test it fails. I don't see anything in the online

[PHP] Re: fsockopen

2002-05-16 Thread Henry Grech-Cini
I'm confused! Did you want to make a new post for this comment or a reply to another post. Or does it in some way relate to my question. On my newsgroup browser it appears as if this post is in the wrong place! In answer to my post on Newlines in fputs Thanks for responding anyway. Henry

[PHP] what is php.ini on linux?

2002-05-16 Thread andy
Hi there, I am wondering what the equivalent to php.ini is on linux. There is no such file on linux. Is there a different name? I would like to set up the max execution time Thanx, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is php.ini on linux?

2002-05-16 Thread Rasmus Lerdorf
It is called php.ini. A php.ini-dist sample file comes with the distribution. phpinfo() will tell you where it is supposed to live. Just copy php.ini-dist to that_location/php.ini and edit it appropriately. -Rasmus On Thu, 16 May 2002, andy wrote: Hi there, I am wondering what the

Re: [PHP] what is php.ini on linux?

2002-05-16 Thread Razvan Cosma
there is, is is called... php.ini :) It should reside in /etc, if there is none, create it and add whatever options you need in it. In the source tree you will find two files - php.ini-dist and php.ini-recommended which might be of help. On Thu, 16 May 2002, andy wrote: Hi there, I am

[PHP] upload but restrict

2002-05-16 Thread r
Greetings friends, pals, nymphos, programmers, geeks and others, of gods chosen people! Here goes, I have a program that uploads any file and allows the person to see whats in a particular directory without any problems, not bad for a newbie eh? stand up and clap!!! what i want to do is

Re: [PHP] what is php.ini on linux?

2002-05-16 Thread andy
I did copy the php.ini-recommended into /etc/php.info, rename it to php.ini put the max execution time to 6 and restarted apache (php as module) But I do still get a max execution time 30s reached. Do you have an idea what's wrong? Thanx, Andy Rasmus Lerdorf [EMAIL PROTECTED] schrieb im

RE: [PHP] what is php.ini on linux?

2002-05-16 Thread Jay Blanchard
[snip] I did copy the php.ini-recommended into /etc/php.info, rename it to php.ini put the max execution time to 6 and restarted apache (php as module) But I do still get a max execution time 30s reached. Do you have an idea what's wrong? [/snip] Did you restart your HTTP server? If not the

Re: [PHP] upload but restrict

2002-05-16 Thread Jason Wong
On Friday 17 May 2002 10:40, r wrote: Greetings friends, pals, nymphos, programmers, geeks and others, of gods chosen people! Here goes, I have a program that uploads any file and allows the person to see whats in a particular directory without any problems, not bad for a newbie eh?

Re: [PHP] what is php.ini on linux?

2002-05-16 Thread Jason Wong
On Thursday 16 May 2002 22:09, andy wrote: I did copy the php.ini-recommended into /etc/php.info, rename it to php.ini put the max execution time to 6 and restarted apache (php as module) But I do still get a max execution time 30s reached. Do you have an idea what's wrong? Run

Re: [PHP] Re: fsockopen

2002-05-16 Thread Jason Wong
On Thursday 16 May 2002 21:31, Henry Grech-Cini wrote: I'm confused! Did you want to make a new post for this comment or a reply to another post. Or does it in some way relate to my question. On my newsgroup browser it appears as if this post is in the wrong place! In answer to my post on

[PHP] LDAP Search Scope / Schema Retrieval

2002-05-16 Thread D Canfield
Two related questions: 1) Is there any work being done to support the retrieval of the LDAP schema in PHP (similar to Perl's Net::LDAP::Schema)? Is there any other good way to get this information into PHP? 2) Is there any way to change the search scope of an LDAP search in PHP? Specifically,

Re: [PHP] Newline in fputs

2002-05-16 Thread Analysis Solutions
On Thu, May 16, 2002 at 02:14:13PM +0100, Henry Grech-Cini wrote: I'm having problems with carriage returns placed in a file on a Linux based server. When this file is download to a WindowsXP machine the carriage returns are quite frankly useless. Unix type machines separate lines with a

[PHP] Problems with mail() w/Win2k

2002-05-16 Thread Jared Boelens
Hey guys I recently join this list and this is my first real post to it so if I f**k something up please do beat me to death. :) I have a simple mailer script that was mailing POSTed form information to a client, this script was running on a Debian box w/Apache. This server is having hardware

[PHP] recognising plain text files

2002-05-16 Thread Lee P Reilly
Hi, I am doing some validation on files that are being upload. I only wish to allow users to upload files that are in *plain text* format (not neccessarily with a .txt extension). I have the following piece of code, which works fine in IE, but in Netscape Navigator: if ($file_type !=

Re: [PHP] recognising plain text files

2002-05-16 Thread Rasmus Lerdorf
The uploaded mime type is set by the browser, not by PHP. So I guess in your Netscape case it isn't sending the right type. Perhaps have a look at the 'file' UNIX-level command and use that. -Rasmus On Thu, 16 May 2002, Lee P Reilly wrote: Hi, I am doing some validation on files that are

[PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Andre Dubuc
My question will probably expose my woeful lack understanding of security breaches, but perhaps someone can enlighten me. On my site, registered members will be allowed to upload jpg/jpeg pictures. I'm concerned about possible security problems. First, is there a way to ensure that a picture

Re: [PHP] tag img and php

2002-05-16 Thread Jim lucas
show the contents of 'try_param.php' please. Jim Lucas - Original Message - From: Maciej Przybycien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 10:38 AM Subject: [PHP] tag img and php Hi, I included php file as html img: img

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Rasmus Lerdorf
Are you afraid of someone embedding PHP in a .jpg file? That's not really an issue as your web server is probably configured to only serve up PHP as .php files. Likewise, your web server config is likely such that any .jpg file is served up as content-type image/jpeg and as such it really

[PHP] some Javascript functions with PHP

2002-05-16 Thread savaidis
I use: print('SCRIPT LANGUAGE=JavaScript'); print('document.write(Code Name: +navigator.appCodeName+BR);'); print('/SCRIPT'); How is possible to keep this info to a MySQL database with PHP? I think is not possible becouse PHP runs first. Also how is possible to get with PHP info like this

[PHP] Console application with PHP

2002-05-16 Thread DoL
Hi All I am trying to write something similar to a server console display, is it a good idea to use PHP? Wondering how things like 1. server clock (similar to a clock applet) 2. server status can be displayed with PHP code? Note: I need to display the above two in a continuous fashion on the

Re: [PHP] tag img and php

2002-05-16 Thread Maciej Przybycien
Thank you for responding to my email. I am still stuck with my problem. I am using additionally jpgraph-1.6.1. Here is the content of my try.php file: ?php (include jpgraph.php); (include jpgraph_line.php); // Create the graph. These two calls are always required $graph = new Graph(450,350,

[PHP] Can anyone help me save img from URL?

2002-05-16 Thread Victor Polyushko
Hi, I was wondering if someone knows how to save the image from the given url http://domain.com/image.gif into a file on a local machine Any suggestion will be greatly appreciated. Thank you in advance Victor Polyushko

[PHP] uh, oh errors?

2002-05-16 Thread Jas
Not sure how to resolve this, looked at php.net for the headers available and this is the error I am recieving: Warning: Cannot add header information - headers already sent by (output started at /path/to/connection/script/db.php:6) in /path/to/login/checking file/auth_done.php on line 13 Here

Re: [PHP] uh, oh errors?

2002-05-16 Thread Rasmus Lerdorf
What is on line 6 of the db.php file? Do you have a stray carriage return at the end of this file? On Thu, 16 May 2002, Jas wrote: Not sure how to resolve this, looked at php.net for the headers available and this is the error I am recieving: Warning: Cannot add header information -

RE: [PHP] uh, oh errors?

2002-05-16 Thread Patrick Lynch
Hi Jas, I normally output can output a JaveScript document.location.href=XXX.XXX; command Plan B is to do your processing before there is any output and then decide whether or not to do a redirect using the header() function. Best Regards, Patrick Lynch. Optip Ltd, Internet Mobile

Re: [PHP] some Javascript functions with PHP

2002-05-16 Thread Kevin Stone
The user's IP address is stored in the PHP global, $REMOTE_ADDR. Browser information can be extracted from the get_browser() function. http://www.php.net/manual/en/function.get-browser.php -Kevin - Original Message - From: savaidis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RE: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Patrick Lynch
As fas as I know, the only way to do this is to give somebody instructions to right click on the file and so Save As. Plan B is to put the GIF in a ZIP file and let it be downloaded like that. Best Regards, Patrick Lynch. Optip Ltd, Internet Mobile Development Co. Clare, Ireland.

Re: [PHP] uh, oh errors?

2002-05-16 Thread Jas
That worked, I had about 3 blank lines trailing my ?. Thanks a ton! Jas Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What is on line 6 of the db.php file? Do you have a stray carriage return at the end of this file? On Thu, 16 May 2002, Jas

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Jim Winstead
Rasmus Lerdorf [EMAIL PROTECTED] wrote: Are you afraid of someone embedding PHP in a .jpg file? That's not really an issue as your web server is probably configured to only serve up PHP as .php files. Likewise, your web server config is likely such that any .jpg file is served up as

Fw: [PHP] uh, oh errors?

2002-05-16 Thread Kevin Stone
Don't feel bad about this. This is something that messes a lot of people up. The browser knows where your headers end and where content begins by adding blank line between the headers and the rest of the page. ALL headers must come before any content is printed to the page. PHP will give you

Re: [PHP] uh, oh errors?

2002-05-16 Thread Kevin Stone
DOH! I retract that statement about Line 11.. I saw it and immediately thought you were printing out that line, clearly you're not. But the rest of my point is still valid, and Rasmus pointed out the true location of the error. Anyway glad to hear you got the problem solved so quickly. -

Re: [PHP] Using Sessions under Win98/Apache

2002-05-16 Thread Edward Marczak
On 5/16/02 5:17 AM, Neil Freeman [EMAIL PROTECTED] wrote: FYI... I'm using sessions successfully using PHP v4.1.0 on Windows NT. Hurmph. Well, the upgrade to 4.2.x did it for me under 98. I just need to check the rest of my code, though. For now, seems pretty harmless. Thanks, though.

[PHP] Gettext and PHP4.2.0?

2002-05-16 Thread Bram van Leur
Hi everyone, I've recently (for once in my life!) succesfully compiled PHP4.2.0 using the following configure command-line: './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'

RE: [PHP] uh, oh errors?

2002-05-16 Thread Sysadmin
What are some benefits to using output buffering versus just letting it generate as it goes? -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 1:24 PM To: PHP-general Subject: Fw: [PHP] uh, oh errors? Don't feel bad about this. This is

RE: [PHP] uh, oh errors?

2002-05-16 Thread Jerome Houston
one REALLY notable advantage is: if you us ob_*() functions, instead of writing HTML pages with php tags inserted, you can write XML pages with PHP tags inserted. then after you're done, you can pass the contents of the output buffer to an XSLT processer like sablotron, THEN outputting an

Re: [PHP] uh, oh errors?

2002-05-16 Thread Robert Cummings
[EMAIL PROTECTED] wrote: What are some benefits to using output buffering versus just letting it generate as it goes? Pros: - headers can be added at any time - buffer content can be post processed (gz compression) (xslt) - if an error occurs can avoid serving half a document Cons: -

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Andre Dubuc
Thanks Rasmus, I thought there had to be function out there that could examine the actual contents. Now the question remains, would an ereg/eregi check for html/code/commands work on a jpg/jpeg type file? From a brief examination of one, I note that it's not text, but code. I tried writing

[PHP] Making Multiple Pages

2002-05-16 Thread Jason Soza
I have some ideas on how this should be done, but I'm at work and can't really test them, so I was thinking maybe I could run it by you all and maybe get some feedback and/or new ideas. I have a PHP/MySQL-generated page that displays image thumbnails. Currently, I have a loop that makes a

Re: [PHP] eregi(mail)

2002-05-16 Thread Liam Gibbs
Thanks to all who helped out with the eregi(mail) stuff. I got my problem solved, and on top of that, there were some bugs that I found in the code. Thanks again to everyone. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience

Re: [PHP] LDAP Search Scope / Schema Retrieval

2002-05-16 Thread Matt Rohrer
On Thu, May 16, 2002 at 09:34:16AM -0500, D Canfield wrote: Two related questions: 1) Is there any work being done to support the retrieval of the LDAP schema in PHP (similar to Perl's Net::LDAP::Schema)? Is there any other good way to get this information into PHP? 2) Is there any way

Re: [PHP] Making Multiple Pages

2002-05-16 Thread Kevin Stone
$query = SELECT * FROM mytable LIMIT $i, 20; Where 20 is the number of rows to retrieve and $i is the starting row. By incrementing $i + 20 you can do next, prev buttons, or parse the total number of rows into page links (prev - 1, 2, 3, 4, 5, 6.. 10.. 20 - next). Search www.mysql.com for more

RE: [PHP] Console application with PHP

2002-05-16 Thread Vail, Warren
PHP and Web Servers probably make a bad choice for what is essentially a real time application. PHP and web servers expect to serve up a page of essentially HTML(and Javascript, or Java Applets), then close the connection to a browser so that it can handle the requests of others, and not deal

[PHP] Re: [PHP-DEV] Console application with PHP

2002-05-16 Thread Markus Fischer
Hi, all is possible. I suggest taking a look at http://gtk.php.net/ and http://www.php.net/manual/en/features.commandline.php for a start. - Markus On Fri, May 17, 2002 at 12:12:20AM +0800, DoL wrote : Hi All I am trying to write something similar to a server

[PHP] Re: Date Function in Php

2002-05-16 Thread Baba Buehler
Vinod Palan wrote: hi , Do any one have date functions like that we have in asp 1) Dateadd() 2) Datediff() etc? There are some classes in PEAR that may do what you want, take a look at Date Date::Calc. baba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Making Multiple Pages

2002-05-16 Thread Jason Soza
Great! I think that's the SQL function I needed. Now for the PHP part - I'm a bit fo a newbie at writing code, so bear with me here. My query string is currently something like: $sql = mysql_query(SELECT * FROM mytable WHERE color=$color); So I would modify that to read: $sql =

[PHP] Warning: Max file size of 4194304 bytes exceeded...

2002-05-16 Thread Lee P Reilly
Hi, I have another quick question (still on the topic of validating uploaded files). I have upload_max_filesize = 4194304 in my php.ini file. When I upload the file, the script that processes does the following: 1-Sets up the session info 2-Starts the HTML header template 3-Displays user login

Re: [PHP] Making Multiple Pages

2002-05-16 Thread Kevin Stone
One way to get it started would be to work strictly within the links. Don't initilize $i unless it is not set (which logically would mean your visitng the page for the first time). So.. if (!isset($_GET['i'])) $i = 0; else $i += 20; Another way would be to extract the number of total

[PHP] Re: Warning: Max file size of 4194304 bytes exceeded...

2002-05-16 Thread Lee P Reilly
- Is there anyway to prevent the error message from being displayed on screen, and perhaps set a flag so we know that the problem has occured? I know that if I set display_errors = Off in php.ini I can stop the message from being displayed, but can I set a flag to say the upload_max_filesize

RE: [PHP] Making Multiple Pages

2002-05-16 Thread Cal Evans
Do a google search for ADODB. It's a PHP database abstraction layer. It has built in 'pagination' methods (Previous X, next X) along with an example of how to use them. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jason

Re: [PHP] Making Multiple Pages

2002-05-16 Thread J Smith
You should also add an ORDER BY clause in there, as the SQL standard doesn't guarantee the order that rows are retrieved in. There's a chance that you'll get, say, 20 rows on the first page, go to the second page and get some of the rows you've already seen on the first page. If you use an

[PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
This might be a little bit JS and a little bit PHP. I'm wondering if there's an easy way to refresh a PHP page on an onClick and change one parameter (say someone wants to redraw the graph, but with the points). I don't want to pay attention to any of the other parameters that could have

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
Leotta, Natalie (NCI/IMS) wrote: This might be a little bit JS and a little bit PHP. I'm wondering if there's an easy way to refresh a PHP page on an onClick and change one parameter (say someone wants to redraw the graph, but with the points). I don't want to pay attention to any of the

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Kevin Stone
I'm not certain I understand your situation. If you're trying to keep state between each new input then I would recommend PHP sessions to store your variables. Could you elaborate more what you're trying to do? -Kevin - Original Message - From: Leotta, Natalie (NCI/IMS) [EMAIL

RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
It's all in a password protected site because the data's all confidential at this point in time, but I can give you a mental picture. There are a bunch of dropdowns - State, Cancer, Sex, Race, Age. We're drawing a graph of best fit lines - up to 5 allowed on the graph, then we start over

Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings
Leotta, Natalie (NCI/IMS) wrote: It's all in a password protected site because the data's all confidential at this point in time, but I can give you a mental picture. There are a bunch of dropdowns - State, Cancer, Sex, Race, Age. We're drawing a graph of best fit lines - up to 5 allowed

[PHP] BUG?: for loop using chars

2002-05-16 Thread Erich Reimberg N
Hello, I'm trying to generate this list of letters A..Z, using this for ($l='A'; $l='Z'; $l++) echo $l.-; And it doesn't work. It generates the output included at the end of this message (I used to be shorter) But this works for ($l='A'; $l='Y'; $l++) echo $l.-;

RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
This sounds like it might work. Thanks for your help!! I knew there had to be a better way than what my coworkers came up with :-) -Natalie -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 4:09 PM To: Leotta, Natalie (NCI/IMS) Cc:

Re: [PHP] fsockopen

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Scott St. John wrote: I am using fsockopen to test several of our SQL and WEB servers at our office. Testing ports 80, 1433 and 8080 work fine, but I would like to set something up to test ports on our mainframe. These are printers listening on 9100 and when I test

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Michael Kimsal
Miguel Cruz wrote: snip all the power of DOS batchfiles. Every single thing you want to do - even basic filesystem operations like working with directories and file permissions!!! - requires purchasing expensive and buggy .COM components from nasty little companies with horrible

Re: [PHP] upload but restrict

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, r wrote: Here goes, I have a program that uploads any file and allows the person to see whats in a particular directory without any problems, not bad for a newbie eh? stand up and clap!!! what i want to do is make sure that whatever the person uploads cannot run

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Michael Kimsal wrote: Miguel Cruz wrote: all the power of DOS batchfiles. Every single thing you want to do - even basic filesystem operations like working with directories and file permissions!!! - requires purchasing expensive and buggy .COM components from nasty

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Victor Polyushko wrote: I was wondering if someone knows how to save the image from the given url http://domain.com/image.gif into a file on a local machine lynx -source -dump http://domain.com/image.gif image.gif miguel -- PHP General Mailing List

Re: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Robert Cummings
Miguel Cruz wrote: Public denigration of what I don't understand is how I strike out at a callous world that's denied me my just deserts: fame, millions, and a torrid love affair with Nancy Reagan. Either address the fundamental injustice here or cut me some slack. Couldn't have said it

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Robert Cummings
Miguel Cruz wrote: On Thu, 16 May 2002, Victor Polyushko wrote: I was wondering if someone knows how to save the image from the given url http://domain.com/image.gif into a file on a local machine lynx -source -dump image.gif If there were actually an image I'd use: wget

[PHP] Passing to an Applet

2002-05-16 Thread Joshua Baker
All right I've seen in done in jsp and asp, but I'd like to know if I can do it in PHP as well. I've got an applet, which is in the page replay.php, with these parameters that I need to fill from a URL. applet code=replayer.class height=323 width=352 param name=FILEPREFIX VALUE=

Re: [PHP] Can anyone help me save img from URL?

2002-05-16 Thread Victor Polyushko
Hi Guys, Thank you fo your input. I am sorry I am new to the list so + English is not my first language :-( anyhow., I shoudl 've made my question more clear. I am trying to save the image from the given URL (http://domain.com/image.gif) running a PHP script on the page. I have tried fread()

  1   2   >