Re: [PHP] checking $_POST variables

2003-03-15 Thread Justin French
As explained already, not a good idea :) Also, if someone makes a copy of your form and excludes one of the fields, then it won't be set in POST at all. Keep an array of the fields you have in the form. I choose to set the field as the key, and then for the value either 1 (required) or 0 (not

Re: [PHP] Checking for a Valid Email String.

2003-03-15 Thread Justin French
on 14/03/03 2:09 AM, -{ Rene Brehmer }- ([EMAIL PROTECTED]) wrote: Jumping in... Jumping in also: http://www.killersoft.com/downloads/pafiledb.php?action=fileid=4 This is a PHP port of a well respected Perl script which CHECKS THE FORMAT OF THE EMAIL ADDRESS AGAINST THE RCF SPEC. I use it

Re: [PHP] Crypting Passwords for storage.

2003-03-15 Thread Justin French
Commonly, you don't need to encrypt it. just md5() the password before inserting it, so you only store the md5'd password. then, to check on login, md5() the password they enter into a form... if they match, then they are the same. heaps less code, no need to mycrypt libraries to be installed,

Re: [PHP] Dynamic titles.

2003-03-15 Thread Justin French
You can split $_SERVER['REQUEST_URI'] on the /'s to get the directories, eg: http://site.com/info/your_pet/dogs/page.html would result in /dir/anotherdir/page.php So, (untested code): ? $title = 'Name of My Site'; $urlBits = explode('/',$_SERVER['REQUEST_URI']); $i = 0; foreach($urlBits as

Re: [PHP] Re: str_replace

2003-03-15 Thread Ernest E Vogelsinger
At 07:23 15.03.2003, Sebastian said: [snip] doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer to create a printer friendly page with just the content, here's what my

php-general Digest 15 Mar 2003 09:30:16 -0000 Issue 1939

2003-03-15 Thread php-general-digest-help
php-general Digest 15 Mar 2003 09:30:16 - Issue 1939 Topics (messages 139763 through 139790): Re: OT? Dynamic Page Setup in IE please help 139763 by: David T-G inserting parameters into URLs dynamically 139764 by: Maureen Roihl 139766 by: Ernest E Vogelsinger

Re: [PHP] need a new challenge

2003-03-15 Thread Dominik Werder
Hi Chris (and all others), This seems to me a very common problem. I managed it too with different approaches including complete on the fly code generation, but I don't think that I have already the perfect solution. Does anyone have more information on this topic? bye! Dominik Metatable

[PHP] How to write a module for php?

2003-03-15 Thread hzqbbc
Hi all: I want to write a small module for php and reduce some overhead while doingthe same job with PHP scripts. But i'm new to php dev, and even don't konw about the archtecture of phpmodule.. So could anybody tell me where and how to get help to write a smallmodule? Is there any

Re: [PHP] Re: str_replace

2003-03-15 Thread Jason Sheets
You could put logic in your header and footer file not to display output if $_GET['action'] == 'print'. Jason On Fri, 2003-03-14 at 23:23, Sebastian wrote: doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer

[PHP] SMTP Authenticate

2003-03-15 Thread Aitor Cabrera
Hi, I'm trying to use the mail() funtion but I can only use this funtion the email myself (the same email that I put in the php.ini file). I f I try to email someone else I get an error 530 delivery not allowed to non-local recipient, try authenticating -7 How can I authenticate myselft?

[PHP] Re: SMTP Authenticate

2003-03-15 Thread Manuel Lemos
Hello, On 03/15/2003 01:43 PM, Aitor Cabrera wrote: Hi, I'm trying to use the mail() funtion but I can only use this funtion the email myself (the same email that I put in the php.ini file). I f I try to email someone else I get an error 530 delivery not allowed to non-local recipient, try

[PHP] Do query strings get spidered by Google?

