[PHP] Re: Mind exploded on this one!

2003-07-11 Thread Paul Chvostek
On Fri, Jul 11, 2003 at 02:21:42PM -0400, Phil Powell wrote: > > $booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile', > 'hasSelectedProfile', ... > $booleanVars = array('profileID', 'showemail', 'showbirthday', 'season', > 'profilememberid'); > $profileVarArray = array('firstna

Re[2]: [PHP] How to hide URL but it's not from a form just a link ?

2003-07-11 Thread Tom Rogers
Hi, Saturday, July 12, 2003, 12:45:26 PM, you wrote: JF> What about sessions? Depends on your circumstances and the flow of JF> pages, but storing all these vars in a session, then only passing the JF> session id around in the URL could be an alternative JF> Justin Yes you can do it with se

[PHP] Re: fread() question

2003-07-11 Thread Simon Fredriksson
Wouldn't it be easier to use something like the following? while (!feof ($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } This will read until there's nothing more to read. Isn't that what you're trying to do? Read more about it at http://se2.php.net/manual/en/function.fgets.p

Re: [PHP] Couple of questions form a PHP newbie

2003-07-11 Thread Simon Fredriksson
If that's the case I recommend using multiple files instead of one big. Just come up with some structure for them. I'd say 10-20MB text is pretty much. //Simon Jason Giangrande wrote: Thanks for your help guys. The checkboxes thing is working great. Michael, regarding using files instead of a

Re: [PHP] How to hide URL but it's not from a form just a link ?

2003-07-11 Thread Justin French
What about sessions? Depends on your circumstances and the flow of pages, but storing all these vars in a session, then only passing the session id around in the URL could be an alternative Justin On Saturday, July 12, 2003, at 12:21 PM, Tom Rogers wrote: Hi, Saturday, July 12, 2003, 4:05

Re: [PHP] Couple of questions form a PHP newbie

2003-07-11 Thread Jason Giangrande
Thanks for your help guys. The checkboxes thing is working great. Michael, regarding using files instead of a database, in your opinion, eventually having a 10-20 MB text file isn't going to cause any server problems if more than a few people are accessing the site at a time? I'm not talking mil

Re: [PHP] How to hide URL but it's not from a form just a link ?

2003-07-11 Thread Tom Rogers
Hi, Saturday, July 12, 2003, 4:05:34 AM, you wrote: J> How can I hide this link so value can't be changed? J> I don't want to change anything at the server level, and its not from a J> form so I cant do a post -vs- a get. J> http://www.abcd.com/SearchSet.php?searchby=cust_no&search=1&value=WOR03

Re: [PHP] Mailing list server with PHP frontend

2003-07-11 Thread Tom Rogers
Hi, Saturday, July 12, 2003, 9:47:29 AM, you wrote: JN> Hi! JN> I want to know if anyone knows about a good mailing list manager that has JN> got a PHP administration frontend JN> I've found many PHP scripts for sending newsletters and announcementes, but JN> that's it's not what I want JN> I wan

Re: [PHP] Couple of questions form a PHP newbie

2003-07-11 Thread Jonathan Villa
1. Text file or DB My answer -> Learn how to use a database, it will make things much easier 2. Checkbox Try this: then after submission, you could do the dump, or foreach ($_POST["sports"] as $val) echo $val; On Fri, 2003-07-11 at 20:10, Jason Giangrande wrote: > First question

[PHP] Couple of questions form a PHP newbie

2003-07-11 Thread Jason Giangrande
First question: I'm creating a custom content manager for a small site. It will basically be used to store short articles (several paragraphs each). Now my question is, is storing these to a text file going to work or am I going to have problems later on when the file gets to be a reasonable size

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Greg Beaver
Hi to both of you, What is happening here is that there is a separate namespace for private elements in PHP 5. You can have both a private $Name and a public $Name if it is defined at runtime. I don't know if this is a feature or a bug, I'd call it a bug since redeclaration of a variable is

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Jim Lucas
I think that is what he was meaning. IT SHOULDN'T WORK THAT WAY, BUT IT DOES!!! Re-Read his first email a little closer. Jim Lucas - Original Message - From: "Michael Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 11, 2003 3:44 PM Subject: Re: [PHP] Private and pro

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Paul Hudson
Michael, Er, if you're saying that my private variable example shouldn't work, then I agree - that's the reason I'm confused. Or am I misunderstanding what you're saying? --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 and PHP4 on Same Machine

