RE: [PHP] Prefilled forms

2003-11-18 Thread b b
I don't think you understood my question. Off course you have to store data in a database or a session var if you want to retrieve them later on. My problem is not there. I hava a form, I click submit and right after that I hit back. Usually in most cases the form will be prefilled with what I

[PHP] Array + postgresql + braincramp

2003-11-18 Thread Roy Cabaniss
The problem is most likely that I have been looking at it for too long and missed the obvious. I know I can make multiple fields in the database and work with it that way, but I'm sure an array is the proper solution. We have a form (and how many of our tales start off like that? Bet it beats "o

[PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Robert Cummings
This could end up a heated debate, so jump on in and get your feet wet. Originating from a response to: [Q] Development Best Practices On Tue, 2003-11-18 at 09:09, Luis Lebron wrote: > Before considering using templates you may want to take a look at > > http://www.phppatterns.com/index.php/art

[PHP] syntax problem, constants in quoted strings

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
How do you insert a constant into a quoted string, do I need to use concatenation operator like this "quoted string" . CONSTANT . "quoted string", or there is some way to insert it inline, like normal variables? -- Seks, seksić, seksolatki... news:pl.soc.seks.modero

RE: [PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Dan Joseph
Hi, > First off I'd like to agree that PHP "can" be used as a templating > system, but providing some of the functionality available in many of the As can any programming language if you think about it. I don't want to debate this topic though. I'll let the wolves jump in and shred you.

RE: [PHP] Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] I don't think you understood my question. Off course you have to store data in a database or a session var if you want to retrieve them later on. My problem is not there. I hava a form, I click submit and right after that I hit back. Usually in most cases the form will be prefilled with

RE: [PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Robert Cummings
On Tue, 2003-11-18 at 16:14, Dan Joseph wrote: > Hi, > > > First off I'd like to agree that PHP "can" be used as a templating > > system, but providing some of the functionality available in many of the > > As can any programming language if you think about it. I don't want to > debate thi

Re: [PHP] mcrypt libraries?

2003-11-18 Thread Jas
Curt Zirzow wrote: * Thus wrote Jas ([EMAIL PROTECTED]): I am not sure if I should post my question here but I will anyways. Ok, I have compiled the mcrypt libraries on a Redhat 9 box running apache 2 with php4. And I need to know the next step(s) in getting php to use the libmcrypt libraries.

RE: [PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Jay Blanchard
[snip] I don't want to debate this topic though... There's always going to be those who'd rather write PHP code, and those who want to use pre-made systems. [/snip] +1 It's a matter of choice, and even those that use templating systems do not use them 100% of the time. -- PHP General Mailing Lis

RE: [PHP] Prefilled forms

2003-11-18 Thread b b
The Problem again: I have a form, I fill it, click submit and then hit back. Usually in other sites I see the data that I attempted to submit. Forms originating from my site are coming up blank. In respnonse to your reply: I am using mozilla 5 or netscape 7. Same result in both. However, thi

Re: [PHP] Prefilled forms

2003-11-18 Thread Nathan Taylor
This shouldn't have anything to do with your server config, but rather the forms themselves. What method are you sending the form(s) with? Nathan - Original Message - From: b b To: Jay Blanchard ; [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 4:24 PM Subject: RE: [PHP]

RE: [PHP] Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] I am suspecting a php.ini setting that I have set or set off or an apache conf detail that is causing this. Bowser setting is a possibility but why then is it not behaving this way with other sites? [/snip] PHP, being a server side language, probably has nothing to do with this. Have you c

RE: [PHP] Prefilled forms

2003-11-18 Thread Vail, Warren
>From my experience, Jay's explanations are correct, but let me try another tack. It is my understanding that when you press the back button on a browser, the browser tries to present the page the same way it presented it the first time it was presented, from information it saved in it's history s

Re: [PHP] how to trap eval error?

2003-11-18 Thread CPT John W. Holmes
From: "david" <[EMAIL PROTECTED]> > i found a solution (hopefully) with: > > if(function_exists($function)){ > eval('$return = $function($input);'); > }else{ > // function does not exists > } > > which works quit nicely for now. not sure if that's a good thing to do. Why not ju

RE: [PHP]{OT} Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] > Have you consulted an Apache list? Googled for > answers? Anything like > that? No, this sounded like a basic thing. I can't believe I having to deal with it. See even if I submit this email and then click back I will see exactly what I typed. If that form was originating from my server

Re: [PHP] how to trap eval error?

2003-11-18 Thread david
Cpt John W. Holmes wrote: > From: "david" <[EMAIL PROTECTED]> > > >> i found a solution (hopefully) with: >> >> if(function_exists($function)){ >> eval('$return = $function($input);'); >> }else{ >> // function does not exists >> } >> >> which works quit nicely for now. not sure

Re: [PHP] syntax problem, constants in quoted strings

2003-11-18 Thread Marek Kilimajer
Adam i Agnieszka Gasiorowski FNORD wrote: How do you insert a constant into a quoted string, do I need to use concatenation operator like this "quoted string" . CONSTANT . "quoted string", Yes or there is some way to insert it inline, like normal variables? No -- PHP

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread CPT John W. Holmes
Anthony Ritter wrote: > The following code is from "PHP, mySQL and Apache" (SAMS) by Julie Meloni. [snip] > if (isset($_POST[form_products])) { > if (!empty($_SESSION[products])) { > $products = array_unique( > array_merge(unserialize($_SESSION[products]), > $_POST[form_product

Re: [PHP] Prefilled forms

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 01:24:23PM -0800, b b wrote: : : The Problem again: : I have a form, I fill it, click submit and then hit : back. Usually in other sites I see the data that I : attempted to submit. Forms originating from my site : are coming up blank. So what do you see if you put a pr

Re: [PHP] how to trap eval error?

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 02:03:25PM -0800, david wrote: : : Cpt John W. Holmes wrote: : : > From: "david" <[EMAIL PROTECTED]> : >> : >> if(function_exists($function)){ : >> eval('$return = $function($input);'); : >> }else{ : >> // function does not exists : >> } : >> : >> which w

Re: [PHP] sorting an array of regexes

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
Curt Zirzow wrote: > * Thus wrote Adam i Agnieszka Gasiorowski FNORD ([EMAIL PROTECTED]): > > Eugene Lee wrote: > > > > > On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka Gasiorowski FNORD > > > wrote: > > > : > > > : There is an array of regexes, for example > > > : > > > : $ar

RE: [PHP] Array + postgresql + braincramp

2003-11-18 Thread Giz
While you can use an array type in postgresql, in most cases I'd recommend against it. This is basically a repeating group, and in a relational database the proper way to handle this type of need would be to have a related table with a Many to 1 relationship back to the parent table. If you are i

RE: [PHP]{OT} Prefilled forms

2003-11-18 Thread b b
What??? You ahve sent me like three private emails. You did reply all which sends me a private message and a message from the list. I replied to the one that had only your email address in it by mistake. mama mia --- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > > Have you consulted an A

Re: [PHP] how to trap eval error?

2003-11-18 Thread CPT John W. Holmes
From: "david" <[EMAIL PROTECTED]> > Cpt John W. Holmes wrote: > > From: "david" <[EMAIL PROTECTED]> > > > >> i found a solution (hopefully) with: > >> > >> if(function_exists($function)){ > >> eval('$return = $function($input);'); > >> }else{ > >> // function does not exists > >> }

RE: [PHP] Prefilled forms

2003-11-18 Thread b b
Actually I am going back to the same URL. I am thinking it is an apache conf setting. See after I submit this email I can click back and will see the text that I am writing right now. If that form was coming from my server, it would be empty I am sure. Problem again: I have a form, fill it, cli

RE: [PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Chris W. Parker
Robert Cummings on Tuesday, November 18, 2003 1:05 PM said: > You might want to take the above article with a HUGE grain of salt. It > over generalizes and pretty much slots all template systems into the > same category. One of it's large claims is the overhead of th

[PHP] How to print nice looking text on an image?

2003-11-18 Thread Kevin Stone
Hello, I am producing a script that writes text onto a JPEG image to create custom printable gift certificates for an online store. The basics of the scripts are straight forward. However I found that the imagestring() function produces absolutely horrible looking pixelized text and on these gi

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread John Nichel
b b wrote: What??? You ahve sent me like three private emails. You did reply all which sends me a private message and a message from the list. I replied to the one that had only your email address in it by mistake. mama mia From what I've seen, Jay has had both your email address AND the list a

[PHP] onClick

2003-11-18 Thread Dan McCullough
I want an event to get triggered when using onClick, but the event will be MySQL delete/update/insert so how would I go about doing that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread b b
Some people don't read carefully before responding. I didn't say he sent me a private email!!! Anyway it would be appropriate not to forget to take out the email addresses other than the php-general... when clicking reply-all. I just don't see how someone who forgets and includes your address (so

[PHP] Re: Command line output

2003-11-18 Thread Shawn McKenzie
hey great thanks :( "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > O.K. I am just now experimenting with the CLI PHP and have another > question. With the following code, none of the echo output is seen until > the script completes. I even tried adding a flush()

RE: [PHP] onClick

2003-11-18 Thread Vail, Warren
onClick="this.form.submit();" will trigger a response from your form processing routine, as specified in the form action="myprogram.php". Warren Vail -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 2:42 PM To: Php-General Subject: [PHP] o

Re: [PHP] Arrays and performance

2003-11-18 Thread Kim Steinhaug
Thanks for your reply! Im going to use this for a backup system for our webstore system, where some of our customers have *alot* of products. Given the structure of the database with categories and images 5000 unique products quickly gives 3x = 15000 arrays. But again, how often would the client n

[PHP] sorting question

2003-11-18 Thread Ed.Lazor
I used PHP to combine several MySQL queries into a single array and now I'm trying to sort the results by one of the named columns. Is there an easy way to do this? asort didn't seem to do the trick, but maybe I'm not using it correctly. Here's the commands: asort($T); reset($T); foreach($T

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 02:52:42PM -0800, b b wrote: : : Some people don't read carefully before responding. I : didn't say he sent me a private email!!! Anyway it : would be appropriate not to forget to take out the : email addresses other than the php-general... when : clicking reply-all. I jus

RE: [PHP] sorting question

2003-11-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, November 18, 2003 3:25 PM said: > I used PHP to combine several MySQL queries into a single array and > now I'm trying to sort the results by one of the named columns. Any reason you can't turn all those queries into one and sort by da

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Anthony Ritter
Thanks John and others. I'm using the script and no values show up in the page: session_bb.php after I submit the values in the form. If somebody would like to test both scripts (session_aa.php and session_bb.php) and get back to me I would be grateful. As I said, these were from her book/CD.

[PHP] problem generating PNG using image functions

2003-11-18 Thread pw
Hello, I have some php code that I moved from one serve to another. The code in question generates some PNG images on the fly and works nicely on the old server. After moving the code to the new server only one of the PNG images now draws. The other images come back with : The image "http://url"

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread John Nichel
b b wrote: Some people don't read carefully before responding. I didn't say he sent me a private email!!! You're right, you didn't say he sent you A private email. You said, "You ahve sent me like three private emails." Anyway it would be appropriate not to forget to take out the email addresse

RE: [PHP] sorting question

2003-11-18 Thread Ed.Lazor
The date field used from each table differs based on certain conditions that PHP is testing for. It would be great to have MySQL do that, but is that possible? Here's some additional info that might help. The first table includes fields Status, DateAdded, DateShipped, DateCompleted. If Stat

Re: [PHP] problem generating PNG using image functions

2003-11-18 Thread pw
Hello again, I just found the problem: Fatal error: imageellipse(): requires GD 2.0 or later in imgtest.php on line 271Hope this helps someone else.Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php openssl

2003-11-18 Thread Fejes Jozsef
Hi! I'd really love to use PKCS12 functions from PHP but it's not supported. Why?!?!?!?! Currently I have to run the 'openssl pkcs12' system command, all the other things can be done from php. It's not in the least elegant. Anyone knows if there's going to be support for it or there's already a pat

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread b b
What is not right is tell me in public about it when he actually sent me private messges himself (accidentally). I also accidentally replied to the wrong duplicate email that he sent (so in fact it is his fault that he got the private message from me). Whats not right is to make it look like I

[PHP] imagettfbbox returning screwy values

2003-11-18 Thread Simon Detheridge
I'm having this really bizarre problem with imagettfbbox. The values it is returning seem to be way off the scale. I have gd and ttf support compiled into php, (running on latest stable apache 1, gentoo linux, latest stable php) When I call imagettfbbox I get very very large numbers back. They

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread John W. Holmes
b b wrote: What is not right is tell me in public about it when he actually sent me private messges himself Come on guys... let's get back to PHP. The point everyone should realize (or have re-enforced) is that you should post your questions and any follow-ups to the PHP Mailing List. Choosin

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread John W. Holmes
Anthony Ritter wrote: I'm using the script and no values show up in the page: session_bb.php after I submit the values in the form. If somebody would like to test both scripts (session_aa.php and session_bb.php) and get back to me I would be grateful. I think you're using a crappy book... :) Ma

RE: [PHP] ereg_replace help

2003-11-18 Thread Martin Towell
> * Thus wrote Martin Towell ([EMAIL PROTECTED]): > > Hi All, > > > > I have an array of strings in the following format: > > "abcd - rst" > > "abcd - uvw" > > "abcd - xyz" > > "foobar - rst" > > "blah - rst" > > "googol - uvw" > > > > What I want to do is strip everything

[PHP] Re: Assigning command line vars in script

2003-11-18 Thread Shawn McKenzie
I guess it's the greatest ever, that leaves everyone speechless ;-) -Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does this look like a good way to retrieve command line variables and assign > them in a script, or am I reinventing something that is already

[PHP] Re: Command line output

2003-11-18 Thread Shawn McKenzie
Guess no ones has a clue. I didnt get a RTFM or anything. -Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > O.K. I am just now experimenting with the CLI PHP and have another > question. With the following code, none of the echo output is seen until > the sc

[PHP] Custom Session usind MySQL

2003-11-18 Thread Manisha Sathe
I want the session to be accessed from different websites, so i got the answer in this forum only to make use of customised session with mysql. I searched the web and came to know that 'session.save_handler' of php.ini needs to be as 'user' but instead, on my server it is 'files'. As server is a s

Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread John W. Holmes
Manisha Sathe wrote: I want the session to be accessed from different websites, so i got the answer in this forum only to make use of customised session with mysql. I searched the web and came to know that 'session.save_handler' of php.ini needs to be as 'user' but instead, on my server it is 'fil

[PHP] Prefilled forms (solved)

2003-11-18 Thread b b
Alright lets clean the slate here. I think we all mean well and that is what counts. I apologize if I offended anybody. Incidentally I can't quite explain the solution to my dillemma. The following is a description of the Problem and the Solution: Problem: I am running apache/php server. If

Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread Marek Kilimajer
Manisha Sathe wrote: I want the session to be accessed from different websites, so i got the answer in this forum only to make use of customised session with mysql. I searched the web and came to know that 'session.save_handler' of php.ini needs to be as 'user' but instead, on my server it is 'file

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread John Nichel
John W. Holmes wrote: b b wrote: What is not right is tell me in public about it when he actually sent me private messges himself Come on guys... let's get back to PHP. Geez, leave it to you to kill what has the makings of a perfectly good flame war. ;) -- By-Tor.com It's all about the Rus

Re: [PHP] Prefilled forms (solved)

2003-11-18 Thread John W. Holmes
b b wrote: Problem: I am running apache/php server. If I populate a form, send it and then click back I see a blank form. Solution: I had some prefilled form elements where I set the value of such form element. For example I had input type = "hidden" VALUE="whatever" ... at the beginning of th

[PHP] SUMMARY: Help with Solaris/iPlanet 4.1 Setup

2003-11-18 Thread Evans, Tim
Yesterday, I asked: > I've followed the instructions at > http://www.php.net/manual/en/install.netscape-enterprise.php > for setting up PHP 4.3.4 with iPlanet 4.1 on Solaris 8, including: > However, when attempting to load a simple (phpinfo()) test > page, all web browsers I test attempt to dow

[PHP] Mysql question

2003-11-18 Thread Lists
I have a db in sql, and I need a php/mysql query/command to copy the entire db (schema and data) to a new db. I know how to do this with a table, but I can not figure out how to do this with a whole db. I also know that I could do it using mysql dump, but I don't want to have to run a shell c

Re: [PHP] Mysql question

2003-11-18 Thread Raditha Dissanayake
Creating new databases is usually done with the mysql root account. Bad idea to use this account in a php script. Lists wrote: I have a db in sql, and I need a php/mysql query/command to copy the entire db (schema and data) to a new db. I know how to do this with a table, but I can not figure

Re: [PHP] Mysql question

2003-11-18 Thread Lists
This is for an intranet application, I trust my users. Michael On Wed, 19 Nov 2003, Raditha Dissanayake wrote: > Creating new databases is usually done with the mysql root account. Bad > idea to use this account in a php script. > > Lists wrote: > > >I have a db in sql, and I need a php/mysql

RE: [PHP] Mysql question

2003-11-18 Thread Vail, Warren
I don't believe there is one command that does all this, so you've already ruled out one good option, but you can use PHPMyAdmin. Do you have PHPMyAdmin installed on either or both sites? Warren -Original Message- From: Lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:3

Re: [PHP] Mysql question

2003-11-18 Thread John Nichel
Lists wrote: I have a db in sql, and I need a php/mysql query/command to copy the entire db (schema and data) to a new db. I know how to do this with a table, but I can not figure out how to do this with a whole db. I also know that I could do it using mysql dump, but I don't want to have to

Re: [PHP] Prefilled forms (solved)

2003-11-18 Thread b b
No I am saying that if you have: and you click submit then if you click back to see the form the value you set w2 will be blank. If you reverse the order however then you will see what you entered in w2 --- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > b b wrote: > > > Problem: > > I am r

[PHP] windows file permission

2003-11-18 Thread Chris Williams
I am using PHP on Windows NT CGI/FastCGI and am trying to create a text file and then write some data to it. $some_text = "HelloWorld"; $new_file = fopen("myfile.txt", "w"); fputs($new_file, $some_text); fclose($new_file); However I am getting Warning: fopen(myfile.txt): failed to open stream:

Re: [PHP] Mysql question

2003-11-18 Thread Raditha Dissanayake
Hi John, ASAIK you are right. Michael, if you use the root account in php you will be able to do what John says. John Nichel wrote: Lists wrote: I have a db in sql, and I need a php/mysql query/command to copy the entire db (schema and data) to a new db. I know how to do this with a table, b

[PHP] Query Batch

2003-11-18 Thread b b
Jhon you mentioned that one may send a batch of queries with mysql_list? maybe I understood you wrong. I am translating an MS-SQL application into mysql/php. I need to be able to send a batch of queries all at once. For example: $qStr = " Insert into A(name, address) values('$name', '$address

Re: [PHP] Mysql question

2003-11-18 Thread John W. Holmes
Lists wrote: I have a db in sql, and I need a php/mysql query/command to copy the entire db (schema and data) to a new db. I know how to do this with a table, but I can not figure out how to do this with a whole db. I also know that I could do it using mysql dump, but I don't want to have to

Re: [PHP] windows file permission

2003-11-18 Thread John W. Holmes
Chris Williams wrote: I am using PHP on Windows NT CGI/FastCGI and am trying to create a text file and then write some data to it. $some_text = "HelloWorld"; $new_file = fopen("myfile.txt", "w"); fputs($new_file, $some_text); fclose($new_file); However I am getting Warning: fopen(myfile.txt): fa

Re: [PHP] Prefilled forms (solved)

2003-11-18 Thread John W. Holmes
b b wrote: No I am saying that if you have: and you click submit then if you click back to see the form the value you set w2 will be blank. If you reverse the order however then you will see what you entered in w2 odd, yes, but completely client dependent, so PHP isn't going to help. The only

Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread Manisha Sathe
yes, website is on same machine, but if there is to and fro from 2 websites, then for both ways i need to pass it ? what will happen to session time limit ? if i go website1 then go to another website2 then after 30 mins i come back to website1 (session timeout 30mins) then what will happen ? Any s

Re: [PHP] Query Batch

2003-11-18 Thread John W. Holmes
b b wrote: I am translating an MS-SQL application into mysql/php. I need to be able to send a batch of queries all at once. For example: $qStr = " Insert into A(name, address) values('$name', '$address') ; Insert into B(personID, department ...)values (@@identity, '$department');" ; $result= my

[PHP] eregi filter

2003-11-18 Thread Erin
Anyone have a good eregi filter for passwords? Regards R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I need answers for the questions

2003-11-18 Thread Ryan Thompson
On Tuesday 18 November 2003 02:12, Arivazhagi Govindarajan wrote: > PHP Questions > > 1. Explain about session management and cookies ? In PHP how we can > maintain a session > > 2. What is HTTP tunneling > > 3. How to enable PHP in Apache server manually? > > 4. When we upload a file using ta

Re: [PHP] eregi filter

2003-11-18 Thread Derek Ford
Erin wrote: Anyone have a good eregi filter for passwords? Regards R well, for one thing, don't use ereg. Use pcre, as it is faster. preg_match('/^[a-zA-Z0-9]{5,16}$/',$blah); that will validate a password containing only upper or lowercase letters and numbers, between 5 and 16 characters.

Re: [PHP] eregi filter

2003-11-18 Thread John W. Holmes
Erin wrote: Anyone have a good eregi filter for passwords? Yes. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.c

Re: [PHP] eregi filter

2003-11-18 Thread John W. Holmes
Derek Ford wrote: Erin wrote: > > > Anyone have a good eregi filter for passwords? well, for one thing, don't use ereg. Use pcre, as it is faster. preg_match('/^[a-zA-Z0-9]{5,16}$/',$blah); that will validate a password containing only upper or lowercase letters and numbers, between 5 and 16 cha

Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread John W. Holmes
Manisha Sathe wrote: yes, website is on same machine, but if there is to and fro from 2 websites, then for both ways i need to pass it ? what will happen to session time limit ? if i go website1 then go to another website2 then after 30 mins i come back to website1 (session timeout 30mins) then wh

Re: [PHP] eregi filter

2003-11-18 Thread John Nichel
John W. Holmes wrote: Derek Ford wrote: Erin wrote: > > > Anyone have a good eregi filter for passwords? well, for one thing, don't use ereg. Use pcre, as it is faster. preg_match('/^[a-zA-Z0-9]{5,16}$/',$blah); that will validate a password containing only upper or lowercase letters and numb

Re: [PHP] mcrypt libraries?

2003-11-18 Thread Evan Nemerson
On Tuesday 18 November 2003 01:13 pm, Jas wrote: > Curt Zirzow wrote: > > * Thus wrote Jas ([EMAIL PROTECTED]): > >>I am not sure if I should post my question here but I will anyways. > >> > >>Ok, I have compiled the mcrypt libraries on a Redhat 9 box running > >>apache 2 with php4. And I need to

Re: [PHP] I need answers for the questions

2003-11-18 Thread Greg Donald
On Tue, 18 Nov 2003, Ryan Thompson wrote: >What you can't find at php.net/manual/en you can find on google. But I have a >question for you. Correct me if I'm wrong but isn't a subnet mask of >255.255.248.0 invalid??? I thought it had to be 255's and 0's. Umm.. no. For a given network, say

Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread Greg Donald
On Wed, 19 Nov 2003, Manisha Sathe wrote: >I want the session to be accessed from different websites, so i got the >answer in this forum only to make use of customised session with mysql. > >I searched the web and came to know that 'session.save_handler' of php.ini >needs to be as 'user' but inste

Re: [PHP] Mysql question

2003-11-18 Thread Greg Donald
On Tue, 18 Nov 2003, Lists wrote: >I have a db in sql, and I need a php/mysql query/command to copy the >entire db (schema and data) to a new db. I know how to do this with a >table, but I can not figure out how to do this with a whole db. I also >know that I could do it using mysql dump, but

Re: [PHP] I need answers for the questions

2003-11-18 Thread RT
On Tue, 2003-11-18 at 23:55, Greg Donald wrote: > On Tue, 18 Nov 2003, Ryan Thompson wrote: > > >What you can't find at php.net/manual/en you can find on google. But I have a > >question for you. Correct me if I'm wrong but isn't a subnet mask of > >255.255.248.0 invalid??? I thought it had

Re: [PHP] How to print nice looking text on an image?

2003-11-18 Thread Jason Wong
On Wednesday 19 November 2003 06:32, Kevin Stone wrote: > I am producing a script that writes text onto a JPEG image to create > custom printable gift certificates for an online store. The basics of > the scripts are straight forward. However I found that the > imagestring() function produces ab

Re: [PHP] Re: Command line output

2003-11-18 Thread Jason Wong
On Wednesday 19 November 2003 06:54, Shawn McKenzie wrote: > hey great thanks :( > > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > O.K. I am just now experimenting with the CLI PHP and have another > > question. With the following code, none of the echo outp

<    1   2