Re: [PHP] imap mail() problems

2003-04-04 Thread Jason Wong
On Saturday 05 April 2003 05:58, Alec Wallis wrote: > Thanks for the suggestions, I have tried them all but with no joy. Still > exactly the same problem. Pretty sure its not my SMTP server as using > Outlook it works fines. Any other ideas as would prefer not to have to use > the mail() functio

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Jason Wong
On Saturday 05 April 2003 00:41, Michael Arena wrote: > After reading the file_upload section on PHP.net i got the following script > working on the server..it sends an attachment from a form now but it's > just of size 0 and always a txt file. I know it must be some little thing > wrong then this

Re: [PHP] Fast Templates error in PHP 4.3.1 ?

2003-04-04 Thread Travel Jadoo
PHP 4.3.1 apparently doesn't allow anymore assigning of the same function name twice which FastTemplates still does around line 630 with function "clear_assign" for a perl module alias. So Fast Template users beware! Alfred On Fri, 2003-04-04 at 19:17, Travel Jadoo wrote: > We upgraded the serve

Re: [PHP] HTTP or HTTPS

2003-04-04 Thread Alexander Weber
Unfortunally is not set. It's like the variable does not exist, because when I extract the varaible $_SERVER with foreach I don't get HTTPS as key, only SERVER_PROTOCOL. I'm using PHP 4.3.1 as Apache2 Module on Win2k SP3. register_globals OFF safe:mode OFF stunnel 4.04 on x86-pc-mingw32-gnu WIN32

Re: [PHP] Cookies not being read - begging php 4 chapter 8 pg 283

2003-04-04 Thread Jason Wong
On Saturday 05 April 2003 01:13, Paul Kraus wrote: > Ok I fixed this by adding this line to the top of my script. > > $font=$HTTP_COOKIE_VARS['font']; > Then everything worked great. > I tried to access them like this > $HTTP_COOKIE_VARS[font['type']] but this would not work. > > Is my syntax wrong

Re: [PHP] Running scripts in non-php file

2003-04-04 Thread Rasmus Lerdorf
That should be all you need. Make sure that something isn't re-assigning those extensions later on in your conf file. Perhaps you changed the wrong addtype? Liek a commented out one? -Rasmus On Fri, 4 Apr 2003, Tom Tsongas wrote: > Hi folks. > > This will probably sound like a stupid question

[PHP] Bug ?

2003-04-04 Thread Ciprian Trofin
I tried something like this: "; echo $arrayB[0]; ?> The output is: 1 1 I think it should be: 1 5 Systems tested: Windows 98 / PHP 4.2.2 Windows 2000 SP3 / PHP 4.1.1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Rasmus Lerdorf
You are getting completely mixed up. Simplifying your example: function foo() { echo "foo"; } $a = "".foo().""; Will you agree that this is bogus code? foo() is not going to return anything, so the resulting value of $a is going to be "". Correct? But while that assignment is

