Re: [PHP] distinct values from a mulit-dimensional array

2003-12-23 Thread Greg Donald
array_unique perhaps? http://php.net/array_unique -- Greg Donald http://destiney.com/ - Original Message - From: Chakravarthy Cuddapah [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 22, 2003 11:22 PM Subject: [PHP] distinct values from a

[PHP] phphandle form wont display data

2003-12-23 Thread Jack E. Wasserstein, DDS, Inc.
This must be obvious, but I am having trouble displaying the results of a form in the php handler. Here is the php code in the handler: ?php print the referring doctor is $referringdr .br\n; print the referral date is $dateofreferral .br\n; print the patients first name is $pfirst .br\n;

[PHP] pgp form handler will not display data

2003-12-23 Thread Jack E. Wasserstein, DDS, Inc.
There must be something obvious that I am missing but I cant get the php form handler with the script below to display the vairables. The form which sends this data has the correct field names. I am also using the get action, so I can see the variables and values so I know that they are being

[PHP] Re: Https

2003-12-23 Thread Homer
Sorry, but not. I have changed it to ssl and the message is the same: Notice: fopen(): Unable to find the wrapper ssl - did you forget to enable it when you configured PHP? I can use nothing that is out of the standard php package, because I'm doing a script for other users that can't change

php-general Digest 23 Dec 2003 09:39:16 -0000 Issue 2489

2003-12-23 Thread php-general-digest-help
php-general Digest 23 Dec 2003 09:39:16 - Issue 2489 Topics (messages 173199 through 173228): Re: progress in PHP 173199 by: Steve Murphy 173200 by: David T-G 173203 by: Chris W. Parker 173204 by: Ed Curtis Re: sorting a mulit-dimensional array

[PHP] Re: pgp form handler will not display data

2003-12-23 Thread Pavel Jartsev
Jack E. Wasserstein wrote: There must be something obvious that I am missing but I cant get the php form handler with the script below to display the vairables. The form which sends this data has the correct field names. I am also using the get action, so I can see the variables and values so I

[PHP] Re: need help getting one variable

2003-12-23 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... hello all i need help to enter one variable in a cookie and then retreive it back later, i know this probably sounds dumb to most but this is really the first time ive tried working with cookies so please bear with me, thanks for any

[PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread Andreas Magnusson
Thank you for your reply! AFAIK the headers sent here are: 'Content-Type' = 'application/x-octetstream', (perhaps other) 'Cache-Control' = 'public', 'Accept-Ranges' = 'bytes', 'Connection'= 'close' [snip] Did you try something like this: ?php

[PHP] Debugging using dbg and ddd on linux

2003-12-23 Thread Marco Schuler
Hello I am looking for a way to debug my php scripts. On the web I found Dmitri Dmitrienko's dbg. I'd like to use it with ddd on my linux machine. Unfortunatly there is no howto on how to set up all that. I read about a patch for ddd but could not find any further information. As a nice to have

[PHP] Re: File Upload on a MAC-Browser didn't work

2003-12-23 Thread Volker Dähn
Hi Chris, I already posted it as an SAFARI-ERROR to Apple. Maybe you could do the same. I think, it's more possible apple fixes the problem, the more error-messages they get. Actually i try to identify the situation in which the skript is echoing the TMP-Directory. This is the form for the

[PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread Andreas Korthaus
Hi! Andreas Magnusson wrote: For a normal file (not through PHP) the headers are: Accept-Ranges: bytes Connection: Close Content-Length: 25600 Content-Type: application/msword Date: Tue, 23 Dec 2003 09:51:19 GMT ETag: 08f72d578c3c31:8d0 Last-Modified: Tue, 16 Dec 2003 02:03:44 GMT

[PHP] Error with Absolute URLs

2003-12-23 Thread user
Hi, I keep getting errors on my websites, that contain absolute URLs, e.g. http://www.url.com/blah.html. With most, being in the folder of my website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but there's a script I use to display the network statistics of an IRC network, which is

[PHP] RE: File Upload on a MAC-Browser didn't work

2003-12-23 Thread Volker Dähn
Hi Chris, I already posted it as an SAFARI-ERROR to Apple. Maybe you could do the same. I think, it's more possible apple fixes the problem, the more error-messages they get. Actually i try to identify the situation in which the skript is echoing the TMP-Directory. This is the form for the

RE: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Larry Brown
The input type=hidden ... is more than a convenience for the client. It must be before the ...type=file... tag and after form.. (at least with Mozilla Firebird as the client) If you have it in there and remember it is in bytes not kb and set it to a size large enough the script accepting the file

[PHP] warnings

2003-12-23 Thread Chakravarthy Cuddapah
Can anyone pls tell me how to prevent warnings to be displayed on the screen ? For example, I get this message: Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in test.php on line 235 I have code to display error messages when this occurs. But I don't want to

Re: [PHP] warnings

2003-12-23 Thread CPT John W. Holmes
From: Chakravarthy Cuddapah [EMAIL PROTECTED] Can anyone pls tell me how to prevent warnings to be displayed on the screen ? For example, I get this message: Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in test.php on line 235

RE: [PHP] Re: progress in PHP

2003-12-23 Thread Steve Murphy
Actually it is very possible with PHP through the use of temporary files, which is how this works. I have only tested the meter with IE and Mozilla (Firebird) on Windows with no problems. I will test on the Mac side but because its PHP performing the function, browsers should not matter. I

Re: [PHP] pgp form handler will not display data

2003-12-23 Thread David T-G
Jack -- [Aha ... I see that you provide the calling URL in this post, which explains the near-duplication. One question answered; a million to go!] ...and then Jack E. Wasserstein, DDS, Inc. said... % % There must be something obvious that I am missing but I cant get the php ... % % output

RE: [PHP] Dilema

2003-12-23 Thread Jake McHenry
-Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 9:34 AM To: Jake McHenry Subject: RE: [PHP] Dilema Can you describe the page that has all of the components you want to send and what you expect to recieve ie. dropdown(hotels)

[PHP] Browser randomly displays php source instead of supposed output

2003-12-23 Thread Stephan Gloor
Hello. Randomly the php-source is displayed instead of the output (http://www.engstringen.ch/). Generally, the output is correct !!! It happens sometimes after 10 minutes of browsing. Sometimes it comes up with the first clikc on the site. This was the case when having installed apache 1.3 und

[PHP] Simple fwrite question

2003-12-23 Thread Hartley, Matt
I am trying to have a counter in a file. With what I have below I get in the $counterfile 0 + 01 = 01 01 + 01 = 012 012 + 01 = 01213 [snip] /* Add 1 to the counter */ $counter = ($counter + '01'); /* Verify counter file is writable */ if (is_writable($counterfile)); /* { */

Re: [PHP] Can't use HTTPS with fgets

2003-12-23 Thread Raditha Dissanayake
Homer wrote: And the errors are Notice: fopen(): Unable to find the wrapper https - did you forget to enable it when you configured PHP? in C:\Inetpub\PostNuke-0.726\mpValidar.php on line 62 COuld this be it? have you tried phpinfo() to see what settings are in effect -- Raditha Dissanayake.

Re: [PHP] Simple fwrite question

2003-12-23 Thread CPT John W. Holmes
From: Hartley, Matt [EMAIL PROTECTED] I am trying to have a counter in a file. With what I have below I get in the $counterfile 0 + 01 = 01 01 + 01 = 012 012 + 01 = 01213 [snip] /* Add 1 to the counter */ $counter = ($counter + '01'); You're adding a string. That doesn't make

[PHP] [Q] Best Practices Question - Directory Structures for WEB site dev using PHP

2003-12-23 Thread Michael T. Peterson
Hi, I'm new to PHP and WEB site development, but have coded in C/C++, Java, and multiple shells for over 20 years. So far I've found this stuff really neat (and challenging). Anyway, I have a few questions dealing with file locations, [de facto] directory structures, etc., when designing a WEB

Re: [PHP] phphandle form wont display data

2003-12-23 Thread Raditha Dissanayake
check your register globals settings or user variables like $_REQUEST['referringdr'] all the best Jack E. Wasserstein, DDS, Inc. wrote: This must be obvious, but I am having trouble displaying the results of a form in the php handler. Here is the php code in the handler: ?php print the

[PHP] String replacement problems...

2003-12-23 Thread John Clegg
Hi I am trying to figure out how to get ereg_replace / preg_replace to replace a match only once. Here is my example: $text = [foo] bah [foo] moo [foo] boo\n; $ans = ereg_replace(\[foo\]{1},FOO,$text); or $ans = preg_replace(/\[foo\]{1}/,$text,FOO); The answer I get for both I run the

Re: [PHP] [Q] Best Practices Question - Directory Structures for WEB site dev using PHP

2003-12-23 Thread Matt Matijevich
[snip] 1) How do experienced developers layout their [dev] directory hierarchy? For example, is there an accepted place to put one's function libraries? On IIS (Windows XP), the default directory structure is c:\inetpub\ AdminScripts iissamples mailroot Scripts wwwroot\

[PHP] PHP Compile w/ Sun ONE Directory Server

2003-12-23 Thread Cameron B. Prince
Hi, I am trying to compile PHP with LDAP support via the Sun ONE Directory Server. I am running into a problem where some functions aren't being found in the include or shared libraries. Here's my configure command: export

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Raditha Dissanayake
Join the 11,000 people who use megaupload progress bar (with a little help from perl) http://www.sourceforge.net/projects/megaupload/ Steve Murphy wrote: Well its actually a pure PHP upload meter it just uses JS to open the window. You could make PHP open the window as well with a little

Re: [PHP] String replacement problems...

2003-12-23 Thread CPT John W. Holmes
From: John Clegg [EMAIL PROTECTED] I am trying to figure out how to get ereg_replace / preg_replace to replace a match only once. The fourth parameter to preg_replace() is an integer limit to how many matches you want to allow. So, if you only want 1 replacement to occur, pass 1. :) ---John

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Ed Curtis
Join the 11,000 people who use megaupload progress bar (with a little help from perl) http://www.sourceforge.net/projects/megaupload/ I tried. It wasn't worth all the perl mods I would to have had to install to make it work. Ed -- PHP General Mailing List (http://www.php.net/) To

[PHP] Assist with session persistance

2003-12-23 Thread Terry Romine
I have a site that is using $_SESSION['variablename'] for many variables that are loaded when the user first enters the site (index.php), and then referenced on each page (display.php): ex: index.php session_start(); $agencyID=9; $agencyName=fremont;

[PHP] apache chroot + mail()

2003-12-23 Thread Ruben Vanhoutte
Hi, I am having a problem using the mail() command inside a chrooted apache/php installation on linux with qmail. Nothing apears in the logs, nothing in apache error logs , neither in php error logs.. And.. no mail gets send.. Nothing to see in my mailer daemon logs neither.. Exempt from php.ini:

[PHP] Re: Assist with session persistance

2003-12-23 Thread Matt Grimm
The directive session.cookie_lifetime in your php.ini is what a session cookie timeout defaults to. You can manually set the lifetime when you create it using session_set_cookie_params(). http://us3.php.net/manual/en/function.session-set-cookie-params.php -- Matt Grimm Web Developer The Health

Re: [PHP] Assist with session persistance

2003-12-23 Thread Matt Matijevich
[snip] ex: display.php session_start(); $agencyID=$_SESSION['agencyID']; $agencyName=$_SESSION['agencyName']; But after awhile, the session seems to fail and I end up back at the index page because the $agencyID gets voided. Is there a timeout on sessions other than

Re: [PHP] Re: progress in PHP

2003-12-23 Thread James Kaufman
On Tue, Dec 23, 2003 at 11:46:50AM -0500, Ed Curtis wrote: Join the 11,000 people who use megaupload progress bar (with a little help from perl) http://www.sourceforge.net/projects/megaupload/ I tried. It wasn't worth all the perl mods I would to have had to install to make it work.

[PHP] Re: Https

2003-12-23 Thread Manuel Lemos
Hello, On 12/23/2003 07:39 AM, Homer wrote: Sorry, but not. I have changed it to ssl and the message is the same: Notice: fopen(): Unable to find the wrapper ssl - did you forget to enable it when you configured PHP? If you read the warning message you can see that you can use your solution if

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello, On 12/23/2003 03:31 PM, James Kaufman wrote: Join the 11,000 people who use megaupload progress bar (with a little help from perl) http://www.sourceforge.net/projects/megaupload/ I tried. It wasn't worth all the perl mods I would to have had to install to make it work. Check out

RE: [PHP] Re: progress in PHP

2003-12-23 Thread Larry Brown
How does perl show progress of the upload if it is a server side scripting language and php can't do it because it is server side? -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 12:46 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re:

Re: [PHP] Re: progress in PHP

2003-12-23 Thread David T-G
Raditha, et al -- ...and then Raditha Dissanayake said... % % Join the 11,000 people who use megaupload progress bar (with a little % help from perl) % http://www.sourceforge.net/projects/megaupload/ Sounds nice. Does it require JS in the browser? TIA HAND Happy Holidays :-D -- David

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello, On 12/23/2003 03:56 PM, Larry Brown wrote: How does perl show progress of the upload if it is a server side scripting language and php can't do it because it is server side? Because PHP does not provide support to handle the raw HTTP request. By the time that PHP scripts starts executing,

[PHP] Variable variables

2003-12-23 Thread Richard Baskett
Ok I am trying to create a variable from the value of a variable plus some extra text tagged on the end of it. So for example: $test = '_over'; $$CONFIG['island'].$test = 'testing'; echo hawaii = $hawaii_over; How can I do this? Im sure it's possible, but it just is not working for me :(

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Chris
I don't believe that the MAX_FILE_SIZE needs to be there. It will only terminate the upload process at the client, rather than wait for the upload to complete. Anyway with or without MAX_FILE_SIZE the upload process is being terminated after the file is uploaded. When the form is submitted, the

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Raditha Dissanayake
Hi To Manuel: You have answered the questions better than i could have :-) thanx. Yes perl is used because it gives access to raw post data. To Ed: If you are on a standard rpm distro all the modules are probably there already. and thus megaupload becomes plug and play. To David: It does use

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Raditha Dissanayake
Hi, It's often said in many newsgroups and articles that the max_file_size is next to useless. It's also said that once IE starts uploading it will not stop even if you keep you foot on the stop button! If i remembers the earlier messages you have said the php.ini settings are correct. If so

