[PHP] ./configure error. won't let me continue...

2001-12-21 Thread Joelmon2001
Hello. I am trying to ./configure and I have many options I want to add. I receive an error which is further below. It comes after I type this endless ./configure which you see below as shown via telnet: [root@www php-4.0.5]# ./configure --enable-bcmath --enable-ftp \ --enable-safe-mode --with

Re: [PHP] Ensuring that Form is only submitted once (session vars?)

2001-12-21 Thread Steven Cayford
Your first reference to a session (usually session_start()) must come before any html is sent to the browser. A common problem is to have some white space before the tag in a preceding file. You can set up something like what you're working on using session variables. Create random numbers an

[PHP] "Talkback" or community type participation.....

2001-12-21 Thread Deron
Hi there! I have this script I just made based on a tutorial I found online and was wondering if there was a better way to do this or not. Everything works great so far except for a couple little things. Once the $submit is clicked and runs the INSERT data into the table... I am looking to be abl

[PHP] Re: Limit script memory usage !!

2001-12-21 Thread Yasuo Ohgaki
Nicolas Guilhot wrote: > Hi all, > I need to limit the amount of memory that a script can use. Is there a > function that I can use to tell the script to die if its memory usage > becomes greater than $MAX_MEMORY ! Or maybe, I could use a cron job to > monitor processes and kill them if they bec

[PHP] Re: web server crashing with either 4.1.0 or 4.0.6

2001-12-21 Thread Yasuo Ohgaki
Ian McNish wrote: > when trying at access any php scripts my web server is crashing. i'm > experiencing this problem with both php 4.0.6 and 4.1.0 on iplanet > enterprise 6.0sp1 on solaris 8. my web server is logging the following > error: > > catastrophe (21929): Server crash detected (signal S

[PHP] Email files as attachments

2001-12-21 Thread Andrew V. Romero
I was wondering if it is possible to attach a file using the php mailing functions? I currently am using mail("[EMAIL PROTECTED]","My email subject Line",$emailMessage, "From: [EMAIL PROTECTED]\nReply-To: [EMAIL PROTECTED]\nX-Mailer: PHP/" . phpversion()); to email simple messages, but I haven't

[PHP] Ensuring that Form is only submitted once (session vars?)

2001-12-21 Thread Andrew V. Romero
I was wondering if there is a way to ensure that a form is only submitted once. I have a script that saves a lot of information to the disk and if the user uses the back button and then resubmits the form, it will cause major problems. I jave looked into using javascript to fix this, but it does

[PHP] Re: session class

