php-windows Digest 1 Mar 2003 03:09:16 -0000 Issue 1611
Topics (messages 18764 through 18787):
PHP extensions
18764 by: Afonso Marques dos Santos
18771 by: Joshua Groboski
Re: =at wit's end with GD Libraries=
18765 by: Uttam
18766 by: Uttam
18769 by: Anthony Ritter
Re: Still having problems....
18767 by: Uttam
18768 by: Henrik Hornemann
Re: Stil having problems (WAS : Problem with links....)
18770 by: Neil Smith
PHP into the TclHTTPD server
18772 by: Franco Pozzer
Re: Problem with extensions w2k/IIS PHP4.3.0
18773 by: pingywon MCSE
18777 by: Christoph Grottolo
18778 by: Joshua Groboski
Re: Include virtual?
18774 by: Wayne Pearsall
18776 by: Charles P. Killmer
18779 by: Christoph Grottolo
18780 by: Charles P. Killmer
18781 by: Wayne Pearsall
18783 by: Dash McElroy
18784 by: Charles P. Killmer
Re: Problem with links....
18775 by: Wayne Pearsall
include_path
18782 by: johnmpaliza.libero.it
Re: destroying COM objects
18785 by: Chris Kranz
Compiling PHP, Running PHP4/5 Simultaneously & Tracking Down IIS
18786 by: Jason Lange
php.ini
18787 by: Anthony Ritter
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 ---
Hi,
Can anyone tell me a good site do understand the PHP extensions?
I want to know wich ones I have to have in order to run my websites.
Thanks in advance.
--- End Message ---
--- Begin Message ---
You only should enable the extensions that you know you'll use. Turning on
miscellaneous extensions may have adverse effects on your scripts. In my
case, I have only one extension turned on (mssql.dll) because I know all I
need to do right now is connect to SQL Server.
My advice is turn them on as you need them and do a little research on the
subject before you turn them on.
Joshua Groboski
Programmer Analyst
SAVVIS Communications Inc.
"Afonso Marques Dos Santos" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,
Can anyone tell me a good site do understand the PHP extensions?
I want to know wich ones I have to have in order to run my websites.
Thanks in advance.
--- End Message ---
--- Begin Message ---
the API version of GD library and PHP must be same. not every GD library
works with every version of PHP.
i am able to produce conflict message on my Win98 system by running wrong
version of PHP from command line, screen shot (very small png file 1.8kb) of
the error message is attached .
hope this give some direction....
regds,
-----Original Message-----
From: Anthony Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:21
To: [EMAIL PROTECTED]
Subject: =at wit's end with GD Libraries=
I want to thank those who tried to help with my questions about using
the GD
libraries.
I still have not gotten them to function using PHP.
I've put two screenhots of the phpinfo() page at:
www.gonefishingguideservice.com/php_page.htm
If you care to take a look at those images, you'll see that I've got php
and
Apache working with MS Win 98. It also says that directories are
enabled.
I've searced for the following files that I believe I need for GD
Libraries
and PHP in Explorer and found:
php_gd.dll ---------> C:\PHP\extensions
php.ini -----------------> C:\WINDOWS
php4ts.dll -------------> C:\WINDOWS\System
msvcrt.dll -------------> C:\WINDOWS\System
When I load the phpinfo() page, it comes up like you see in the
screenshots.
However, when I _take out_ the semi-colon as in the line:
.......................
extension=php_gd.dll //semi-colon taken out
......................
the page - or any page with a file extension.php will _not_load at all
using
Apache.
However, when I _reinsert_ the semi-colon in the php.ini file, the .php
page
then loads.
Any advice on how I can get the GD libaries to work will be greatly
appreciated.
At wit's end...
Thank you.
Tony Ritter
..................
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path=; UNIX: "/path1:/path2" Windows: "\path1;\path2"
doc_root=; the root of the php pages, used only if nonempty
user_dir=; the directory under which php opens the script using
/~username,
used only if nonempty
extension_dir="C:\PHP\extensions" ; directory in which the loadable
extensions (modules) reside
enable_dl=On ; Whether or not to enable the dl() function.
; The dl() function does NOT properly work in multithreaded
; servers, such as IIS or Zeus, and is automatically disabled
; on them.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads=On ; Whether to allow HTTP file uploads
;upload_tmp_dir=; temporary directory for HTTP uploaded files (will use
system default if not specified)
upload_max_filesize=2M ; Maximum allowed size for uploaded files
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;
allow_url_fopen=On ; Wheter to allow trating URLs like
http:... or ftp:... like files
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; if you wish to have an extension loaded automaticly, use the
; following syntax: extension=modulename.extension
; for example, on windows,
; extension=msql.dll
; or under UNIX,
; extension=msql.so
; Note that it should be the name of the module only, no directory
information
; needs to go here. Specify the location of the extension with the
extension_dir directive above.
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed
for
it.
;
;extension=php_bz2.dll
;extension=php_ctype.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_cybercash.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mhash.dll
;extension=php_mssql65.dll
;extension=php_mssql70.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_sablot.dll
;extension=php_snmp.dll
;extension=php_sybase_ct.dll
;extension=php_yaz.dll
;extension=php_zlib.dll
--- End Message ---
--- Begin Message ---
or you can download the latest version of php with bundled gd...
regds,
-----Original Message-----
From: Anthony Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:21
To: [EMAIL PROTECTED]
Subject: =at wit's end with GD Libraries=
I want to thank those who tried to help with my questions about using
the GD
libraries.
I still have not gotten them to function using PHP.
I've put two screenhots of the phpinfo() page at:
www.gonefishingguideservice.com/php_page.htm
If you care to take a look at those images, you'll see that I've got php
and
Apache working with MS Win 98. It also says that directories are
enabled.
I've searced for the following files that I believe I need for GD
Libraries
and PHP in Explorer and found:
php_gd.dll ---------> C:\PHP\extensions
php.ini -----------------> C:\WINDOWS
php4ts.dll -------------> C:\WINDOWS\System
msvcrt.dll -------------> C:\WINDOWS\System
When I load the phpinfo() page, it comes up like you see in the
screenshots.
However, when I _take out_ the semi-colon as in the line:
.......................
extension=php_gd.dll //semi-colon taken out
......................
the page - or any page with a file extension.php will _not_load at all
using
Apache.
However, when I _reinsert_ the semi-colon in the php.ini file, the .php
page
then loads.
Any advice on how I can get the GD libaries to work will be greatly
appreciated.
At wit's end...
Thank you.
Tony Ritter
..................
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path=; UNIX: "/path1:/path2" Windows: "\path1;\path2"
doc_root=; the root of the php pages, used only if nonempty
user_dir=; the directory under which php opens the script using
/~username,
used only if nonempty
extension_dir="C:\PHP\extensions" ; directory in which the loadable
extensions (modules) reside
enable_dl=On ; Whether or not to enable the dl() function.
; The dl() function does NOT properly work in multithreaded
; servers, such as IIS or Zeus, and is automatically disabled
; on them.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads=On ; Whether to allow HTTP file uploads
;upload_tmp_dir=; temporary directory for HTTP uploaded files (will use
system default if not specified)
upload_max_filesize=2M ; Maximum allowed size for uploaded files
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;
allow_url_fopen=On ; Wheter to allow trating URLs like
http:... or ftp:... like files
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; if you wish to have an extension loaded automaticly, use the
; following syntax: extension=modulename.extension
; for example, on windows,
; extension=msql.dll
; or under UNIX,
; extension=msql.so
; Note that it should be the name of the module only, no directory
information
; needs to go here. Specify the location of the extension with the
extension_dir directive above.
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed
for
it.
;
;extension=php_bz2.dll
;extension=php_ctype.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_cybercash.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mhash.dll
;extension=php_mssql65.dll
;extension=php_mssql70.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_sablot.dll
;extension=php_snmp.dll
;extension=php_sybase_ct.dll
;extension=php_yaz.dll
;extension=php_zlib.dll
--- End Message ---
--- Begin Message ---
Would that be:
php-4.3.1-Win32.zip
and
php-4.2.3-installer.exe
Please advise.
Thank you.
TR
---
[This E-mail scanned for viruses by gonefishingguideservice.com]
--- End Message ---
--- Begin Message ---
is it the missing braces for while in get_list() function definition?
function get_list($q)
{
$result = mssql_query($q) or die("ERROR in - get_sw_ids function");
while ($rr[] = mssql_fetch_array($result)) $i++;
return $rr;
}
-----Original Message-----
From: A. Mikkelsen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 18:38
To: [EMAIL PROTECTED]
Subject: Still having problems....
I'm still having problems :
My query :
$q = "SELECT id, computer_id, date, domain, ip, license_key, software,
wm_id
FROM data WHERE id IN (SELECT MAX(ID) FROM data GROUP BY Computer_ID) "
.
$Where_Text . " ORDER BY Domain, Date DESC";
The show part:
<?
$sw_list = get_list($q);
For ($i=0; $i < sizeof($sw_list); $i++)
{
ECHO "<TR><TD>".$sw_list[$i]['Computer_ID']."</a></TD>";
ECHO "<TD>".$sw_list[$i]['Domain']."</TD>";
ECHO "<TD>".$sw_list[$i]['License_Key']."</FONT></TD>";
ECHO "<TD> " .$sw_list[$i]['WM_ID']."</TD>";
ECHO "<TD>" .$sw_list[$i]['Date']. "</TD></TR>";
}
?>
My function :
function get_list($q)
{
$result = mssql_query($q) or die("ERROR in - get_sw_ids function");
while ($rr[] = mssql_fetch_array($result)) $i++;
return $rr;
}
When i remove the show part, the code works.
I'm getting more and more fustrated....
//Anders
--- End Message ---
--- Begin Message ---
Hi,
It might be the unopened html tags that you close.
ie the </a> tag in
ECHO "<TR><TD>".$sw_list[$i]['Computer_ID']."</a></TD>";
is never opened
hth Henrik Hornemann
-----Original Message-----
From: A. Mikkelsen
To: [EMAIL PROTECTED]
Sent: 28-02-03 14:08
Subject: [PHP-WIN] Still having problems....
I'm still having problems :
My query :
$q = "SELECT id, computer_id, date, domain, ip, license_key, software,
wm_id
FROM data WHERE id IN (SELECT MAX(ID) FROM data GROUP BY Computer_ID) "
.
$Where_Text . " ORDER BY Domain, Date DESC";
The show part:
<?
$sw_list = get_list($q);
For ($i=0; $i < sizeof($sw_list); $i++)
{
ECHO "<TR><TD>".$sw_list[$i]['Computer_ID']."</a></TD>";
ECHO "<TD>".$sw_list[$i]['Domain']."</TD>";
ECHO "<TD>".$sw_list[$i]['License_Key']."</FONT></TD>";
ECHO "<TD> " .$sw_list[$i]['WM_ID']."</TD>";
ECHO "<TD>" .$sw_list[$i]['Date']. "</TD></TR>";
}
?>
My function :
function get_list($q)
{
$result = mssql_query($q) or die("ERROR in - get_sw_ids function");
while ($rr[] = mssql_fetch_array($result)) $i++;
return $rr;
}
When i remove the show part, the code works.
I'm getting more and more fustrated....
//Anders
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi - check your SQL : I think what you have here is a select asking for
MAX(ID) which will return one result (this is what MAX does).
So, no need to ask for WHERE id IN (SELECT(MAX(ID)) but instead ask for
SELECT id=MAX(ID).
If you wanted top n instead, ask for
SELECT id FROM data ORDER BY id DESC LIMIT 0,n
Probably. What are you actually trying to print out ?
HTH
Neil Smith.
At 13:26 28/02/2003 +0000, you wrote:
I'm still having problems :
My query :
$q = "SELECT id, computer_id, date, domain, ip, license_key, software, wm_id
FROM data WHERE id IN (SELECT MAX(ID) FROM data GROUP BY Computer_ID) " .
$Where_Text . " ORDER BY Domain, Date DESC";
--- End Message ---
--- Begin Message ---
Thanks for all.
Can anyone have use or try PHP into TclHttpd server?
Can help to me how to configure PHP into this web server as CGI module?
Thanks for alla and sorry for my english.
Ciao Franco.
--- End Message ---
--- Begin Message ---
try pointing directly to the .dll not just the Dir.....just a thought
--
~pingywon MCSE
_____________________________________
MCP, MCSA, MCSE Certification Forums.
The Information Exchange.
http://pingywon.mine.nu
http://www.pingywon.ibforums.com
"Joshua Groboski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I seem to be unable to track down my problem. In my php.ini I have set
> extension_dir = c:\php\extensions
>
> I confirmed that the dll files are there and adequately permissioned
> (everyone
> has full control).
>
> When I enable extension=php_mssql.dll my webserver hangs.
>
> What am I missing.
>
> Thanks in advance,
> Joshua Groboski
>
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Joshua Groboski) wrote:
>I seem to be unable to track down my problem. In my php.ini I have set
>extension_dir = c:\php\extensions
>
>I confirmed that the dll files are there and adequately permissioned
>(everyone
>has full control).
>
>When I enable extension=php_mssql.dll my webserver hangs.
It's not easy, try to catch the problem...
- double and triple check your installation by reading the manual at
www.php.net/install.windows and www.php.net/mssql (don't forget the
user notes), use phpinfo(), set error level to the maximum value,
including startup errors, restart your webserver.
- search http://bugs.php.net for similar bug reports (also closed
ones, there may be valuable info in the texts) - don't fire a new one
as long as you're not shure it's really a php bug.
- if you have a ISAPI setup, you might give CGI a try, or reverse
- try another php version (4.2.3 or one from http://snaps.php.net)
- ask again... hope you don't need to...
Christoph
--- End Message ---
--- Begin Message ---
Thanks for the suggestions.
Mr. Killmer hit the nail squarely on the head with his answer. I did not
have ntwdblib.dll in the windows directory. I simply copied it there and
magically everything works.
Thanks again.
Josh
"Joshua Groboski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I seem to be unable to track down my problem. In my php.ini I have set
> extension_dir = c:\php\extensions
>
> I confirmed that the dll files are there and adequately permissioned
> (everyone
> has full control).
>
> When I enable extension=php_mssql.dll my webserver hangs.
>
> What am I missing.
>
> Thanks in advance,
> Joshua Groboski
>
>
>
--- End Message ---
--- Begin Message ---
yeh, it will work that way :)
[EMAIL PROTECTED] wrote:Not sure I understand this.
We all know you can do
include("path-relative-to-current-directory/filename");
We all also know you can do
include("/path-relative-to-root-of-server/filename");
The original question was, basically, can you do
include("path-relative-to-root-of-website/filename").
And if so, how?
Jill
-----Original Message-----
From: Wayne [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Include virtual?
include("filedir/file.php");
this will work with full or virtual paths :)
================================
Get Free Visitors, Invest and Make *at least* 144% Return on Purchases Guarenteed!:
http://www.1heluva.com/cgi-bin/join.cgi?refer=2028&trk=sig
Click For Real Money, Visitors, Prizes, and MORE!:
http://www.clickitycash.com/cgi-bin/join.cgi?refer=29055&trk=sig
---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
--- End Message ---
--- Begin Message ---
I think my original question has been lost.
Include("/template.php");
I want this to include the file located at
e:\sites\website1\template.php
Not
e:\template.php
Charles
-----Original Message-----
From: Wayne Pearsall [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:09 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: Include virtual?
yeh, it will work that way :)
[EMAIL PROTECTED] wrote:Not sure I understand this.
We all know you can do
include("path-relative-to-current-directory/filename");
We all also know you can do
include("/path-relative-to-root-of-server/filename");
The original question was, basically, can you do
include("path-relative-to-root-of-website/filename").
And if so, how?
Jill
-----Original Message-----
From: Wayne [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Include virtual?
include("filedir/file.php");
this will work with full or virtual paths :)
================================
Get Free Visitors, Invest and Make *at least* 144% Return on Purchases
Guarenteed!:
http://www.1heluva.com/cgi-bin/join.cgi?refer=2028&trk=sig
Click For Real Money, Visitors, Prizes, and MORE!:
http://www.clickitycash.com/cgi-bin/join.cgi?refer=29055&trk=sig
---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Charles P. Killmer) wrote:
>I think my original question has been lost.
>
>
>Include("/template.php");
>
>I want this to include the file located at
>e:\sites\website1\template.php
>Not
>e:\template.php
edit include_path in your php.ini file: add e:\sites\website1 to the
existing include path.
include("template.php") without slash.
If you don't use cgi, restart your webserver.
HTH
Christoph
--- End Message ---
--- Begin Message ---
Good idea but, we host many sites and cannot have them all using each
others include directories. Also don't want to use ini_set at the top
of every file, if that can be set per_dir.
Charles
-----Original Message-----
From: Christoph Grottolo [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:53 PM
To: Charles P. Killmer
Subject: Re: [PHP-WIN] Re: Include virtual?
[EMAIL PROTECTED] (Charles P. Killmer) wrote:
>I think my original question has been lost.
>
>
>Include("/template.php");
>
>I want this to include the file located at
>e:\sites\website1\template.php
>Not
>e:\template.php
edit include_path in your php.ini file: add e:\sites\website1 to the
existing include path.
include("template.php") without slash.
If you don't use cgi, restart your webserver.
HTH
Christoph
--- End Message ---
--- Begin Message ---
if the file which you are including it from is located at:
e:\sites\website1\somefile.php
using either:
include("E:\Sites\Website1\template.php");
OR:
include("template.php");
will both work :)
"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I think my original question has been lost.
Include("/template.php");
I want this to include the file located at
e:\sites\website1\template.php
Not
e:\template.php
Charles
-----Original Message-----
From: Wayne Pearsall [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:09 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: Include virtual?
yeh, it will work that way :)
[EMAIL PROTECTED] wrote:Not sure I understand this.
We all know you can do
include("path-relative-to-current-directory/filename");
We all also know you can do
include("/path-relative-to-root-of-server/filename");
The original question was, basically, can you do
include("path-relative-to-root-of-website/filename").
And if so, how?
Jill
-----Original Message-----
From: Wayne [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Include virtual?
include("filedir/file.php");
this will work with full or virtual paths :)
================================
Get Free Visitors, Invest and Make *at least* 144% Return on Purchases
Guarenteed!:
http://www.1heluva.com/cgi-bin/join.cgi?refer=2028&trk=sig
Click For Real Money, Visitors, Prizes, and MORE!:
http://www.clickitycash.com/cgi-bin/join.cgi?refer=29055&trk=sig
---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs
--- End Message ---
--- Begin Message ---
I assume you don't want site A to include site B's PHP files, correct?
The best solution I can think of (I hope you are using Apache...) would be
to have php configuration items set on a per virtual host directory. For
site a you would have:
php_flag openbasedir e:\sites\sitea
and site b would have:
php_flag openbasedir e:\sites\siteb
(syntax may be incorrect...it's off the top of my head and I just got a
haircut...)
You could also have include dirs set per site as well if you wanted
include files out of the sites\sitea directories.
-Dash
God made the Idiot for practice, and then He made the School Board
-- Mark Twain
On Fri, 28 Feb 2003, Charles P. Killmer wrote:
> Good idea but, we host many sites and cannot have them all using each
> others include directories. Also don't want to use ini_set at the top
> of every file, if that can be set per_dir.
>
> Charles
>
> -----Original Message-----
> From: Christoph Grottolo [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:53 PM
> To: Charles P. Killmer
> Subject: Re: [PHP-WIN] Re: Include virtual?
>
> [EMAIL PROTECTED] (Charles P. Killmer) wrote:
>
> >I think my original question has been lost.
> >
> >
> >Include("/template.php");
> >
> >I want this to include the file located at
> >e:\sites\website1\template.php
> >Not
> >e:\template.php
>
> edit include_path in your php.ini file: add e:\sites\website1 to the
> existing include path.
>
> include("template.php") without slash.
>
> If you don't use cgi, restart your webserver.
>
> HTH
>
> Christoph
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Files from many different directories include the same template.php
Also I am using IIS.
Charles
-----Original Message-----
From: Wayne [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Re: Include virtual?
if the file which you are including it from is located at:
e:\sites\website1\somefile.php
using either:
include("E:\Sites\Website1\template.php");
OR:
include("template.php");
will both work :)
"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I think my original question has been lost.
Include("/template.php");
I want this to include the file located at
e:\sites\website1\template.php
Not
e:\template.php
Charles
-----Original Message-----
From: Wayne Pearsall [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:09 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: Include virtual?
yeh, it will work that way :)
[EMAIL PROTECTED] wrote:Not sure I understand this.
We all know you can do
include("path-relative-to-current-directory/filename");
We all also know you can do
include("/path-relative-to-root-of-server/filename");
The original question was, basically, can you do
include("path-relative-to-root-of-website/filename").
And if so, how?
Jill
-----Original Message-----
From: Wayne [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Include virtual?
include("filedir/file.php");
this will work with full or virtual paths :)
================================
Get Free Visitors, Invest and Make *at least* 144% Return on Purchases
Guarenteed!:
http://www.1heluva.com/cgi-bin/join.cgi?refer=2028&trk=sig
Click For Real Money, Visitors, Prizes, and MORE!:
http://www.clickitycash.com/cgi-bin/join.cgi?refer=29055&trk=sig
---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
try:
switch ($_REQUEST["sw"]){
case "SQL":
// SQL Stuff
break;
case "Toad":
// Toad
break;
default:
// Default Option
break;
}
"A. Mikkelsen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> I'm using
>
> <A HREF="main.php?sw=SQL" TARGET="main">SQL Navigator</A><br>
>
> to link to main.php. The link to the page works but not the ?sw=SQL path.
> In main.php i use the following to check the ?sw=
>
> SWITCH ($sw)
> {
> CASE ("toad"):
> $Where_Text = "AND Software = 'Toad'";
> $Choosen_SW = "Toad";
> BREAK;
> CASE ("SQL"):
> $Where_Text = "AND Software = 'SQL Navigator'";
> $Choosen_SW = "SQL Navigator";
> BREAK;
> }
>
>
> My problem is that is doesn't seem to send the sw info th the main.php
page.
> Does anybody have an ideer to what is wrong.
>
> PHP is the latast version, and i added the php_mssql.dll extension.
>
> //Anders
>
>
--- End Message ---
--- Begin Message ---
I'm new with php. I've installed apache 1.27, php 4.2.2 with windows 2000 and I'm
trying to realize a
web site.
The include_path setting is: ".;C:/xxx/yyy/includes/others;C:/xxx/yyy/includes/myfiles"
I get authentication.php in my include path and, unfortunatly, an other
authentication.php does exist in the 2° path and is processed before my
authentication.php file, and maybe gets a function name
like one of mine.
When, in a file I write: include("authentication.php"), my file is never included; php
includes the first
one that finds.
What can I do to resolve this problem?
Thanks.
John M.
--- End Message ---
--- Begin Message ---
It really depends on what COM object your using. If the COM is an
application with a specific close function, then you should use this
aswell as unsetting the assigned variable.
I had great problems getting Excel to shutdown once it was initiated
from within PHP, simply unsetting a variable in PHP won't do this, and
you quickly get a flooded machine with no memory or CPU power :p
chris kranz
fatcuban.com
-----Original Message-----
From: Michael Power [mailto:[EMAIL PROTECTED]
Sent: 28 February 2003 11:58
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Re: destroying COM objects
> "Rich Gray"
>
> I may be talking out of my proverbial but I believe unset() will just
remove
> the reference to the object it won't destroy the object itself which
> is
why
> I suggested $obj = null in my earlier message... however I'm probably
being
> pedantic as the next gc cycle will clean up objects with a 0 reference
count
> anyway...
>
> I suppose...
>
> $obj = null;
> unset($obj);
>
> Would cover all bases...
> Cheers
> Rich
>
Not too sure although your point sounds correct. I must admit I don't
use COM much via PHP so have not had to learn too much for what I need.
Just what I have used has always caused problems unless I use unset().
If all else fails maybe you could write a little command line app which
receives the COM reference and kills it...
Cheers
Mike
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Greetings!
My first question is what other possibilities there are for compiling
PHP under Windoze besides MSVS. I am a high-schooler (think no $$$ :-)
and besides not being able to afford MSVS I don't have much love lost on
Microsoft. So, I was hoping there might be a cheaper way to go... (What
I'd really LIKE to do is turn our PC into a dual-boot machine, but Dad's
not so keen on that.)
For my second question I was wondering if it is possible to run PHP4 and
PHP5 modules simltaneously under Apache -- current configuration Apache
2.0.43, PHP 4.3.0 (module), MySQL 4.06-gamma (I'd like to give the PHP5
pages a *.php5 extension or something like that). Looking at the
documentation I'm not really sure how this could happen, but I'm hopeful...
My last question is where I might be able to come up with IIS for
WindozeXP. We have an HP which didn't come with any system disk -- and
it doesn't exist under "Add/Remove Programs" -> "Windows Components"
like it should. I haven't been able to turn it up ANYWHERE on the
internet, so any help would be appreciated.
--
Jason
--- End Message ---
--- Begin Message ---
I run the following script:
<?
phpinfo();
?>
// the page loads o.k. when the semi-colon remains as in:
;extension=php_gd2.dll
but if I remove the semicolon as in:
extension=php_gd2.dll
the page won't load and the server hangs up.
..........................................
\\ this is my php.ini file on MS Win 98/ PHP/ Apache
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\PHP\"
; Whether or not to enable the dl() function. The dl() function does NOT
work
; properly in multithreaded servers, such as IIS or Zeus, and is
automatically
; disabled on them.
enable_dl = On
extension=php_gd2.dll
...................................................
Any advice on how I can install GD libraries greatly appreciated.
Thank you.
Tony Ritter
--- End Message ---