[PHP-WIN] Arrays - I may have gone blind

2002-12-16 Thread Aidal
Hi NG. I'm sure there is somthing implemented in PHP to do this but I just cant see it. I want to run through an array and remove some entries where is true and is lower than the other entries of First i thought... hmm this sounds like a linked list, I'm gonna make one. But I cant seem to mak

[PHP-WIN] Re: Arrays - I may have gone blind

2002-12-16 Thread Seraphim
> Or can a SQL statement do this in a DISTINCT like way? (SELECT > table.id FROM table WHERE somthing is = somthing else and a lot of > other stuff BUT only give me those where table.type has the hifgrst > value)? > > Please... need help with this > ~ Aidal. SELECT t1.id FROM TABLENAME t1 WHERE t1

Re: [PHP-WIN] Arrays - I may have gone blind

2002-12-16 Thread Cam Dunstan
aidal Maybe the array_walk() function is for you - but in general terms it is perhaps better to have a crack at a clever SQL statement if you are pulling stuff out of a database in any case. Look at nested SELECT statements and the MAX() function. Or, if not that, creating a temporary table with

[PHP-WIN] Re: need explanation about includes

2002-12-16 Thread Seraphim
Davide wrote: > I have installed php-4.3.0 (I tried 4.2. but I couldn't make Apache2 > to run with it here in win32). Now I noticed a different behaviour in > respect of 4.0.6 installed before. > I use php_lib_login 0-9b to manage session login and I found it nice > and quite reliable for my job; b

RE: [PHP-WIN] Re: need explanation about includes

2002-12-16 Thread Rich Gray
Do the 2 problematic includes include other files themselves? Davide wrote: > I have installed php-4.3.0 (I tried 4.2. but I couldn't make Apache2 > to run with it here in win32). Now I noticed a different behaviour in > respect of 4.0.6 installed before. > I use php_lib_login 0-9b to manage sess

[PHP-WIN] Re: Arrays - I may have gone blind

2002-12-16 Thread Aidal
I have now tried the following statement: SELECT annoncer.id,MAX(annoncer.type) AS maks,annoncer.virk_id FROM annoncer,virksomheder WHERE virksomheder.navn LIKE '%SomeWord%' AND virksomheder.id = annoncer.virk_id GROUP BY annoncer.virk_id ORDER BY virksomheder.navn This almost works... forget the

php-windows Digest 16 Dec 2002 15:05:58 -0000 Issue 1489

2002-12-16 Thread php-windows-digest-help
php-windows Digest 16 Dec 2002 15:05:58 - Issue 1489 Topics (messages 17417 through 17423): Re: WebCalendar, IIS and mysql 17417 by: skyport Arrays - I may have gone blind 17418 by: Aidal 17419 by: Seraphim 17420 by: Cam Dunstan 17423 by: Aidal Re: n

[PHP-WIN] Oh crumbs - My cookies are broken!

2002-12-16 Thread George Pitcher
Hi, I have a small site which has a default login page (default.html). The form is then checked against a MySQL db and cookies are being set. However, when the next page opens (redirected), the information from the cookies has not been pased on. Now one possible problem might be that the 'next p

[PHP-WIN] Getting errors, need help

2002-12-16 Thread David
Hello all, I am new to PHP so I am going to need some help. I am trying to create a admin login page. But I am getting this error message: Parse error: parse error, unexpected T_VARIABLE in c:\program files\apache group\apache\htdocs\sunwestsilver\admin\tmpi5pcf76sy9.php on line 43 tmpi5pcf76sy

Re: [PHP-WIN] Per site php.ini

2002-12-16 Thread Veselina Jecheva
The easiest way is to use the windows installer: it asks about php directory, IIS version, etc., it's very easy to install. Otherwise you should follow the instructions from the install.txt in the php zip package. With best regards, Veselina At 20:23 12/14/02 -0600, you wrote: >Does anyone know ho

RE: [PHP-WIN] Per site php.ini

2002-12-16 Thread Charles P. Killmer
I saw nothing in the install.txt about having multiple ini files. If I have five websites I want them to have five different ini files. I hope this is clear. Charles -Original Message- From: Veselina Jecheva [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:28 AM To: Charles

Re: [PHP-WIN] Getting errors, need help

2002-12-16 Thread Joseph W. Goff
The line just above 43 does not contain a semi-colon. - Original Message - From: "David" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 15, 2002 7:18 PM Subject: [PHP-WIN] Getting errors, need help > Hello all, > > I am new to PHP so I am going to need some help. > >

RE: [PHP-WIN] Per site php.ini

2002-12-16 Thread Matt Kynaston
> I saw nothing in the install.txt about having multiple ini > files. If I > have five websites I want them to have five different ini files. Not possible under IIS as far as I know. Closest thing is to include a file at the top of each page that uses ini_set() to make the changes you want. M.

RE: [PHP-WIN] Per site php.ini

2002-12-16 Thread Charles P. Killmer
Darn. Some of the directives cannot be set at runtime though. Oh well. Thanks Charles -Original Message- From: Matt Kynaston [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Per site php.ini > I saw nothing in the inst

Re: [PHP-WIN] Per site php.ini

2002-12-16 Thread Wojciech Owczarek
Hmmmz... afaik in Apache (and only Apache, also only used as module) you can set php.ini variables in .htaccess files. (remember to have AllowOverride directive for that directories to use .htaccess correctly) So to set sth per site, you have to put into it's htaccess: php_value [valuename] [va

RE: [PHP-WIN] Per site php.ini

2002-12-16 Thread Charles P. Killmer
Well I would love to switch to Apache but we are a Microsoft shop. I am lucky to be using PHP and have had to defend it a few times against asp. Thanks for everyones help. Charles Killmer -Original Message- From: Wojciech Owczarek [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16,

[PHP-WIN] Re: session

2002-12-16 Thread Wojciech Owczarek
Cause you refreshed it and there was session_start(); which created new session. Afaik from php 4.0.sth you don't have to use ession_start at all. You can use it only when you _really want_ to start a new session, ending the last one. Just registering some sessvar creates session already. Try to

Re: [PHP-WIN] Per site php.ini

2002-12-16 Thread Luis Ferro
Check in the install.txt how to install php in the IIS manually and as an ISAPI. Then, when need to change the ISAPI configuration in the site that you need to use PHP, just add in front of the php.exe the commands to use a specific php.ini file... Exact details eludes me now... but hope that

RE: [PHP-WIN] Per site php.ini

2002-12-16 Thread Gene Dymarskiy
You can include scripts into your php files that will change config on the fly take a look at ini_set function http://www.php.net/manual/en/function.ini-set.php good luck -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 8:24 PM To:

Re: [PHP-WIN] Per site php.ini

2002-12-16 Thread Luis Ferro
ini_set can't handle some of the php.ini attributes/properties... specially those that must be defined before the execution of the php page itself... It may or may not be an issue... Cheers... Luis Ferro TelaDigital.Net Gene Dymarskiy wrote: You can include scripts into your php files that wi

RE: [PHP-WIN] Per site php.ini

2002-12-16 Thread Matt Kynaston
Hrmmm... Very clever! Just checked out php.exe, and indeed you can specify a path to php.ini: E:\PHP>php.exe -h Usage: php [-q] [-h] [-s [-v] [-i] [-f ] | { [args...]} -q Quiet-mode. Suppress HTTP Header output. -s Display colour syntax highlighted source. -w

[PHP-WIN] PHP$ and Apache2 Configuration

2002-12-16 Thread Alvarez, Anthony
I couldn't find it or elsewhere in the forum, so apologies if this is a FAQ. I know this has to be really basic, and apologies for the question, but what am I doing wrong? Could you kindly share your experience with me? Thanks in advance. I am running Apache v2.0.43 on Windows 2000 SP1, The web s

[PHP-WIN] Warning messages

2002-12-16 Thread Andy
what do I change in my php.ini file to stop these annoying warning notices? I have looked at the ini file but I am unsure what to change. I still want to see error messages but the warning notices are doing my head in. An example would be: Warning: fwrite(): supplied argument is not a valid File-

Re: [PHP-WIN] Warning messages

2002-12-16 Thread Stephen Edmonds
That means you have an error in your use of fwrite its not a proper 'file pointer'. Its not a setting you can change in your php.ini, as it is cause by a problem with your script. In fact, your script should not work because of the error. If you paste the code and what your script does, I may

[PHP-WIN] Re: Warning messages

2002-12-16 Thread Wojciech Owczarek
#1) You should do all possible to avoid getting that in you r scripts (you know, checking wether file exists etc etc), not simply disabling it cause it's a messy way really, and can fill up logs with that stuff (which is not quite good when using a server that you don't own). Also, using @function

RE: [PHP-WIN] PHP$ and Apache2 Configuration

2002-12-16 Thread Dash McElroy (php)
Try PHP 4.3.0 RC3 OR Apache 1.3.x. Works for me :) -Dash -Original Message- From: Alvarez, Anthony [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:14 AM To: '[EMAIL PROTECTED]' Subject: [PHP-WIN] PHP$ and Apache2 Configuration I couldn't find it or elsewhere in the forum

Re: [PHP-WIN] Warning messages

2002-12-16 Thread Andy
Here is the code and warning messages \nForm: Andrew Davey"); mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank you, $name, for signing my Guestbook.", 72, "\n", 1), "Return-path: <[EMAIL PROTECTED]>\nForm: Andrew Davey"); echo "Thank you, " . $name . ", for signing my Guestb

RE: [PHP-WIN] PHP$ and Apache2 Configuration

2002-12-16 Thread Alvarez, Anthony
What version of Windows are you using? I look forward to hearing from you. Thank you. == Anthony Alvarez, Webmaster [EMAIL PROTECTED] Panasonic Wireless Design Center (MMCD) 1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024 +1 770 338 6176. Fax: +1 770 338 6238. http://www.panasonic-wireless.com

RE: [PHP-WIN] PHP$ and Apache2 Configuration

2002-12-16 Thread Dash McElroy
Sorry - forgot lots of info. I've responded to too many of these :) Windows 2000 SP2 (don't like the EULA in SP3) Professional. Apache 2.0.40 works with PHP 4.2.3. The build in PHP 4.2.x was tied to a specific version of Apache2. I must say (disclaimer) that this server (workstation!) is only us

Re: [PHP-WIN] Warning messages

2002-12-16 Thread Stephen Edmonds
Here is your problem: Warning: fopen("guestbook.txt", "w") - Permission denied in /home/.sites/112/site154/web/guestbook_post.php on line 15 Whats happening is for some reason your file, guestbook.txt, is not writable by php. Two things could be causing this. Firstly, you may need to specify the

Re: [PHP-WIN] Warning messages

2002-12-16 Thread Andy
Thank you Stephen, tried it on localhost, although i would not get the email, the only warning messages i got were tell me just that. "Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message 006a01c2a535$9910f3f0$6d00a8c0@q">news:006a01c2a535$9910f3f0$6d00a8c0@q... > Here is your problem: > > Warnin

RE: [PHP-WIN] Warning messages

2002-12-16 Thread Dash McElroy
Alright - looks like your host is a *nix host. Do you have shell access to the system or are you stuck with FTP? Either way, you should be able to chmod the file. You'll most likely need to chmod it 666 (don't worry - it's not evil!). Example: shell$ chmod 666 /path/to/guestbook.txt ftp open web

Re: [PHP-WIN] Warning messages

2002-12-16 Thread Joseph W. Goff
Ok, first you really don't want to disable warnings, they let you catch errors just like this. Now on to the rest. The first warning is stating that you don't have access rights to the file or the directory that you are trying to access. Check the permissions of the directory and file to make sur

[PHP-WIN] IIS, ISAPI and PHPBB

2002-12-16 Thread Christian Bartsch
Hi there, I got a small problem running PHP4.2.3 under IIS using the ISAPI filter. Please don´t complain about that, the rest of the site is running in ASP and I can´t have a spare server at the time. I know, ISAPI isn´t as stable as the CGI option, but I thought I might give it a try anyway. As

RE: [PHP-WIN] IIS, ISAPI and PHPBB

2002-12-16 Thread Sterling Anderson
Works fine for me. You may want to make sure you followed the install docs to the letter. I forgot to copy one dll to the right directory and I spent 2 hours trying to figure it out. -Original Message- From: Christian Bartsch [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 1:57

[PHP-WIN] Re: PHP$ and Apache2 Configuration

2002-12-16 Thread Juan Rosero
Anthony, Replace the line: LoadModule php4_module c:/php/sapi/php4apache.dll with this: LoadModule php4_module c:/php/sapi/php4apache2.dll good luck, Juan "Anthony Alvarez" <[EMAIL PROTECTED]> wrote in message 7395C966081897468DFB3490D72A81990127FEB9@hp2kmail">news:7395C966081897468DFB3490D72A8

RE: [PHP-WIN] Re: PHP$ and Apache2 Configuration

2002-12-16 Thread Alvarez, Anthony
Thanks for the tip, but it did not work. After updating httpd.conf, Apache could not start. > Replace the line: > LoadModule php4_module c:/php/sapi/php4apache.dll > with this: > LoadModule php4_module c:/php/sapi/php4apache2.dll Any other hints? Please advise. I look forward to hearing from you.

Re: [PHP-WIN] IIS, ISAPI and PHPBB

2002-12-16 Thread Christian Bartsch
Well, the funny thing is... it works for the known phpinfo() call, but when I try to run PHPBB, it even crashes my other ISAPI tasks... here is an excerpt from the PHP log file, maybe this helps: [16-Dec-2002 22:01:26] PHP Warning: Failed opening './extension.inc' for inclusion (include_path='d:\

RE: [PHP-WIN] Re: PHP$ and Apache2 Configuration

2002-12-16 Thread Dash McElroy
That won't work - PHP 4.3.0 RC3 /or/ Apache 2.0.40. PHP4.2.x is linked to Apache2 versions (Apache2 support is experimental in 4.2.x). -Dash -Original Message- From: Alvarez, Anthony [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 1:05 PM To: 'Juan Rosero'; [EMAIL PROTECTED] S

RE: [PHP-WIN] IIS, ISAPI and PHPBB

2002-12-16 Thread Sterling Anderson
This sounds like it may be more of a PHPBB issue. If phpinfo() works then you have things setup correctly I would think. Try posting to the PHPBB boards maybe? -Original Message- From: Christian Bartsch [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 3:07 PM To: [EMAIL PROTECTE

Re: [PHP-WIN] IIS, ISAPI and PHPBB

2002-12-16 Thread Christian Bartsch
No, can´t be I guess. Because switching to the CGI version of PHP, everything is fine (and more slow :))) ). I´m really done now... :) Regards Chris "Sterling Anderson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000301c2a547$c5ec8b70$050b000a@gollum">news:000301c2a547$c5ec8b70$050b000a@gollum...

AW: [PHP-WIN] accesing to a dll

2002-12-16 Thread Sven Schnitzke
Hello Omar, I would greatly appreciate you to toroughly read all of the details of the link and the respective functions. Maybe it is even translated to a spanish version. There is nothing to be compiled in. But you have to be familiar with the dll concept in general and the interface descriptio

[PHP-WIN] php Isapi for IIS 5.0

2002-12-16 Thread Charles P. Killmer
When is Isapi for IIS 5.0 going to be considered production quality? Or is it already? What issues has anyone run into? Thanks Charles Killmer

RE: [PHP-WIN] Tough decision ASP or PHP

2002-12-16 Thread Charles P. Killmer
Old topic, but I finally fixed my issue(s). In case anyone else is having trouble with PDFs and IE. I had two issues that were preventing PDFs to be dynamically created with PHP. First: I was using sessions to ensure the user should see this pdf. Using sessions caused three additional headers to

[PHP-WIN] PHP + IIS6 - Permission Issues?

2002-12-16 Thread David Marr
Hello, I installed .NET Server recently, and installed PHP (4.2.3) manually via the ISAPI filter. When I try to view a simple PHP page, I get a login box pop up. I have given IUSR_ the correct (Read + Execute) permissions for the C:\php\ dir as well as my website folder. I can run .asp and .htm fil

[PHP-WIN] PHP 4.2.3 on PWS4/WinME

2002-12-16 Thread Jason Trickett
Hi. I just installed PWS 4 on my WinME pc, and am currently fighting with PHP 4.2.3. I tried the installer but didn't have any luck (always had error 500) so I decided to do a manual install. I've read thru the install.txt file and I am confused on some points. Am I supposed to copy all the php*.dl

php-windows Digest 17 Dec 2002 04:48:07 -0000 Issue 1490

2002-12-16 Thread php-windows-digest-help
php-windows Digest 17 Dec 2002 04:48:07 - Issue 1490 Topics (messages 17424 through 17462): Oh crumbs - My cookies are broken! 17424 by: George Pitcher Getting errors, need help 17425 by: David 17428 by: Joseph W. Goff Re: Per site php.ini 17426 by: Veselina

Re: [PHP-WIN] Getting errors, need help

2002-12-16 Thread David
Thank you for your reply. I just caught it and corrected it. But now my login does nothing. I am going to repost it with a diffrent subject line David "Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message 005401c2a521$8ecae2c0$bdcaa8c0@jg42000">news:005401c2a521$8ecae2c0$bdcaa8c0@jg42000... >

[PHP-WIN] PHP Web Mail

2002-12-16 Thread Raheel Hussain
hi, 1 - where can i download the latest version of Apache Server for installation on Windows 2000. I want to develop a webmail in PHP just like Yahoo, plz somebody guide me where can I get help or some useful information about it , or if somebody have some information etc. regards, --

[PHP-WIN] Having problems with login page, HELP

2002-12-16 Thread David
Hello, I am pretty new to PHP and I am trying to create a admin login page so my client can view thier product line and orders. I have MySQL set-up properly and have data in it and I am able to view information from the db with no problem. I do all my testing on my local machine before I blast it

[PHP-WIN] Am I creating my cookies properly?

2002-12-16 Thread George Pitcher
Hi, I have this piece of code which authenticates the user then sets a cookie. The problem is that I cannot read the cookie later, either with $cookiename or $_COOKIE["cookiename"]. My code = And before someone suggests sessions, I've loooked at several tutorials and cannot get them to work e