[PHP] Sessions can be dangerous

2003-05-31 Thread George Whiffen
Dear All, There doesn't seem to be much discussion of the disadvantages and long term dangers of using php sessions. So let's redress the balance: 1. Heterogeneous Code Environments php session data is not easily accessible from non-php code e.g. Perl/C/ASP etc. In contrast, either

Re: [PHP] Sessions can be dangerous

2003-05-31 Thread Mike Morton
Some great points in here George - but it leaves me hanging What are the options? If we are not to use a 'state-ful' system, how do you track users preferences, login/logout states, shopping baskets, and other items that need sessions or some other type of reliable tracking method? Not that

Re: [PHP] Suggestion of webpage about search engines

2003-05-31 Thread ruusvuu
C'mon! You built this site - don't lie and say you 'found' it! Quoting l [EMAIL PROTECTED]: I found one small site (designed in php of course:)) what care about registration on search engines and search engine optimalization here: http://submit.prolidi.net/en/ I found some of the

Re: [PHP] Email This Story and Print Functions

2003-05-31 Thread Michael Geier
the Print this Story really doesn't have anything to do with PHP, if you are referring to actually sending the page to a printer (see Javascript) if you are storing your articles in a DB, simply pull the info out and create a mailbody for the Email this Story function. On Fri, 2003-05-30 at

Re: [PHP] Email This Story and Print Functions

2003-05-31 Thread Justin French
on 30/05/03 6:36 PM, Jeffrey L. Fitzgerald ([EMAIL PROTECTED]) wrote: Thanks to Kevin, Monty and the others who helped with my earlier post... Anyone have experience with PHP based Email This Story and Print This Story functions?? I am looking to add these along with a digital postcard

Re: [PHP] mail function problem

