Re: [PHP] instalation problem

2003-03-18 Thread Jason Wong
On Monday 17 March 2003 20:12, Guram Mosashvili wrote: Hi List, I have problem with instalation of PHP4 on my LINUX APACHE MySQL server. when I did: ./configure --with-apxs=/server/apache/bin/apxs I got error message: - configure error: Sorry I cannot run apxs.Either you need to

[PHP] Ereg sass

2003-03-18 Thread Liam Gibbs
I'm not sure why, but I can't include a period in my eregi statement: [A-Za-z0-9_-.]* For this, I get Warning: ereg() [function.ereg]: REG_ERANGE in /home/website/public_html/Functions.inc on line 27 The same goes for [A-Za-z0-9_-\.]* Anyone know why?

Re: [PHP] Ereg sass

2003-03-18 Thread Hugh Danaher
try two backslashes to escape php special characters - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 12:33 AM Subject: [PHP] Ereg sass I'm not sure why, but I can't include a period in my eregi statement:

Re: [PHP] Ereg sass

2003-03-18 Thread Liam Gibbs
try two backslashes to escape php special characters Tried that with the same result. I'm not sure why, but I can't include a period in my eregi statement: [A-Za-z0-9_-.]* For this, I get Warning: ereg() [function.ereg]: REG_ERANGE in /home/website/public_html/Functions.inc on line 27

[PHP] (newbie)textareas ...someone...please help

2003-03-18 Thread Mirco Ellis
Guys I really need your help. How do I restrict users from changing data in a textarea? I need to display data on a page so that users can edit it and update the database. With the help of this mailing list I got it going but now I am running into walls. Some of the data is sensitive and can't be

RE: [PHP] (newbie)textareas ...someone...please help

