[PHP] Standard output (printf) question...

2001-12-21 Thread Paul H. Breslin
I'm trying to create a function that will generate output that could go to either a file or to the current browser directly. To do this I have something like: function GenerateOutput($out) { fwrite($out, Some stuff); fflush($out); } and to call it I tried: $stdout =

RE: [PHP] Standard output (printf) question...

2001-12-21 Thread Richard Black
As far as I'm aware PHP does output to stdout. Whether or not we can actually access that stream is another question, and one I don't know the answer to. However, I do have a suggestion... Have you looked at the output buffering functions? They seem to implement what you're trying to do...

Re: [PHP] Standard output (printf) question...

2001-12-21 Thread Paul H. Breslin
Thanks Richard, I don't think the output buffering does what I want. I want to be able to do something like this: if( $preview_mode ) $output = fopen(php://stdout, w); else $output = fopen(/some/file/path/soemwhere.html, w);

[PHP] FrameSet Problem with PHP, Pls Help!

2001-12-21 Thread Jack
Dear all I had designed a Index.php, this page is made of different Frames by using UltraDev.The Frame included are Top, Left and Main. In my Left Frame which i used left.php, i had use JavaScript to make a Menu. Top Frame is a Banner and Main is just some content. When i browse preview it, the

RE: [PHP] arrays

2001-12-21 Thread Jerry Verhoef (UGBI)
Maybe you should take a look at XSL http://www.w3schools.com/xsl/ http://www.w3.org/Style/XSL/ -Original Message- From: php dood [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 2:04 AM To: [EMAIL PROTECTED] Subject: [PHP] arrays I'm trying to figure out how to parse an xml

[PHP] sessions and authentication

2001-12-21 Thread Steve Maroney
Hey guys, I know this has been brought up several times but can't find it in the archives of this list. I have some PHP 4 scripts that check the value of a logged in variable. if the user authenticates him/her self, then the logged in variable gets set and registered with the session. How

[PHP] Problem with Getting Values from Cookie

2001-12-21 Thread Jack
Dear all Here is my Code in Login Page!!! ?php // *** Start the session session_start(); // *** Validate request to log in to this site. $KT_LoginAction = $PHP_SELF; if ($QUERY_STRING!=) $KT_LoginAction .= ?.$QUERY_STRING; $KT_valUsername=$user; if (isset($KT_valUsername)) {

[PHP] QuickTime movie size

2001-12-21 Thread Kerem Ozen
Hi everybody, I've a little problem with quicktime movies. I want to get the size (not size of file, the dimensions) of a QuickTime movie. for example 300x300 Thanx a lot... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Algorithm: Limiting Large Numbers of Pages to 10 visible

2001-12-21 Thread Dimitris Kossikidis
Or you can use this simply class from Manuel Lemos's site. It works with Mysql only. http://phpclasses.upperdesign.com/browse.html/package/366 Hi, I need an algorithm for paging. If I have 100 pages of results, I only want to show Prev 1 2 3 4 5 6 7 8 9 10 Next Where I limit the

[PHP] RE: Help with Sessions - Should be easy =]

