[PHP] Re: PHP Apache

2003-01-30 Thread Christoph Grottolo
[EMAIL PROTECTED] (Aaron Stephan William Boeren) wrote:

Hi,
Maby you could help me on why I get this message when using variables: 
Undefined variable: UN1 in c:\inetpub\wwwroot\sdd\pages\redirection.php 
on line 15

I have PWS being used, PHP 4.3.0  Apache 2.0.34. OS is Windows 2k
If you could help that would be great because I need it for testing 
scripts for my HSC Course.

Suppose you use PWS and not Apache (the path in the error seems to
point to a PWS directory). Anyway: The variable UN1 is not defined.
Maybe you could try to search for 'UN1' in
c:\inetpub\wwwroot\sdd\pages\redirection.php?

Quote: The brain can understand everything, but itself, Aaron Boeren, 

oh, there are certainly other cases...

Christoph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Christoph Grottolo
[EMAIL PROTECTED] (Chris Shiflett) wrote:

--- Scott Fletcher [EMAIL PROTECTED] wrote:
 Many PHP programmer tried to their best to use
 HTTP_REFERER so they can keep track of which
 webpages on the current website did the user
 last visited.

I think I see what you are referring to now.

The reason that many people (myself included) discourage
the use of REFERER for this purpose is not only because
support is inconsistent, but also because it is not
required that a Web client send this header. In fact, the
only required header in the latest version of HTTP (1.1) is
the Host header. So, it really boils down to not depending
on something that is not guaranteed to be there.

It even dangerous to rely on HTTP_REFERER because it's not under your
control. The client could set the HTTP headers itself (e.g. a php
script using CURL, www.php.net/curl). You should at least combine the
REFERER check with a valid session on your host or look for a
corresponding log entry or something alike.

Christoph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include question

2003-01-15 Thread Christoph Grottolo
[EMAIL PROTECTED] (Brad Bonkoski) wrote:

It would probably be best to include the absolute path to the images.
so instead of: img src=file.gif use: img src='c:\project\htmls\file.gif'
Is something like that possible?

??? forget this... this will only work on some browsers and as long as
you keep the files exactly there.

Otherwise at the very least you should use: img src='htmls\file.gif'

img src=htmls/file.gif (slash instead of back slash).

 In c:\project\htmls there are several HTML documents which refer to images
 in the project\htmls directory with tags like img src=file.gif

 In my PHP script in c:\project I include htmls/file.html and the HTML file
 renders alright from the script, but the image's path is c:\project\file.gif
 when the page is rendered, not c:\project\htmls\file.gif like it should be.

If you include a file into a php script like you do, the HTML-paths
will be relative to that php script, not to the original HTML-file.
PHP includes the file as is (imagine it puts the HTML code at the
place of the include statement) The browser does not know that there
is another HTML file, it only sees the output of the php script. 

Christoph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: session_start() in php.ini does not work on Microsoft IIS

2003-01-06 Thread Christoph Grottolo
Scott Fletcher wrote:
 ?
 $salt=C4155DDAF13A529594FB7C2541F4D4C7;
 session_start($salt);


 This is the error messages

 --clip--
 Warning: open(/tmp\sess_C4155DDAF13A529594FB7C2541F4D4C7, O_RDWR)
 failed: m (2) in D:\DealPack\...  on line 24

 Warning: open(/tmp\sess_C4155DDAF13A529594FB7C2541F4D4C7, O_RDWR)
 failed: m (2) in Unknown on line 0

 Warning: Failed to write session data (files). Please verify that the
 current setting of session.save_path is correct (/tmp) in Unknown on
 line 0
 --clip--

You must set session.save_path to a valid windows path (i.e. c:\temp or
c:\sessions AND the directory must already exist.

Christoph



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Christoph Grottolo
Rad Craig wrote:
 Yes, I restart my WebServer (IIS 5) each time.

 Yes, I am editing the .ini file the phpinfo() reports it is using.

 I have been trying to get my email working.  I have made some
 changes in the php.ini file in the Windoze directory, but when I
 run phpinfo() the changes I make aren't changing on what it prints
 out.

 I have logging turned on in my php.ini file, but phpinfo() says
 it's turned
 off.

So the only  possibility is the refresh settings in your browser. Refresh
the page where you call phpinfo() by hitting ctrl+F5.

If you change the ini file php uses (double check if it's the one you're
editing, notepad loves saving the file as php.ini.txt), the changes take are
reflected when you restart the webserver. There is no possilility of a php
fault, don't search there.

Christoph



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: two php.ini on windows????

2002-07-25 Thread Christoph Grottolo

If you use cgi, no problem, just put the php.ini into the php directory
(instead of the windows directory). This works.

If you use isapi, i think it's not possible, but i'm not shure.

Christoph

Scott Fletcher wrote:
 Hi!

 There are a couple of websites I had to move from one machine to this
 window machine and it introduced two new problems.  There are two
 different version of PHP, however IIS can work with two different
 version of PHP without a problem.  The 2nd problem is to have two
 different php.ini file from two different PHP version to work
 together.

 Have anyone experience this problem?  What would be the best solution
 to the problem?  Recommended Solution to the problem?  Suggestion?
 Upgrading a couple of websites that use the old version of PHP is not
 an option right now.  That would take way too long and there's not
 enough time for that right now.

 Thanks,
  FletchSOD


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: two php.ini on windows????

2002-07-25 Thread Christoph Grottolo

Christoph Grottolo wrote:
 If you use cgi, no problem, just put the php.ini into the php
 directory (instead of the windows directory). This works.


sorry, forgot to write:
put the different versions of php into different directories (i.e.
c:\php\php421 and c:\php\php430)

Christoph

 There are a couple of websites I had to move from one machine to this
 window machine and it introduced two new problems.  There are two
 different version of PHP, however IIS can work with two different
 version of PHP without a problem.  The 2nd problem is to have two
 different php.ini file from two different PHP version to work
 together.

 Have anyone experience this problem?  What would be the best solution
 to the problem?  Recommended Solution to the problem?  Suggestion?
 Upgrading a couple of websites that use the old version of PHP is not
 an option right now.  That would take way too long and there's not
 enough time for that right now.

 Thanks,
  FletchSOD


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] using pdf template