2003-03-18 Thread Christian Rosentreter
Hi, use input type=hidden name=name value=your sensitve data for transporting sensitive data. regards, Christian -Original Message- From: Mirco Ellis [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 10:06 AM To: Php-General (E-mail) Subject: [PHP] (newbie)textareas

Re: [PHP] Microsoft access + php

2003-03-18 Thread fLIPIS
I've written a tutorial on my site about this subject. You can find it here: http://www.flipis.net/tutoriales/php_myaccess.php It's in spanish, though -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Ereg sass[Scanned]

2003-03-18 Thread Michael Egan
Try [A-Za-z0-9_\-\.]* -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: 18 March 2003 08:52 To: php list Subject: Re: [PHP] Ereg sass[Scanned] try two backslashes to escape php special characters Tried that with the same result. I'm not sure why, but I can't

Re: [PHP] Ereg sass

2003-03-18 Thread Jason k Larson
It's seeing the - as a range identifier, escape it to get the literal hyphen. How about this: [a-zA-Z0-9_\-.]* In my tests, the period didn't need to be escaped with the \. HTH, Jason k Larson Liam Gibbs wrote: I'm not sure why, but I can't include a period in my eregi statement:

Re: [PHP] (newbie)textareas ...someone...please help

2003-03-18 Thread Jason Wong
On Tuesday 18 March 2003 17:24, Christian Rosentreter wrote: use input type=hidden name=name value=your sensitve data for transporting sensitive data. That is not secure at all. can edit it and update the database. now I am running into walls. Some of the data is sensitive and

[PHP] Re: Session problem

2003-03-18 Thread Paonarong Buachaiyo
Do not echo $query or any output before session_start(); or session_register(xxx); (mean headers) //echo $query Or may be you can put ob_start(); before first output and put ob_end_flush(); after last headers ob_start(); echo $query . . //your code. . . session_register(ses_level);

Re: [PHP] Mail

2003-03-18 Thread Chris Hewitt
Stephen wrote: I am trying to get mail working with my php setup. I have an exchange server that I want to send mail to but I get the error Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in I have setup SMTP = my server address and

[PHP] base64 to 8bit unsigned int

2003-03-18 Thread Hilmi Hilmiev
Dear All, I have stream data encrypted BASE64. My problem is that I must decode this BASE64 to 8-bit unsigned array and I don't know how :( Have a native possibility in PHP for making this or not? Have a somebody who know, where I can find more info for this? Site, pdf, link 10x in

Re: [PHP] base64 to 8bit unsigned int

2003-03-18 Thread Jason k Larson
You mean encoded base64 stream data, right? Anyway, can you give us an example of the base64 data? PHP does have native support to encode/decode base64 data. However you're losing me with the decode to an 8-bit unsigned array request. This might very well just be the decoded base64 value

[PHP] Forced Download Using header()

2003-03-18 Thread Kevin Kaiser
I have a simple php download script that streams a non-web-accessible file to the browser using this generally accepted method: header(Expires: 0); header(Cache-Control: private); header(Content-Type: application/save); header(Content-Length:

[PHP] Disabling output control when using ob_start

2003-03-18 Thread Michael Heuser
Is there a way to disable the call back function set by ob_start? I tried: ob_end_flush(); ob_end_clean(); ob_implicit_flush(true); Nothing seams to work. I can't detect the call back function and I can't prevent it either. The call back function is called no matter what! Michael -- PHP

Re: [PHP] Ereg sass

2003-03-18 Thread Ernest E Vogelsinger
At 10:36 18.03.2003, Jason k Larson said: [snip] It's seeing the - as a range identifier, escape it to get the literal hyphen. How about this: [a-zA-Z0-9_\-.]* In my tests, the period didn't need to be escaped with the \.

[PHP] Re: newbie:restricting users to change data in a textarea

2003-03-18 Thread Coert Metz
You can put READONLY in your TEXTAREA tag Coert Metz Mirco Ellis wrote: Hi all, I have a app that enables the user to call data out of a mysql database into textareas. They can then edit the data and update the database. There is one field that I whant to stop them from changing. This field I

Re: [PHP] Forced Download Using header()

2003-03-18 Thread Ernest E Vogelsinger
At 11:16 18.03.2003, Kevin Kaiser said: [snip] I have a simple php download script that streams a non-web-accessible file to the browser using this generally accepted method: header(Expires: 0); header(Cache-Control: private);

RE: [PHP] Re: newbie:restricting users to change data in a textarea

2003-03-18 Thread Jon Haworth
Hi Coert, There is one field that I whant to stop them from changing You can put READONLY in your TEXTAREA tag While this would probably keep the honest people honest (assuming it's supported across all browsers), it won't stop anyone who wants to pollute the database. What's to stop

php-general Digest 18 Mar 2003 10:42:23 -0000 Issue 1945

2003-03-18 Thread php-general-digest-help
php-general Digest 18 Mar 2003 10:42:23 - Issue 1945 Topics (messages 140049 through 140100): Session problem 140049 by: shaun 140052 by: Pete James 140057 by: shaun 140091 by: Paonarong Buachaiyo One set of php for multiple subdomains 140050 by:

RE: [PHP] Re: newbie:restricting users to change data in a textar ea

2003-03-18 Thread Ernest E Vogelsinger
At 11:42 18.03.2003, Jon Haworth said: [snip] ... Good programmers look both ways before crossing one-way streets. [snip] I like that one. The US administration should have some good programmers hired then, I

RE: [PHP] Re: newbie:restricting users to change data in a textarea

2003-03-18 Thread Mirco Ellis
Guys thanks for your help on this matter. Luckily this is all I need. It is on an internal lan and won't be available to the public although it does raise an interesting discussion. I would have been lost without you blokes. Thanks a million Mirco Ellis -Original Message- From: Coert

[PHP] querying for values inside range

2003-03-18 Thread Jason Paschal
this is an sql syntax question and i know it's not appropriate for this mailing list, but i didn't want to subscribe to another mailing list for something i think one of you might be able help me with. thank you for your patience. i'm building a site utilizing PHP/MySQL. i'm querying a table

Re: [PHP] querying for values inside range

2003-03-18 Thread Wico de Leeuw
At 06:04 18-3-03 -0500, Jason Paschal wrote: this is an sql syntax question and i know it's not appropriate for this mailing list, but i didn't want to subscribe to another mailing list for something i think one of you might be able help me with. thank you for your patience. i'm building a

Re: [PHP] querying for values inside range

2003-03-18 Thread Wico de Leeuw
At 06:04 18-3-03 -0500, Jason Paschal wrote: this is an sql syntax question and i know it's not appropriate for this mailing list, but i didn't want to subscribe to another mailing list for something i think one of you might be able help me with. thank you for your patience. i'm building a

RE: [PHP] querying for values inside range

2003-03-18 Thread Jon Haworth
Hi Jason, $sql = select * from table where age=$age1 and age=$age2; what if i don't know which is value is greater, age1 or age2? PHP has a couple of handy functions for this: min() and max() $min = min($age1, $age2); // get smallest of two values $max = max($age1, $age2); // get largest of

Re: [PHP] register_variables

2003-03-18 Thread Cranky Kong
The problem must certainly come from the register_global turn to off Check this value in your php.ini file Samug [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] No it's not. It's a script called LinksCaffe http://www.hotscripts.com/cgi-bin/dload.cgi?ID=15062. In file

Re: [PHP] Ereg sass

2003-03-18 Thread CPT John W. Holmes
If you want to look for a dash (-), you always place it last in the brackets, other wise the regex machine will be looking for a range. So just move the - to the last character. [A-Za-z0-9_.-]* ---John Holmes... - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL

[PHP] Random array values from associative

2003-03-18 Thread Awlad Hussain
I have an associative like array[name]=hello; I am trying to get two random values from the array, the key name and the value, but using the codes below from the PHP manual i am getting the inex key value rather than the name. $rand_keys = array_rand ($input, 2); print $input[$rand_keys[0]].\n;

Re: [PHP] Random array values from associative

2003-03-18 Thread Ernest E Vogelsinger
At 12:40 18.03.2003, Awlad Hussain said: [snip] I have an associative like array[name]=hello; I am trying to get two random values from the array, the key name and the value, but using the codes below from the PHP manual i am getting the inex key value

Re: [PHP] Random array values from associative

2003-03-18 Thread Awlad Hussain
Thanks for your reply, I now have only the keys but I need both keys and the value. ?? any suggestions? - Original Message - From: Ernest E Vogelsinger [EMAIL PROTECTED] To: Awlad Hussain [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 11:45 AM Subject: Re: [PHP]

Re: [PHP] Random array values from associative

2003-03-18 Thread Ernest E Vogelsinger
At 12:48 18.03.2003, Awlad Hussain said: [snip] Thanks for your reply, I now have only the keys but I need both keys and the value. [snip] But you can get the value if you have the keys, no? -- O Ernest E.

RE: [PHP] Loop Problem

2003-03-18 Thread Sysadmin
Yes, my apologies. I call the script by scriptname.php?MasterPage=1 or 2 or whatever... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 4:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Loop Problem [EMAIL PROTECTED]

[PHP] Which CMS (if any) should I use for my application.

2003-03-18 Thread JawjB
I have spent 3 days looking at various CMS and template systems and seem to be getting nowhere. I have looked at smarty, webditpro, phpcms, typo3, phportal, sitemanager, phpnuke, easysite and many others and clever and comprehensive as many of them are they seem too complicated for my needs.

Re: [PHP] One set of php for multiple subdomains

2003-03-18 Thread David T-G
Radu -- ...and then Radu Manole said... % % Hi guys, Hi! % % I have 2 scripts located in a directory and 3 dirs with 3 subdomain. % Something like this. % % /scripts % - input.php % - output.php OK... % % /user1 - subdomain user1.mysite.com % /user2 - subdomain

Re: [PHP] script conflicts

2003-03-18 Thread Marek Kilimajer
I can't see mysql_fetch_row() function anywhere in your code. Sebastian wrote: i have two scripts included into one page, one of them i have been running for a long time .. i recently made another script and when i include it into the same page the other script returns this error: Warning:

[PHP] storing files in database

2003-03-18 Thread Michiel van Heusden
is there any possibility using PHP 4 to store entire files as a database field in a MySQL database? and if so, does anybody know a way, or a tutorial describing this? thanks michiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what's the best way to handle this?

2003-03-18 Thread Edward Peloke
Ok, I hope this makes sense, When a user 'registers' with our site, I want to generate their personal webpage for them. Currently, I have a webpage where the contents are generated from their personal info in the db and I have a drop down to view client pages but it is just the same page but I

[PHP] User Authentication

2003-03-18 Thread shaun
Hi, Using the following code I am able to authenticate which type of user is visiting my page, however if I try to log in again with a different type of user the session variables still assume that the original user was logged in, is there a way to reset the session variables, I have tried

[PHP] Re: Which CMS (if any) should I use for my application.

2003-03-18 Thread rush
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Should I just do this myself ? I do not think you will find something allready done, so probably you would need to wrap something yourself. Some template system will propably come handy though rush -- http://www.templatetamer.com/ --

Re: [PHP] One set of php for multiple subdomains

2003-03-18 Thread Ernest E Vogelsinger
At 23:43 17.03.2003, Radu Manole said: [snip] Hi guys, I have 2 scripts located in a directory and 3 dirs with 3 subdomain. Something like this. /scripts - input.php - output.php /user1 - subdomain user1.mysite.com /user2 - subdomain

Re: [PHP] what's the best way to handle this?

2003-03-18 Thread Ernest E Vogelsinger
At 14:38 18.03.2003, Edward Peloke said: [snip] When a user 'registers' with our site, I want to generate their personal webpage for them. Currently, I have a webpage where the contents are generated from their personal info in the db and I have a drop down

Re: [PHP] Performance and Function Calls

2003-03-18 Thread Noah
Thanks Jason. I was hoping that was what was happening. Happy php'ing --Noah - Original Message - From: Jason Sheets [EMAIL PROTECTED] To: Don Read [EMAIL PROTECTED] Cc: CF High [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 8:46 PM Subject: RE: [PHP] Performance

RE: [PHP] what's the best way to handle this?

2003-03-18 Thread Edward Peloke
thanks, not sure how to do either of these...but I will look them up. -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 9:14 AM To: Edward Peloke Cc: [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] what's the best way to handle this? At

[PHP] Mailing List Digest

2003-03-18 Thread Tom Sommer
What does the mailing list digest contain, compared to a normal subscription? What is the difference? -- Tom Sommer, Denmark www.tsn.dk - www.dreamcoder.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what's the best way to handle this?

2003-03-18 Thread Chris Hayes
At 14:38 18-3-03, you wrote: Ok, I hope this makes sense, When a user 'registers' with our site, I want to generate their personal webpage for them. Currently, I have a webpage where the contents are generated from their personal info in the db and I have a drop down to view client pages but it

Re: [PHP] storing files in database

2003-03-18 Thread Jason Wong
On Tuesday 18 March 2003 21:25, Michiel van Heusden wrote: is there any possibility using PHP 4 to store entire files as a database field in a MySQL database? and if so, does anybody know a way, or a tutorial describing this? google mysql store files -- Jason Wong - Gremlins Associates -

Re: [PHP] what's the best way to handle this?

2003-03-18 Thread Chris Hayes
I forgot to mention, you may need to finetune this: not every server gives exactly the same $SERVER values. When default is reached, the url is really wrong and you give them a nice scowling in the 404.html file. (A nice suggestion: HEY You dumb pi3ce of sh1t3! Learn to type!

[PHP] MySQL Users Conference

2003-03-18 Thread Bill Doerrfeld
Do you plan on attending the first MySQL Users Conference to be held next month in San Jose, Calif? Our company is one of the sponsors for this event and we very much look forward to meeting many of you. If you haven't already registered for this important event, we strongly encourage you to

[PHP] Calling function in php page via GET?

2003-03-18 Thread Daniel Joyce
I have a file that draws charts, called chart.php. Right now, I can call it using GET methods inside IMG tags IMG src=chart.php?foo=bar Well, I'd like to be able to wrap it in a function, and call it via a function drawgraph(); and by GET syntax IMG

Re: [PHP] complicated but fun, please help.

2003-03-18 Thread Erik Price
Daniel McCullough wrote: Yes sorry for not being clear. I am trying to use exec() and system(). I guess I'm trying to see if there is another way to do it, like write to a file and have acron job run every minute or so, or if there is some way to make it seem like I am doing this with the

[PHP] Re: Which CMS (if any) should I use for my application.

2003-03-18 Thread Alexandru COSTIN
Hello, We have a free but still complicated solution for your needs. It's called Komplete Lite (the free version of one of our commercial products) and it allows you to visually edit your menu and page content. See the demo of the full version at http://komplete.interakt.ro/

[PHP] Question about a text file and foreach

2003-03-18 Thread Jim Greene
Hi All, I have a text file that has entries like the following: user1:mbox1: user1:mbox2: I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2'; I then want to print out the data in the $mboxs variable (array) I am trying to use foreach but it does not work.. I am assuming the

Re: [PHP] User Authentication

2003-03-18 Thread Chris Shiflett
--- shaun [EMAIL PROTECTED] wrote: Using the following code I am able to authenticate which type of user is visiting my page, however if I try to log in again with a different type of user the session variables still assume that the original user was logged in, is there a way to reset the

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread Jim Lucas
You need to split() the variable ($mboxs) on newlines \n Jim - Original Message - From: Jim Greene [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 8:22 AM Subject: [PHP] Question about a text file and foreach Hi All, I have a text file that has entries like the

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread Erik Price
Jim Greene wrote: Hi All, I have a text file that has entries like the following: user1:mbox1: user1:mbox2: I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2'; I then want to print out the data in the $mboxs variable (array) I am trying to use foreach but it does not work..

Re: [PHP] what's the best way to handle this?

2003-03-18 Thread CPT John W. Holmes
When a user 'registers' with our site, I want to generate their personal webpage for them. Currently, I have a webpage where the contents are generated from their personal info in the db and I have a drop down to view client pages but it is just the same page but I pass in the clientid so it

[PHP] MySQL passwords dont work.

2003-03-18 Thread Taylor York
I have recently made a server on FreeBSD. I've run into 2 problems. 1. I cant get PHP to compile with mysql 2. I can use mysql in PHP, but if i use phpMyAdmin, with user/pass...I ALWAYS get No databases. If i do user/no pass, it works. wth? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread David T-G
Jim -- Please don't hijack threads. This message has nothing to do with calling a function in a page via GET. When you wish to ask a fewsh and unrelated question, please send a fresh and unrelated message. [I keep hearing good things about Evolution. Doesn't it have decent threading?] ...and

[PHP] Register_globals question

2003-03-18 Thread Mike Tuller
I found a class that allows you to have a multiple page listing, where it displays a certain number of items, and then you click on the next page to show the next results. I found that it needs to have register_globals turned on. I am learning, and would like to have someone look at the class

Re: [PHP] Register_globals question

2003-03-18 Thread CPT John W. Holmes
I found a class that allows you to have a multiple page listing, where it displays a certain number of items, and then you click on the next page to show the next results. I found that it needs to have register_globals turned on. I am learning, and would like to have someone look at the class

Re: [PHP] Calling function in php page via GET?

2003-03-18 Thread Leif K-Brooks
Not built in, that would be a HORRIBLE security risk. You can try something like this (untested): call_user_func_array($_GET['func'],$_GET['params']); Then use it like myscript.php?func=somefunctionparams[]=fooparams[]=bar, which would be the same as calling somefunction('foo','bar');

[PHP] openssl_pkey_get_private() problem

2003-03-18 Thread Jens Rehsack
Hi list, I have a problem with openssl_pkey_get_private which shows up like: -BEGIN Test-Script- ?PHP $fp = fopen( ../signkeys/fp3-cert.pem, r ); $pubkey = fread( $fp, 65000 ); fclose( $fp ); $fp = fopen( ../signkeys/fp3-privkey.pem, r ); $privkey = fread( $fp, 65000 ); fclose( $fp );

Re: [PHP] Register_globals question

2003-03-18 Thread Mike Tuller
Well, I know it has something to do with register_globals, because it only starts working when I turn register_globals on. If it is off, the script doesn't work. Here is the php file that calls to the class. It doesn't seem to have anything that is global, but as I said before, I am not very

[PHP] HOW TO ?

2003-03-18 Thread Luis A
hi everyone any one here know where can i get an tutorial of php who explin detailded . how to upload files by php i been read the php manual but i need one tutorial who explained to me by more examples couse i cant upload the files thanks anyway ;-)

[PHP] Authentication

2003-03-18 Thread Beauford.2002
Hi, I am looking for a simple authentication script that uses MySQL. I have downloaded about 10 of them (most with no instructions on it's use), but even at that they are not what I need. When you go to the main page of my site it will ask you to login or signup. So I want to be able to

Re: [PHP] Getting false positive on strpos ... despite doublecheck... HELP!

2003-03-18 Thread -{ Rene Brehmer }-
On Mon, 17 Mar 2003 05:40:05 -0800 (PST), Rasmus Lerdorf wrote about Re: [PHP] Getting false positive on strpos ... despite doublecheck... HELP! what the universal translator turned into this: case strpos($line,#date:) == 0 strpos($line,#date:) !== false: You can just do a === 0 check

[PHP] UTF-8 and PCRE

2003-03-18 Thread Jürgen Hauser
Hello! I would appreciate if anybody could tell me how to use an utf8 encoded string in a regular expression. I have tried this $string = a username written in greek letters; preg_match('#^[\w][\w0-9_]{2,39}$#', $string); Which does not work, i have also tried to utf8_decode the string and

Re: [PHP] Authentication

2003-03-18 Thread Erik Price
Beauford.2002 wrote: I am looking for a simple authentication script that uses MySQL. I have downloaded about 10 of them (most with no instructions on it's use), but even at that they are not what I need. The PEAR project has 7 different authentication packages, including Auth which I

Re: [PHP] Getting false positive on strpos ... despite doublecheck...HELP!

2003-03-18 Thread Rasmus Lerdorf
Do they cause the same behaviour as an if ... elseif structure??? Yes, continue simply discards the rest of the statements inside a loop and goes to the next iteration. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] script conflicts

2003-03-18 Thread Sebastian
the error is being returned by the other script that is being included into the same page .. but its the code below that is causing the other to give the error, and i cannot figure out why. - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] | I can't see mysql_fetch_row()

Re: [PHP] Getting false positive on strpos ... despite doublecheck... HELP!

2003-03-18 Thread -{ Rene Brehmer }-
On Mon, 17 Mar 2003 13:14:46 -0700, Kevin Stone wrote about Re: [PHP] Getting false positive on strpos ... despite doublecheck... HELP! what the universal translator turned into this: It interprets the text correctly 100%, BUT I get a false positive date check at the end of the file, which

Re: [PHP] Getting false positive on strpos ... despite doublecheck... HELP!

2003-03-18 Thread -{ Rene Brehmer }-
On Tue, 18 Mar 2003 01:50:57 -0800 (PST), Rasmus Lerdorf wrote about Re: [PHP] Getting false positive on strpos ... despite doublecheck... HELP! what the universal translator turned into this: Do they cause the same behaviour as an if ... elseif structure??? Yes, continue simply discards the

Re: [PHP] User Authentication

2003-03-18 Thread shaun
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- shaun [EMAIL PROTECTED] wrote: Using the following code I am able to authenticate which type of user is visiting my page, however if I try to log in again with a different type of user the session variables still

Re: [PHP] script conflicts

2003-03-18 Thread Marek Kilimajer
why are you using mysql_connect in this function? where are $hostname,$username,$password and $database coming from? Sebastian wrote: the error is being returned by the other script that is being included into the same page .. but its the code below that is causing the other to give the error,

[PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Vernon
I am calculating distances between to record's zip codes using php and have a need to sort the recordset by that value. How do I do something like this? I mean it's not a value in the table that I can use the SQL ORDER BY statement. I want to be able to have the distances closest to the individual

Re: [PHP] User Authentication

2003-03-18 Thread olinux
use: $_SESSION['ses_name'] = 'something'; $_SESSION['ses_pass'] = 'something'; $_SESSION['ses_level'] = 'something'; instead of: session_register(ses_name); session_register(ses_pass); session_register(ses_level); All $_SESSION entries are automatically registered. See the following for more

Re: [PHP] User Authentication

2003-03-18 Thread Chris Shiflett
--- shaun [EMAIL PROTECTED] wrote: ... $ses_name = $suser_name; $ses_pass = $suser_password; $ses_level = $stype_level; session_register(ses_name); session_register(ses_pass); session_register(ses_level); This is the moment where you lose your new

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
Vernon wrote: I am calculating distances between to record's zip codes using php and have a need to sort the recordset by that value. How do I do something like this? I mean it's not a value in the table that I can use the SQL ORDER BY statement. I want to be able to have the distances closest

[PHP] Call to undefined function: mssql_pconnect()

2003-03-18 Thread Miro Kralovic
Hi all.. I'm trying to connect MSSQL2000 Personal Edition from PHP and all I'm getting is Call to undefined function: mssql_pconnect() error.. I have installed PHP4.2.2-4, mod_php-4.2.2, php_devel-4.2.2, freetds0.53-4, php-sybase-ct-4.2.2, I think I also have php_ldap and php_imap.. restarted

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Vernon
When you say using php I'm assuming that this means you are not doing the calculation at the database, but rather in your PHP code. Correct. Use the distance you've calculated as the numeric index of an array, pointing to the record that corresponds to that distance. Can you please expalin

Re: [PHP] Performance and Function Calls

2003-03-18 Thread Noah
Thanks for the informative response, Don. While a few microseconds saved isn't much, the example I gave was not the real_world situation we're actually dealing with. We're looping through a roster list of players (e.g. a soccer team) with a minimum of twenty players on a team. When filling out

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
Vernon wrote: Use the distance you've calculated as the numeric index of an array, pointing to the record that corresponds to that distance. Can you please expalin this statement? Perhaps a tutorial somewhere? I could explain it better if you could post the code that you have so far which

Re: [PHP] User Authentication

2003-03-18 Thread shaun
i have changed the code to: Olinux [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] use: $_SESSION['ses_name'] = 'something'; $_SESSION['ses_pass'] = 'something'; $_SESSION['ses_level'] = 'something'; instead of: session_register(ses_name); session_register(ses_pass);

[PHP] php auth instead of .htaccess

2003-03-18 Thread Bryan Koschmann - GKT
Hello, I have gotten used to using .htaccess to protect files/directories, but now I am looking at a need to authenticate against mysql. I have no problem actually getting it to authenticate, but I'm wondering what the simplest way to prevent someone from hitting anything other than the main page

Re: [PHP] User Authentication

2003-03-18 Thread shaun
i have changed the code to: //register the session variables $_SESSION['ses_name'] = mysql_result($result, 0, User_Name); $_SESSION['ses_pass'] = mysql_result($result, 0, User_Password); $_SESSION['ses_level'] = mysql_result($result, 0, User_Type); but if i try to log in again the session

[PHP] PHP Processing Order || Function Calls

2003-03-18 Thread CF High
Hey all. I was under the impression that PHP processes all php code first before handing HTML processing over to the browser. It seems that if you call an external function that, say, queries your db for data and spits out populated formfields, the function is processed somehow simultaneously

Re: [PHP] php auth instead of .htaccess

2003-03-18 Thread Erik Price
Bryan Koschmann - GKT wrote: Hello, I have gotten used to using .htaccess to protect files/directories, but now I am looking at a need to authenticate against mysql. I have no problem actually getting it to authenticate, but I'm wondering what the simplest way to prevent someone from hitting

Re: [PHP] PHP Processing Order || Function Calls

2003-03-18 Thread Erik Price
CF High wrote: Hey all. I was under the impression that PHP processes all php code first before handing HTML processing over to the browser. http://www.php.net/manual/en/ref.outcontrol.php Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Mailing List Digest

2003-03-18 Thread Pete James
It is sent twice a day and contains all of the messages sent during that period. It's so that you don't get 200+ messages a day in your inbox. Tom Sommer wrote: What does the mailing list digest contain, compared to a normal subscription? What is the difference? -- PHP General Mailing List

[PHP] strstr() question

2003-03-18 Thread Charles Kline
What is the expected return when using strtr() to compare a string to an empty string? example: $myval = strstr('bob', ''); Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Which is quicker, if-else statements

2003-03-18 Thread Liam Gibbs
Is it just as quick to do: if($r == 0) { } else if($r != 0) { } than to do: if($r == 0) { } else { } The reason I like the former method is because, in a large IF-ELSE block, it's clear what belongs to what IF and what's going on. But does this make it lag? And, if so, is it really all that

Re: [PHP] Call to undefined function: mssql_pconnect()

2003-03-18 Thread -{ Rene Brehmer }-
On Tue, 18 Mar 2003 13:44:25 -0500, Miro Kralovic wrote about [PHP] Call to undefined function: mssql_pconnect() what the universal translator turned into this: Hi all.. I'm trying to connect MSSQL2000 Personal Edition from PHP and all I'm getting is Call to undefined function: mssql_pconnect()

Re: [PHP] Sorting Recordset by a calculation between 2 Records

2003-03-18 Thread Erik Price
vernon wrote: I think that maybe I should explain the fist Zip comes from a session, here I've defined the variable. I use the caluation in the code to get the distance and then loop the recordset so that the distance is created each time the record loops through. I have taken many things

[PHP] nstalling PHP

2003-03-18 Thread Marc Bakker
Hello all, I installed PHP, Apache and MySQL. I read the install.txt file that came with php and changed the default values in php.ini and httpd.conf. When I restart Apache and type my local website (127.0.0.1/index.php) IE comes with a 'Save file As' dialog box. Instead of parsing the php code

[PHP] Flash book help please

2003-03-18 Thread Daniel McCullough
My wife is a designer, not a technical person. She is learning Flash and she needs a book to learn and learn quickly how to do some things like click actions for a project. Can someone please give me an idea of 2-3 good flash books.

RE: [PHP] Flash book help please

2003-03-18 Thread Clint Tredway
Get Foundation Flash MX and Foundation Actionscript from friends of ed. These are the best for learning Flash. www.friendsofed.com Clint -Original Message- From: Daniel McCullough [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 2:05 PM To: [EMAIL PROTECTED] Subject: [PHP] Flash

Re: [PHP] Which is quicker, if-else statements

2003-03-18 Thread Kevin Stone
Logically the if-else construct is faster becuase PHP doesn't have to parse and execute the second conditional. An if-elseif construct is ussually followed by an else block to describe a default action if no other conditions are true. Otherwise you may as well use sequential if() statements

[PHP] Re: Which is quicker, if-else statements

2003-03-18 Thread Philip Hallstrom
Is it just as quick to do: if($r == 0) { } else if($r != 0) { } than to do: if($r == 0) { } else { } The reason I like the former method is because, in a large IF-ELSE block, it's clear what belongs to what IF and what's going on. But does this make it lag? And, if so, is it really

  1   2   >