2003-03-15 Thread Mike Hillyer
Hi All; I am trying to decide how to lay out a site with a lot of articles, and I am wondering if query strings get spidered by Google. I was thinking it would make for an easy search engine if I could put the articles in fulltext searchable MySQL columns, but I do not want to lose the ability of

[PHP] List tables

2003-03-15 Thread shaun
Hi, i would like to list all of the tables and field names in my database e.g. table 1 field 1 field 2 field 3 table 2 field 1 field 2 field 3 table 3 field 1 field 2 field 3 etc is there a simple way to do this? thanks for your help -- PHP General Mailing List

[PHP] Re: SMTP Authenticate

2003-03-15 Thread Bobby Patel
There is another php mailer class which is really good (and includes authentication among alot of other things). http://phpmailer.sourceforge.net Aitor Cabrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to use the mail() funtion but I can only use this funtion the

[PHP] Re: Do query strings get spidered by Google?

2003-03-15 Thread Alexandru COSTIN
Hi, Dynamic queries are googled as far as I know (*old* search engines probably didn't do this). Search InterAKT and you'll see that we have all the pages indexed - and our site is completely dynamic. (index.php?page=4_5, etc) Alexandru -- Alexandru COSTIN Chief

Re: [PHP] Do query strings get spidered by Google?

2003-03-15 Thread olinux
A better solution - make your pages look like static html pages: Search Engine Friendly PHP Pages http://zend.com/zend/spotlight/searchengine.php Search Engine-Friendly URLs http://www.sitepoint.com/article/485 How can I pass variables to a script in the url like /script/var1/var2? How can I

[PHP] How to convert an array to variables?

2003-03-15 Thread Charles Kline
Hi all, I have an array that gives me this when I do: print_r($my_array); Array ( [0] = Array ( [dra_id] = 5 ) [1] = Array ( [dra_id] = 8 ) [2] = Array ( [dra_id] = 9 ) ) using a foreach() I want to

[PHP] Wrox no more?

2003-03-15 Thread kaemaril
With the apparent very sad demise of Wrox (http://www.webstandards.org/ for details. This has also been reported on the webdesign list, although the Wrox website itself doesn't seem to have anything) does anyone know if PHP MySQL Website Programming Problem-Design-Solution will be published?

Re: [PHP] How to convert an array to variables?

2003-03-15 Thread Tom Rogers
Hi, Sunday, March 16, 2003, 4:52:10 AM, you wrote: CK Hi all, CK I have an array that gives me this when I do: CK print_r($my_array); CK Array CK ( CK [0] = Array CK ( CK [dra_id] = 5 CK ) CK [1] = Array CK ( CK [dra_id] = 8 CK

RE: [PHP] Persistent values between executions

2003-03-15 Thread Lance Lovette
The most efficient way to solve your problem is with a PHP extension I developed. It handles constants and provides a type of persistent variable too. It has been immensely useful for my projects. http://pwee.sourceforge.net/ Lance -Original Message- From: Mike Mannakee [mailto:[EMAIL

Re: [PHP] Re: str_replace

2003-03-15 Thread Sebastian
Thank you, that seems to work fairly well :) cheers, - Sebastian - Original Message - From: Ernest E Vogelsinger | At 07:23 15.03.2003, Sebastian said: | [snip] | doesn't work but also doesn't give any errors, I will try to explain what I | am

[PHP] Performance and Function Calls

2003-03-15 Thread CF High
Hey all. Quick question: If I have a function that, say, prints out the months in a year, and I call that function within a 10 cycle loop, which of the following is faster: 1) Have function months() return months as a string; set var string_months = months() outside of the loop; then echo

[PHP] PHP User Groups

2003-03-15 Thread Charles Kline
Hi all, Is or has anyone here been part of or started a PHP user group? I am thinking it would be a great thing to get started in my area (maybe one already exists?) and I was looking for suggestions on how to go about it and things to know before getting started, etc. BTW. I live in Southern

RE: [PHP] PHP User Groups

2003-03-15 Thread John W. Holmes
Is or has anyone here been part of or started a PHP user group? I am thinking it would be a great thing to get started in my area (maybe one already exists?) and I was looking for suggestions on how to go about it and things to know before getting started, etc. BTW. I live in Southern New

[PHP] Re: List tables

2003-03-15 Thread Joel Colombo
duplicate POST from php.db Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, i would like to list all of the tables and field names in my database e.g. table 1 field 1 field 2 field 3 table 2 field 1 field 2 field 3 table 3 field 1 field 2

[PHP] Re: Wrox no more?

2003-03-15 Thread Alexandru COSTIN
This is a sad day, indeed. It seems that web developers tend to skip reading books to improve knowledge, and rely on web/google/this newsgroup, etc Alexandru -- Alexandru COSTIN Chief Operating Officer http://www.interakt.ro/ +4021 411 2610 [EMAIL PROTECTED] wrote in message news:[EMAIL

php-general Digest 15 Mar 2003 21:51:12 -0000 Issue 1940

2003-03-15 Thread php-general-digest-help
php-general Digest 15 Mar 2003 21:51:12 - Issue 1940 Topics (messages 139791 through 139810): Re: need a new challenge 139791 by: Dominik Werder How to write a module for php? 139792 by: hzqbbc Re: str_replace 139793 by: Jason Sheets 139805 by: Sebastian

Re: [PHP] How to convert an array to variables?

2003-03-15 Thread Charles Kline
Tom, This seems like what I need exactly, but I am having a bit of trouble getting it to work. Here is how I have worked around this, but I know there is a 'real' way to do this. Any thoughts? I had to set the variables, or should I just use the variables as ${dra_0} etc.? // get the values

Re: [PHP] SMTP Authenticate

2003-03-15 Thread The Head Sage
If the SMTP server is running on your machine, or you have access to it's configuration. Create an e-mail address specificaly for PHP to mail from, as i had trouble authenticating. But if i created the mailer address as a local user on my SMTP server, it'd be allowed through. I believe it's a

Re: [PHP] Do query strings get spidered by Google?

2003-03-15 Thread The Head Sage
Last time i checked, Google does infact query strings. As some of my searches have lead to forums where the url is www.someurl.com/viewtopic.php?f=3t=345 ect. I also belive there is a tutorial somewhere on the internet which converts the variables into folders, so it looks like the article is in

[PHP] Encoding /'s

2003-03-15 Thread Doug Coning
Hi All, When my PHP page sends text that is being passed in, it places an / in front of the apostrophe. How do I encode or decode this when I am outputing the variable? Thanks, Doug Coning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] List tables

2003-03-15 Thread Miles Thompson
As noted earlier, in the manual and please don't cross post. Miles At 05:37 PM 3/26/2003 +, shaun wrote: Hi, i would like to list all of the tables and field names in my database e.g. table 1 field 1 field 2 field 3 table 2 field 1 field 2 field 3 table 3 field 1 field

RE: [PHP] Encoding /'s

2003-03-15 Thread John W. Holmes
When my PHP page sends text that is being passed in, it places an / in front of the apostrophe. How do I encode or decode this when I am outputing the variable? www.php.net/stripslashes They are added to GET, POST, COOKIE data according to the magic_quotes_gpc setting in php.ini. ---John

[PHP] checking array

2003-03-15 Thread joe
what is the best way to check, if a value is NOT in an array? the purpose is to take results from a webpage and check one-by-one if they are in the txt file already. if they are not, i have to write them there.. If they are in there then i just want to leave them alone. this is what i came up with

[PHP] PHP newbie ... function with several returns ?

2003-03-15 Thread Robert Dyke
Hi ... PHP newbie here. I'm migrating from ASP/vbScript. I'd like to set up a subroutine that will change several variables at once. In VB, I can say: Private Sub Change_Variables ($variable1, $variable2) $variable1 = Something different from it's original value $variable2 = I'm

[PHP] Re: PHP newbie ... function with several returns ?

2003-03-15 Thread Jome
Robert Dyke wrote: Hi ... PHP newbie here. I'm migrating from ASP/vbScript. I'd like to set up a subroutine that will change several variables at once. In VB, I can say: Private Sub Change_Variables ($variable1, $variable2) $variable1 = Something different from it's original value

Re[2]: [PHP] How to convert an array to variables?

2003-03-15 Thread Tom Rogers
Hi, Sunday, March 16, 2003, 8:20:49 AM, you wrote: CK Tom, CK This seems like what I need exactly, but I am having a bit of trouble CK getting it to work. CK Here is how I have worked around this, but I know there is a 'real' way CK to do this. Any thoughts? I had to set the variables, or

[PHP] Re: PHP newbie ... function with several returns ?

2003-03-15 Thread Robert Dyke
Jome [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Robert Dyke wrote: Hi ... PHP newbie here. I'm migrating from ASP/vbScript. I'd like to set up a subroutine that will change several variables at once. In VB, I can say: Private Sub Change_Variables ($variable1,

Re: [PHP] PHP newbie ... function with several returns ?

2003-03-15 Thread Tom Rogers
Hi, Sunday, March 16, 2003, 10:52:49 AM, you wrote: RD Hi ... PHP newbie here. RD I'm migrating from ASP/vbScript. RD I'd like to set up a subroutine that will change several variables at once. RD In VB, I can say: RD Private Sub Change_Variables ($variable1, $variable2) RD $variable1 =

[PHP] Confused a little with = to and grater than ...

2003-03-15 Thread Philip J. Newman
Well i thought about changeing access levels into numbers so that only LARGER numbers can access lower numbers and Lower numbers can't access anything higher ... if that makes sence ... So 3 can access 2 and 1, 2 can't access 3, but can access 2 and 1 and one can't access 2 or 3, but can 1 ...

[PHP] File upload Stuff ... well kinda.

2003-03-15 Thread Philip J. Newman
RIghto then. Just make a nice website, on my windows box and everything and when i moved it to the live server, the things that didn't work where file uploads. What (if any) settings do i have to use for a Linux dir .. to allow access for the file to be uploaded? -- Philip J. Newman. Head

RE: [PHP] Performance and Function Calls

2003-03-15 Thread Don Read
On 15-Mar-2003 CF High wrote: Hey all. Quick question: If I have a function that, say, prints out the months in a year, and I call that function within a 10 cycle loop, which of the following is faster: 1) Have function months() return months as a string; set var string_months =

RE: [PHP] Performance and Function Calls

2003-03-15 Thread Jason Sheets
Storing the results of a function in a variable and referencing the variable will almost always be faster, this should be no surprise because instead of executing the function PHP just has to return the variable's value. In #1 since you only call the function once the function is only executed

Re: [PHP] File upload Stuff ... well kinda.

2003-03-15 Thread Charles Kline
Check the permissions on the directory you are trying to upload your files. The host I am using required me to either chmod the upload directory to 777 (not what I wanted to do) or run PHP with cgi-wrap enabled - this allowed my PHP application to run as the user and therefore had permission

RE: [PHP] Confused a little with = to and grater than ...

2003-03-15 Thread Dennis Cole
I think this is what you mean ?php // This looks cleaner, and is a lot easyer to read! $siteAccessLevel = 2; $gAccessLevel = 1; switch ($siteAccessLevel) { case level-1: $slevel = 0; break; case level-2: $slevel = 1; break; case level-3:

[PHP] group by get last record

2003-03-15 Thread Daniel Harik
Hello, Guys i try to join to tables slides: id userid file moment users id username As there few slids per user and i want to get only last one, i use following sql query, but it fetches me first slide. How can i make it fetch last one please? SELECT slides.file, slides.moment, users.id,