php-windows Digest 27 Sep 2002 06:55:01 -0000 Issue 1359
Topics (messages 16021 through 16028):
Windows Include
16021 by: Jason
16023 by: Jim Hunter
using x.php?k=$tot
16022 by: kivanc urgancioglu
smtp authentication with mail()
16024 by: Adam Staggenborg
16027 by: Manuel Lemos
Re: header("location:...") through proxy?
16025 by: Seairth Jacobs
16028 by: Ignatius Reilly
Re: PHP/IIS5/MSSQL shows CGI Header Error
16026 by: David Redmond
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 Message ---
Can anyone help me?
When i use the following include file:
file globals.php
$DB='whatever';
then reference it from another script with:
<?php
include '..\..\globals.php';
?>
I get
$DB = 'whatever'
being printed on the screen and the script cant recognise $DB (undefined)
afterwards.
Thanks for any help for a novice!
--- End Message ---
--- Begin Message ---
Include files can be any type of text file. If you have PHP commands in the
include file then you need to put the appropriate PHP tags in it. So your
include would look like this:
<?php
$DB='whatever';
?>
Then the $DB will get processed as a variable, not a text string.
Jim
-------Original Message-------
From: Jason
Date: Thursday, September 26, 2002 11:50:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Windows Include
Can anyone help me?
When i use the following include file:
file globals.php
$DB='whatever';
then reference it from another script with:
<?php
include '..\..\globals.php';
?>
I get
$DB = 'whatever'
being printed on the screen and the script cant recognise $DB (undefined)
afterwards.
Thanks for any help for a novice!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
--- End Message ---
--- Begin Message ---
Hi Friends
I’m using PWS under windows98
and http://kurkmen/adminshowall.php?k=$tot usage is
not accepted.My aim is to display 5 images per page
for example.
$totalrows is the number of records in the database.
$tot=0;
$idx=1;
while($tot < $totalrows){
echo("<a href=\"http://kurkmen/adminshowall.php?
k=$tot\" >$idx </a> ");
$idx++;
$tot+=5;
}
How can I post the page numbers in PWS?
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
--- End Message ---
--- Begin Message ---
Any one know how to submit smtp authentication when using the mail command
in php??
--- End Message ---
--- Begin Message ---
Hello,
On 09/26/2002 08:28 PM, Adam Staggenborg wrote:
> Any one know how to submit smtp authentication when using the mail command
> in php??
There is no way to configure SMTP authentication for the mail() function.
You may want to try this other class that handles that for you:
http://www.phpclasses.org/smtpclass
or this that wraps around that class to make it nicer to use and compose
more complex messages like messages with attachments, HTML messages with
embedded images, HTML and text versions in the same message.
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
Could you give more details? The "location" header is a response header
only. Why would you be generating this from a cron job?
---
Seairth Jacobs
[EMAIL PROTECTED]
"Ignatius Reilly" <[EMAIL PROTECTED]> wrote in message
006601c2657e$cf478250$0100005a@server">news:006601c2657e$cf478250$0100005a@server...
Hello,
I need to use header("location:some_url") from a cron job (to do some
maintenance work on remote files)
my problem is that there is a proxy between me and some_url, so the GET
request fails
Anybody knows how to do this?
Thanks
Ignatius
--- End Message ---
--- Begin Message ---
I use the GET call to pass URL parameters to a remote script that executes. So it is a
form of a RPC.
local script: header( "location:http://remote_script.php?foo=bar")
The remote script is with my ISP; it is a way for me to program scheduled tasks on a
shared server at my ISP (obviously I do not have access to task scheduling there)
It works well without a proxy, but now I am looking for a way to do the same through a
proxy.
Thanks
Ignatius
__________________________
"Seairth Jacobs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Could you give more details? The "location" header is a response header
> only. Why would you be generating this from a cron job?
>
> ---
> Seairth Jacobs
> [EMAIL PROTECTED]
>
>
> "Ignatius Reilly" <[EMAIL PROTECTED]> wrote in message
> 006601c2657e$cf478250$0100005a@server">news:006601c2657e$cf478250$0100005a@server...
> Hello,
>
> I need to use header("location:some_url") from a cron job (to do some
> maintenance work on remote files)
>
> my problem is that there is a proxy between me and some_url, so the GET
> request fails
>
> Anybody knows how to do this?
>
> Thanks
>
> Ignatius
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi Matt,
Looks like it is something screwy between the mssql functions. I've
rewritten the pages to use an ADODB.Connection object and I haven't had this
error since.
David
-----Original Message-----
From: Matt Kynaston [mailto:[EMAIL PROTECTED]]
Sent: Friday, 27 September 2002 1:25 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: PHP/IIS5/MSSQL shows CGI Header Error
> > If anyone has encountered this problem before and found a
> resolution for it,
> > please post it here. As you may read from the bug thread,
> the developers of
> > PHP seemed to have passed this off as an IIS issue.
Hrm... haven't seen the exact error described, but gave up on mssql_*
functions under Win2K, IIS5, SQL Server 2000, PHP 4.2.2 because of the fact
they truncate varchar fields to 256 chars, among much other wierdness. See
my "MSSQL trouble: ansi_nulls?" posts to this forum from the end of Aug.
I suggest switching to odbc_* calls (hope you're nicely abstracted ;)
It seems to me that many of the problems with PHP's mssql support under
Windows stem from the fact they're built around dblib, which has hardly
changed since Microsoft bought SQL Server from Sybase. So long as this is
the case, the problems will only get worse. IMHO what PHP really needs is a
complete rewrite of the functions using OLEDB. Wish I had the time and
skills :(
Matt
--- End Message ---