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

2003-07-11 Thread Jeff Harris
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_SearchRepSet.php?searchby=cust_nosearch=1value=WOR032 | |Thanks ! |

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread Lars Torben Wilson
Hi there, On Thu, 2003-07-10 at 21:53, Phil Powell wrote: foreach ($profileArray[$i][attributes] as $key = $val) { ^^ You should quote the word 'attributes': http://www.php.net/manual/en/language.types.array.php#language.types.array.donts Sorry...that link

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread David Otton
On Fri, 11 Jul 2003 00:53:32 -0400, you wrote: foreach ($profileArray[$i][attributes] as $key = $val) { $singleProfileHTML .= $key . =\ . str_replace(', '#039;', str_replace('', 'quot;', $val)) . \\n; } The parsing error occurs in the $singleProfileHTML.. line. I'm completely don't

Re: [PHP] regexp problem

2003-07-11 Thread Burhan Khalid
On Thursday, July 10, 2003, 9:25:31 PM, Taylor wrote: TY First, TY I need the code to replace the link in a string, like TY BASE HREF=www.google.com with BASE HREF=mystring TY ereg_replace('BASE HREF=\'(.*)'\', 'BASE HREF=\$my_string\', TY $old); TY That was the closest i got, but (.*) makes

Re: [PHP] Variable Functions...

2003-07-11 Thread Burhan Khalid
On Friday, July 11, 2003, 3:11:51 AM, Michael wrote: MS Smarty has a class method where it calls: $this-$some_var(somevalue); Are you sure about that syntax? I'm not too familiar with Smarty, only used it once, but I think its $this-some_var(value); MS and this throws errors on Windows

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread Phil Powell
Thanx I got it to work, however, I have no idea why it works now considering I did nothing different: $singleProfileHTML .= !--\n; foreach ($profileArray[$i][attributes] as $key = $val) { $singleProfileHTML .= strtolower($key) . '=' . str_replace(', '#039;', str_replace('', 'quot;',

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

2003-07-11 Thread Steve Jackson
Writing and moving require the same permissions. Also, there is a big difference between root and webroot. Which one are you talking about? Web root. Sorry not the root directory of the server but the webroot. 1 directory back in fact is all I need so the structure would be: Web Cms

[PHP] Need Some Basic Help with Arrays

2003-07-11 Thread Joe Harman
Okay Ladies and gents... I am sure I am not the only one who doesn't take advantage of arrays like they should be... would some be so kind as to explain them... you kow I can read the manual and all... but to tell you the truth.. it's a little confusing... maybe some of you have some good ways to

[PHP] Re: just wondering

2003-07-11 Thread Baroiller Pierre-Emmanuel
hmm... and... what would you do with a clear screen function on a web page with php ? I can't see how it could work.. :) PHP is server side, so you can't clear the user screen like with C or other language ... Regards, P.E. Baroiller Artoo [EMAIL PROTECTED] a écrit dans le message de

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

2003-07-11 Thread Jason Wong
On Friday 11 July 2003 15:20, Steve Jackson wrote: Writing and moving require the same permissions. Also, there is a big difference between root and webroot. Which one are you talking about? Web root. Sorry not the root directory of the server but the webroot. 1 directory back in fact is

RE: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 05:54 foreach ($profileArray[$i][attributes] as $key = $val) { $singleProfileHTML .= $key . =\ . str_replace(', '#039;', str_replace('', 'quot;', $val)) . \\n; } The parsing error occurs

Re: [PHP] Need Some Basic Help with Arrays

2003-07-11 Thread Geoff Caplan
Joe, JH Okay Ladies and gents... I am sure I am not the only one who doesn't JH take advantage of arrays like they should be... would some be so kind as JH to explain them... You won't get much joy from this list with this kind of question - it is simply too general for anyone to answer. You

[PHP] Re: Storing HTML string in database

2003-07-11 Thread sven
is escaping a solution? addslashes() for your insert-query stripslashes() for your select-query Aaron Axelsen [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a php script set up for a user to upload a word document, which

RE: [PHP] session data missing

2003-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 20:30 - Original Message - From: ulf sundin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 1:00 PM Subject: Re: [PHP] session data missing ok, so now the

RE: [PHP] /etc/passwd

2003-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Fejes Jozsef [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:33 My method is: 1. check if id starts with / if(ereg(^\/, $id)) goaway; That's a rather expensive (and slightly obscure) way of performing that check. Try: if ($id{0}=='/') goaway;

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

2003-07-11 Thread Steve Jackson
Interesting. Do I need to open an FTP connection do you think or use wrappers? I tried this: // Define the filename to write to. $filename = 'test.txt'; // Open the file for overwriting. $fp = fopen($filename, w); // Write the string to the file $write = fputs($fp, $string); // Close the file

[PHP] Socket connect crashes web server

2003-07-11 Thread Chris Morrow
Hi Guys, I wonder if any of you can help with this I'm using sockets in php to connect my script to an outside system. More often than not this works fine, but every so often, say twice a day, it brings down my whole web server. When this has happened all the sites im serving can take up to

Re: [PHP] Socket connect crashes web server

2003-07-11 Thread Fejes Jozsef
The script started from the URL '/myscript/index.php' with parameters '' has not responded within the configured timeout period. The HTTP server is terminating the script. maybe the problem is not with the sockets but you have an endless loop bug? do you have an up-to-date version of php? i

[PHP] numbers to text

2003-07-11 Thread Pete Morganic
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 -- 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
Write the file with ftp right away: // Define the filename to write to. $filename = 'ftp://username:[EMAIL PROTECTED]/your_webdir/test.txt'; // Open the file for overwriting. $fp = fopen($filename, w); // Write the string to the file $write = fputs($fp, $string); // Close the file fclose($fp);

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

2003-07-11 Thread Steve Jackson
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 Think this is going to get too complicated for a user interface as well so I might have to abandon this idea. I

[PHP] Re: numbers to text

2003-07-11 Thread Brian McGarvie
Anyone know of a class or function that converts numbers to readable text Oh how old... coud you just not even be bothered with Google or any other search engine? To save you the trouble: http://www.phpclasses.org/browse.html/package/754.html -- PHP General Mailing List

[PHP] Re: numbers to text

2003-07-11 Thread Pete Morganic
? just not even be bothered with Google I did but didnt find any Thanks ;-) pete Brian McGarvie wrote: Anyone know of a class or function that converts numbers to readable text Oh how old... coud you just not even be bothered with Google or any other search engine? To save you the trouble:

php-general Digest 11 Jul 2003 11:04:55 -0000 Issue 2169

2003-07-11 Thread php-general-digest-help
php-general Digest 11 Jul 2003 11:04:55 - Issue 2169 Topics (messages 154802 through 154853): Using DOMXML with homogenous elements 154802 by: Matt Grimm 154807 by: Matt Grimm nlist 154803 by: Johnny Martinez 154804 by: Robert C. 154805 by: David

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 be the

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.

[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

[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

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:

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 put

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

[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] 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 more info about it?

[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

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

[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:

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. Does

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:

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? Cheers The

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 ===.

[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

[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

[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

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:

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. |

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

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

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 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

[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:

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?

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 saves it

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:

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']... That's

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: 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 from a |form

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

[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:

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 -vs- a get. |

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

Re: [PHP] Long lines

2003-07-11 Thread Matt Matijevich
snip can you tell me How can I set a line break in longs line of my code?. /snip 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 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

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 link so value can't be

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

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: 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 me state at the

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 out a

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] 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 means

[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

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

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 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 for and it

[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

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 not

[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

[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 )

[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

[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: ?php echo 123; echo 456; echo 789; ? This will give: 123456789 another example: ?php echo abc . \n . def . \n . xyz; ? This will give : abc def xyz

[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

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 Hi

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

[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. --

[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_nosearch=1value=WOR032 Thanks ! -- PHP General Mailing List (http://www.php.net/) To

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 post

[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',

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',

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: [EMAIL PROTECTED];

[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',

[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

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

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] 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] 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

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

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 process

[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

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)){

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 knows

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 Juan

  1   2   >