php-windows Digest 9 Mar 2001 03:15:52 -0000 Issue 481

Topics (messages 5876 through 5891):

Re: Win32 PHP, Apache Web Server, and Mail
        5876 by: David Elliott

php libraries
        5877 by: James Makunike

One link - two changes
        5878 by: Daniel Furse
        5879 by: Gregory_Griffiths.cargill.com
        5880 by: Daniel Furse
        5884 by: Gregory_Griffiths.cargill.com
        5887 by: John Henckel

dba_open error
        5881 by: Sharat Shroff

ASP to PHP automatic convertion
        5882 by: Carlos Correa Goncalves
        5883 by: Robin Bolton

Re: PdfLib --> Configuration Problem
        5885 by: Alain Samoun

Page 404 errors, I wish! - Help!
        5886 by: Steve Prentice

Re: using remote files for inclusion...
        5888 by: Erin's Fan Club

Mail() to my own domain not working
        5889 by: Marcel

Building PHP4 Problem
        5890 by: news.compuserve.com

Re: CGI error: incomplete headers?
        5891 by: Tommy Suriwong

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Adrian,

On 08 March 2001 at 20:57:57 +0800  (which was 12:57 where I live) Adrian
Gould wrote


AG> nope, nothing getting to the SMTP server.

As I said, Just an idea


- --

 Thank you for your time,  _______________________________________________
  David                   |     MUA :-  The Bat! 1.51     | E-mailaholics |
 _________________________| Win 2000 Server 5.0.2195 SP1  | International |
| All taglines are hereby declared off-topic!                             |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 04/01)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBOqeEqfmK8eZlD0U0EQK0xQCgs3K4f6KKcoRnFa1NnBClbRR737cAoMGn
ONTp/q7TNUpPs6Ce2A5JIu6E
=/Cmh
-----END PGP SIGNATURE-----










Where do I get the php libraries as one file?

James






Hi Everyone,

Simple idea, but I can't work it out in practice...

I want one link (actually, one Form Submit button) to instigate two 
changes, firstly a new browser window will open containing one set 
of data, and secondly the existing browser window will change to a 
different set of data.

Like I said, simple idea. How can I do this?

Many thanks, in advance

Dan Furse
Information Systems Dept.
ipTEST Ltd

This communication contains information which is confidential and may be
privileged. It is intended for the addressee only.

All ipTEST e-mail is scanned for virus infection using Symantec Norton
Anti-Virus.




javascript is the best solution for this, many of the javascript sites 
will contain the information that you need to implement this.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 08 March 2001 15:37
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [PHP-WIN] One link - two changes
> 
> 
> Hi Everyone,
> 
> Simple idea, but I can't work it out in practice...
> 
> I want one link (actually, one Form Submit button) to instigate two 
> changes, firstly a new browser window will open containing one set 
> of data, and secondly the existing browser window will change to a 
> different set of data.
> 
> Like I said, simple idea. How can I do this?
> 
> Many thanks, in advance
> 
> Dan Furse
> Information Systems Dept.
> ipTEST Ltd
> 
> This communication contains information which is confidential 
> and may be
> privileged. It is intended for the addressee only.
> 
> All ipTEST e-mail is scanned for virus infection using Symantec Norton
> Anti-Virus.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 
> 





OK, have a found a way in Javascript to do this.

Many thanks...