2002-07-11 Thread Christoph Grottolo

Maybe you could use PDF with FDF to accomplish this task  (see
http://www.php.net/manual/en/ref.fdf.php).

Christoph

Rasmus Lerdorf wrote:
 Only using the commercial PDI library from pdflib.com

 On Thu, 11 Jul 2002, Tobias Talltorp wrote:

 Is it possible to produce a PDF, use it as a template and populate
 predefined sections of it from a database?
 The PDFs I want to create are a little too complex for me to produce
 from scratch.

 // Tobias



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Christoph Grottolo

Might it be your/your provider's anti-virus blocking the clsid string? You
could try to send another long mail with common text or HTML.

BTW mail() has been reworked for PHP 4.3.0, you can get a new (dev)version
to try out on http://snaps.php.net/win32

Christoph

Martin Clifford wrote:
 I would think that there would only be a limit on the SMTP server
 that the mail function sends the mail through.  I'm no expert on the
 subject though, just makes sense. :o)

 Martin Clifford
 http://www.completesource.net (Now Open!)

 Shane [EMAIL PROTECTED] 07/11/02 02:42PM 
 Nope, no luck. Still errors out.
 Is there a limit to how man characters a MAIL() call can have?

 -Original Message-
 From: Paul Roberts [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 11, 2002 11:31 AM
 To: Shane
 Subject: Re: [PHP] MAIL() Trouble. Need your eyes.


 try escaping the # in there.


 Paul Roberts
 [EMAIL PROTECTED]
 


 - Original Message -
 From: Shane [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 11, 2002 7:21 PM
 Subject: [PHP] MAIL() Trouble. Need your eyes.


 Greetings, I am attempting to send an HTML based email using the
 Mail() function in PHP.

 I am having great luck until I include an OBJECT or EMBED tag in the
 HTML string.

 I am running PHP 4.2.1 on a WIN NT client.

 If I uncomment the OBJECT or EMBED lines below in the $message
 variable, my script errors out on the MAIL() call at the bottom.

 Please, any help would be appreciated.
 Thanks folks!

 - NorthBayShane
 -
 ?PHP
 $myname = Me Myself;
 $myemail = [EMAIL PROTECTED];
 $myreplyemail = [EMAIL PROTECTED];
 $contactname = Mister Contact;
 $contactemail = [EMAIL PROTECTED];

 ---
 MY VERY LONG $MESSAGE STRING
 ---

 $message = htmlheadtitle/title;
 $message.= meta http-equiv='Content-Type' content='text/html;
 charset=iso-8859-1'/head;
 $message.= body bgcolor='#54616E' text='#FF' link='#FF6600'
 vlink='#99' alink='#FF9900';
 $message.= centertable width='501' border='0' cellspacing='0'
 cellpadding='0'trtd width='500'
 background='http://www.delaplaine.net/flashmail/noflash.gif';

 --
 HERE IS WHERE THE TROUBLE STARTS
 IF I UNCOMMENT THE OBJECT OR EMBED TAG
 THE SERVER ERRORS OUT ON MY MAIL() CALL
 --

 //$message.= pobject classid='clsid:D27CDB6E-AE6D-11cf-96B8-
 44455354'

codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=5,0,0,0' width='500' height='300'param name=movie
value='http://www.delaplaine.net/flashmail/delaplaine.swf'param
name=quality value=highparam name=menu value=falseparam name='BGCOLOR'
value='#54616E';
 //$message.= embed
 src='http://www.delaplaine.net/flashmail/delaplaine.swf' quality=high

pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash' type='application/x-shockwave-flash' width='500'
height='300' bgcolor='#54616E'/embed;
 //$message.= /object/p;

 --
 HERE IS WHERE THE TROUBLE ENDS
 --
 $message.= /td;
 $message.= td bgcolor='#54616E'img
 src='http://www.delaplaine.net/flashmail/spacer.gif' width='1'
 height='300'/td/tr;
 $message.= trtd align='center'pbr/ppfont face='Verdana,
 Arial, Helvetica, sans-serif' size='1'a
 href='http://www.delaplaine.net/extranet/fm.php?sec=newid=noflash'Click
here/a if you cannot see the animation above./font/ppfont
face='Verdana, Arial, Helvetica, sans-serif' size='1' color='#99'copy;
Copyright 2002, Delaplaine Creative.br All rights
reserved./font/p/tdtd align='center'nbsp;/td/tr;
 $message.= /tablepnbsp;/p/center;
 $message.= /body/html;

 $subject = FlashMail Test;
 $headers = MIME-Version: 1.0\r\n;
 $headers.= Content-type: text/html; charset=iso-8859-1\r\n;
 $headers.= From: .$myname..$myemail.\r\n;
 $headers.= To: .$contactname..$contactemail.\r\n;
 $headers.= Reply-To: .$myname.$myreplyemail\r\n;
 $headers.= X-Priority: 1\r\n;
 $headers.= X-MSMail-Priority: High\r\n;
 $headers.= X-Mailer: Just My Server;

 mail($contactemail, $subject, $message, $headers);

 ?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-24 Thread Christoph Grottolo

Sorry. The link below is broken. Try one of the mirrors on
www.phpclasses.org instead.

Christoph

Christoph Grottolo wrote:
 You could use the mail class by Manuel Lemos on php.upperdesign.com
 if you need cc/bcc and attachments. I've been using it for quite some
 time now with good results.

 Christoph



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-23 Thread Christoph Grottolo

You could use the mail class by Manuel Lemos on php.upperdesign.com if you
need cc/bcc and attachments. I've been using it for quite some time now with
good results.

Christoph

Lance wrote:
 ok. thanks for the info. guess i have to wait till it hit stable
 version before deploying it on live server. for now, it's byebye to
 CC/BCC/Attachments.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Christoph Grottolo

You should download php4.3.0 dev. The mail enhancements have not been merged
into the 4.2 branch. Sorry for not having been exact in my last posting.

Christoph

Lance wrote:
 i downloaded php4.2.2dev and tried my codes on it. still giving me the
 same problem.
 Try a recent dev-snapshot from snaps.php.net/win32. The mail
 function has been reworked.

 Christoph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Christoph Grottolo

Lance wrote:
 cool! 4.3.0dev work like a charm! but is it safe for deployment
 server?


No. It's a dev version which has not been going through qa. (We're using it
on an intranet and didn't have any probs until now.)

Christoph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Christoph Grottolo

Try a recent dev-snapshot from snaps.php.net/win32. The mail function has
been reworked.

Christoph


Lance wrote:
 yes, the + is a whitespace. hm... a bug, you could be right on that.

 i dont have a copy of php4.2.1 on linux to test and see if it is just
 windows2k that is giving the problem, or php4.2.1 is the main culprit.
 but i did get the same piece of code to run on php4.0.6 on linux. it
 runs smoothing in there.

 btw, i forgot to mention that i am running php4.2.1 on win2k sp2
 server.

 Stuart Dallas wrote:
 As far as the SMTP envelope is concerned, the To:, Cc: and Bcc:
recipients are
 equal. It looks like a bug in PHP to me, but I don't have time to
 delve into the code to confirm it. It should be stripping the Cc: and the
space (which
 shows in your log as a +) from the Cc: line. The SMTP server is
 complaining because the address contains invalid characters.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] 'CC' and 'BCC' in mail function

2002-06-15 Thread Christoph Grottolo

Stuart Dallas wrote:
 On Friday, June 14, 2002 at 10:01:24 PM, Sridhar Moparthy wrote:
 Does any one know how to make mail() function to send mail to 'CC'
 and 'BCC' address. I have tried to keep 'CC' and BCC' in header, but
 it is not working. Mail function is sending the message to 'To'
 address but not to 'CC' and 'BCC'. snip
 if (mail($to,$subject,$message,$header)) snip
 
 The mail function sends the message to the addresses in the first
 parameter, so you need to specify all the users you want the message
 to go to in $to. 
 
 PS. I (and I'm sure there are others) would prefer it if you could
 create a new thread for a new topic. It makes things a lot easier to
 follow. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: [PHP-INST] W2K SP2, PHP 4.2.1, IIS 5

2002-05-23 Thread Christoph Grottolo

Joshua E Minnie wrote:
 I am getting the error:

 PHP Warning: Unable to load dynamic library
 'D:\PHP\extensions\php_mssql.dll' - The specified module could not be
 found. in Unknown on line 0

 What I don't understand about this error is that the php_mssql.ddl is
 in that exact directory.  Any suggestions?

Make sure you have ntwdblib.dll from php/dlls directory in your system path
(usually it's in windows\system32). If you don't you can take it from the
dll's directory of you php installation.

You can also lookup in the manual (mssql functions)

Note that php_mssql.dll is not included in the windows installer version of
php.

Christoph



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php