2001-12-21 Thread Yasuo Ohgaki
Christian Haines wrote: > (sorry if this has been posted a thousand times..i am having problems > posting) > > hi all, > > how does one access and manipulate session variables from within a class? > i have hunted the net high and low but received no relief. > > i have tried (where error

[PHP] session class

2001-12-21 Thread Christian Haines
(sorry if this has been posted a thousand times..i am having problems posting) hi all, how does one access and manipulate session variables from within a class? i have hunted the net high and low but received no relief. i have tried (where error is a session variable) class test { var $glo

Re: [PHP] Config Problems

2001-12-21 Thread Brian Clark
* Brian Clark ([EMAIL PROTECTED]) [Dec 22. 2001 00:09]: > > --with-ldap=/usr/local/openldap/ \ > Probably --with-ldap=/usr here Whoops. For ldap, I meant --with-ldap=/usr/local according to what you said. [...] > For that, =/usr is probably what you want. It just wants to base path > usually;

Re: [PHP] Config Problems

2001-12-21 Thread Brian Clark
* Ben Ocean ([EMAIL PROTECTED]) [Dec 22. 2001 00:01]: > Hi; Howdy. > I'm installing php from source and I've run into these config errors: [...] > Here's my config script: > #!/bin/sh > cd /usr/local/php > ./configure --with-apache=/usr/src/redhat/SOURCES/apache \ > --with-openssl=/usr/share

Re: [PHP] oscommerce / Exchange project

2001-12-21 Thread Kurt Lieber
On Friday 21 December 2001 08:56 pm, Daniel Guerrier wrote: > Does anyone have any experience using this thing. > I installed it and it seems to work, but it's very > buggy. Yes, I've used it fairly extensively. I haven't found it to be nearly as buggy as your message implies. It's not perfect

[PHP] Config Problems

2001-12-21 Thread Ben Ocean
Hi; I'm installing php from source and I've run into these config errors: configure: error: Cannot find OpenSSL's /usr/local/bin/config_php: --with-kerberos=/usr/krb5-1.2.2: No such file or directory /usr/local/bin/config_php: --with-ldap=/usr/local/openldap-2.0.18: No such file or directory

[PHP] oscommerce / Exchange project

2001-12-21 Thread Daniel Guerrier
Does anyone have any experience using this thing. I installed it and it seems to work, but it's very buggy. After the first hit the left nav, footer no longer appear. I know this a bad description of the problem but there's no rhyme nor reason to this. __

Re: [PHP] spliti

2001-12-21 Thread Brian Clark
* Yamin Prabudy ([EMAIL PROTECTED]) [Dec 21. 2001 23:17]: > $line = "no more words to say"; > then I want to split them all I used > spliti(" ",$line); http://www.php.net/explode > Then want to print it out say > echo $word[0] $word[1] $word[$i]; http://www.php.net/foreach or 3.x, use a wh

[PHP] spliti

2001-12-21 Thread Yamin Prabudy
hi guys, I need help here. I got this $line = "no more words to say"; then I want to split them all I used spliti(" ",$line); Then want to print it out say echo $word[0] $word[1] $word[$i]; how can I do this.. Thanks in Advance -- PHP General Mailing List (http://www.php.net/) To unsubscr

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

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.

[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] 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 cal

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 functio

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 l

[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 i

[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 (http://www.php.net

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

2001-12-21 Thread Joelmon2001
Hello, just wondering if I compile or have to recompile php in teh future and use another db solution like postgres or what not, would -- with mysql or postgres risk overwriting database info or wipe it out? Or it just automaticall allows php to connect to the existing mysql/postgres tables as

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 happiest

[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 addit

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 >

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): >

[PHP] Re: Hiding Filenames

2001-12-21 Thread LaserJetter
You could stop it coming up in the status bar by using javascript 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 LJ "Matias Banzas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

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

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: [EMAI

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

[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 t

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: > > Shane > > > > On Friday 21 Dec 2001 5:45 pm, Nick wrote: > >> Is it possible

[PHP] Re: arrays

2001-12-21 Thread Jeremy Reed
Oh, and don't forget to check for the trailing tags i.e. the 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 > = pair and converts them into an array of values attached >

[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 = 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 character at po

[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 tag i

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, an

[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 comma

[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 comma

[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 category

[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 00cd01c18a1a$050

[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 the

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. ) Jaime Bozza -O

Re: [PHP] PHP & ssi

2001-12-21 Thread Nick
Well the include line I needed was this: 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 type, and wouldn't display PHP. And >> vice-versa. If not, i'd hafta write a php s

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

[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 De

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 . I haven't found a limit to the number of times these links can be nested. The other issue that might be cau

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 do

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 ty

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

[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

[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 __

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, e-

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 By simply appending an all inclusive sql clause. $id = "21421 or 1 = 1"; Ca-Boom! The entire table has been deleted. Don't you feel dumb! Instead process t

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 th

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 > 00cd01c18a1a$05063440$b084a2d4@mcsh2l7jqy8bgj

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 discuss

[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() LI

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] 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: But it didn't work. Please help me. Jerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[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] To

[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

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): If you now try it won't do anything -- as you said, is the proper code. Something worth mentioning is that even if you do the former version won't work. Bogdan > $test='htmlspecialchars'; > echo $te

[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] 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 = `/usr/lib

[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 bro

[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

[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 hea

[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 s

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
'); ?> Produces : 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 CREATE_FUNCTION So sprach »Andrey Hrist

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

[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 *$arr

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] 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 : More info here : http://www.mysql.com/doc/V/a/Variables.html Regards, Andrey Hristov -- PHP General Mailing List

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 $row[

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 ''; } Hope this helps.

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] 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 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 is. i'll war

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

2001-12-21 Thread TD - Sales International Holland B.V.
On Friday 21 December 2001 03:51, Bogdan Stancescu stuffed this into my mailbox: NEVER EVER think that because they don't know your URL they won't find you!!! I've seen various people on security mailinglists stating I just have a new domain I haven't published yet and I got hacked alr

[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 c

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 knowledg

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, Emil

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 Bogdan Emile Bosch wrote: > 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

[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] Sendemail appends domain to mail function

2001-12-21 Thread Bogdan Stancescu
Or, better yet, try "From: XYZ company "; 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 ---

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

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 M

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 th

[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 Gener

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 > > sorry this is OT but we would

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

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 limit 0, 10 would give you the first 10 resulst select * from limit 10, 10 gives you results 11 - 20 select * from limit 20, 10 gives you 21 - 30 etc >

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 p

[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] 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.. http://localhost/hq.php

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?

  1   2   >