2001-12-21 Thread Tim Ward
session_register(sessionvar); you can now assign values to $sessionvar (or whatever you've chosen to call it). You need to register each variable and start the session at the top of each script. In practice it's a lot easier if you hold all your session stuff under a single hash array, that way

[PHP] Cookie Can't Display Name on other page

2001-12-21 Thread Jack
Dear all Here is the Code for my Login.php page ?php // *** Start the session session_start(); // *** Validate request to log in to this site. $KT_LoginAction = $PHP_SELF; if ($QUERY_STRING!=) $KT_LoginAction .= ?.$QUERY_STRING; $KT_valUsername=$user; if (isset($KT_valUsername)) {

Re: [PHP] PHP / SSL

2001-12-21 Thread TD - Sales International Holland B.V.
On Thursday 20 December 2001 15:37, Jon Farmer stuffed this into my mailbox: 256 bit encryption should be crackable by not too much more people than Microsoft, the US government, China and perhaps some others with shitloads of money that CAN dissapear (within reasonable time). Else there will

[PHP] Sendemail appends domain to mail function

2001-12-21 Thread Peter
Hi, I have problem. Everytime that I want to send email using a PHP script from my server, it automatically appends the domain name of my server to the From: line. else { $mailheaders .= From: XYZ company\n; $mailheaders .= Reply-To: $email\r\n; $mailheaders .= Content-Type: text/html;

[PHP] page has expired

2001-12-21 Thread Peter
Hi, I was wondering whenever I use sessions on a page and then I use the back button on the browser, I get Warning page has expired. Is there anyway to avoid this? Thanks. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Sendemail appends domain to mail function

2001-12-21 Thread Alex Vargas
That's because XYZ company isn't a valid email address and sendmail fixes the address with the name of the server. If you'd put [EMAIL PROTECTED], you'd see that address unchanged. Alex. - Original Message - From: Peter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21,

RE: [PHP] PHP / SSL

2001-12-21 Thread Jerry Verhoef (UGBI)
I am sorry to say. But it is bullshit wot you are saying. I am quite sure that a 256 bit encryption can cracked (brute force way) by the big players (US, MS, etc) within a reasonable time say 2 or 3 months! And yes you can buy computers or clusters for 100.000 $. And they are 100 more

[PHP] some body flood mypage how can I prevent them ?

2001-12-21 Thread Alawi
some body flood mypage how can I prevent them ?

[PHP] Login Script

2001-12-21 Thread Necro
Lo all, I am trying to get the following script to work.. ? if ($HTTP_POST_VARS[action] == 1) { checklogin($HTTP_POST_VARS[user_name], $HTTP_POST_VARS[password]); exit; } function checklogin($user, $pass) { $sid (login($user, $pass)); if ($sid != -1) {

Re: [PHP] Beginner question?

2001-12-21 Thread Michael Sims
At 01:59 AM 12/21/2001 -0500, jtjohnston wrote: Michael, $fp = fopen (./users.txt, r); while (!feof ($fp)) { $buffer = fgets($fp, 4096); echo $buffer; } fclose($fp); Ok. But $buffer is not an array, is it? Why/what is 4096? What is !feof ? Don't you have access to the WWW? You need to

RE: [PHP] Login Script

2001-12-21 Thread Jerry Verhoef (UGBI)
Line 10 is? $sid (login($user, $pass)); --- missing = -Original Message- From: Necro [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 1:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Login Script Lo all, I am trying to get the following script to work.. ? if

[PHP] Fwd: REJECTED: Re: [PHP] PHP / SSL

2001-12-21 Thread TD - Sales International Holland B.V.
sorry it was rejected the first time so there might be some garbage in it Whow, I'd have to check that :-) any crypto people here? :-) bitwise 56 is 40. Mathematically it would take a lot less time to brute force 40 bit than it would 56 bit. 40 bit = (2^40) 1.0995116278e+12 (1.099.511.627.800

Re: [PHP] Mommy, is it true that...?

2001-12-21 Thread TD - Sales International Holland B.V.
On Friday 21 December 2001 02:39, you wrote: I believe (not sure so please clarify) that if your code was if ($pwd == goodpwd) $lethimin = 1; else $lethimin = 0; the code would be secure. only setting the variable when the pass is correct would be too easy to crack right? since I'd call the

Re: [PHP] Re: Algorithm: Limiting Large Numbers of Pages to 10 visible

2001-12-21 Thread TD - Sales International Holland B.V.
On Friday 21 December 2001 05:59, Manuel Lemos stuffed this into my mailbox: err if it's coming from SQL just use LIMIT like select * from table limit 0, 10 would give you the first 10 resulst select * from table limit 10, 10 gives you results 11 - 20 select * from table limit 20, 10 gives you

Re: [PHP] Re: Mommy, is it true that...?

2001-12-21 Thread Bogdan Stancescu
Oh yeah. Guess I had a mental lapse there. If you are using, say, a script downloaded from freshmeat.net and it happens to be poorly secured then obviously the entire free world is going to know how to exploit your copy of itduh Actually that's exactly what I had in mind.

Re: [PHP] Login Script

2001-12-21 Thread Bogdan Stancescu
This is your problem -- what do you expect this line to do? $sid (login($user, $pass)); Bogdan -- 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:

Re: [PHP] PHP / SSL

2001-12-21 Thread Jeff Gilchrist
- Original Message - From: TD - Sales International Holland B.V. [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 12:34 PM Subject: [RC5] Re: [PHP] PHP / SSL | for distributed.net for the distributed.net people sorry this

[PHP] Re: some body flood mypage how can I prevent them ?

2001-12-21 Thread Daniel Masur
at least you have to tell what is getting flooded... db? apache? logs? pings? Alawi [EMAIL PROTECTED] schrieb im Newsbeitrag 00cd01c18a1a$05063440$b084a2d4@mcsh2l7jqy8bgj">news:00cd01c18a1a$05063440$b084a2d4@mcsh2l7jqy8bgj... some body flood mypage how can I prevent them ? -- PHP General

Re: [PHP] Suggestions for the next php

2001-12-21 Thread Rouvas Stathis
Manuel Lemos wrote: For example, multi-threading. Looking at the PHP sources, I can see this would be fairly easy to implement on some most server modules. Before I get fried by people for suggesting this, I know there are many functions that are not thread safe, such the ob_*

Re: [PHP] embed pdf.

2001-12-21 Thread Bogdan Stancescu
Embed as in...? To my knowledge there is no way to embed a PDF in a web page - you can see a PDF from the browser, but I don't know how a PDF could be embedded within an actual HTML page. Bogdan Webleycity wrote: Does anybody out there know how to embed pdf in a web page -- PHP General

Re: [PHP] embed pdf.

2001-12-21 Thread Andrey Hristov
May be by using IFRAME, this: Does anybody out there know how to embed pdf in a web page can be succeeded. Regards, Andrey Hristov - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 3:22 PM Subject: Re: [PHP] embed pdf.

Re: [PHP] Sendemail appends domain to mail function

2001-12-21 Thread Bogdan Stancescu
Or, better yet, try From: XYZ company xyz@mydomain; Bogdan Alex Vargas wrote: That's because XYZ company isn't a valid email address and sendmail fixes the address with the name of the server. If you'd put [EMAIL PROTECTED], you'd see that address unchanged. Alex. - Original Message

[PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch
Dear list, Does anyone know how the internals of create function works? $test = create_function('blah','$arg,$arg2',$code); Does it really create the function in $test; or creates it a global function and references it to $test And further more, is it very SLOW? Warm regards, Emile Bosch

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Bogdan Stancescu
Why do you need this? To my knowledge you get the same behaviour with ? function create_function() { [body] } $test=create_function; $test; ? Bogdan Emile Bosch wrote: Dear list, Does anyone know how the internals of create function works? $test =

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch
Thank you for you interest, I need to know this because am building an CMS package.. and create function create functions on the fly which can come in handy very much.. My questions was wheter create_function the PHP tag, slow is or not... hope someone can help me out here.. Warm regards,

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
Nope $test(); Regards, Andrey - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: Emile Bosch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 3:43 PM Subject: Re: [PHP] Question about CREATE_FUNCTION Why do you need this? To my knowledge you get

[PHP] HELP TO VALIDATE CHECKBOXES

2001-12-21 Thread Yogesh Mahadnac
Hi! I'm having some problems with checkboxes at the moment, and i'd be glad if you could help me solve it... i'll give a brief explanation of the situation first so that you can understand what i'm talking about :-) I have the tables 'User' (containing userid,etc), 'Category' (containing

Re: [PHP] Sendemail appends domain to mail function

2001-12-21 Thread TD - Sales International Holland B.V.
On Friday 21 December 2001 11:48, Peter stuffed this into my mailbox: You probably have masquerading on I think. I believe it's the DM tag in the sendmail.conf off record I think you want to use this for spam. since else it's pretty useless to send email from a non-existing domain which XYZ

Re: [PHP] PHP / SSL

2001-12-21 Thread TD - Sales International Holland B.V.
This is what I got back so far from RC5 where there are crypto experts. And as the guy from GMDI? i forgot, something like that .nl, pointed out, it also matters whether it's SSL2 or SSL3 40bit encryption if I'm not mistaken. Hope you can do something with this info. Appearantly, like stated

Re: [PHP] HELP TO VALIDATE CHECKBOXES

2001-12-21 Thread Bogdan Stancescu
while ($row = mysql_fetch_array($result)) { echo $row[name]; list($checked)=mysql_fetch_row(mysql_query(select user_id from User_Category where user_id='$current_user' and category_id='.$row[category_id].')); $checked=$checked? checked:; echo 'input type=checkbox name=cat[]

Re: [PHP] HELP TO VALIDATE CHECKBOXES

2001-12-21 Thread Bogdan Stancescu
Ummm, though of this after I sent the e-mail: you may even perform the line after list($checked)... with an if in the query and skip the line altogether. But that may be a little too much... :-) Bogdan Bogdan Stancescu wrote: while ($row = mysql_fetch_array($result)) { echo

[PHP] last row in the table

2001-12-21 Thread Andrey Hristov
Ususally when someone needs to select last row in a table (s)he do: select * from some_table order by some_field desc limit 1; but there is another possible solution for mysql : ? mysql_free_result(mysql_query('select @a:=max(member_id) from memberInfo')); $res=mysql_query('select * from

Re: [PHP] last row in the table

2001-12-21 Thread Andrey Hristov
I wrote this because maybe the ordering is more expensive than 2 queries (one one indexed field possibly). Regards, Andrey - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:18 PM Subject: [PHP] last row in the table

[PHP] Re: Issues with fopen long file names?

2001-12-21 Thread Garth Dahlstrom
I have no problems using fopen to open up a long file name under Win2k Pro... $fp = fopen(C:\WINNT\Temp\adodb_9002b91d2d52c10124c949e2b415a980.cache, r); I notice in the example you give your file has a trailing space, not sure if that would throw things at all. Have you tried using *$array

Re: [PHP] Re: Issues with fopen long file names?

2001-12-21 Thread Andrey Hristov
Try this : $fp = fopen(C:\\WINNT\\Temp\\adodb_9002b91d2d52c10124c949e2b415a980.cache, r); HTH, Andrey - Original Message - From: Garth Dahlstrom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:24 PM Subject: [PHP] Re: Issues with fopen long file names? I

RE: [PHP] Sendemail appends domain to mail function

2001-12-21 Thread Michael Geier
set From: like this - $mailheaders .= From: XYZ Company [EMAIL PROTECTED]\n; -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 4:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Sendemail appends domain to mail function Hi, I have problem.

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
?php $test='htmlspecialchars'; echo $test('html'); ? Produces : lt;htmlgt; Regards, Andrey - Original Message - From: Alexander Skwar [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:35 PM Subject: Re: [PHP] Question about

[PHP] Authentication problem with IE on Win2k

2001-12-21 Thread Martin Schichl
I've installed authenification by $PHP_AUTH_USER and $PHP_AUTH_PW which works fine with my browser (IE NS) on a win98 box. It keeps the login even if I switch to another protected page (same user, same pw) On a Win2k Machine the authentication works fine on the first page, but when I

[PHP] Re: page has expired

2001-12-21 Thread Chris Lee
this has been covered before on the newsgroup, never the less. this is because php sends the no-cache header when using sessions. try it. sniff the line and run the same page with sessions and then without sessions, you can see the different headers. you can get around this by sending a cache

[PHP] Re: sessions and authentication

2001-12-21 Thread Chris Lee
insted of if ( $isloggedin ) user logged in do if ( $HTTP_SESSION_VARS['isloggedin'] ) user is logged in -- Chris Lee [EMAIL PROTECTED] Steve Maroney [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey guys, I know this has been brought up

[PHP] PHP called recursively?

2001-12-21 Thread Thomas Karcher
Hi PHP users, I have a couple of PHP scripts that generate dynamic content for a website. Now the admin of this website should be able to burn a CD of its pages, so I wrote another PHP script which calls the CGI PHP executable to get the content and write it down, like this: $content =

[PHP] Re: Standard output (printf) question...

2001-12-21 Thread Chris Lee
look at the output bufering functions. http://php.ca/manual/en/ref.outcontrol.php -- Chris Lee [EMAIL PROTECTED] Paul H. Breslin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to create a function that will generate output that could go to

[PHP] Re: Cookie Can't Display Name on other page

2001-12-21 Thread Chris Lee
wow sessions and cookie on the same page? why dont you just use one or the other? I pref sessions. never the less. your not setting the exp, path, or domain in your setcookie() you must do all those. setcookie('name', 'chris lee', time()+84700, '/', 'www.mediawaveonline.com'); -- Chris Lee

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Bogdan Stancescu
Or, to actually prove your point in the original e-mail (I checked it and you're right): ? function echotest() { echo(Testing); } $test=echotest; ? If you now try ? $test; ? it won't do anything -- as you said, ? $test(); ? is the proper code. Something worth mentioning is that

[PHP] Problem when configurin php+gd+libpng

2001-12-21 Thread Patrick
Hi,all when i configuring Php 4.0.6 with gd and libpng support i get an error like this: ... checking for the location of libpng... yes checking for png_info_init in -lpng... no configure: error: libpng not found! All help are liked well.Thanks

[PHP] PHP Logo?

2001-12-21 Thread David
hmm, i remember not too long ago, people were suggesting a new logo for php... wondering why nobody\'s discussing it now? or am i missing something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] MSSQL DB Connect

2001-12-21 Thread Jerry
Hi I have PHP on windows 2000 web server I would like to remote to a MS SQL database on another web server. I tried something like: ?php $h = server adr; $u = user; $p = passw; $b = db; $connexion = mssql_connect($h, $u, $p); mssql_select_db($b); $sql = select * from test; $result

Re: [PHP] array_walk() + class methods

2001-12-21 Thread Papp Gyozo
array_walk($ar, array($object, 'methodname')); - Original Message - From: Jeff Levy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 1:17 PM Subject: [PHP] array_walk() + class methods | I'd like to call a class method with array_walk(). Is this

[PHP] PostgreSQL query taking a long time

2001-12-21 Thread K Old
Hello all, I have a PostgreSQL database that is storing The Bible. It has 31,103 records in it and I have a PHP page executing this query: SELECT books.book_name, bible.chapter, bible.verse, bible.versetext FROM asv_bible bible, book_bible books WHERE bible.book = books.id ORDER BY random()

Re: [PHP] PHP Logo?

2001-12-21 Thread Dan McCullough
i think the conversation lost momentum over the last weekend, i would like to interject some thought onto the subject, that someone who designs logo's as a job told me about the process. the process wasnt setup for success if the people that are responsible for php needed to drive the

Re: [PHP] Re: some body flood mypage how can I prevent them ?

2001-12-21 Thread Steve Maroney
some good packet filtering rules should take care all of that. On Fri, 21 Dec 2001, Daniel Masur wrote: at least you have to tell what is getting flooded... db? apache? logs? pings? Alawi [EMAIL PROTECTED] schrieb im Newsbeitrag

RE: [PHP] Suggestions for the next php

2001-12-21 Thread Stephano Mariani
I believe fork is very expensive in terms of performance. One should consider that in the case of server modules (ISAPI in particular) a huge overhead is incurred when forking. I better alternative would be the vfork call. Or better still, the __clone call. Do you know of any ways to implement

RE: [PHP] Mommy, is it true that...?

2001-12-21 Thread Nathan Cassano
One thing that I do know is dangerous is deleting rows based on an integer field with an unprocessed value; Example: Delete row script ? if($delete $id){ delete from mytable where id = $id; } ? By simply appending an all inclusive sql clause. $id = 21421 or 1 = 1; Ca-Boom! The

Re: [PHP] Mommy, is it true that...?

2001-12-21 Thread Bogdan Stancescu
Yes, that's a very good one I didn't think of! One thing that I do know is dangerous is deleting rows based on an integer field with an unprocessed value; Ca-Boom! The entire table has been deleted. Don't you feel dumb! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Most secure way to send a password

2001-12-21 Thread James Arthur
Hi The most insecure part of entering a password in a web form is when you click submit and your password is sent in plain text form to your next PHP script. Is there any way around this without using JavaScript? How secure is it to use HTTP_AUTH? Cheers --jaa

[PHP] PHP ssi

2001-12-21 Thread Nick
Is it possible to have a .php file parse SSI's? I tried adding .php as a SSI file but it overwrote the php type, and wouldn't display PHP. And vice-versa. If not, i'd hafta write a php script that executes a program, and take the output from that program and parse it, which I don't know how to

Re: [PHP] PostgreSQL query taking a long time

2001-12-21 Thread Shane Wright
Hi, You dont have the book field in the asv_bible table indexed. Use this to index it CREATE INDEX myindexname ON asv_bible(book); (the primary key fields are ok because PostgreSQL creates a unique index to implement the PRIMARY KEY constraint). Hope that helps :) -- Shane I have a

Re: [PHP] PHP ssi

2001-12-21 Thread Shane Wright
Hi Nick, No, this isnt possible - but the constructs in PHP should allow you to do anything you can do with SSI just as easily. -- Shane On Friday 21 Dec 2001 5:45 pm, Nick wrote: Is it possible to have a .php file parse SSI's? I tried adding .php as a SSI file but it overwrote the php

Re: [PHP] Most secure way to send a password

2001-12-21 Thread Bogdan Stancescu
JavaScript doesn't implement any kind of one-way hashing. But that's for a good reason: suppose JavaScript encoded your password and sent it encoded to the server. The in-between hacker would retrieve the encoded password as it is sent to the server and simply pass that as the password - he

Re: [PHP] FrameSet Problem with PHP, Pls Help!

2001-12-21 Thread Michael J. Seely
Hello Jack, I'm not sure I follow exactly what you are doing but I think you can make this work by passing the variable data in all url links to each php page in the frameset - frame tags. I haven't found a limit to the number of times these links can be nested. The other issue that might

[PHP] Re: Can it be improved upon?

2001-12-21 Thread Philip Hallstrom
You might consider converting users.pass to one of the various DB formats so that you can do a direct lookup on $user. And, move the check for !isset($PHP_AUTH_USER) outside of the while loop. If that condition is going to be true, there's no reason to even bother opening the file. On Fri, 21

Re: [PHP] Most secure way to send a password

2001-12-21 Thread Bogdan Stancescu
As a side note, that's obviously the most insecure part of entering the password because it's the only time you enter the password. :-) The most insecure part of entering a password in a web form is when you click submit and your password is sent in plain text form to your next PHP

Re: [PHP] PHP ssi

2001-12-21 Thread Nick
Well the include line I needed was this: !--#include virtual=/cgi-bin/ssirand.cgi?REGION=Sports --! That didn't work since the filetype is PHP. After some searching on the developers website I came across a posting for getting the thing to work on PHP3, so I tried it (even tho i'm using

RE: [PHP] Mommy, is it true that...?

2001-12-21 Thread Jaime Bozza
Another way I validate input is by using settype(); For instance: settype($id, integer); I use addslashes and settype on all data coming from a browser that ends up being using in a query. (abs will convert negative numbers, which may be what you want, but then again. G) Jaime Bozza

[PHP] Re: PHP called recursively?

2001-12-21 Thread Chris Lee
if he wants to burn a cd why dont you just copy the php dir onto a cd? why do you have to parse everything? as an admin I would rather the entire dir then the content of the executed script. plus on your side parseing every url recursivly and getting all the images etc, what a hasle, just copy

[PHP] Re: some body flood mypage how can I prevent them ?

2001-12-21 Thread Chris Lee
hehe, not exactly a php question but whatever. you have a firewall correct? if you dont, lie and say you do because no one should be caught dead without one, and add the person to your block list. -- Chris Lee [EMAIL PROTECTED] Alawi [EMAIL PROTECTED] wrote in message

[PHP] support for categories?

2001-12-21 Thread steph
hi everyone. Im trying to categorize my data from my MySQL database. Ive set up a MySQL database with 2 tables: my categories and subcategories and another with my data and a category id from the category table. Im a newbie to PHP so am I on the right track?? Ultimately, I want a list of

[PHP] Hiding Filenames

2001-12-21 Thread Matias Banzas
Hiow can i do 2 hide the real Filename / Url of a file? Ive seen it donde in lots of places... i need this 2 show some images and hide the real Location of them Anyone can help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] storing line breaks in a database

2001-12-21 Thread Robin McKenzie
I am storing comments in a MySQL db, and want to know how to include line breaks from multi-line input boxes. Does anyone have any experience of doing this? Kind Regards, Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] storing line breaks in a database

2001-12-21 Thread Bogdan Stancescu
Yes - implement the Nike solution: Just do it! You have no problems, simply insert the data from the input box in the table. You may want to display the results with nl2br() so you can see the line breaks in HTML afterwards. Bogdan Robin McKenzie wrote: I am storing comments in a MySQL db,

[PHP] Re: storing line breaks in a database

2001-12-21 Thread Jeremy Reed
Are you talking about multiple line input boxes from HTML forms, or from a Visual Basic program (or some other such program)? In both cases, the line breaks are included in the output the form posts. However, when displaying them in HTML the linebreaks are ignored and you'd have to use the br

[PHP] Re: arrays

2001-12-21 Thread Jeremy Reed
Well, to do this you'll just have to write a loop that takes in every identifier=value pair and converts them into an array of values attached to the tag name. You'll have to parse the input character by character. The following pseudo code might help to explain a bit: // input[x] refers to the

[PHP] Re: arrays

2001-12-21 Thread Jeremy Reed
Oh, and don't forget to check for the trailing tags i.e. the /report etc. Jeremy Reed [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well, to do this you'll just have to write a loop that takes in every identifier=value pair and converts them into an array of

Re: [PHP] PHP ssi

2001-12-21 Thread Philip Olson
Try virtual() http://uk.php.net/virtual Something like: virtual('cgi-bin/ssirand.cgi?REGION=Sports'); regards, Philip Olson On Fri, 21 Dec 2001, Nick wrote: Well the include line I needed was this: !--#include virtual=/cgi-bin/ssirand.cgi?REGION=Sports --! That didn't work

[PHP] Counting Views on records in DB!

2001-12-21 Thread Thomas Edison Jr.
Hi, I was just going through some Message Board system and noticed that there is a Views column which gives how many times the Message has been viewed. I created a similar message board, where Messages are stored in a MySQL DB Table. But i have no idea how to do this, that the number of times

Re: [PHP] Counting Views on records in DB!

2001-12-21 Thread Bas Jobsen
UPDATE $table views=views+1 Op vrijdag 21 december 2001 21:38, schreef Thomas Edison Jr.: Hi, I was just going through some Message Board system and noticed that there is a Views column which gives how many times the Message has been viewed. I created a similar message board, where

Re: [PHP] Counting Views on records in DB!

2001-12-21 Thread Bogdan Stancescu
To be exact, update table messages set views=views+1 where id=$msg_id Bogdan Bas Jobsen wrote: UPDATE $table views=views+1 picked up is counted!! Can anyone guide me as to how this can be achieved? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Counting Views on records in DB!

2001-12-21 Thread Thomas Edison Jr.
Hi, UPDATE $table views=views+1 Umm.. can you be a little more specific. I couldn't make much sense, thought i could get the logic. Thanks. T. Edison jr. Hi, I was just going through some Message Board system and noticed that there is a Views column which gives how many times the

[PHP] Re: Hiding Filenames

2001-12-21 Thread LaserJetter
You could stop it coming up in the status bar by using javascript IMG SRC=path.gif onMouseOver=JavaScript: window.status = 'Ready' Can PHP read a set of images into a file pointer or array and then echo them back? See the images thread from 20/12/01 in this newsgroup for how to do IMG

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch
thx for al the help but i need some help of a php developer i guess cuz i am misunderstood here.. Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Or, to actually prove your point in the original e-mail (I checked it and you're right): ?

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Bogdan Stancescu
Why do you draw the conclusion you're misunderstood? We are unable to answer your question about speed -- so aren't we allowed to have a separate discussion derrivated from your question? Bogdan Emile Bosch wrote: thx for al the help but i need some help of a php developer i guess cuz i am

[PHP] Re: Rational Rose plugin for generating php code ?

2001-12-21 Thread Arne Brune Olsen
configure --help ie. nope, nothing there. uh? This has nothing to do with compiling php!! Rational Rose is a tool for uml modelling which can generate oo code from uml diagrams... Arne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread LaserJetter
I understand what you want to know (I dont know myself though) I dont see why it should be significantly slower than any other function (unless you're doing it millions of times in a row!!) If it doesnt recommend using a different function in the manual, I would keep using the one you're

[PHP] cgi shows headers in browser

2001-12-21 Thread Mark
I'm seeing the headers at the top of every page. Does anyone know what's going on here? It was working fine on a different machine with the same binaries and the same php.ini and httpd.conf I'm using apache with the openssl patch. thanks, - Mark -- PHP General Mailing List

[PHP] Re: Question about using --with for postgres or mysql

2001-12-21 Thread Philip Hallstrom
It won't affect your database. Adding --with-pgsql just tells php to compile PostgreSQL support and tells it where to find the postgresql libraries. It won't touch your database at all. On Fri, 21 Dec 2001 [EMAIL PROTECTED] wrote: Hello, just wondering if I compile or have to recompile php

Re: [PHP] Suggestions for the next php

2001-12-21 Thread Manuel Lemos
Hello, Vincent Stoessel wrote: I did not know that, thank you for the info. I just downloaded phpIDE beta and I am highly impressed with the debugger. It say that it can do remote debugging as well. That sounds cool but I wonder how secure it is. Zend folks, I apologize for taking so long

Re: [PHP] Suggestions for the next php

2001-12-21 Thread Manuel Lemos
Hello, Rouvas Stathis wrote: Manuel Lemos wrote: For example, multi-threading. Looking at the PHP sources, I can see this would be fairly easy to implement on some most server modules. Before I get fried by people for suggesting this, I know there are many functions that are

Re: [PHP] Suggestions for the next php

2001-12-21 Thread Manuel Lemos
Hello, Stephano Mariani wrote: I believe fork is very expensive in terms of performance. One should consider that in the case of server modules (ISAPI in particular) a huge overhead is incurred when forking. I better alternative would be the vfork call. Or better still, the __clone call.

[PHP] SSI

2001-12-21 Thread steph
if you have a PHP page and you want to use SSI in it... is there a special method? -- 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]

Re: [PHP] Counting Views on records in DB!

2001-12-21 Thread Brian Rue
Add a column to your messages table called views. Whenever you read the message (SELECT message FROM messages_table WHERE messageid='id';), increment the column for that row (UPDATE messages_table SET views = views + 1 WHERE messageid='id';). - Original Message - From: Thomas Edison Jr.

Re: [PHP] Beginner question?

2001-12-21 Thread Brian Rue
Can anyone show me how to split() each line and parse to see if $user exists? // get contents of a file into a string $filename = ./users.txt; $fd = fopen ($filename, r); $contents = fread ($fd, filesize ($filename)); fclose ($fd); // seperate the string into an array of lines $linebreak = \n;

  1   2   >