Re: [PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Pablo
On 04/04/2003 11:20 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: > Of course you can concatenate a string with a function! It works > perfectly for me. So both tables in the output look the same? Not for me under PHP 4.3.0: (1) this fails! (2) this works If I change '.' to ',' in this li

Re: [PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Leif K-Brooks
Of course you can concatenate a string with a function! It works perfectly for me. Pablo wrote: On 04/04/2003 7:06 PM, Daevid Vincent ([EMAIL PROTECTED]) wrote: Here, try this bullshit... Try this. Change this line: echo "".alarmLightMySQL().""; to this, and you will get the expected

Re: [PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Pablo
On 04/04/2003 7:06 PM, Daevid Vincent ([EMAIL PROTECTED]) wrote: > Here, try this bullshit... Try this. Change this line: echo "".alarmLightMySQL().""; to this, and you will get the expected result: echo "",alarmLightMySQL(),""; It appears that one cannot concatenate a string with a function.

Re: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Leif K-Brooks
Neither works. You're doing something like this in your other code: function foo(){ echo "foo"; } echo foo(); The foo() doesn't return the (non-existant) value from echo, it simply echo()s and returns nothing, and there's nothing wrong with echo()ing nothing. It would fail if you were using

Re[2]: [PHP] Apache SetHandler

2003-04-04 Thread Tom Rogers
Hi, Saturday, April 5, 2003, 6:29:50 AM, you wrote: Z> Hi ! Z> what i want is to write something in PHP which does authentication Z> (not basic auth but my own DB driven stuff) and after that something Z> apache resumes normal operation so that whatever is served afterwards Z> does not need to kn

RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Daevid Vincent
Mmm. I'm still not following and not completely convinced. Changing "echo alarmLightYMD();" to simply "alarmLightYMD();" in the bottom function doesn't print anything in the table cell at all (for the first test case). While your idea at first makes sense and does seem like a newbie mistake (and

RE: [PHP] custom error handling + fopen

2003-04-04 Thread Rasmus Lerdorf
I am not sure if you are asking me a question or not here. But no, like I said, when you set a custom error handler, that error handler is going to get called for all catchable errors. -Rasmus On Sat, 5 Apr 2003, Dan Rossi wrote: > apolgies sorry i removed a check for E_WARNING > > // case E_WA

Re: [PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Rasmus Lerdorf
I don't see a parse error, but the order of things is not going to be what you want because it is going to run the function and thus do the echo inside alarmLightYMD() before it does the outermost echo. If it had done anything else it would really have been a bug. -Rasmus On Fri, 4 Apr 2003, Dae

RE: [PHP] custom error handling + fopen

2003-04-04 Thread Dan Rossi
apolgies sorry i removed a check for E_WARNING // case E_WARNING: case E_USER_WARNING: $this->_throw($code); break; sorry basically i can trigger a E_USER_WARNING and catch that only in my callback function -Original Message

Re: [PHP] custom error handling + fopen

2003-04-04 Thread Rasmus Lerdorf
You can't really separate them. In your error handler you can check what type of error it was and treat them differently. On Sat, 5 Apr 2003, Dan Rossi wrote: > hi guys i have a custom error handler setup within a class , i can trigger > it with trigger_error , also i am sending my ustom trigger

[PHP] Please ignore -Re: php.ini file not being updated with install

2003-04-04 Thread Tracy
Found the problem so please ignore this post. I was confused with compiling as DSO vs not. Thanks so much Mark! It was that simple and caused all by my own confusion. Tracy wrote: > Hello Everyone, > I updated php recently in order to add the --with-ldap part. > so my config.nice file now looks

Re: [PHP] php.ini file not being updated with install

2003-04-04 Thread Tracy
Mark Douglas wrote: > If you are using php as a DSO, you need to restart your webserver to load > the new install. > Mark > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 9:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] php.ini file

RE: [PHP] php.ini file not being updated with install

2003-04-04 Thread Mark Douglas
If you are using php as a DSO, you need to restart your webserver to load the new install. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:25 PM To: [EMAIL PROTECTED] Subject: [PHP] php.ini file not being updated with install Hell

[PHP] php.ini file not being updated with install

2003-04-04 Thread tracy
Hello Everyone, I updated php recently in order to add the --with-ldap part. so my config.nice file now looks like: './configure' \ '--with-apache=../apache_1.3.27' \ '--with-mysql=/usr' \ '--with-oci8=/opt/oracle/product/9.2.0' \ '--enable-sigchild' \ '--with-ldap' \ "$@" To update php, I ran "m

Re: [PHP] how do I strip out data from a url?

2003-04-04 Thread Leif K-Brooks
//Beware, untested! preg_match('|.*([0-9]{10}).*|',$_SERVER['HTTP_REFERER'],$matches); $number = $matches[1]; Damon wrote: Hi, I have a realatively easy problem that I need help on. I want to take a 10-digit number out of a referring url and put it in a variable. Eg. www.jimmy.com/mypage/xy

[PHP] custom error handling + fopen

2003-04-04 Thread Dan Rossi
hi guys i have a custom error handler setup within a class , i can trigger it with trigger_error , also i am sending my ustom triggers to E_USER_WARNING , althogh even having fopen supressed @fopen i am still getting errors returned to the same area as my current codes , how can i seperate my custo

[PHP] how do I strip out data from a url?

2003-04-04 Thread Damon
Hi, I have a realatively easy problem that I need help on. I want to take a 10-digit number out of a referring url and put it in a variable. Eg. www.jimmy.com/mypage/xyz0123456789xyz/index.php I just need the 10-digit number from this string. Thanks! Damon -- PHP General Mailing List (ht

Re: [PHP] chill out

2003-04-04 Thread -{ Rene Brehmer }-
That's called a welcome message and is standard on nearly all email lists ... although I truly can't remember getting any when I sub'ed to this one in november. The standard for most lists is that you get a message telling you what the list is for, what is allowed, what is not, and how and where t

Re: [PHP] chill out

2003-04-04 Thread -{ Rene Brehmer }-
On Thu, 03 Apr 2003 02:20:01 -0500, Tim Thorburn wrote about "Re: [PHP] chill out" what the universal translator turned into this: >In general, I've had great luck with this list - it just seems the majority >of puter ppl don't have super ppl skills ;) That is more like an oximoron (sp?) ... com

Re: [PHP] chill out

2003-04-04 Thread -{ Rene Brehmer }-
On Thu, 3 Apr 2003 13:14:39 +1000, <[EMAIL PROTECTED]> wrote about "[PHP] chill out" what the universal translator turned into this: >We subscribe to a few email lists on various languages. > >This list would have to be the worst for anyone learning >- the amount of sarcasm and flaming that goes

Re: [PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Leif K-Brooks
Works fine for me, php 4.2.1. Daevid Vincent wrote: Here, try this bullshit... I can't upgrade to a more recent version as I'm not in control of the server, but I've tried it with both 4.1.2 and 4.2.3 on linux with a RH install. Can anyone confirm or dispute this bug exists in later versions? Ho

[PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Philip Hallstrom
It's a coding error... at least I think so. change alarmLightMySQL just return the results not "echo" them... echoing them doesn't make much sense inside another echo statement... On Fri, 4 Apr 2003, Daevid Vincent wrote: > Here, try this bullshit... > > I can't upgrade to a more recent version

[PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Daevid Vincent
Here, try this bullshit... I can't upgrade to a more recent version as I'm not in control of the server, but I've tried it with both 4.1.2 and 4.2.3 on linux with a RH install. Can anyone confirm or dispute this bug exists in later versions? How does a parsing error like this go un-noticed for so

[PHP] headers and apache

2003-04-04 Thread Sunfire
hi having a little problem with apache and its "customizable error messages" i have a basic authentication system here: ##in file called deletepost.php i have:## html for error web page here... #end# now in apache httpd.conf file i was told to do this: ErrorDocument 401 /errors/unauthorized.ph

Re: [PHP] Webtrends

2003-04-04 Thread Barry Gould
Check out Analog and Webalizer. RedHat includes Webalizer... it seems to work fine. Barry Gould At 03:49 PM 4/4/2003, you wrote: I know this is sort of off topic but I was wondering it any one knew if there was a GNU version of Webtrends or perhaps a GNU equivalent, maybe in php to use on an Apach

Re: [PHP] Webtrends

2003-04-04 Thread Ashley M. Kirchner
Vernon wrote: I know this is sort of off topic but I was wondering it any one knew if there was a GNU version of Webtrends or perhaps a GNU equivalent, maybe in php to use on an Apache Linux Red Hat server? While not exactly like webtrends, you might want to look at webalizer (http://www.mruni

[PHP] Webtrends

2003-04-04 Thread Vernon
I know this is sort of off topic but I was wondering it any one knew if there was a GNU version of Webtrends or perhaps a GNU equivalent, maybe in php to use on an Apache Linux Red Hat server? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Session Variables and Posting

2003-04-04 Thread Leif K-Brooks
http://www.php.net/manual/en/security.registerglobals.php Van Andel, Robbert wrote: Is there a way that I can prevent session variables getting values from query strings. I want them to receive values only from posted forms. Robbert van Andel -- The above message is encrypted with double ro

Re: [PHP] mysql_num_rows

2003-04-04 Thread Kevin Stone
Uh. no that can't be right becuase mysql_query() returns a pointer not an array. The variable does contain a string refering to the pointer ID but that's about all the information you're going to disseminate from print_r(); -- Kevin - Original Message - From: "[EMAIL PROTECTED]" <[EMAIL

Re: [PHP] Session Variables and Posting

2003-04-04 Thread Kevin Stone
- Original Message - From: "Van Andel, Robbert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 4:00 PM Subject: [PHP] Session Variables and Posting > Is there a way that I can prevent session variables getting values from > query strings. I want them to receive

Re: [PHP] mysql_num_rows

2003-04-04 Thread [EMAIL PROTECTED]
Someone helped me out with this to see exactly what the query is returning... echo " the Query: "; print_r ($select_result); echo ""; This should show you exactly what the result is getting... /T on 4/4/03 4:49 PM, Mike Tuller at [EMAIL PROTECTED] wrote: > I can't believe I forgot that. time t

[PHP] Session Variables and Posting

2003-04-04 Thread Van Andel, Robbert
Is there a way that I can prevent session variables getting values from query strings. I want them to receive values only from posted forms. Robbert van Andel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Burhan Khalid
Michael Arena wrote: When I put change the line you suggested to " Line25 $fileatt = "/home/sites/webserver.agraservices.net/web/mike/$_POST['fileatt']"; $fileatt_type = $_FILES['fileatt']['type'];// Type of file being sent $fileatt_name = $_FILE

Re: [PHP] mysql_num_rows

2003-04-04 Thread Mike Tuller
I can't believe I forgot that. time to go home for the week. thanks. On Friday, April 4, 2003, at 04:28 PM, J J wrote: oh and your SQL statement is wrong: SELECT * FROM table WHERE you are missing the FROM... --- Mike Tuller <[EMAIL PROTECTED]> wrote: I can't get mysql_num_rows to work f

Re: [PHP] Win95 - PHP - Apache - MySQL

2003-04-04 Thread Burhan Khalid
Chris Hayes wrote: At 00:56 5-4-2003, you wrote: Hello people, greet for all I tried to install these: Win95 as operating system PHP as parser Apache as Web server Mysql as DB server I tried to configure these platforms, and when I write http://localhost , it doesn't work, I think t

[PHP] Sorry for my mistake

2003-04-04 Thread Mario Soto
I want to say sorry for the messages I sended. I didn't checked off the read verification for my messages when posting to the list. It is now deactivated. Now the attachemente file on the UTF-8 message didn't reach to you. Any one who wants the list can get directrly thru the www.w3c.org or requ

RE: [PHP] mysql_num_rows

2003-04-04 Thread John W. Holmes
> $department_name = $_POST['department_name']; > > $select_query = "SELECT * WHERE department_name = '$department_name'"; > $select_result = mysql_query($select_query, $db_connect); > $select_total_rows = mysql_num_rows($select_result); > > if ($select_total_rows<1) > { > $insert_query = "

RE: [PHP] Questions

2003-04-04 Thread John W. Holmes
> Began with one question, but some how I figure it out some stuff that I > will need, and before I forget to ask, better I'll do, and are from > different topics related to the php. No more than one message is sent, > because the traffic on the list. Hope that in some time I get the responde > of

Re: [PHP] mysql_num_rows

2003-04-04 Thread J J
oh and your SQL statement is wrong: SELECT * FROM table WHERE you are missing the FROM... --- Mike Tuller <[EMAIL PROTECTED]> wrote: > I can't get mysql_num_rows to work for some reason. > Here is a snippet > of what I have > > > $department_name = $_POST['department_name']; > > $selec

[PHP] Running scripts in non-php file

2003-04-04 Thread Tom Tsongas
Hi folks. This will probably sound like a stupid question, but I will ask it anyway: how can I get the PHP interpreter to execute scripts in files that don't have the .php extension? i.e. if I want to embed php code into a .html or .xml file that gets run. I thought all I had to do was add the

Re: [PHP] mysql_num_rows

2003-04-04 Thread J J
Try: ($select_total_rows == 0) instead. That and maybe echo $select_total_rows; to see what it's returning. --- Mike Tuller <[EMAIL PROTECTED]> wrote: > I can't get mysql_num_rows to work for some reason. > Here is a snippet > of what I have > > > $department_name = $_POST['departme

[PHP] mysql_num_rows

2003-04-04 Thread Mike Tuller
I can't get mysql_num_rows to work for some reason. Here is a snippet of what I have $department_name = $_POST['department_name']; $select_query = "SELECT * WHERE department_name = '$department_name'"; $select_result = mysql_query($select_query, $db_connect); $select_total_rows = mysql_num_rows(

RE: [PHP] native vs. phplib sessions

2003-04-04 Thread John W. Holmes
> How many people are using native vs. phplib sessions, vs. their > own/homegrown > sessions? > > The archives show a LOT of problems with native sessions. I've never had any problems with the native PHP session implementation (except for that buggy 4.2.?? version). It can be adapted to use datab

RE: [PHP] Opinion on a method....

2003-04-04 Thread John W. Holmes
> Reason I'm not using an include is simple. The file does not contain any > variables, it just has a line of text that is & delimited. I guess I was > just looking at the include() method as insecure. I can see how it > wouldn't > be now. Why not create your .ini file in the same format as php

RE: [PHP] window size...

2003-04-04 Thread Matt Giddings
DT, PHP is a server side scripting language, it does not have the ability to manipulate client side objects. You're pretty much stuck with javascript or vbscript and possible a few others. Matt > -Original Message- > From: Deependra b. Tandukar [mailto:[EMAIL PROTECTED] > Sent: Friday

Re: [PHP] imap mail() problems

2003-04-04 Thread Alec Wallis
Thanks for the suggestions, I have tried them all but with no joy. Still exactly the same problem. Pretty sure its not my SMTP server as using Outlook it works fines. Any other ideas as would prefer not to have to use the mail() function multiple times. Alec - Original Message - From:

Re: [PHP] imap mail() problems

2003-04-04 Thread Jason Wong
On Saturday 05 April 2003 01:04, Mario Soto wrote: > Try first to take off the \r char on the string. It worked very good for me > using only the \n to send more headers. Headers *should* be delimited by "\r\n" ... > Other is to put the address into > angle bracets (<[EMAIL PROTECTED]>) and in

[PHP] showing idle time with time() function

2003-04-04 Thread NeXaS
How to show IDLE TIME which format would be 00:00 (minutes:seconds) ? My PHP script sets time ( with function "time()" )to one of the mysql cell of the current user, when new page is requested. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Win95 - PHP - Apache - MySQL

2003-04-04 Thread Chris Hayes
At 00:56 5-4-2003, you wrote: Hello people, greet for all I tried to install these: Win95 as operating system PHP as parser Apache as Web server Mysql as DB server I tried to configure these platforms, and when I write http://localhost , it doesn't work, I think the problem is the we

Re: [PHP] native vs. phplib sessions

2003-04-04 Thread Jimmy Brake
homegrown make a rand value for the cookie -- stick that rand value in a db with the actual user account info ... then we pull the real account info using the random value from their cookie -- simple, efficient and pretty dang secure -- also the system is load balance friendly On Fri, 2003-

RE: [PHP] dynamic IF statement

2003-04-04 Thread Jennifer Goodie
HTTP_GET_VARS["id"] is probably empty so this won't work, stick a $ in front of it. > -Original Message- > From: Leif K-Brooks [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 12:38 PM > To: Tim Haskins > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] dynamic IF statement > > > If I un

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Ernest E Vogelsinger
At 22:38 04.04.2003, Anthony said: [snip] >nope, same host I actually call the file by sending this : >header("Location: ../index.htm"); >and I loose the session. [snip] You've disabled cookies, either in your browser

[PHP] Replacing Unicode characters

2003-04-04 Thread Jeff Bearer
I'm working on an application where I need to replace some Unicode characters with a PHP shell script. The problem I'm having is matching multibyte characters. One character in particular is Unicode 2014 an m-dash '—' To get the decimal code to identify the character I've tried two methods, one

Re: [PHP] dynamic IF statement

2003-04-04 Thread Leif K-Brooks
If I understand you right, you want: if (HTTP_GET_VARS["id"] == $row_rsProducts['prID']){ ...do stuff... } Tim Haskins wrote: How does one create a statement that basically says: " ) { ?> Basically, I want to say, "show if url value is equal to this database record's ID value - The last part is

RE: [PHP] Quick Sessions ?

2003-04-04 Thread Jennifer Goodie
You want it to be / so they are readable by the entire site. From your syptoms a bad path seemed to be the problem, but it looks like it is something else. > -Original Message- > From: Anthony [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 12:37 PM > To: [EMAIL PROTECTED] > Subj

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Anthony
nope, same host I actually call the file by sending this : header("Location: ../index.htm"); and I loose the session. - Anthony "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 22:18 04.04.2003, Anthony said: > [snip]

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Anthony
Thanks for the response. I think I might just not totaly understand this switch. This is right out of my php.ini file: ; The path for which the cookie is valid. session.cookie_path = / I tried deleting the / and got no change in behavior. It seems to me that what I need is something like session

RE: [PHP] Opinion on a method....

2003-04-04 Thread Dan Joseph
Hi, Thanks to everyone for the input. Reason I'm not using an include is simple. The file does not contain any variables, it just has a line of text that is & delimited. I guess I was just looking at the include() method as insecure. I can see how it wouldn't be now. Thanks to everyone! -Dan

Re: [PHP] Includes confusion

2003-04-04 Thread Ernest E Vogelsinger
At 22:24 04.04.2003, Mike Tuller said: [snip] >fine except inside functions. So if I have the following: > >include "/Library/WebServer/includes/database_connection.inc"; > >function list_search_results() >{ > // my code that lists search results >} > >

Re: [PHP] dynamic IF statement

2003-04-04 Thread Steve Keller
At 4/4/2003 11:50 AM, Tim Haskins wrote: > How does one create a statement that basically says: > > " ) > { ?> You make a string with your dynamic statement and then EVAL it. http://www.php.net/manual/en/function.eval.php -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organ

RE: [PHP] Includes confusion

2003-04-04 Thread Jennifer Goodie
PHP parses includes inline, so whatever the scope is where the file is included, is the scope of the variables that the include contains. You can declare the variables global in your fuction and it will use what was included, that would be the quick fix, you could also switch your include to use D

Re: [PHP] Apache SetHandler

2003-04-04 Thread Zoff
Hi ! what i want is to write something in PHP which does authentication (not basic auth but my own DB driven stuff) and after that something apache resumes normal operation so that whatever is served afterwards does not need to know anything of the auth process. e.g.: --> apache --> PHP-script -->

[PHP] native vs. phplib sessions

2003-04-04 Thread Dennis Gearon
How many people are using native vs. phplib sessions, vs. their own/homegrown sessions? The archives show a LOT of problems with native sessions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Includes confusion

2003-04-04 Thread Mike Tuller
I can't figure this out. I have a line where I include a file include "/Library/WebServer/includes/database_connection.inc"; I want to have this declared in one location, so that I don't have to change multiple lines if I ever move the application, everything works fine except inside functions.

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Ernest E Vogelsinger
At 22:18 04.04.2003, Anthony said: [snip] >yes, it parses PHP in html files. The php code works. I just loose the >session data when going from files in different folders. [snip] Different folders, or different host

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Anthony
yes, it parses PHP in html files. The php code works. I just loose the session data when going from files in different folders. - Anthony "Mark Douglas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Let's ask the dumb questions first: > > Is your webserver parsing .html files f

RE: [PHP] Opinion on a method....

2003-04-04 Thread Jon Haworth
Hi Dan, > the ini file looks like: hostip&user&password&databasename > after I import it, I split it up, and assign each to a variable > name. I also have it outside the doc root, and it gives a > generic error msg for every error in the system. Should do it - it's a bit of a long-winded route, t

RE: [PHP] Quick Sessions ?

2003-04-04 Thread Jennifer Goodie
Your cookie path is "" not "/" so your cookie is only readble by the directory it was set in. Check your session.cookie_path http://www.php.net/manual/en/ref.session.php > -Original Message- > From: Anthony [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 12:03 PM > To: [EMAIL PR

RE: [PHP] Quick Sessions ?

2003-04-04 Thread Mark Douglas
Let's ask the dumb questions first: Is your webserver parsing .html files for PHP? -Original Message- From: Anthony [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 3:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Quick Sessions ? I have an issue. For some reason I can't pass session

[PHP] Quick Sessions ?

2003-04-04 Thread Anthony
I have an issue. For some reason I can't pass session data to pages within different folders. What I have is a page in like mydomain.com/something/somepage.php This page creates session information and holds it correctly. The app collects user data and then eventualy sends a location header to

Re: [PHP] Re: *Umlauts/UTF-8

2003-04-04 Thread John Nichel
Dude, disable requesting for a receipt when your email is read. Mario Soto wrote: This function will help me to other suff that I wanted to do. Thank you. That is the main reason of the mailing lists, learn of others, in this case, from others in a lot of different countries around the world on a

[PHP] Win95 - PHP - Apache - MySQL

2003-04-04 Thread Orlando Pozo
Hello people, greet for all I tried to install these: Win95 as operating system PHP as parser Apache as Web server Mysql as DB server I tried to configure these platforms, and when I write http://localhost , it doesn't work, I think the problem is the web server, but I don't unders

[PHP] dynamic IF statement

2003-04-04 Thread Tim Haskins
How does one create a statement that basically says: " ) { ?> Basically, I want to say, "show if url value is equal to this database record's ID value - The last part is what I can't seem to get to work- any ideas??? Thanks! -- Tim Haskins -- PHP General Mailing List (http://www.php.net

[PHP] Win95 - PHP - Apache - MySQL

2003-04-04 Thread Orlando Pozo
Hello people, greet for all I tried to install these: Win95 as operating system PHP as parser Apache as Web server Mysql as DB server I tried to configure these platforms, and when I write http://localhost , it doesn't work, I think the problem is the web server, but I don't understand becau

Re: [PHP] PHP Another time "a"round

2003-04-04 Thread CPT John W. Holmes
> I'm getting close to what I want...I currently have this code which loops > through all of the next 24 hours: > > > for($i = 0; $i <= 24; $i++): > $futhour = strtotime("+$i hour"); > echo ''. date('g > a',$futhour).''; > endfor; > ?> > > > is there a way to include the mi

Re: [PHP] re:[PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-04 Thread Barry Gould
At 11:20 AM 4/4/2003, CPT John W. Holmes wrote: How much traffic does this site get? Is it possible that the garbage collection is just never triggered? What if you up the garbage collection probability in your php.ini file to 100% (to trigger it with each session start)? Do the files get removed t

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
When I put change the line you suggested to " Line25 $fileatt = "/home/sites/webserver.agraservices.net/web/mike/$_POST['fileatt']"; $fileatt_type = $_FILES['fileatt']['type'];// Type of file being sent $fileatt_name = $_FILES['fileatt']['name'];

Re: [PHP] Opinion on a method....

2003-04-04 Thread Kevin Stone
- Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> To: "Dan Joseph" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 12:19 PM Subject: RE: [PHP] Opinion on a method > Hi Dan, > > > I would like to get some opinions here on a method I'm doing > > to grab

RE: [PHP] Opinion on a method....

2003-04-04 Thread Bryan Lipscy
In a php file I can just include the connection information and reduce the overhead that comes with fopen. Still gives me one central spot for changing connection information as necessary. There is always more than one way to do it. -Bryan -Original Message- From: Dan Joseph [mailto:[EMA

RE: [PHP] Opinion on a method....

2003-04-04 Thread Dan Joseph
Hi Jon, the ini file looks like: hostip&user&password&databasename after I import it, I split it up, and assign each to a variable name. I also have it outside the doc root, and it gives a generic error msg for every error in the system (db related, or not).

Re: [PHP] Opinion on a method....

2003-04-04 Thread CPT John W. Holmes
> I would like to get some opinions here on a method I'm doing to grab connect > information for a mysql connection. > > Currently I am doing: $pinfo = fopen ("/director1/directory2/filename.ini", > "r"); > > I'm looking for a more secure method of doing this. Is XML a solution? Is > there somethi

RE: [PHP] Opinion on a method....

2003-04-04 Thread Jon Haworth
Hi Dan, > I would like to get some opinions here on a method I'm doing > to grab connect information for a mysql connection. Currently > I am doing: > $pinfo = fopen ("/director1/directory2/filename.ini","r"); Does this filename.ini contain the code to connect to your database? If so, I usually

RE: [PHP] Opinion on a method....

2003-04-04 Thread Dan Joseph
Ahh, good thought. I also have it outside the web site directory tree. -Dan Joseph -Original Message- From: Bryan Lipscy [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 2:14 PM To: 'Dan Joseph'; [EMAIL PROTECTED] Subject: RE: [PHP] Opinion on a method Put the connect

RE: [PHP] PHP magazines / websites?

2003-04-04 Thread Boaz Yahav
http://www.weberdev.com is one of the veteran sites and is definitely a premier PHP developer website. Also check out : http://www.phpclasses.org http://www.codewalkers.com berber -Original Message- From: John M. Calvert [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:50 PM

Re: [PHP] re:[PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-04 Thread CPT John W. Holmes
How much traffic does this site get? Is it possible that the garbage collection is just never triggered? What if you up the garbage collection probability in your php.ini file to 100% (to trigger it with each session start)? Do the files get removed then? I'm sure this isn't the problem, but the OS

Re: [PHP] Individual member pages

2003-04-04 Thread Andrew
That should get me started thank you Miles Andrew "Miles Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Relatively easy-ish. . But you'll have to study PHP a bit more. > > This is a situation where sessions work really well - read up on them in > the manual. Authenticat

RE: [PHP] Opinion on a method....

2003-04-04 Thread Bryan Lipscy
Put the connect info into a php file (i.e. connect.php). If it is ever directly accessed by the client the PHP engine will render a blank page. If your ini file is ever accessed by the client it will render the contents of the ini file. Wonder if removing rwx would adversly affect includes to th

[PHP] re:[PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-04 Thread Barry Gould
Any other ideas on this? Should I submit it to the bug system? Thanks, Barry Date: Thu, 03 Apr 2003 13:25:16 -0800 Hi, I'm having a problem where session files are not expiring or getting deleted. I'm running RedHat 7.3 (which normally expires sessions fine). I removed the RedHat PHP packages (r

[PHP] Opinion on a method....

2003-04-04 Thread Dan Joseph
Hi, I would like to get some opinions here on a method I'm doing to grab connect information for a mysql connection. Currently I am doing: $pinfo = fopen ("/director1/directory2/filename.ini", "r"); I'm looking for a more secure method of doing this. Is XML a solution? Is there something else?

Re[2]: [PHP] REPLY NEEDED

2003-04-04 Thread Timo Boettcher
Hi David, Nachricht vom Freitag, 4. April 2003, 14:52:14: > On Friday 04 April 2003 03:56 am, Timo Boettcher wrote: >> Hi, >> >> Message of Friday, 4th April 2003, 12:28:44: >> Apart from this being as Off-topic as I have ever seen, I think we >> should help him: >> So that he doesn't have to sp

[PHP] PHP magazines / websites?

2003-04-04 Thread John M. Calvert
Hi, I'm wondering what PHP-focused or PHP-aware print magazines are out there (as opposed to on-line). So far I'm aware of www.phparch.com, but I've not picked up a copy yet. Also, what are considered the premier PHP developer websites? Thanks John M. Calvert, M.Sc., MCSD 1310521 Ontario Inc. 4

Re: [PHP] newbie help, pressing the submit button returns nothing(solved)

2003-04-04 Thread David McGlone
On Friday 04 April 2003 01:15 pm, you wrote: > > > >> >Welcome ! > > > > Thank you all for helping me, I have finally figured out why the name > > wasn't displaying. from the line above, "$applicant" should have been > > "applicant". > > Are you sure you're using PHP? I guess so, here's what worked

  1   2   3   >