Re: [PHP] Variable variables

2003-12-23 Thread John W. Holmes
Richard Baskett wrote: Ok I am trying to create a variable from the value of a variable plus some extra text tagged on the end of it. So for example: $test = '_over'; $$CONFIG['island'].$test = 'testing'; ${$CONFIG['island'].$test} = 'testing'; echo hawaii = $hawaii_over; Why not just use an

Re: [PHP] Assist with session persistance

2003-12-23 Thread John W. Holmes
Terry Romine wrote: Is there a timeout on sessions other than closing the browser? If so, is there a way to set timeout if one doesn't have server admin access? Session timeout is controlled by the session.gc_maxlifetime setting. It's the number of seconds after which session files will be

Re: [PHP] Variable variables

2003-12-23 Thread Richard Baskett
on 12/23/03 11:04, John W. Holmes at [EMAIL PROTECTED] wrote: Richard Baskett wrote: Ok I am trying to create a variable from the value of a variable plus some extra text tagged on the end of it. So for example: $test = '_over'; $$CONFIG['island'].$test = 'testing';

Re: [PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread John W. Holmes
Andreas Magnusson wrote: And through PHP (my script) it is: Accept-Ranges: bytes Cache-Control: private I've had the cache-control header cause problems with IE in the past. It's sent by starting a session, not something you manually send. You can change it using the session functions, though.

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread David T-G
Chris -- ...and then Chris said... % % script on many php servers. However I am on one now which is not allowing me % to upload a file greater than 12kb. What does phpinfo() say for post_max_size upload_max_filesize and what quota and disk space affect the web server process and temp dir?

[PHP] Headers Problem

2003-12-23 Thread Beauford
I'm getting the following error. My question is, where would I use the ob_start() and ob_end_flush() function so I can get rid of this. I have read the PHP manual, but not quite getting it.Or if there is a better way? This is how the files work. update-corrections-input.php (user inputs info

Re: [PHP] Headers Problem

2003-12-23 Thread John W. Holmes
Beauford wrote: I'm getting the following error. My question is, where would I use the ob_start() and ob_end_flush() function so I can get rid of this. I have read the PHP manual, but not quite getting it.Or if there is a better way? Don't work around the problem with output buffering; try

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Chris
post_max_size: 8M upload_max_filesize: 10M what quota and disk space affect the web server process and temp dir This site is hosted by a third party: Disk space is 400MB only a fraction is used. temp dir -- unknown Chris -- ...and then Chris said... % % script on many php servers. However I

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Chris
It has been my experience that max_file_size does terminate the upload process if you include it in the form. But you are right, if it gets to the upload, your stuck. LimitRequestBody is beyond my control as the site is hosted by a third party. Thanks Chris Raditha Dissanayake [EMAIL

RE: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

2003-12-23 Thread Chris W. Parker
Justin French mailto:[EMAIL PROTECTED] on Monday, December 22, 2003 6:12 PM said: Sounds more like the mysql field is a varchar255, rather than maybe a mediumtext, and only the first 255 chars are getting inserted into the DB? But I could be horribly wrong :) In an effort to keep this

Re: [PHP] apache chroot + mail()

2003-12-23 Thread Tom Rogers
Hi, Wednesday, December 24, 2003, 3:02:33 AM, you wrote: RV Hi, RV I am having a problem using the mail() command inside a chrooted RV apache/php installation on linux with qmail. RV Nothing apears in the logs, nothing in apache error logs , neither in RV php error logs.. RV And.. no mail gets

Re: [PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread Andreas Magnusson
John W. Holmes [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Andreas Magnusson wrote: And through PHP (my script) it is: Accept-Ranges: bytes Cache-Control: private I've had the cache-control header cause problems with IE in the past. It's sent by starting a session,

[PHP] Unlinking files.

2003-12-23 Thread Scott Holden
How can I unlink files in a directory that are, for example older than 1 hour? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unlinking files.

2003-12-23 Thread Mike Migurski
How can I unlink files in a directory that are, for example older than 1 hour? `find /path/to/dir -cmin +60 -type f -print0 | xargs -0 rm -f`; - michal migurski- contact info and pgp key: sf/ca

[PHP] [Newbie Guide] For the benefit of new members

2003-12-23 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

Re: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

2003-12-23 Thread John W. Holmes
Chris W. Parker wrote: Justin French mailto:[EMAIL PROTECTED] on Monday, December 22, 2003 6:12 PM said: Sounds more like the mysql field is a varchar255, rather than maybe a mediumtext, and only the first 255 chars are getting inserted into the DB? But I could be horribly wrong :) In an

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello, On 12/23/2003 03:56 PM, Larry Brown wrote: How does perl show progress of the upload if it is a server side scripting language and php can't do it because it is server side? The problem is not showing progress but rather tracking progress. What you seem to not be understanding is that PHP

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Jeremy Johnstone
FWIW, here is a link to a PHP extension which enables the ability to track the progress of a PHP upload. I did not write the extension, so if it breaks something I am not responsible. It was previously discussed on the php-dev mailing list ([EMAIL PROTECTED]) a month or two ago, but it was never

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Manuel Lemos
Hello, On 12/24/2003 03:47 AM, Jeremy Johnstone wrote: FWIW, here is a link to a PHP extension which enables the ability to track the progress of a PHP upload. I did not write the extension, so if it breaks something I am not responsible. It was previously discussed on the php-dev mailing list

[PHP] Error with Absolute URLs

2003-12-23 Thread Brad
Hi, I keep getting errors on my websites, that contain absolute URLs, e.g. http://www.url.com/blah.html. With most, being in the folder of my website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but there's a script I use to display the network statistics of an IRC network, which is

[PHP] How do I make these two MySQL queries into one line?

2003-12-23 Thread Dave G
PHP Gurus, I'll consider myself lucky to get a response so close to Christmas, but here goes. I have two tables. One contains member information, and one lists which groups the members belong to. I want to select the email address of active members from the member information