New problem: (isn't there always!)

Both new pages are PHP scripts, and I need to pass a value to each one.
How can I do this, given that the link is implemented generally like this:

window.open("http://www.devshed.com/popup.html"....

Or similar...

Can I pass the new PHP script a value like  

www.domain.com/test.php?value=something

I'm not using PHP in CGI mode, so I guess probably not.

In short, how do I pass a value without using a form?

Dan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 08 March 2001 16:19
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] One link - two changes


javascript is the best solution for this, many of the javascript sites 
will contain the information that you need to implement this.






> -----Original Message-----
> From: Griffiths, Gregory D. /here 
> Sent: 08 March 2001 16:57
> To: '[EMAIL PROTECTED]'
> Subject: RE: [PHP-WIN] One link - two changes
> 
> 
> If you can get hold of the values you can use Javascript to 
> build the URL.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 08 March 2001 16:35
> > To: [EMAIL PROTECTED]
> > Subject: RE: [PHP-WIN] One link - two changes
> > 
> > 
> > OK, have a found a way in Javascript to do this.
> > 
> > Many thanks...
> > 
> > New problem: (isn't there always!)
> > 
> > Both new pages are PHP scripts, and I need to pass a value to 
> > each one.
> > How can I do this, given that the link is implemented 
> > generally like this:
> > 
> > window.open("http://www.devshed.com/popup.html"....
> > 
> > Or similar...
> > 
> > Can I pass the new PHP script a value like  
> > 
> > www.domain.com/test.php?value=something
> > 
> > I'm not using PHP in CGI mode, so I guess probably not.
> > 
> > In short, how do I pass a value without using a form?
> > 
> > Dan
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: 08 March 2001 16:19
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: [PHP-WIN] One link - two changes
> > 
> > 
> > javascript is the best solution for this, many of the 
> > javascript sites 
> > will contain the information that you need to implement this.
> > 
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: 
> > [EMAIL PROTECTED]
> > 
> > 
> 





At 04:35 PM 3/8/01 +0000, Daniel Furse wrote:
>Both new pages are PHP scripts, and I need to pass a value to each one.
>How can I do this, given that the link is implemented generally like this:
>
>window.open("http://www.devshed.com/popup.html"....
>
>Or similar...
>
>Can I pass the new PHP script a value like
>
>www.domain.com/test.php?value=something
>
>I'm not using PHP in CGI mode, so I guess probably not.
>
>In short, how do I pass a value without using a form?

YES, you can do this.  Whether or not you are in CGI mode, PHP will parse 
the parameters.  You can use $value or $QUERY_STRING or $argv or ....

Here is a really neat program to help you see what is in the PHP GLOBAL 
variables.....

________cut here__________________

<H2>PHP</h2>
<table>
<tr><td align=right><b>$GLOBALS<td>value
<tr><td colspan=2><hr>
<?php
foreach ($GLOBALS as $k => $v):
   echo "<tr><td valign=top align=right>\$$k<td valign=top>= $v ";
   if (gettype($v)=='array' and $k != 'GLOBALS')
     foreach ($v as $k => $i)
       echo "<br>$k = $i ";
endforeach;
?>
</table>

________________________________


John Henckel          alt. mailto:[EMAIL PROTECTED]
Zumbro Falls, Minnesota, USA   (507) 753-2216

http://geocities.com/jdhenckel/





Hi,

I am currently running PHP 4.04/ Apache 1.3 on Windows 2000 and I still get
the same error.(Fatal error: Call to undefined function: dba_open())

When I look at the PHP installation file I cannot find a line:
"--enable-dba" anywhere in in there. I am not sure where one shld place this
instruction in php.ini file

Could you tell me if the instruction above was for Unix machine installs
only. If so where / what shld I be doing for a Windows/ Apache  version. I
am runnning php as a module on apache.

Thanks

Sharat







Hi all,

Is there a program available to convert ASP to PHP and save me some days of
work?

Bye




try ASP2PHP: http://asp2php.naken.cc/

Not 100% perfect, but it'll definately get you started down the right
path.

> -----Original Message-----
> From: Carlos Correa Goncalves [mailto:[EMAIL PROTECTED]]
> Sent: March 8, 2001 9:41 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] ASP to PHP automatic convertion
>
>
> Hi all,
>
> Is there a program available to convert ASP to PHP and save me
> some days of
> work?
>
> Bye
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>

smime.p7s





Maybe the best solution for you is to download the binaries from :
www.php4win.ge

Alain

On Thu, Mar 08, 2001 at 01:11:09PM +0100, Renato Barata Gomes wrote:
> I am trying to configure PDFLIb to work with PHP.
> I have PHP4.0.4 and PDFLib 4.0.
> The problem is that I downloaded Pdf lib and I don not know how to configure...
> I try to make some test and they did not work out.
> In the PDFlib manual they say: 
> Installing the PDFlib PHP 
> 
> In order to guarantee full functionality across all PD lib language bindings we 
>modified
> 
> and extended the previous PHP wrapper code.Our new PHP wrapper is included in PHP
> 
> 4.05 and above,and is also included in PDFlib 4.0 and above.It works with PDFlib 3.0
> 
> and above.Other PHP PDF functions than those discussed in this manual are not sup-
> 
> ported,although the wrapper code contains a few unsupported functions for backwards
> 
> compatibility.If you are not using the latest snapshot from the PHP CVS you may copy
> 
> the PHP wrapper distributed with PDFlib to your PHP directory and replaced the old
> 
> PDFlib wrapper which is included with PHP releases older than 4.05.
> 
> ------->>>>> Probleam there is no PHP4.0.5 ??????!!!!!!!!!!??????????
> 
> You can test which version of the PHP PD lib binding you have installed with the fol-
> 
> lowing little script:
> 
> <?phpinfo()?>
> 
> This will display a long info page about your current PHP configuration.On this page
> 
> check the section titled pdf.If this section contains PDFlib GmbH Version (and the 
>PD lib
> 
> version number)you are using the supported PDFlib wrapper.The unsupported (old)
> 
> wrapper will display PDFlib Version instead.
> 
> -------------->>>>>>>>>>> There is no section titled pdf in this phpinfo() ...
> 
> Sorry about the big email but it's a urgent problem for me !!!
> 
> Thank you!!
> 
> 
> 
> 
> 




Hi all,

How can I get normal 404 error page when a requested php page doesn't exist?
If the requested page has a .php extension I'm getting an ugly warning from
php about internal server errors. If the file extension is .html or .htm I
get a normal 404 page from the web server. I'm using PHP4 with Apache 1.3.17
on Win 2000 sp 1.

Many thanks for any ideas.

Steve






Hi Dirk:

> The PHP online-manual says, that under windows remote files can 
> not be used!
<SNIP>
> Is that the reason, why the following, won't work for me:
> include("http://localhost/dynamx2html/dynalib.php");
> Is "localhost" in this context remote or not ?
Using include() should work on you Win box. There are a few
issues with include() & require() though. Firstly, you would be 
better of editing the following in your PHP.INI;
include_path = "<snipped>"; UNIX: "/path1:/path2" Windows: "\path1;\path2"

For example, if PHP fails, it will deliver the raw unparsed text of your
script to the browser and any security information contained within
will be displayed for all to see. Not good!

Create a directory outside of your HTTP document path and add that
to "include_path" in PHP.INI. Dump your to be included files in there
and call them by;
include("my_include_file.ext");

If you need any more information, feel free to ask. By the way, the PHP
manual gives you plenty of information on include(). The CHM version
is good too (think it's available on http://www.php.net/ ).

> Any hints appreciated,
> Dirk
Regards Jerry.








I'm having trouble with sending mail from vBulletin to myself. All mail
works fine except everything sent to [EMAIL PROTECTED]

My mail works fine the normal way.

I wrote a script to test this out:

<?php
mail($argv[0], "Subject", "Mail from NLDelphi.com", "");
?>

This script works fine for every email address except my own. Any idea how
to fix this??

Thanks!

--
Marcel
www.NLDelphi.com






Its my first time out building PHP, so bare with me. Downloaded everything
and set it up. No problem setting the paths and environment variables. When
I start the build process either in the GUI or from the command line, it
gets to zend_language_parser.y and tries to execute the external command to
build it. However, bison complains about the -S option that is in the custom
command:

The Command is:
if not "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S
"%CYGWIN%\share\bison.simple" -p zend zend_language_parser.y
if "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S
"C:\Program Files\Cygnus\share\bison.simple" -p zend zend_language_parser.y

I've got CYGWIN set, so the first "if" should be hitting. Any idea why this
is there, or why it is being misinterpreted?

Greg Sohl
Cedar Rapids, IA






Hi everyone,

I'm having similar problems as Chaz (with a similar config).  Anyways, if I
understand correctly, if I install a version of PHP earlier than 4.02 or
even 3.x then this problem will go away right?

Thanks,
Tommy Suriwong


""Chaz Yoon"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The header is actually correct, complete with the colon. I just used
> ellipses to omit the whole mess of the URL that I was using for that
page --
> sorry for the confusion. If I swap out the URL with http://www.cnn.com/ or
> something else and it works beautifully. I spotted an archived note on
> Usenet that indicated that this was a new bug after 4.0.2, so I'm going to
> go back a couple of versions and see if I can get it working.
>
> Chaz
>
> -----Original Message-----
> From: Toby Butzon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 4:00 PM
> To: Maurice Barnes
> Cc: Chaz Yoon; [EMAIL PROTECTED]; Zeev Suraski
> Subject: Re: [PHP-WIN] CGI error: incomplete headers?
>
>
> You might want to double check your location commands...
>
> Maurice's omits a necessary space between "Location:" and the URL - this
> space MUST be here... ie header("Location: xxxx") is correct but
> header("Location:xxxx") is not.
>
> Chaz's header statement seems to omit the colon... maybe it's a typo in
> the email, but if the colon is omitted from the source file itself, that
> very well could be causing some sort of problem. Specifically,
> header("Location .../list.php?f=1") will not work, but header("Location:
> .../list.php?f=1") will.
>
> As a side-note, I see no reason for three dots at the beginning of that
> URL. That could also be throwing things off.
>
>
> If I hadn't noticed these two things to be errors, I probably wouldn't
> have commented on this thread because I don't see any reason for a POST
> to work but not a GET. I've been doing this on Win2k/PHP4/IIS5 for 6
> months at least with no problems...
>
> Good luck -
>
> --toby
>
> Maurice Barnes wrote:
> >
> > While I dont have a solution for this problem I can confirm that the
> problem
> > is in the Header("Location:xxxx") command. Because of this obvious quirk
> > with IIS and PHP4 we have had to resort to PHP3 for a major e-business
> site
> > we were trying to upgrade to PHP4. I am not sure why this has not yet
been
> > corrected as it has been discussed and I think its also in the bugs
> > database. We even tried using include files to get around the problme
but
> > tht proved too messy. If there is anyone out there who has a solution or
> > willing to look into please do. This is a showstopper for users on the
> > Windows platform and should be fixed asap
> >
> > Regards,
> > Maurice
> >
> > ----- Original Message -----
> > From: "Chaz Yoon" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, February 15, 2001 8:01 PM
> > Subject: [PHP-WIN] CGI error: incomplete headers?
> >
> > > I'm having a curious problem with PHP on IIS while setting up a
message
> > > board (Phorum) on IIS 5.0, SQL Server 2000, and PHP 4.0.4pl1 (latest).
> > While
> > > posting a message, post.php receives a POST, processes the passed data
> to
> > > check for completeness, inserts a row into the database, and then
> > redirects
> > > the user via the header("Location .../list.php?f=1") function.
However,
> > > once the redirect occurs, I receive the following message:
> > >
> > > CGI Error
> > > The specified CGI application misbehaved by not returning a complete
set
> > of
> > > HTTP headers. The headers it did return are:
> > >
> > > Now, I know this has been in the archives, and I checked it out. The
> thing
> > > that's different for me is that when I refresh the page, it works just
> > fine.
> > > Somehow, the GET is different from the POST. Does anybody have any
> > thoughts
> > > on how I can fix this? Thanks.
> > >
> > > Chaz
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>




Reply via email to