php-windows Digest 26 Nov 2002 22:04:20 -0000 Issue 1458
Topics (messages 17130 through 17151):
Re: C++ dll files
17130 by: Franco Pozzer
17139 by: Brian 'Bex' Huff
17151 by: Brennan Mann
Re: get Url
17131 by: George Nicolae
IIS and PHP with $HTTP_SERVER_VARS
17132 by: Shaun Garriock
17134 by: Brian McGarvie
Installation question about : PHP4TS.DLL & PHP4TS.LIB
17133 by: Franco Pozzer
17135 by: Cam Dunstan
Users on line
17136 by: mst
Re: Unable to upload.. :(
17137 by: toby z
File Upload - extension filtering
17138 by: George Pitcher
17143 by: Brian McGarvie
17144 by: George Pitcher
17145 by: Brian McGarvie
17147 by: George Pitcher
Re: Install PHP with IIS 5/W2K
17140 by: David Dixon
update from php 3 to php 4
17141 by: Omar
Install PHP4.2.3 with Apache 2.0.40 on Window 2000
17142 by: Jack R.
17146 by: Brian McGarvie
Basics!
17148 by: Rc4lax.aol.com
17149 by: Scott Carr
Saving a FDF merge as a PDF to server
17150 by: Herhuth, Ron
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 ---
I try to help to you but I do not sure if it is a correct because I have
study the problems but I do not have try it.
For my porpose instead to use COM object I like to use C or C++ external
pgm.
First of all, the DLL must be registred in Windows system. Mine was
because it was provided by a "setup" software...
or with regedit32.exe pgm.
So, you have to get the name under witch the DLL is registed.
This name is not necessary the same than DLL's. To get this name, I used
to search into
de registry database. I was looking for the DLL name and I managed to get
the registred name.
Once you get this registred name, in php you can write:
$obj = new COM("registred name");
I send a .zip with bmp to expalin the correct registred Dll/COM/ActiveX
object.
Another question DLL or COM or Object must be 32bit!
I hope this help you....................
Ciao Franco.
Brennan Mann wrote:
> Hello Everybody,
>
> Can PHP call a DLL file? If so, do you know where I might be able to
> find an example?
>
> Thanks Again,
> Brennan
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
this is a common question... it should be in a FAQ somewhere...
The most flexible option is the win32 API functions, but note that they
are experimental, and sometimes hard to set up and use, but pretty dang
cool:
http://www.php.net/manual/en/ref.w32api.php
The most stable solution (definately not the fastest) is to write a C++
command line application as a wrapper for your DLL, and then make calls
to it with 'system' or 'exec'. Rock solid.
--
Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424
Hello Everybody,
Can PHP call a DLL file? If so, do you know where I might be able to
find an example?
Thanks Again,
Brennan
--- End Message ---
--- Begin Message ---
I got my DLL all set. I am just having problems with windows. I can't get
windows to register it. Any suggestions?
Thanks,
Brennan
"Franco Pozzer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I try to help to you but I do not sure if it is a correct because I have
> study the problems but I do not have try it.
>
> For my porpose instead to use COM object I like to use C or C++ external
> pgm.
>
> First of all, the DLL must be registred in Windows system. Mine was
> because it was provided by a "setup" software...
> or with regedit32.exe pgm.
>
> So, you have to get the name under witch the DLL is registed.
>
> This name is not necessary the same than DLL's. To get this name, I
used
> to search into
> de registry database. I was looking for the DLL name and I managed to
get
> the registred name.
>
> Once you get this registred name, in php you can write:
>
> $obj = new COM("registred name");
>
> I send a .zip with bmp to expalin the correct registred Dll/COM/ActiveX
> object.
>
> Another question DLL or COM or Object must be 32bit!
>
> I hope this help you....................
>
> Ciao Franco.
>
> Brennan Mann wrote:
>
> > Hello Everybody,
> >
> > Can PHP call a DLL file? If so, do you know where I might be able to
> > find an example?
> >
> > Thanks Again,
> > Brennan
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
echo basename("Http://www.host.com/testfile.php");
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Rodrigo San Martin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> "Http://www.host.com/testfile.php"
>
> Need to get the filename "testfile.php".
>
> How do i do that???
>
> ------------------------------------------
> Rodrigo San Martin
> Institutt for datateknologi og informatikk
>
>
>
>
>
--- End Message ---
--- Begin Message ---
Hi
The problem I am having is as follows:
I setup PHP with IIS and it seems to work fine. I am creating a Intranet
site and would like to obtain the user logged on to the networks
username. I have setup basic auth but when I visit the site it asks me
for my username and password before I can get in. Integrated Windows
Auth is turned off. When I turn it on and try to login it says login
failed. I know that ASP can have a script added to the page to turn pass
through auth but I need one for PHP.
I am using $HTTP_SERVER_VARS["LOGON_USER"] to get the username and it
works when I login. I just need to get rid of the login box.
Thanks for your help in advance.
Shaun Garriock
*** The contents of this message are confidential and are intended for the addressee
only. The views expressed in this message do not necessarily represent those of Robert
Gordon's College. Electronic mail transmission is not guaranteed to be secure,
therefore, Robert Gordon's College does not accept liability for the contents of this
transmission. This message does not form a legal binding contract. ***
--- End Message ---
--- Begin Message ---
it's to do with probably folder permissions, the folder all your web files
are should have IUSR_machinename added to the folder with full rights, the
login box should then not appear...
"Shaun Garriock" <[EMAIL PROTECTED]> wrote in message
018301c2954d$265b4010$c101a8c0@rgcweb01">news:018301c2954d$265b4010$c101a8c0@rgcweb01...
Hi
The problem I am having is as follows:
I setup PHP with IIS and it seems to work fine. I am creating a Intranet
site and would like to obtain the user logged on to the networks
username. I have setup basic auth but when I visit the site it asks me
for my username and password before I can get in. Integrated Windows
Auth is turned off. When I turn it on and try to login it says login
failed. I know that ASP can have a script added to the page to turn pass
through auth but I need one for PHP.
I am using $HTTP_SERVER_VARS["LOGON_USER"] to get the username and it
works when I login. I just need to get rid of the login box.
Thanks for your help in advance.
Shaun Garriock
*** The contents of this message are confidential and are intended for the
addressee only. The views expressed in this message do not necessarily
represent those of Robert Gordon's College. Electronic mail transmission is
not guaranteed to be secure, therefore, Robert Gordon's College does not
accept liability for the contents of this transmission. This message does
not form a legal binding contract. ***
--- End Message ---
--- Begin Message ---
Thanks for all.
A question about installation under Win32 system.
In the document at this link :
http://www.thickbook.com/extra/php_apachephp4_win.phtml explain very well
how to configure PHP in CGI mode with Apache.
In the document I read this:
3.Move the php4ts.dll file to C:\WINDOWS\SYSTEM\ or wherever you
usually put your *.dll files.
In my env (WinNT 5.0) I have moved this object php4ts.dll in my system root
like D:\WINNT\system32\.....
Question:
It is possibile to link this object php4ts.dll without move it to system
root? and php interpreter work fine in any case?
It is possible to call it in the path or directory where php it is installed
as like C:\php\?
Thanks for all.
ciao Franco.
>
--- End Message ---
--- Begin Message ---
Franco
Yes it is entirely possible to get PHP to work in CGI mode with NOTHING in
your windows or system directory. I often set up win machines with
everything under the C:\PHP directory including the php.ini file and all
DLLs, sessiondata and uploadtemp dirs and it works a treat and is a cleaner
install.
Cheers CD
----- Original Message -----
From: "Franco Pozzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 12:24 AM
Subject: [PHP-WIN] Installation question about : PHP4TS.DLL & PHP4TS.LIB
> Thanks for all.
>
> A question about installation under Win32 system.
>
> In the document at this link :
> http://www.thickbook.com/extra/php_apachephp4_win.phtml explain very well
> how to configure PHP in CGI mode with Apache.
>
> In the document I read this:
>
> 3.Move the php4ts.dll file to C:\WINDOWS\SYSTEM\ or wherever you
> usually put your *.dll files.
>
> In my env (WinNT 5.0) I have moved this object php4ts.dll in my system
root
> like D:\WINNT\system32\.....
>
> Question:
>
> It is possibile to link this object php4ts.dll without move it to system
> root? and php interpreter work fine in any case?
>
> It is possible to call it in the path or directory where php it is
installed
> as like C:\php\?
>
> Thanks for all.
>
> ciao Franco.
>
>
>
> >
>
--- End Message ---
--- Begin Message ---
How i can check who is on line?
mst
--- End Message ---
--- Begin Message ---
thnx yet again pal .....
> No probs buddy.
> Perhaps you have an IM program loaded?
mmmmm do u mean instant messenger thinggy ....
ya ive got it on my machine ....
is THAT hinderrin my file upload sumhow ????
:S
2ndly ..... move_uploaded_file() aint workin either .....
i keep gettin the same god fo saken error .....
:(
:'(
i ve gotta make dis creepy upload thinggy work ....
else im doomed .... :'(
vat else can i try ????
thnx a mill .....
despreate as ever ...
toby ......
--- Dash McElroy <[EMAIL PROTECTED]> wrote: > Toby,
>
> Your ISP may be using 'safe_mode'. Try the move_uploaded_file
> function()
> instead of copy(). This is taken off php.net/move_uploaded_file:
>
> Note: move_uploaded_file() is not affected by the normal
> safe-mode
> UID-restrictions. This is not unsafe because move_uploaded_file()
> only
> operates on files uploaded via PHP.
>
> Hope this helps...
>
> -Dash
>
> *** NEWSFLASH ***
> Russian tanks steamrolling through New Jersey!!!! Details at
> eleven!
>
> On Sun, 24 Nov 2002, [iso-8859-1] toby z wrote:
>
> > Hi all
> > I am trying to upload a file. It works fine on my local Apache,
> but
> > gives me "Permission denied to create file" error on my online
> host..
> > Any clue???
> >
> > $file = $_FILES['userfile']['tmp_name'];
> > if (is_uploaded_file($file))
> > print_r("Copying ".$file);
> > if (copy($file, "./files/". $_FILES['userfile']['name']))
> > echo("Success");
> >
> > else
> > echo("Failure");
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Hi all,
I have file upload working on my NT/Lasso/PHP site and want to restrict the
type of file being uploaded to either PDF, TIF or ZIP.
My code sofar is:
<?
$u_ext = "error";
$location ="http://mysite/upload_confirm.lasso?nj=" . $nj;
$file_dir="e:\\upload\\";
foreach($HTTP_POST_FILES as $file_name => $file_array){
if($file_array['type']=="application/octet-stream"){
$u_ext = ".tif";
}
if($file_array['type']=="application/pdf"){
$u_ext = ".pdf";
}
if($file_array['type']=="application/x-zip-compressed"){
$u_ext = ".zip";
}
if($u_ext=="error"){
die( "<h1>You have tried to upload a file that is not 'pdf', 'zip' or
'tif'. Please go back and try again.</h1>\n");
}
if(is_uploaded_file($file_array['tmp_name'])){
move_uploaded_file($file_array['tmp_name'], "$file_dir/$nj".$u_ext)
or die ("Sorry, unable to upload the file at this time - please try
again
later.");
header("Location: $location");
}
}
?>
Although the above script works, octet-stream covers more than just tif
files.
Any clues?
Cheers
George
===
George Pitcher
HERON Technical Manager
Ingenta plc
23-38 Hythe Bridge Street, Oxford, OX1 2ET
T +44 (0)1865 799137 direct
T +44 (0)1865 799000 switchboard
F +44 (0)1865 799134
E [EMAIL PROTECTED]
www.ingenta.com
Ingenta: Empowering the exchange of academic and professional content
online.
--- End Message ---
--- Begin Message ---
use 'image/tiff' instead...
"George Pitcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I have file upload working on my NT/Lasso/PHP site and want to restrict
the
> type of file being uploaded to either PDF, TIF or ZIP.
>
>
> My code sofar is:
>
> <?
> $u_ext = "error";
> $location ="http://mysite/upload_confirm.lasso?nj=" . $nj;
> $file_dir="e:\\upload\\";
> foreach($HTTP_POST_FILES as $file_name => $file_array){
> if($file_array['type']=="application/octet-stream"){
> $u_ext = ".tif";
> }
> if($file_array['type']=="application/pdf"){
> $u_ext = ".pdf";
> }
> if($file_array['type']=="application/x-zip-compressed"){
> $u_ext = ".zip";
> }
> if($u_ext=="error"){
> die( "<h1>You have tried to upload a file that is not 'pdf', 'zip' or
> 'tif'. Please go back and try again.</h1>\n");
> }
> if(is_uploaded_file($file_array['tmp_name'])){
> move_uploaded_file($file_array['tmp_name'], "$file_dir/$nj".$u_ext)
> or die ("Sorry, unable to upload the file at this time - please try again
> later.");
> header("Location: $location");
> }
> }
> ?>
>
> Although the above script works, octet-stream covers more than just tif
> files.
> Any clues?
>
> Cheers
>
> George
>
> ===
>
> George Pitcher
> HERON Technical Manager
> Ingenta plc
> 23-38 Hythe Bridge Street, Oxford, OX1 2ET
> T +44 (0)1865 799137 direct
> T +44 (0)1865 799000 switchboard
> F +44 (0)1865 799134
> E [EMAIL PROTECTED]
>
> www.ingenta.com
> Ingenta: Empowering the exchange of academic and professional content
> online.
>
--- End Message ---
--- Begin Message ---
Brian,
Thanks. However, I have just solved it by using stristr() instead.
Works a treat.
George
> -----Original Message-----
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: 26 November 2002 4:26 pm
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: File Upload - extension filtering
>
>
> use 'image/tiff' instead...
>
> "George Pitcher" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi all,
> >
> > I have file upload working on my NT/Lasso/PHP site and want to restrict
> the
> > type of file being uploaded to either PDF, TIF or ZIP.
> >
> >
> > My code sofar is:
> >
> > <?
> > $u_ext = "error";
> > $location ="http://mysite/upload_confirm.lasso?nj=" . $nj;
> > $file_dir="e:\\upload\\";
> > foreach($HTTP_POST_FILES as $file_name => $file_array){
> > if($file_array['type']=="application/octet-stream"){
> > $u_ext = ".tif";
> > }
> > if($file_array['type']=="application/pdf"){
> > $u_ext = ".pdf";
> > }
> > if($file_array['type']=="application/x-zip-compressed"){
> > $u_ext = ".zip";
> > }
> > if($u_ext=="error"){
> > die( "<h1>You have tried to upload a file that is not 'pdf', 'zip' or
> > 'tif'. Please go back and try again.</h1>\n");
> > }
> > if(is_uploaded_file($file_array['tmp_name'])){
> > move_uploaded_file($file_array['tmp_name'], "$file_dir/$nj".$u_ext)
> > or die ("Sorry, unable to upload the file at this time - please
> try again
> > later.");
> > header("Location: $location");
> > }
> > }
> > ?>
> >
> > Although the above script works, octet-stream covers more than just tif
> > files.
> > Any clues?
> >
> > Cheers
> >
> > George
> >
> > ===
> >
> > George Pitcher
> > HERON Technical Manager
> > Ingenta plc
> > 23-38 Hythe Bridge Street, Oxford, OX1 2ET
> > T +44 (0)1865 799137 direct
> > T +44 (0)1865 799000 switchboard
> > F +44 (0)1865 799134
> > E [EMAIL PROTECTED]
> >
> > www.ingenta.com
> > Ingenta: Empowering the exchange of academic and professional content
> > online.
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
using the mime-type is safer ;)
"George Pitcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Brian,
>
> Thanks. However, I have just solved it by using stristr() instead.
>
> Works a treat.
>
> George
>
> > -----Original Message-----
> > From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> > Sent: 26 November 2002 4:26 pm
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Re: File Upload - extension filtering
> >
> >
> > use 'image/tiff' instead...
> >
> > "George Pitcher" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi all,
> > >
> > > I have file upload working on my NT/Lasso/PHP site and want to
restrict
> > the
> > > type of file being uploaded to either PDF, TIF or ZIP.
> > >
> > >
> > > My code sofar is:
> > >
> > > <?
> > > $u_ext = "error";
> > > $location ="http://mysite/upload_confirm.lasso?nj=" . $nj;
> > > $file_dir="e:\\upload\\";
> > > foreach($HTTP_POST_FILES as $file_name => $file_array){
> > > if($file_array['type']=="application/octet-stream"){
> > > $u_ext = ".tif";
> > > }
> > > if($file_array['type']=="application/pdf"){
> > > $u_ext = ".pdf";
> > > }
> > > if($file_array['type']=="application/x-zip-compressed"){
> > > $u_ext = ".zip";
> > > }
> > > if($u_ext=="error"){
> > > die( "<h1>You have tried to upload a file that is not 'pdf', 'zip' or
> > > 'tif'. Please go back and try again.</h1>\n");
> > > }
> > > if(is_uploaded_file($file_array['tmp_name'])){
> > > move_uploaded_file($file_array['tmp_name'], "$file_dir/$nj".$u_ext)
> > > or die ("Sorry, unable to upload the file at this time - please
> > try again
> > > later.");
> > > header("Location: $location");
> > > }
> > > }
> > > ?>
> > >
> > > Although the above script works, octet-stream covers more than just
tif
> > > files.
> > > Any clues?
> > >
> > > Cheers
> > >
> > > George
> > >
> > > ===
> > >
> > > George Pitcher
> > > HERON Technical Manager
> > > Ingenta plc
> > > 23-38 Hythe Bridge Street, Oxford, OX1 2ET
> > > T +44 (0)1865 799137 direct
> > > T +44 (0)1865 799000 switchboard
> > > F +44 (0)1865 799134
> > > E [EMAIL PROTECTED]
> > >
> > > www.ingenta.com
> > > Ingenta: Empowering the exchange of academic and professional content
> > > online.
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--- End Message ---
--- Begin Message ---
Brian,
Possibly so, but I have a small number of authenticated users who are
unlikely to do anything malicious.
Cheers
George
> -----Original Message-----
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: 26 November 2002 4:34 pm
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Re: File Upload - extension filtering
>
>
> using the mime-type is safer ;)
>
> "George Pitcher" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Brian,
> >
> > Thanks. However, I have just solved it by using stristr() instead.
> >
> > Works a treat.
> >
> > George
> >
> > > -----Original Message-----
> > > From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> > > Sent: 26 November 2002 4:26 pm
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] Re: File Upload - extension filtering
> > >
> > >
> > > use 'image/tiff' instead...
> > >
> > > "George Pitcher" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > Hi all,
> > > >
> > > > I have file upload working on my NT/Lasso/PHP site and want to
> restrict
> > > the
> > > > type of file being uploaded to either PDF, TIF or ZIP.
> > > >
> > > >
> > > > My code sofar is:
> > > >
> > > > <?
> > > > $u_ext = "error";
> > > > $location ="http://mysite/upload_confirm.lasso?nj=" . $nj;
> > > > $file_dir="e:\\upload\\";
> > > > foreach($HTTP_POST_FILES as $file_name => $file_array){
> > > > if($file_array['type']=="application/octet-stream"){
> > > > $u_ext = ".tif";
> > > > }
> > > > if($file_array['type']=="application/pdf"){
> > > > $u_ext = ".pdf";
> > > > }
> > > > if($file_array['type']=="application/x-zip-compressed"){
> > > > $u_ext = ".zip";
> > > > }
> > > > if($u_ext=="error"){
> > > > die( "<h1>You have tried to upload a file that is not
> 'pdf', 'zip' or
> > > > 'tif'. Please go back and try again.</h1>\n");
> > > > }
> > > > if(is_uploaded_file($file_array['tmp_name'])){
> > > > move_uploaded_file($file_array['tmp_name'], "$file_dir/$nj".$u_ext)
> > > > or die ("Sorry, unable to upload the file at this time - please
> > > try again
> > > > later.");
> > > > header("Location: $location");
> > > > }
> > > > }
> > > > ?>
> > > >
> > > > Although the above script works, octet-stream covers more than just
> tif
> > > > files.
> > > > Any clues?
> > > >
> > > > Cheers
> > > >
> > > > George
> > > >
> > > > ===
> > > >
> > > > George Pitcher
> > > > HERON Technical Manager
> > > > Ingenta plc
> > > > 23-38 Hythe Bridge Street, Oxford, OX1 2ET
> > > > T +44 (0)1865 799137 direct
> > > > T +44 (0)1865 799000 switchboard
> > > > F +44 (0)1865 799134
> > > > E [EMAIL PROTECTED]
> > > >
> > > > www.ingenta.com
> > > > Ingenta: Empowering the exchange of academic and
> professional content
> > > > online.
> > > >
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I'm having this exact same problem. I've tried 'localhost' and '127.0.0.1'
in the url with the same results. Any other ideas that might help me?
Dave Dixon
"Pascal S." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You are right on. I was trying to execute the code by dragging and
dropping
> the file into an IE window. Accessing it through the localhost path works
> great.
>
> Thanks so much for your help.
>
> Pascal
>
> "Phil Driscoll" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tuesday 24 September 2002 5:24 am, Pascal S. wrote:
> > I installed PHP 4.2.3 using the installer from PHP.net
> >
> > I can send the test.php file to the php.exe, and I get the right html
> code.
> >
> > However, trying to open the same test.php in IE 6 won't produce
anything.
> > The window gets the right title, all html is displayed right, but
nothing
> > between <?php ?> is executed.
> >
> > I have tried to change most of the settings in Internet Information
> > Services, the extension .php under configuration is also set to
> > C:\PHP\php.exe, etc...
> >
> > What should I look at next?
> Are you opening the file as c:\php\test.php or as
http://localhost/test.php?
> If you view source, do you see the php source code?
> --
> Phil Driscoll
>
>
--- End Message ---
--- Begin Message ---
This is a silly question:
If i want to update from version 3 to 4 on a win2k server, do i only
download the php instaler and execute it? Or should i uninstall the current
version of php and after that install the new version?
Thank you for your help.
Omar
--- End Message ---
--- Begin Message ---
Hi,
Can someone please help with my PHP installation?
The install.txt said I just need to add these in my Apache config file, but
there is no "sapi" sub-directory exists under c:\php and I can't find
php4apache.dll.
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
I try the window installer for Window 2000, here is my configuration:
PHP4.2.3
Apache 2.0.40
Window 2000
Thanks for any help.
--- End Message ---
--- Begin Message ---
goto www.php.net and download the zip file also ;)
"Jack R." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Can someone please help with my PHP installation?
>
> The install.txt said I just need to add these in my Apache config file,
but
> there is no "sapi" sub-directory exists under c:\php and I can't find
> php4apache.dll.
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
>
> I try the window installer for Window 2000, here is my configuration:
> PHP4.2.3
>
> Apache 2.0.40
>
> Window 2000
>
> Thanks for any help.
>
>
--- End Message ---
--- Begin Message ---
I'm interested in learning PHP. I got a book with the apache server on it and it's got
PHP I can't get anything to work though! I'm pretty fluent in HTML (Big whoop huh?)
and I'm currently in our AP C++ class in school. If anyone could help me get started,
that would be great!
Ryan Callaway
--- End Message ---
--- Begin Message ---
What version of Apache and PHP are in the book?
--
Scott Carr
Documentation Maintainer
http://documentation.openoffice.org
OpenOffice.org
Quoting [EMAIL PROTECTED]:
> I'm interested in learning PHP. I got a book with the apache server on it and
> it's got PHP I can't get anything to work though! I'm pretty fluent in HTML
> (Big whoop huh?) and I'm currently in our AP C++ class in school. If anyone
> could help me get started, that would be great!
>
> Ryan Callaway
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
I have successfully created a web app that fills a FDF Tax form out with
data from MSSQL. However there seems to be a dependency that is created
between the PDF form I saved with PHP (the filled out tax form) onto the
server and the template PDF (template tax form). I ideally would like to
email the completed tax form as a PDF to the individuals but I can't do it
without sending the template with it.
Am I missing something?
Here is an excerpt of the code I'm using:
// CREATE ARRAY OF FORM FIELDS AND ASSIGN DATA TO THE CORRECT FIELDS
$pdf_data = array(
"f1-1"=>$date1,
"f1-2"=>$date2,
"f1-3"=>$date3,
"f1-4"=>$ssNum,
"f1-5"=>$name,
"f1-6"=>$corpID1,
"f1-7"=>$corpID2,
"c1-5"=>"On",
"f1-8"=>$divisionAddress,
"f1-15"=>$preparer,
"f1-18"=>$payments,
"f1-35"=>$contrib401k,
"f1-112"=>$IDs,
"f2-28"=>$supplemental1,
"f2-29"=>$supplemental2);
// FILL IN FIELDS WITH DATA
$fdf = "%FDF-1.2\n%????\n";
$fdf .= "1 0 obj \n<< /FDF ";
$fdf .= "<< /Fields [\n";
foreach($pdf_data as $key => $val)
$fdf .= "<< /V ($val)/T ($key) >> \n";
$fdf .= "]\n/F ($pdf_template) >>";
$fdf .= ">>\nendobj\ntrailer\n<<\n";
$fdf .= "/Root 1 0 R \n\n>>\n";
$fdf .= "%%EOF";
// CREATE FILENAME
$filename = $row['First_Name'] . $row['Last_Name'] . "_" . $row['Tatum_ID']
. ".pdf";
// CREATE PDF
$fdffp = fopen($filename, "w");
fwrite($fdffp, $fdf, strlen($fdf));
fclose($fdffp);
Should I be using something different to save the resulting file?
Thanks!
Ron
--- End Message ---