2003-07-11 Thread Michael Smith
Hi, Just thought I'd let everyone know: you can run php5 and php4 on the same machine (--with-apxs for example) but, I don't know if you can AddType application/x-httpd-php4 .php4 .php AddType application/x-httpd-php5 .php5 or not... Is that possible? I know you can load both modules, but whiche

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Michael Smith
Hey, private vars are not accessible that way. This is the way it works... private $var is only usable by the class. You can't access it through $object->var. protected $var is only usable by the class if it was called directly, but not by any objects that are classes that are extended from the

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Paul Hudson
Alan, Yes, those are the same results I'm getting. I'm running the latest CVS. AFAIK, printing "Poppy" shouldn't happen - the variable should be private. --Paul On Friday 11 Jul 2003 11:19 pm, Alan D'Angelo wrote: > Hello, > In my PHP5 installation the first example print Poppy, > but the se

Re: [PHP] Storing SQL Queries for Reuse in Apps

2003-07-11 Thread Jeff Harris
On Jul 10, 2003, "Jacob C" claimed that: |Hello All, | |I just want to survey the list and see what kind of solutions people are using |for the storage and reuse of SQL queries. | |Right now I am working on an application that has native SQL queries as well |as custom queries that can be added by

Re: [PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Alan D'Angelo
Hello, In my PHP5 installation the first example print Poppy, but the second return Fatal error: Call to protected method dog::bark() from context '' in c:\appserv\www\test\mailingphp50.php on line 18 In my previous installation oh PHP5, private variable worked well ... PHP 5 is one beta, try with

[PHP] REGULAR EXPRESSION HELP

2003-07-11 Thread John
Hi, I'm pretty new to regular expressions. Before, I used to write long-winded and buggy segments of code with PHPs string functions to extract text. But I want to learn how to use perl reg-ex as it seems useful to know so I ordered "Mastering Regular Expressions". But it hasn't come yet so I'm as

[PHP] Private and protected variables in PHP 5?

2003-07-11 Thread Paul Hudson
All, I'm toying with the new stuff available in PHP 5 (latest CVS), but I've hit a brick wall: both private and protected don't seem to work as I'd expect them to. Here's an example script: Name = "Poppy"; print $poppy->Name; ?> For some reason, that script works fine - PHP doesn't object

Re: [PHP] numbers to text

2003-07-11 Thread Jeff Harris
On Jul 11, 2003, "Pete Morganic" claimed that: |Anyone know of a class or function that converts numbers to readable text | |eg inputing the number would output text as in | |120 = one hundred and twenty |3600 = three thousand six hundred | | |tia | |pete | How about http://pear.php.net/package-i

Re: [PHP] AAAAGGGHHHH!!! Help!!

2003-07-11 Thread Alister
On Fri, 11 Jul 2003 16:41:06 -0400 "Mike Mannakee" <[EMAIL PROTECTED]> wrote: > I am running a query in mysql : > ... WHERE > visitors.created > DATE_SUB( CURRENT_DATE, INTERVAL 1 HOUR ) > AND > id = pixeldata_.remote > GROUP BY > visitors.id CURRENT_DATEnow( ) DATE_S

Re: [PHP] Writing to files

2003-07-11 Thread Jason Giangrande
Thanks for the help guys. Jason On Fri, 2003-07-11 at 15:43, David Nicholson wrote: > Hello, > > > This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37, > lines prefixed by '>' were originally written by you. > > Any ideas on how I can print the lines of my file in reverse o

[PHP] AAAAGGGHHHH!!! Help!!

2003-07-11 Thread Mike Mannakee
I am running a query in mysql : SELECT DISTINCT (id) AS visitor_id, MAX(date_time) AS last, MIN(date_time) AS first, UNIX_TIMESTAMP( MAX(date_time)) - UNIX_TIMESTAMP( MIN(date_time)) AS diff FROM visitors, pixeldata_ WHERE visitors.created > DATE_SUB( CURRENT_DATE, INTERVAL 1 HOUR ) AND id = pixel

Re: [PHP] Mailing list server with PHP frontend

2003-07-11 Thread Juan Nin
From: "Frank Keessen" <[EMAIL PROTECTED]> > Maybe is this what you want; > > http://www.eternalmart.com/ nope, I had already seen it.. that's the kind of software I found lots, it's for sending announcements via a web form to subscribed users, but it's not a mailing list server thanks anyway J

Re: [PHP] Mailing list server with PHP frontend

2003-07-11 Thread Frank Keessen
Hi, Maybe is this what you want; http://www.eternalmart.com/ Regards, Frank - Original Message - From: "Juan Nin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 12, 2003 1:47 AM Subject: [PHP] Mailing list server with PHP frontend > Hi! > I want to know if anyone kn

Re: [PHP] Writing to files

2003-07-11 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37, lines prefixed by '>' were originally written by you. > Any ideas on how I can print the lines of my file in reverse order, > then? How about... $fp = fopen("yourfile.txt","r"); $filecontents = ""; while(!feof($fp)

[PHP] Mailing list server with PHP frontend

2003-07-11 Thread Juan Nin
Hi! I want to know if anyone knows about a good mailing list manager that has got a PHP administration frontend I've found many PHP scripts for sending newsletters and announcementes, but that's it's not what I want I want a system like Mailman, Sympa or Majordomo (the mailing list server may be p

Re: [PHP] Writing to files

2003-07-11 Thread Rob Adams
You could try using the file() function. Then loop backward through the array or use array_reverse. -- Rob "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any ideas on how I can print the lines of my file in reverse order, > then? Does fgets() always proce

Re: [PHP] Writing to files

2003-07-11 Thread CPT John W. Holmes
> Any ideas on how I can print the lines of my file in reverse order, > then? Does fgets() always process from the beginning of the file even > if you open the file with the pointer at the end? I tried to get the > line count of the file and go through each line of the file backwards > but that d

Re: [PHP] Writing to files

2003-07-11 Thread Jason Giangrande
Any ideas on how I can print the lines of my file in reverse order, then? Does fgets() always process from the beginning of the file even if you open the file with the pointer at the end? I tried to get the line count of the file and go through each line of the file backwards but that doesn't see

Re: [PHP] Writing to files

2003-07-11 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 19:56, lines prefixed by '>' were originally written by you. > Is there a way to write to a beginning of a file without it > overwriting > data that's already there or do I have to write to the end of the file > in order to

Re: [PHP] Mind exploded on this one!

2003-07-11 Thread Jim Lucas
You have almost everything correct here change that last line to this. $arrayListArray = compact('booleanNonFormVars', 'booleanVars', 'profileVarArray', 'profileNonFormVarArray'); notice the use of compact() Jim Lucas - Original Message - From: "Phil Powell"

RE: [PHP] Enable GD on PHP 4.1.1 problems SOLVED

2003-07-11 Thread Jay Blanchard
[snip] ... all of it ... [/snip] required installing the jpeg library first, png second, then gd Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Writing to files

2003-07-11 Thread Jason Giangrande
Is there a way to write to a beginning of a file without it overwriting data that's already there or do I have to write to the end of the file in order to preserve data? I ask because it would be much easier to print the lines of the file out in order of last added first if I could add lines at th

[PHP] Re: Mind exploded on this one!

2003-07-11 Thread Seairth Jacobs
Could you give an example of what you want/expect to get back? Seairth "Phil Powell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] $booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile', 'hasSelectedProfile', 'hasEditedProfile', 'hasDeleted

Re: [PHP] Mind exploded on this one!

2003-07-11 Thread Kevin Stone
- Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "Phil Powell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 11, 2003 12:33 PM Subject: Re: [PHP] Mind exploded on this one! > - Original Message - > From: "Phil Powell" <[EMAIL PROTECTED]> > To: <[EMAI

Re: [PHP] Mind exploded on this one!

2003-07-11 Thread Kevin Stone
- Original Message - From: "Phil Powell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 11, 2003 12:21 PM Subject: [PHP] Mind exploded on this one! $booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile', 'hasSelectedProfile',

[PHP] Mind exploded on this one!

2003-07-11 Thread Phil Powell
$booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile', 'hasSelectedProfile', 'hasEditedProfile', 'hasDeletedProfile', 'willDeleteProfile', 'willDeletePic'); $booleanVars = array('profileID', 'showemail', 'showbirthday', 'se

Re: [PHP] How to hide URL but it's not from a form just a link ?

2003-07-11 Thread Mark
As someone mentioned earlier, put them into a session (or a cookie). Is this a repost, or is it a duplicate? --- Joey <[EMAIL PROTECTED]> wrote: > How can I hide this link so value can't be changed? > I don't want to change anything at the server level, and its not > from a > form so I cant do a

[PHP] How to hide URL but it's not from a form just a link ?

2003-07-11 Thread Joey
How can I hide this link so value can't be changed? I don't want to change anything at the server level, and its not from a form so I cant do a post -vs- a get. http://www.abcd.com/SearchSet.php?searchby=cust_no&search=1&value=WOR032 Thanks ! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: php mysql array question

2003-07-11 Thread Rob Adams
It shouldn't take a lot of code to put results into an array: $query = "select * from table"; $r = mysql_result($query); while ($row = mysql_fetch_object($r)) $hold[] = $row; (OR, to index by some id field in the database:) $hold[$row->id] = $row; mysql_free_result($r); Total of 5 lines. --

Re: [PHP] htaccess?

2003-07-11 Thread Dean E. Weimer
> Is it possible to determine who the htaccess user logged in is? If so, > how? > Can you point me at some articles? > > Johnny > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > $_SERVER['PHP_AUTH_USER'] -- Thanks, Dean E. Weimer

Re: [PHP] Long lines

2003-07-11 Thread Jim Lucas
Try this $str = "here is some php" . "here is more" . "here is even more"; Just a plain '.' will do the trick. Jim Lucas - Original Message - From: "Alvaro Rosales R." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 11, 2003 7:11 AM Subject: [PHP] Long lines

[PHP] Enable GD on PHP 4.1.1 problems

2003-07-11 Thread Jay Blanchard
Argh! I am ready to pull out my hair on this. I have made sure that jpeg-6b is installed, libpng is installed, zlib etc. I can configure with ./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/usr/local/etc --enable-versioning --with-system-regex --disable-debug --enable-track-

[PHP] Re: Long lines

2003-07-11 Thread Eddy-Das
i'm not sure if you want to "code in multi line, display in single line" or "code in single line, display in multi line" here gives an example: This will give: 123456789 another example: This will give : abc def xyz another one: this also gives the same as above hope this helps -- -

[PHP] Re: Using DOMXML with homogenous elements

2003-07-11 Thread Matt Grimm
And nevermind, problem solved in another thread. -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org "Matt Grimm" <[EMAIL PR

[PHP] fread() question

2003-07-11 Thread Seairth Jacobs
I have an open socket that I am reading from. The code looks like the following: $contentLength = 0 + $this->response['headers']['content-length']; do{ $status = socket_get_status($this->socket); if( $status['eof'] == 1 ) { if( $this->clientOptions['debug'] & DBGSOCK ) echo("DBG

[PHP] htaccess?

2003-07-11 Thread Johnny Martinez
Is it possible to determine who the htaccess user logged in is? If so, how? Can you point me at some articles? Johnny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Mark
Thanks to all who explained it to me. Sorry if I inadvertently hijacked the thread. --- Jason Wong <[EMAIL PROTECTED]> wrote: > File and directory permissions (so that people searching the > archives have > something to look for). > > > That is correct. According to the docs, if the directory is

[PHP] Re: php mysql array question

2003-07-11 Thread Pete Morganic
I use the PEAR db http://pear.php.net/manual/en/package.database.php This returns arrays - examples here http://pear.php.net/manual/en/package.database.db.intro-fetch.php look at the Quick data retreaval down the page pete Larry Brown wrote: Is there any php function to pull a query into an arra

Re: [PHP] php mysql array question

2003-07-11 Thread Philip Olson
On Fri, 11 Jul 2003, CPT John W. Holmes wrote: > > Is there any php function to pull a query into an array? I know there is > a > > way to get the first row of the results in an array, but I'm having to > loop > > through each row pushing the row onto an array to get the result I'm > looking > >

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Indeed that works thank you very much :) -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 15:50 To: Gary Ogilvie; [EMAIL PROTECTED] Subject: Re: [PHP] Capturing Windows Login Details > Well here is some more information so you can understand what I

Re: [PHP] php mysql array question

2003-07-11 Thread CPT John W. Holmes
> Is there any php function to pull a query into an array? I know there is a > way to get the first row of the results in an array, but I'm having to loop > through each row pushing the row onto an array to get the result I'm looking > for and it seems like a lot of code for something that I would

[PHP] php mysql array question

2003-07-11 Thread Larry Brown
Is there any php function to pull a query into an array? I know there is a way to get the first row of the results in an array, but I'm having to loop through each row pushing the row onto an array to get the result I'm looking for and it seems like a lot of code for something that I would think i

RE: [PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Matt Schroebel
> -Why the concern about letting that user have execute permissions, > and then prevent anyone (except those that have valid reasons) from > having write/execute permission to the webroot. The permissions are Read, Write, and Execute. Read and Write are self explanatory (for directories Write mea

Re: [PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Jason Wong
File and directory permissions (so that people searching the archives have something to look for). > That is correct. According to the docs, if the directory is not > executable, you can't even get the permissions on the files in it. > I'm confused, though. 1) To be able to _access_ a directory

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread CPT John W. Holmes
> Well here is some more information so you can understand what I am > trying to do: > > I need to display their username in html/php document. This document has > a form which they fill out. It is to stop people changing who they are > when they fill out the form (for example joe bloggs filling ou

Re: Re[2]: [PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Mark
--- Burhan Khalid <[EMAIL PROTECTED]> wrote: > On Friday, July 11, 2003, 5:07:49 PM, Mark wrote: > > [ snip ] > > M> That is correct. According to the docs, if the directory is not > M> executable, you can't even get the permissions on the files in > it. > M> I'm confused, though. > > M> Let m

Re[2]: [PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Burhan Khalid
On Friday, July 11, 2003, 5:07:49 PM, Mark wrote: [ snip ] M> That is correct. According to the docs, if the directory is not M> executable, you can't even get the permissions on the files in it. M> I'm confused, though. M> Let me state at the begining that I'm not a linux guy. Learning, but M>

Re: [PHP] Question

2003-07-11 Thread Leif K-Brooks
Alvaro Rosales R. wrote: Thank you but ,(I come from microsoft vb world, and line breaks of code could be divided with a character(&_), so the compiler could parse it and where it finded that character it knew that it was a line break), is there something similar in php? No. Just put a line b

Re: Fwd: Re: [PHP] How to hide url on a php link NOT post...

2003-07-11 Thread Mark
--- Daniel Guerrier <[EMAIL PROTECTED]> wrote: > Umm.. > Maybe you should use sessions. Oh sure, come up with the EASY way ;-) > > --- Mark <[EMAIL PROTECTED]> wrote: > > --- Jeff Harris <[EMAIL PROTECTED]> wrote: > > > On Jul 10, 2003, "Joey" claimed that: > > > > > > |How can I hide this li

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Well here is some more information so you can understand what I am trying to do: I need to display their username in html/php document. This document has a form which they fill out. It is to stop people changing who they are when they fill out the form (for example joe bloggs filling out a timeshe

Re: [PHP] Long lines

2003-07-11 Thread Matt Matijevich
can you tell me How can I set a line break in longs line of my code?. I think you want to use \n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread John Nichel
CPT John W. Holmes wrote: CPT John W. Holmes wrote: You can get the username, that's it. $_SESSION['LOGON_USER'] Don't you mean $_SERVER['LOGON_USER']? Yeah :) See what I get for giving up caffeine... ---John Holmes... Ughwhy torture yourself?!?!?! -- PHP General Mailing List (http://ww

Re: Fwd: Re: [PHP] How to hide url on a php link NOT post...

2003-07-11 Thread Mark
--- Mark <[EMAIL PROTECTED]> wrote: > --- Jeff Harris <[EMAIL PROTECTED]> wrote: > > On Jul 10, 2003, "Joey" claimed that: > > > > |How can I hide this link so value can't be changed? > > |I don't want to change anything at the server level, and its not > > from a > > |form so I cant do a post -v

[PHP] Long lines

2003-07-11 Thread Alvaro Rosales R.
Hi guys,I am new to PHP and I am writing my first scripts, so maybe this question is a kinda stupid, but it is driving me crazy, can you tell me How can I set a line break in longs line of my code?. thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Question

2003-07-11 Thread Leif K-Brooks
Alvaro Rosales R. wrote: Hi guys,I am new to PHP and I am writing my forst scripts, so maybe this quesetion is a kinda stupid, but it is driving me crazy, can you tell meHow can I set a line break in long line of my code?. More of a text editor question than a PHP question. In most text edit

Re: Fwd: Re: [PHP] How to hide url on a php link NOT post...

2003-07-11 Thread Daniel Guerrier
Umm.. Maybe you should use sessions. --- Mark <[EMAIL PROTECTED]> wrote: > --- Jeff Harris <[EMAIL PROTECTED]> wrote: > > On Jul 10, 2003, "Joey" claimed that: > > > > |How can I hide this link so value can't be > changed? > > |I don't want to change anything at the server > level, and its not >

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
I have found out that all I actually need is the username. That is all - either the windows login username or the firewall username. How do I grab either? Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread CPT John W. Holmes
> Everything I try I get "undefined index" what does this mean? It is > vital also that I can grab the user and the pass before somebody can > access a certain part of the website, like the authentication dialogs > that appear in Internet Explorer. Like Lief said, it's $_SERVER['LOGON_USER']... T

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread CPT John W. Holmes
> CPT John W. Holmes wrote: > > >You can get the username, that's it. > > > >$_SESSION['LOGON_USER'] > > > Don't you mean $_SERVER['LOGON_USER']? Yeah :) See what I get for giving up caffeine... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Mark
--- Steve Jackson <[EMAIL PROTECTED]> wrote: > As part of a CMS I wanted to get the user to: > 1) Create a new recordset via a form (with a uniqueid). > 2) Press submit whereupon php gets the ID of the record just > created in > the DB, writes a new page to the server with that unique id and > sav

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread Marek Kilimajer
If it is REALY needed ask the user. You might want to search for NTLM authentication. Gary Ogilvie wrote: OK - is there any other way of grabbing both the username and password from somewhere else? For example the login details used to login onto the Intranet through the firewall, or IIS? Thanks

[PHP] Question

2003-07-11 Thread Alvaro Rosales R.
Hi guys,I am new to PHP and I am writing my forst scripts, so maybe this quesetion is a kinda stupid, but it is driving me crazy, can you tell meHow can I set a line break in long line of my code?. thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread John Nichel
Leif K-Brooks wrote: CPT John W. Holmes wrote: You can get the username, that's it. $_SESSION['LOGON_USER'] Don't you mean $_SERVER['LOGON_USER']? I have no variable for either, and I'm authenticated thru a NT domain. We were doing this at the last place I worked for. Users had to logon to t

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Everything I try I get "undefined index" what does this mean? It is vital also that I can grab the user and the pass before somebody can access a certain part of the website, like the authentication dialogs that appear in Internet Explorer. Gazza -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread Leif K-Brooks
CPT John W. Holmes wrote: You can get the username, that's it. $_SESSION['LOGON_USER'] Don't you mean $_SERVER['LOGON_USER']? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
OK - is there any other way of grabbing both the username and password from somewhere else? For example the login details used to login onto the Intranet through the firewall, or IIS? Thanks :) -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 14:3

Fwd: Re: [PHP] How to hide url on a php link NOT post...

2003-07-11 Thread Mark
--- Jeff Harris <[EMAIL PROTECTED]> wrote: > On Jul 10, 2003, "Joey" claimed that: > > |How can I hide this link so value can't be changed? > |I don't want to change anything at the server level, and its not > from a > |form so I cant do a post -vs- a get. > | > |http://www.abcd.com/popup_SearchRe

Re: [PHP] Capturing Windows Login Details

2003-07-11 Thread CPT John W. Holmes
> I need to capture the username and password used to login to Windows > 2000/XP with PHP. Does anybody know how to do this? You can get the username, that's it. $_SESSION['LOGON_USER'] ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] Re: Unknown Syntax

2003-07-11 Thread Chris Morrow
I Found this on the PHP.net site, maybe it will clear things up. Thanks for your help everyone. Example Name Result $a == $b Equal TRUE if $a is equal to $b. $a === $b Identical TRUE if $a is equal to $b, and they are of the same type. (PHP 4 only) $a != $b Not equal TRUE i

[PHP] apache seg fault left ant right

2003-07-11 Thread Jonathan Freedkom
Hello, We get many "child pid [xxx] exit signal Segmentation fault (11)" in out error_log. tracing the pids and shows seg faults on different funtions, most if not all related to php. Thats probably a bug somewhere on our system, I need help with pin pointing the trouble. here are the tails of w

[PHP] Re: Unknown Syntax

2003-07-11 Thread erythros
two equal signs means 'equal to' so '!==' means 'not equal to' one equal sign sets a value. ie... x = 2; // x is set to the value of 2 if(x!==3) // checks if the value of x is not equal to 3 as for != i've never seen it with just one equal sign... "Chris Morrow" <[EMAIL PROTECTED]> wrote in mes

Re: [PHP] Unknown Syntax

2003-07-11 Thread Leif K-Brooks
Chris Morrow wrote: Does anybody recognize this: !== with 2 '=' Ive known != to mean not equal to but i'm just looking at someone elses script and they use this instead. Does anyone know if this works or any problems with it? Not identical. Negative ===. http://us2.php.net/manual/en/language.o

Re: [PHP] Unknown Syntax

2003-07-11 Thread James Kaufman
On Fri, Jul 11, 2003 at 01:56:46PM +0100, Chris Morrow wrote: > Does anybody recognize this: > > !== > > with 2 '=' > > Ive known != to mean not equal to but i'm just looking at someone elses > script and they use this instead. Does anyone know if this works or any > problems with it? > > Cheer

RE: [PHP] just wondering

2003-07-11 Thread Jay Blanchard
[snip] Just wondering if there's a clear screen function in PHP like the clrscr() in 'C'. [/snip] If you are running PHP from the command line on a *nix or BSD box you could... exec("clear"); HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Unknown Syntax

2003-07-11 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 13:55, lines prefixed by '>' were originally written by you. > Does anybody recognize this: > !== > with 2 '=' > Ive known != to mean not equal to but i'm just looking at someone > elses > script and they use this instead.

[PHP] Unknown Syntax

2003-07-11 Thread Chris Morrow
Does anybody recognize this: !== with 2 '=' Ive known != to mean not equal to but i'm just looking at someone elses script and they use this instead. Does anyone know if this works or any problems with it? Cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Socket connect crashes web server

2003-07-11 Thread Chris Morrow
I'm pretty sure its not in an endless loop and php is 4.3, im still nowhere closer to fixing this. I'm sure its not hardware and I thought I was sure its not networkl related but I think im going to have to rethirnk my ideas. Cheers. Chris "Fejes Jozsef" <[EMAIL PROTECTED]> wrote in message new

[PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Steve Jackson
As part of a CMS I wanted to get the user to: 1) Create a new recordset via a form (with a uniqueid). 2) Press submit whereupon php gets the ID of the record just created in the DB, writes a new page to the server with that unique id and saves it as a filename determined by the user. No way around

Re: [PHP] PHP Lang question

2003-07-11 Thread Dallas Goldswain
thanks a million "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > www.php.net/gettext > > Dallas Goldswain wrote: > > > Hi All, > > > > looking throught the source of squirrelmail, I see he calls a function > > _("somevalue") > > What is this and where can i get mor

[PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Hi All, I need to capture the username and password used to login to Windows 2000/XP with PHP. Does anybody know how to do this? Many thanks Gary Ogilvie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Marek Kilimajer
Steve Jackson wrote: You *are* using the correct user/pass? It should be the same as what you use to upload files to your webroot. If you can't get this to work then try the ftp functions. Yes I am. Alternatively, you could consider storing them in a DB. Yes that's what I was thinking

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
> You *are* using the correct user/pass? It should be the same > as what you use to upload files to your webroot. > > If you can't get this to work then try the ftp functions. Yes I am. > > Alternatively, you could consider storing them in a DB. Yes that's what I was thinking they only need

Re: [PHP] PHP Lang question

2003-07-11 Thread Marek Kilimajer
www.php.net/gettext Dallas Goldswain wrote: Hi All, looking throught the source of squirrelmail, I see he calls a function _("somevalue") What is this and where can i get more info about it? Thanks -- Dallas Goldswain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: numbers to text

2003-07-11 Thread Brian McGarvie
> >?> just not even be bothered with Google > I did but didnt find any to be fair... nor did I when i was looking :\ :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Lang question

2003-07-11 Thread Dallas Goldswain
Hi All, looking throught the source of squirrelmail, I see he calls a function _("somevalue") What is this and where can i get more info about it? Thanks -- Dallas Goldswain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Marek Kilimajer
You are not that far away. It seems to me you have allow_url_fopen off. Then you need to store your file in a temporary location, use ftp functions to upload it (the example in the manual is all you need), and then remove the temporary file. But this again needs the ftp extenssion enabled. Ste

Re: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Jason Wong
On Friday 11 July 2003 18:54, Steve Jackson wrote: > Same error. > Warning: fopen("ftp://[EMAIL PROTECTED]/misc/webpage/cms/test.txt","w") - > Inappropriate ioctl for device in > /home/stephenj/public_html/misc/webpage/cms/generator.php on line 51 You *are* using the correct user/pass? It should b

  1   2   >