2003-05-31 Thread Michael Geier
changing the value in the php.ini file is not the ideal option, as it screws things up for all of users/scripts on the server. you could use ini_set() for the script to change the sendmail_path var for that script. you could use a mail class that does alot of the grunt work for you (Manuel Lemos

RE: [PHP] Sessions can be dangerous

2003-05-31 Thread Wim Paulussen
George, Having created an invoicing system using php , I very clearly understand the advantage the session construction holds : the information is maintained on the server, rather than floating around in cyberspace between the client and server each and every time you exchange information. If you

[PHP] php + java in winxp platform, reload dont work~

2003-05-31 Thread Jason Chan
Dear all, i installed java jdk 1.4 and php 4.3.2 i tried to use java in php i edited the php.ini as follows [Java] extension=php_java.dll java.class.path = c:\php\extensions\php_java.jar java.home = C:\j2sdk1.4.1_01 java.library = C:\j2sdk1.4.1_01\jre\bin\server\jvm.dll java.library.path =

RE: [PHP] strip_tags() Quandry....

2003-05-31 Thread Carl Furst
As you can guess, I'm more a fan of the regular expressions myself being primarily a PERL head. However, PHP string functions are useful and convenient (like trim() for example), and they don't require you to know the in's and out's of regexps which can look like gobbledygook, be very confusing,

Re: [PHP] PHP 4.3.2 released

2003-05-31 Thread Andrew Scott
Hi, This _still_ doesn't seem to work with Linux/Apache2. I have no problems with Apache 1.3.27. Have been running Apache/php for years, but I have been unable to get php to work with apache2 except as a cgi. I have now tried both --with-apxs2 and --with-apxs2filter. Neither appear to work.

[PHP] Passing page referrer on as variable

2003-05-31 Thread Mallen Baker
I have a login process for an intranet that aims to allow all people to view the intranet front page, but as soon as they click on a link, they are taken to a login page. Once they have logged in (authentication via sessions, drawing from info held in a mysql database) they can then go wherever

Re: [PHP] strip_tags() Quandry....

2003-05-31 Thread Noah
Exactly, Carl. The HTML team data I'm dealing with comes in myriad formats -- nothing is uniform as each school presents their team data differently, not to mention potential inconsistencies (e.g. users mistakenly entering multiple spaces between fields and the like) within each format. For the

Re: [PHP] Sessions can be dangerous

2003-05-31 Thread Erik S. LaBianca - Quonic
Wim While I do see the usefullness of sessions, I have to disagree with you on the security aspect. A session ID is just as vulnerable to sniffing as is a username / password combination. The only security you gain from using it instead is that it's value is time limited. If your application

Re: [PHP] Sessions can be dangerous

2003-05-31 Thread Justin French
on 31/05/03 1:26 AM, George Whiffen ([EMAIL PROTECTED]) wrote: 1. Heterogeneous Code Environments php session data is not easily accessible from non-php code e.g. Perl/C/ASP etc. In contrast, either client-stored data e.g. cookies, hidden posts, get variables, or data stored in a structured

RE: [PHP] strip_tags() Quandry....

2003-05-31 Thread Carl Furst
OH yeah, it takes a little while to get the gist of how to use them, you should also Google Perl Regular Expressions see what turns up. The perlre man page is very detailed which is good but you might find some other useful tricks that PHP functions or the Perlre manpage may not cover, like

Re: [PHP] PHP 4.3.2 released

2003-05-31 Thread Justin French
on 31/05/03 1:46 AM, Andrew Scott ([EMAIL PROTECTED]) wrote: This _still_ doesn't seem to work with Linux/Apache2. I have no problems with Apache 1.3.27. Have been running Apache/php for years, but I have been unable to get php to work with apache2 except as a cgi. I don't mean to be rude,

Re: [PHP] Sessions can be dangerous

2003-05-31 Thread Rasmus Lerdorf
On Fri, 30 May 2003, George Whiffen wrote: 1. Heterogeneous Code Environments php session data is not easily accessible from non-php code e.g. Perl/C/ASP etc. In contrast, either client-stored data e.g. cookies, hidden posts, get variables, or data stored in a structured database table,

Re: [PHP] Passing page referrer on as variable

2003-05-31 Thread Kevin Stone
- Original Message - From: Mallen Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 30, 2003 8:48 AM Subject: [PHP] Passing page referrer on as variable I have a login process for an intranet that aims to allow all people to view the intranet front page, but as soon as

[PHP] CR in MySQL?

2003-05-31 Thread Brian Dunning
How do you put a carriage return in a MySQL database and have it display as a line break on the web page? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CR in MySQL?

2003-05-31 Thread Dan Joseph
How do you put a carriage return in a MySQL database and have it display as a line break on the web page? str_replace (\n, br, $var); -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CR in MySQL?

2003-05-31 Thread David Grant
Dan Joseph wrote: How do you put a carriage return in a MySQL database and have it display as a line break on the web page? str_replace (\n, br, $var); -Dan Joseph Is CR == NL? What's wrong with nl2br()? -- David Grant Web Developer [EMAIL PROTECTED] http://www.wiredmedia.co.uk Tel: 0117

[PHP] reserver variable names

2003-05-31 Thread Lee Doolan
I could swear that I once saw a statement to the effect that certain variable names were reserved in PHP. Something along the lines of ''variable names starting with two underscores (__) are reserved... '' Is anyone else aware of this or do I have a circuit crossed somewhere? thanx

RE: [PHP] CR in MySQL?

2003-05-31 Thread Dan Joseph
Hi, str_replace (\n, br, $var); -Dan Joseph Is CR == NL? What's wrong with nl2br()? Beats me, is it? nothing wrong with it I guess, I just didn't know about that function. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] reserver variable names

2003-05-31 Thread Kevin Stone
- Original Message - From: Lee Doolan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 30, 2003 10:49 AM Subject: [PHP] reserver variable names I could swear that I once saw a statement to the effect that certain variable names were reserved in PHP. Something along the

Re: [PHP] CR in MySQL?

2003-05-31 Thread David Grant
Dan Joseph wrote: Hi, str_replace (\n, br, $var); -Dan Joseph Is CR == NL? What's wrong with nl2br()? Beats me, is it? nothing wrong with it I guess, I just didn't know about that function. -Dan Joseph Just did a bit of checking.. NL == ASCII 010, CR == ASCII 015.. -- David

[PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
Hey, Im trying to use preg_match to validate numbers in multiple fields. I can check one field but Im having trouble checking multiple fields. preg_match ( '(foo)' , $_POST[num1] ); - That works fine. but I need to check multiple fields. I thought I would build an array with the POST

RE: [PHP] CR in MySQL?

2003-05-31 Thread Dan Joseph
Hi, Just did a bit of checking.. NL == ASCII 010, CR == ASCII 015.. Ahh ok, so nl2br() would work. Cool, I guess you learn something new everyday. Is there a one for CR's? I noticed cr2br() wasn't listed in the manual. -Dan Joseph -- PHP General Mailing List

Re: [PHP] preg_match array question

2003-05-31 Thread David Grant
Daniel J. Rychlik wrote: Hey, Im trying to use preg_match to validate numbers in multiple fields. I can check one field but Im having trouble checking multiple fields. preg_match ( '(foo)' , $_POST[num1] ); - That works fine. but I need to check multiple fields. I thought I would build

Re: [PHP] preg_match array question

2003-05-31 Thread Chris Cook
You could also have the form post as an array and this saves you the coding in PHP. Like this: form input type=text name=num[] input type=text name=num[] input type=text name=num[] /form Chris From: David Grant [EMAIL PROTECTED] Reply-To: David Grant [EMAIL PROTECTED] To: Daniel J. Rychlik

[PHP] Cookies Probelm,

2003-05-31 Thread Haseeb Iqbal
hi guys i am having this strange problem.i want to store quite a lot of data in cookie as an array but the problem is when ever my arrays size get equal to 4 it starts over. what could be the problem? here is the array that i get Array ( [Cart] = Array ( [14] = Array

RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
Try this: Let say you have these three fields in your form: INPUT TYPE=text VALUE=num[1] INPUT TYPE=text VALUE=num[2] INPUT TYPE=text VALUE=num[3] then use the following to iterate through each field: foreach($_POST['num'] as $key = $value){ preg_match ( '(foo)' , $_POST[num][$key] ); }

RE: [PHP] Cookies Probelm,

2003-05-31 Thread Jay Blanchard
[snip] hi guys i am having this strange problem.i want to store quite a lot of data in cookie as an array but the problem is when ever my arrays size get equal to 4 it starts over. what could be the problem? [/snip] There are size limits for cookies dependent upon the browser. I am going to

Re: [PHP] Cookies Probelm,

2003-05-31 Thread Haseeb Iqbal
thanx for the information. how can i overcome this ? any idea? Haseeb - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Haseeb Iqbal [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:01 PM Subject: RE: [PHP] Cookies Probelm, [snip] hi guys i am having this

RE: [PHP] Cookies Probelm,

2003-05-31 Thread Jay Blanchard
Google for cookie information -Original Message- From: Haseeb Iqbal [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Cookies Probelm, thanx for the information. how can i overcome this ? any idea? Haseeb - Original Message

Re: [PHP] Cookies Probelm,

2003-05-31 Thread Catalin Trifu
Hi, Try using sessions instead of cookies. This way the array gets saved locally and not sent packed into a cookie. The only thing which passes as a cookie is the session id. Cheers, Catalin Haseeb Iqbal [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thanx for the

RE: [PHP] CR in MySQL?

2003-05-31 Thread Narayana Reddy Gari, Ramki (MED)
Hi guys, I see the following the messages Notice: Object to string conversion in D:\Inetpub\wwwroot\cad_service\presentation\PresentationObject.php on line 18 Notice: Object to string conversion in D:\Inetpub\wwwroot\cad_service\presentation\PresentationObject.php on line 19 class

[PHP] Assignment operator questions

2003-05-31 Thread Andrew D. Luebke
Is it possible to do the following in PHP a = b = c; Which in C, for instance would set b and a equal to c. Thanks. Andrew. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Assignment operator questions

2003-05-31 Thread Joe Stump
Exactly what you just did will work ... ?php $c = 1; $a = $b = $c; ? $a, $b and $c all are 1 now. --Joe -- Joe Stump [EMAIL PROTECTED] http://www.joestump.net Label makers are proof God wants Sys Admins to be happy. -Original Message- From: Andrew D. Luebke [mailto:[EMAIL

[PHP] Best Practices in Directory Layout?

2003-05-31 Thread motorpsychkill
I've wanted to get some input on this for a while... I've recently been designing PHP applications using the following directory architecture: main/ master php files (e.g. addphoto.php) includes/ forms/ validation/ process/ So, using the addphoto.php

[PHP] Re: \n outputs \r\n ??

2003-05-31 Thread Michael Isaacs
Thanks for the promp replies to my message. After a bit of testing, running command line, and doing some debugging, I found that it was an ftp statement that was causing the problem. It was sending the file I was creating (which was correct) in ASCII format and this was changing the LF to CRLF.

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
The problem is, that I have multiple fields and what I am trying to do is check each field to make sure I get the data that I need and not some crap, like letters in a number field or a script tag in a field. Things of this sort. The foreach loop wont work for me in this instance because Im

Re: [PHP] Suggestion of webpage about search engines

2003-05-31 Thread Ryan A
Liar Liar, This is your site..I recognize the english/spelling mistakes. -Ryan - Original Message - From: l [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:24 PM Subject: [PHP] Suggestion of webpage about search engines I found one small site (designed in

[PHP] Problem with DB2 on Linux?

2003-05-31 Thread Scott Fletcher
Hi! I do not have problem with DB2 on AIX and I had never use DB2 on Linux before. So, I installed it and it was successful but I get an error message saying that it can not create DB2 instance due to permission denied. I tried many workaround to it with no luck, so did anyone who have this

RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
Not sure if I'm misunderstanding, but I know that foreach() will do this. -Original Message- From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:58 AM To: Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] preg_match array question The problem is, that I have

[PHP] Adding graphics library

2003-05-31 Thread Todd Cary
I am new to Linux so I need some help for installing the graphics library. This is what I did to get PHP to inlcude Interbase. !! Configure PHP with Interbase with apxs 34 ./configure --with-apxs=/usr/sbin --with-interbase=/opt/interbase 35 ./configure --with-interbase=/opt/interbase

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
perhaps I am misunderstanding... I have snipit of my foreach. I have a preg_match that checks for a valid email address. basically it just checks for an @ and a . When I place this in my loop all of the keys are evaluated, so hence the name key is evaluated and thrown error because of the

Re: [PHP] Best Practices in Directory Layout?

2003-05-31 Thread Jim Lucas
I prefer the second method. It allows you to look at one folder and see everything that that one process can and will do. Jim Lucas - Original Message - From: motorpsychkill [EMAIL PROTECTED] To: Php General List [EMAIL PROTECTED] Sent: Friday, May 30, 2003 12:04 PM Subject: [PHP] Best

[PHP] static vars question

2003-05-31 Thread Martin Helie
Sorry if this is completely stupid, but can anyone explain this, assuming the following code: function test() { static $i = 0; if( $i 10 ) { $i++; test(); } echo I'm here; } test(); I am a little surprised to find that even when $i 10 and test() is invoked

Re: [PHP] static vars question

2003-05-31 Thread Steve Keller
At 5/30/2003 04:49 PM, Martin Helie wrote: function test() { static $i = 0; if( $i 10 ) { $i++; test(); } echo I'm here; } I am a little surprised to find that even when $i 10 and test() is invoked again, the current function call executes all the way

[PHP] array count() oddity

2003-05-31 Thread Guru Geek
Hello, I have a mysql statement listed below. The table contains about 100 rows of information. Only one row matches the $criteria. Can anyone tell me why the count($myrow) is 8? Shouldn't it be 4 (id, vanNumber, origin, destination)? $criteria = 02-25-2003; $result = mysql_query(SELECT id,

[PHP] XPath and Namespaces

2003-05-31 Thread andre.varney
Hi, I have been successfully using XPath to parse some data from my XML docs for quite a while. Now I have a document that uses namespaces. And I can't get a grip on how to address my data any more. Does anyone know how to solve the following problem? Any help appreciated. Cheers, André

Re: [PHP] array count() oddity

2003-05-31 Thread Kevin Stone
- Original Message - From: Guru Geek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 30, 2003 3:15 PM Subject: [PHP] array count() oddity Hello, I have a mysql statement listed below. The table contains about 100 rows of information. Only one row matches the $criteria.

RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
foreach ($_POST as $key=$value) { if (empty($value)) { error_message[] = $key :: Missing Databr/; } // if email field, perform email validation if($_POST[$key] == 'email') if (!preg_match('/([a-z0-9\-\.\#\:[EMAIL PROTECTED])/i', $_POST[$key])) { error_message[] = $value . is not a

[PHP] Help about these algorithm methods

2003-05-31 Thread [EMAIL PROTECTED]
Hello all, I need help about to implement these methods in PHP: 1) Tree (Arbol) 2) Queue - FIFO (Cola) 3) Grafo 4) Linked lis - (Listas enlazadas o ligadas)) 5) Stack - LIFO - (Pila) If someone know about a web site that explain these in PHP, I will appreciate it, thanks for all your help :),

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
Why? The I'm here line is outside the conditional. The function will still complete independent of the conditional. If $i is greater than ten, the pointer just skips the contents of the if/then and continues on the next line after it. Here's a better illustration: In my test() function, I

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
OH man, thats the ticket. I didnt even think about checking the $_POST[email] == email and then running the preg_match. I assumed that it evaluate the end of the preg_match statement and see $_POST[email] I appreciate your time... Sincerely, Dan - Original Message - From: Ralph

Re: [PHP] static vars question

2003-05-31 Thread Steve Keller
At 5/30/2003 05:53 PM, Martin Helie wrote: In my test() function, I called test() again inside the if statement (which checks true for 10 iterations) Yes. So you've called the statement 10 times. and I thought that the current function would immediately be terminated by calling itself (or

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
Hi Steve, yes, I am familiar with these concepts; I am just starting to experiment with recursive functions and static variables. Thanks for explaining that once the function is called and completed, the rest of the first call continues executing normally. That is what surprised me. Martin No.

[PHP] Re: Variables not being past

2003-05-31 Thread John Zimmerman
The Doctor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Questions, I have a cusotmer using a basic username and password verifier on a php Web Page. This was working and suddenly with I redefined the php environment, the php variables are not getting passed on. why?

[PHP] Re: Adding graphics library

2003-05-31 Thread ef
--with-gd and of oucrce you need the GD library. Todd Cary [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] I am new to Linux so I need some help for installing the graphics library. This is what I did to get PHP to inlcude Interbase. !! Configure PHP with Interbase with

Re: [PHP] static vars question

2003-05-31 Thread Steve Keller
At 5/30/2003 06:27 PM, Martin Helie wrote: Thanks for explaining that once the function is called and completed, the rest of the first call continues executing normally. That is what surprised me. Yup. It's what makes building function libraries a thing of art in PHP, you can create smaller

[PHP] How to secure a download ?

2003-05-31 Thread Vincent M.
Hello, Is there any way to launch a download of a Zip file to the user without a link. The user must not know where the file is on the server. The transfert of the file must be made by a php file with special headers, no ? header(Content-type: zip); or something... Thanks. -- PHP General

[PHP] What's wrong with this code??

2003-05-31 Thread Beauford
Hi, I have the following which gets the month and day: $mo = date(m); $dy = date(d); Then I have the following IF statements which do something based on the date.. if ($mo == 04 and $dy = 01 and $dy = 20) { $wd = 1; } if ($mo == 04 and $dy = 21 and $dy = 27) { $wd = 2; } if ($mo == 04 and $dy

RE: [PHP] What's wrong with this code??

2003-05-31 Thread Jennifer Goodie
Problem lines if ($mo == 06 and $dy 01 and $dy 09) { $wd = 8; } if ($mo == 06 and $dy 08) { $wd = 9; } but if I change my date to 06/02 then no matter what I try, $wd always gets the value of 9 (it should be 8 on this date). It should not get the value 9 until the 9th

Re: [PHP] Help about these algorithm methods

2003-05-31 Thread olinux
Here's an article that covers tree and stack http://www.evolt.org/article/Four_ways_to_work_with_hierarchical_data/17/4047/index.html olinux --- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all, I need help about to implement these methods in PHP: 1) Tree (Arbol) 2) Queue - FIFO

Re: [PHP] How to secure a download ?

2003-05-31 Thread Evan Nemerson
header(Content-type: application/zip); header(Content-Disposition: attachment; filename=yourfilename.zip); readfile(/path/to/yourfilename.zip); On Friday 30 May 2003 03:34 pm, Vincent M. wrote: Hello, Is there any way to launch a download of a Zip file to the user without a link. The user

Re: [PHP] static vars question

2003-05-31 Thread Ernest E Vogelsinger
At 00:27 31.05.2003, Martin Helie said: [snip] yes, I am familiar with these concepts; I am just starting to experiment with recursive functions and static variables. Thanks for explaining that once the function is called and completed, the rest of the first

Re: [PHP] What's wrong with this code??

2003-05-31 Thread Ernest E Vogelsinger
At 01:08 30.04.2003, Beauford said: [snip] if ($mo == 06 and $dy 01 and $dy 09) { $wd = 8; } if ($mo == 06 and $dy 08) { $wd = 9; } [snip] The problem is your notation. If you had written if ($mo == 6 and $dy

Re: [PHP] What's wrong with this code??

2003-05-31 Thread Beauford
I figured that out after I sent the email. The reason I used the 0 in the first place was that I was having all sorts of problems with it - and it seemed to work fine for 01 to 05 so I just continued on with it - not even thinking about it. Your right though, the code is awkward - but I couldn't

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
Ernest, I'm not _that_ clueless :-) As I said, since I was recursing through the function by calling it numerous times in the middle of its execution, and since the function didn't explicitly return, I didn't expect it to continue past each call. That's all! Martin Ernest E Vogelsinger [EMAIL

[PHP] Code Help Please

2003-05-31 Thread [-^-!-%-
Hello all ! Need a little help here. Is there a way to translate variables/field names in an SQL statement? I need to compare the content of two database fields that are in different tables. The trick, though, is that I need to join two fields together (as a string) before I compare it. For

[PHP] performance issue under IIS

2003-05-31 Thread matt rowe
Dear list, Hi there. I have a bit of a performance problem under IIS, and I can't seem to figure it out. I have two similar servers. Both are running php v4.3.1 (as a cgi) with IIS on Win2k. Both have nearly identical php.ini files, and IIS configurations (as far as I can tell). However,

[PHP] Re: Adding graphics library

2003-05-31 Thread Martin Helie
Well, not necessarily, since gd is included with php 4.3.x. You'll probably still want to get libjpeg and libpng, and link against them with the proper configure options. Ef [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --with-gd and of oucrce you need the GD library. Todd Cary

RE: [PHP] Code Help Please

2003-05-31 Thread Jennifer Goodie
I need to find if table1.username = table2.domain/table2.username is If you are using mySQL you can use CONCAT table1.username = CONCAT(table2.domain,'/',table2.username) http://www.mysql.com/doc/en/String_functions.html#IDX1174 -- PHP General Mailing List (http://www.php.net/) To

[PHP] Long screen display cut short.

2003-05-31 Thread Floyd Baker
Hello... I have a routine that works fine on local win98 but when it runs on linux online, the screen output is cut short. I have lengthened the 30 second script time max to 45 but that made no difference at all. Depending on the particulars, the routine stops at a certain spot. If it is

[PHP] Re: Long screen display cut short.

2003-05-31 Thread Martin Helie
Well, I don't know if this might be it, but a while back, I had problems with apache + php (forget which version) and a bug in php that cause memory problems. I was using an array to store fairly large amounts of data. What would happen is something similar to what you describe. Modifying the

Re: [PHP] What's wrong with this code??

2003-05-31 Thread Brian V Bonini
On Fri, 2003-05-30 at 20:02, Beauford wrote: Your right though, the code is awkward - but I couldn't think of any other way of doing it. Any suggestions? switch http://us4.php.net/manual/en/control-structures.switch.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Best Practices in Directory Layout?

2003-05-31 Thread Jaap van Ganswijk
Hi, At 2003-05-30 12:04 -0700, motorpsychkill wrote: I've wanted to get some input on this for a while... I've recently been designing PHP applications using the following directory architecture: main/ master php files (e.g. addphoto.php) includes/ forms/

[PHP] I guess I'll give the list a shot

2003-05-31 Thread David McGlone
Hi all, I've got a really tough question, I am building an application that allows PayPal's shopping cart to have multiple items, but also multiple prices for the same item, but a different style or size or color, and Im quite stuck on how I would get the prices of the item according to it's

[PHP] Function result is an array

2003-05-31 Thread Dustin Mitchell
I briefly tried searching the archives for this, but there aren't any handy keywords, so I didn't find anything. Why can't I do this: $year = getdate($timestamp)['year']; (syntax error) while I can do this: $temp = getdate($timestamp); $year = $temp['year']; and is there a way to combine the

Re: [PHP] Re: Adding graphics library

2003-05-31 Thread Todd Cary
You'll probably still want to get libjpeg and libpng, and link against them with the proper configure options. What is the correct syntax to do all of the suggestions? Todd Martin Helie wrote: Well, not necessarily, since gd is included with php 4.3.x. You'll probably still want to

Re: [PHP] Function result is an array

2003-05-31 Thread Evan Nemerson
IMHO the function()[] syntax should be allowed, but it isn't. You could use list() or extract(), but then you'd wind up with a lot more date than you want. What I've been doing is creating a function, then calling when needed. For example: function array_get_value($array, $index) {

[PHP] Using Cookies Securely

2003-05-31 Thread Monty
I see some posts here that say storing a username or encrypted password in a cookie is not secure. If so, then what's a more secure way to allow users to be remembered using a cookie so that they don't have to log in every time they come to the site? What do you store in the cookie to authenticate

Re: [PHP] Using Cookies Securely

2003-05-31 Thread Justin French
The short answer is that if you're worried about security, don't store a uid and pwd in a cookie on the client... banks don't do it, for example. It's also common for the uid to be remembered, but not the pwd. From what I can see happening on the big sites, you give the user the option to be

Re: [PHP] Using Cookies Securely

2003-05-31 Thread Evan Nemerson
Send a session ID to the user in a cookie, then lookup that ID in a database on the server. It's extremely difficult to guess random session ID's (don't just increment them!), and if you have a session timeout, you're pretty much set. It's not perfect, but I don't think anyone has come up with

[PHP] Re: ldap_add() troubles

2003-05-31 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi list, i'm very newbie in PHP so sorry for this simple question but i havn't found any differences between my code and example code on a lot of website that i visited. I use PHP-4.3.1, OpenLDAP 2.1.19, BerkeleyDB-4.1.25 and

Re: [PHP] Re: ldap_add() troubles

2003-05-31 Thread Cecile
Quoting David Robley [EMAIL PROTECTED]: In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... [...] My problem is that my variables are not taken into account. This is the code : -- ?php print centerform method='post' Username : br input

Re: [PHP] Function result is an array

2003-05-31 Thread Ernest E Vogelsinger
At 06:23 31.05.2003, Evan Nemerson said: [snip] IMHO the function()[] syntax should be allowed, but it isn't. You could use list() or extract(), but then you'd wind up with a lot more date than you want. What I've been doing is creating a function, then

Re: [PHP] What's wrong with this code??

2003-05-31 Thread Beauford
I find the switch statement does not always give the desired results and it's really not any different than using the if statement - the calculations would still have to be the same - it's just laid out differently. - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To:

[PHP] Getting the parsing time of a script

2003-05-31 Thread Bix
Is there any way getting the time taken to parse a script? IE: This page took 0.13 seconds to generate. Is it a predefined variable anywhere? Thanks ;o) Bix. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I guess I'll give the list a shot

2003-05-31 Thread David Otton
On Fri, 30 May 2003 21:47:03 -0400, you wrote: Hi all, I've got a really tough question, I am building an application that allows PayPal's shopping cart to have multiple items, but also multiple prices for the same item, but a different style or size or color, and Im quite stuck on how I would

Re: [PHP] Getting the parsing time of a script

2003-05-31 Thread David Otton
On Sat, 31 May 2003 11:39:41 +0100, you wrote: Is there any way getting the time taken to parse a script? IE: This page took 0.13 seconds to generate. Call microtime() at the beginning and end of the script. $timeTaken = $timeEnd - $timeStart; see

[PHP] Re: Long screen display cut short.

2003-05-31 Thread Thomas Seifert
what is the online-version? I mean which webserver-software in which version? Thomas On Fri, 30 May 2003 20:45:08 -0400 [EMAIL PROTECTED] (Floyd Baker) wrote: Hello... I have a routine that works fine on local win98 but when it runs on linux online, the screen output is cut short. I

[PHP] Any POSTNUKER, reading from two DB

2003-05-31 Thread nabil
Greeting, I have a postnuke site and I want to connect it to two databases in order to verify users from these databases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting the parsing time of a script

2003-05-31 Thread Ernest E Vogelsinger
At 12:39 31.05.2003, Bix said: [snip] Is there any way getting the time taken to parse a script? IE: This page took 0.13 seconds to generate. Is it a predefined variable anywhere? [snip] $start = microtime(); for

Re: [PHP] Re: Long screen display cut short.

2003-05-31 Thread Ernest E Vogelsinger
On Fri, 30 May 2003 20:45:08 -0400 [EMAIL PROTECTED] (Floyd Baker) wrote: [snip] I have a routine that works fine on local win98 but when it runs on linux online, the screen output is cut short. I have lengthened the 30 second script time max to 45 but

php-general Digest 31 May 2003 12:37:10 -0000 Issue 2089

2003-05-31 Thread php-general-digest-help
php-general Digest 31 May 2003 12:37:10 - Issue 2089 Topics (messages 149622 through 149646): performance issue under IIS 149622 by: matt rowe Re: Adding graphics library 149623 by: Martin Helie 149631 by: Todd Cary Re: Code Help Please 149624 by: Jennifer