[PHP-CVS] cvs: php4 /pear/DB pgsql.php

2001-04-02 Thread Jon Parise
jon Mon Apr 2 20:27:46 2001 EDT Modified files: /php4/pear/DB pgsql.php Log: Make the 'protocol' DSN element optional. Index: php4/pear/DB/pgsql.php diff -u php4/pear/DB/pgsql.php:1.34 php4/pear/DB/pgsql.php:1.35 --- php4/pear/DB/pgsql.php:1.34 We

[PHP] hosting - key issues

2001-04-02 Thread Michael Roark
Ok so i've got a nice little game site and some folks want to start hosting their websites on my machine. I let a few here and a couple there and now my machine has more folks on it doing more things than I've got a handle on. Yes I did a bad thing. Most of them are there because of the PHP an

[PHP-CVS] cvs: php4 /pear/DB pgsql.php

2001-04-02 Thread Jon Parise
jon Mon Apr 2 20:33:58 2001 EDT Modified files: /php4/pear/DB pgsql.php Log: Style and whitespace. Index: php4/pear/DB/pgsql.php diff -u php4/pear/DB/pgsql.php:1.35 php4/pear/DB/pgsql.php:1.36 --- php4/pear/DB/pgsql.php:1.35 Mon Apr 2 20:27:46 20

[PHP] form-based search

2001-04-02 Thread Joao Monteiro
can anyone help me in making a webpage (php) that shows the results of a MySQL database search? the search must be made using a form... thank you very much Joao Monteiro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

[PHP] updating values in a while statement

2001-04-02 Thread Peter Houchin
Hiya i've got a script that basically draws values from a db and will display them, as i have multiple records in there and want to display them all i'm using a while ( ($myrow = mysql_fetch_array($result) ) ) statement this is all good as far as it will display them all how ever when i to be

Re: [PHP] PHP, MYSQL and Multiple Records revisited

2001-04-02 Thread Lindsay Adams
Okay, with all that code, I can answer your question. The problem here is that you only have on form field with a date. Therefore it should not be an array. You also have only one photono, so it too should not be an array. When the loop iterates to create the query, there is only a value for the

Re: [PHP] libpng error

