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
> 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
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
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
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
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 - 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
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
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
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
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
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.
>
>
> 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.
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
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
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,
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
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
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:
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
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
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
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-
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
#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
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
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
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
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
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
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
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
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
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
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
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
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.
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:\
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
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
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...
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
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
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
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
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 - 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
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...
>
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,
--
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
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
51 matches
Mail list logo