2001-04-02 Thread nicuc.ac.jp
Not test your code with GIF yet (I not have GIF support). In your book they have a result picture of this code ? I try this by change imagegif($image) to imagepng($image) and return blank image with specify width. -- -Tuna- ""Thalis A. Kalfigopoulos"" <[EMAIL PROTECTED]> wrote in message [EMAI

Re: [PHP] updating values in a while statement

2001-04-02 Thread Lindsay Adams
G'Day, You need to have an auto_incrementing field in your database. Then all lines that are displayed need to be in the form of fieldname[] so that PHP builds an array. Then you need a hidden field to represent the unique record number to be updated. Here is some code that I use to print out a

[PHP] Re: [PHP-DB] PHP4.0.4 segfaults with odbc_pconnect

2001-04-02 Thread Andrew Hill
Daevid, connection script snipped (looked fine) > $dsn="DSN=OpenLink"; // this is a valid DSN set up in the above odbc.ini > //$conn_id = odbc_connect("DSN=OpenLink;UID=daevid;PWD=secret","",""); > ?> > -- > > [OpenLink] > Driver = /usr/local/openlink/lib/oplodbc.

Re: [PHP] renaming form posted variable names

2001-04-02 Thread David Minor
Richard Lynch writes: > function do_each($passed_array) { > > global ${$tmp_var_name}; Move this: > > if (substr($passed_array[0],-5) == "_post") { > $tmp_var_name = substr($passed_array[0],0,-5); > ${$tmp_var_name} = $passed_array[1]; down here. > return(${$

[PHP] Safety with PHP.

2001-04-02 Thread Marthe Kristiansen
Hey you guys! I'm a new girl at this, and wondering on a question that might be simple for you. Yesturday I started to learn PHP and proud I showed it to a friend of mine, what I had learned. The first thing he did was check the safity of it and very easy he found the list over all the users of t

Re: [PHP] Safety with PHP.

2001-04-02 Thread Rasmus Lerdorf
Not much to go on here. Basically don't do whatever it was you did. And yes, understanding the environment you are working in, both the OS and PHP and whatever 3rd party stuff you hook PHP up to is the first step to making stuff secure. -Rasmus On Tue, 3 Apr 2001, Marthe Kristiansen wrote: >

Re: [PHP] Safety with PHP.

2001-04-02 Thread Jack Dempsey
Hey Marthe, Do you know what he did? The problem may not have been a "PHP" problem as much as a design or security issue...if you could include some code, or tell us what he actually did, we might be able to explain a) why its a problem or b) why its not a PHP issue... best regards, jack Marthe

RE: [PHP] Safety with PHP.

2001-04-02 Thread Marthe Kristiansen
Well, since I'm a newbie and also Norwegian it ain't that easy to explain very simple. What he did was that he entered a file that showed all the users of the server, as I said, and he told me this was kindof insecure. To prevent it he showed me a code that would help a bit. $filename=str_replace

RE: [PHP] Safety with PHP.

2001-04-02 Thread Rasmus Lerdorf
So you wrote a script that took a filename as an argument somehow and did something with it? That's always going to be insecure unless you do a lot of error checking on it. -Rasmus On Tue, 3 Apr 2001, Marthe Kristiansen wrote: > Well, since I'm a newbie and also Norwegian it ain't that easy to

RE: [PHP] Safety with PHP.

2001-04-02 Thread Jason Lotito
Of course, you can always disable certain functions, etc, that you deem to insecure. PHP is as secure as you make it. ~Nuff said Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn. > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTE

RE: [PHP] Safety with PHP.

2001-04-02 Thread Marthe Kristiansen
Is there an easy way to do this when I'm so new at this that I don't quite understand what I'm doing wrong and how to prevent all those mistakes in the beginning? /Marthe -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 7:54 AM To: Marthe Kr

RE: [PHP] Safety with PHP.

2001-04-02 Thread Jason Lotito
If you could post the actual thing that he did, the actual script, that would be helpful. Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn. > -Original Message- > From: Marthe Kristiansen [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 02, 2001 11

Re: [PHP] Safety with PHP.

2001-04-02 Thread Brian Clark
@ 1:54:08 AM on 4/3/2001, Rasmus Lerdorf wrote: RL> So you wrote a script that took a filename as an argument somehow and did RL> something with it? That's always going to be insecure unless you do a lot RL> of error checking on it. ... RL> On Tue, 3 Apr 2001, Marthe Kristiansen wrote: ... >>

Re: [PHP] Safety with PHP.

2001-04-02 Thread Les Neste
Marthe, if you post the script we can all get to the bottom of this pretty quickly. You have a lot of expertise here ready to help. Just copy and paste it into your email. BTW, you should remove it from your site before you post it, if at all possible. Good luck. ..

[PHP] ctype_alpha etc

2001-04-02 Thread Les Neste
Hi, I'm using PHP4.04pl1 as an Apache module. I just wrote some code which calls ctype_alpha() and got the message Fatal error: Call to undefined function: ctype_alpha() in /usr/local/lesneste/requestpwd.php on line 80 Is this function truly non-existent or is there some compi

Re: [PHP] ctype_alpha etc

2001-04-02 Thread Brian Clark
Hi Les, @ 2:38:17 AM on 4/3/2001, Les Neste wrote: LN> Hi, I'm using PHP4.04pl1 as an Apache module. I just wrote some LN> code which calls ctype_alpha() and got the message LN> Fatal error: LN> Call to undefined function: ctype_alpha() in LN> /usr/local/lesneste/requestpwd.ph

[PHP] Informix

2001-04-02 Thread Roman
I have this problem ? I want to connect to the Informix database on Unix server and my apache server running on Windows 2000 but I haven't php_ifx.dll. Please if you want send me. Thanx. Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

[PHP] foreach in Apache

2001-04-02 Thread the clansman
foreach doesn't work in Linux-Apache and OK in Win with IIS: Fatal error: Call to unsupported or undefined function foreach() in ... My code: foreach ($lineas as $key => $value) { if (strpos($value,";".$idf.";")>0) { print ""; $fila=split(";",$va

Re: [PHP] hosting - key issues

2001-04-02 Thread B. van Ouwerkerk
>p.s. if there is a faq/tutorial/set of guidelines out there on the web >feel free to just send me a link and say RTFM. I've not found anything yet. Try www.devshed.com Has some nice stuff.. Read the HOWTO's.. Install SSH and a secure FTP server with the ability to chroot people.. like ProFTP

Re: [PHP] form-based search

2001-04-02 Thread B. van Ouwerkerk
>can anyone help me in making a webpage (php) that shows the results of a >MySQL database search? >the search must be made using a form... Take a look at webmonkey www.devshed.com www.phpbuilder.com www.phpbeginner.com www.phpworld.com But also on www.php.net many scripts can be found to

RE: [PHP] foreach in Apache

2001-04-02 Thread Jason Murray
> Fatal error: Call to unsupported or undefined function > foreach() in ... You're probably using PHP3 on that Apache server. Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] redirecting without headers or meta tags or javascript

2001-04-02 Thread Justin French
hi, i'm in the body of a html page, and I'd like to redirect to a new URL in an if() statement. I *could* re-write the whole page so that the test is in the head, and use meta tags to refresh, but i'd rather not... the code will be heaps cleaner without it. thanks Justin French -- PHP Gen

Re: [PHP] array_diff usage

2001-04-02 Thread Stig Venaas
On Mon, Apr 02, 2001 at 05:15:26PM +0200, Martin Skjöldebrand wrote: > I'm afraid I dont quite under stand the output you gave (maybe ... or do > you mean var_dump included the number of the array elements?) First I echoed the number, then var_dump() also printed it, try var_dump yourself. Stig

Re: [PHP] redirecting without headers or meta tags or javascript

2001-04-02 Thread Jack Dempsey
if you're trying to redirect with something like header, then you need to do that redirection before any output is sent to the browser...(note, ANY output, likes SPACES) look at www.php.net/header if you're interested... jack Justin French wrote: > > hi, i'm in the body of a html page, and I'd

<    1   2   3