php-windows Digest 3 Dec 2003 19:12:05 -0000 Issue 2027
Topics (messages 22282 through 22303):
Re: Server for PHP and ASP (and MySQL) ??
22282 by: Peter Richards
22283 by: Peter Richards
22285 by: Seung Hwan Kang
Re: Cannot find ODBC32.dll
22284 by: Josh Gregorio
Re: ereg-replace removing whitespace...
22286 by: Bobo Wieland
Re: compiling extensions
22287 by: Piotr Pluciennik
22288 by: Svensson, B.A.T. (HKG)
22291 by: Piotr Pluciennik
22292 by: Svensson, B.A.T. (HKG)
not run shell command in win2k3 and iis6
22289 by: s
PHP ftp_put source_file values
22290 by: Brent
22294 by: Svensson, B.A.T. (HKG)
22295 by: Svensson, B.A.T. (HKG)
Problem printing on server side
22293 by: Ricardo J. Oliveira
Flash and PHP 4.3.4
22296 by: PETCOL
22299 by: Bobo Wieland
Windows Dll
22297 by: Kimberly Tully
22298 by: Svensson, B.A.T. (HKG)
22300 by: Ignatius Reilly
Changing INI information inline
22301 by: Herhuth, Ron
22302 by: J.Veenhuijsen
/php-4.3.4-Win32/php.exe/index.php not found
22303 by: Miroslav Majdan
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,
On Wed, 03 Dec 2003 01:48:07 +1100, [EMAIL PROTECTED] (Seung Hwan Kang)
wrote:
>Yes, you can use both ASP & PHP on PWS or IIS. This manual will do for you.
>
>http://www.php.net/manual/en/install.iis.php
>
Thanks for the link, a very interesting article. Most people are using
IIS and/or have Win2k or more recent OS. I would like to be able to
use PHP, ASP, MySQL, all on Win95. I guess I'm asking too much.
Thanks,
Peter
--- End Message ---
--- Begin Message ---
Hi,
On Tue, 2 Dec 2003 22:50:19 -0500, [EMAIL PROTECTED] (H Marc Bower)
wrote:
>Perhaps the better solution is to move to a somewhat... newer O/S? :)
Yes, that would be good, but the cheapest I have seen (for example)
W2K Pro, is AUD $300, and that's about $300 more than I have. :(
>I
>have a P3-450 that I do testing on, using PHP, ASP, and mySQL and it's run
>both Windows XP Pro and Windows 2000 Server at various times. If all you're
>doing is serving up webpages, that doesn't suck up much in the way of
>resources and you should be alright. If your computer is less powerful than
>that, I dunno. I had XP Pro running on a P166 at one point, but it was kind
>of scary. :)
The computer is only a P2-350 and it's very sluggish, there is _so_
much software on it, and very little disk space. Ideally, I'd like to
setup a *nix box and use that for PHP/MySQL, with say Apache,etc, but
I don't think there is any way I could also use that for the ASP work.
The reason why I want a "local" web server is it saves a lot of
development/testing time to get about 90% of a project done and tested
locally, rather than having to (for example) modify 2 lines of code,
FTP the files to the website/s, test it, change the code again,
upload, etc,etc, what a real pain it is. Also, doing all this locally
saves a lot on bandwidth, so that great (less $$), and if the net is
down, I can still keep doing development/testing work.
So, it seems I'm 'stuck' with a Win box for the ASP stuff, but would
be better off with even using my old P-100 with 64Mb ram as a *nix web
server, to be used for all the PHP/MySQL development work.
Thanks,
Peter
--- End Message ---
--- Begin Message ---
Are you looking for free? Well, you may try linux. Well, here is one
of the project that allows you to use ASP too on linux.
http://www.apache-asp.org/
By the way, chilisoft (known as ASP on linux) is now not free. It sold
to Sun.
http://www.chilisoft.com/
Peter Richards wrote:
Hi,
On Tue, 2 Dec 2003 22:50:19 -0500, [EMAIL PROTECTED] (H Marc Bower)
wrote:
Perhaps the better solution is to move to a somewhat... newer O/S? :)
Yes, that would be good, but the cheapest I have seen (for example)
W2K Pro, is AUD $300, and that's about $300 more than I have. :(
I
have a P3-450 that I do testing on, using PHP, ASP, and mySQL and it's run
both Windows XP Pro and Windows 2000 Server at various times. If all you're
doing is serving up webpages, that doesn't suck up much in the way of
resources and you should be alright. If your computer is less powerful than
that, I dunno. I had XP Pro running on a P166 at one point, but it was kind
of scary. :)
The computer is only a P2-350 and it's very sluggish, there is _so_
much software on it, and very little disk space. Ideally, I'd like to
setup a *nix box and use that for PHP/MySQL, with say Apache,etc, but
I don't think there is any way I could also use that for the ASP work.
The reason why I want a "local" web server is it saves a lot of
development/testing time to get about 90% of a project done and tested
locally, rather than having to (for example) modify 2 lines of code,
FTP the files to the website/s, test it, change the code again,
upload, etc,etc, what a real pain it is. Also, doing all this locally
saves a lot on bandwidth, so that great (less $$), and if the net is
down, I can still keep doing development/testing work.
So, it seems I'm 'stuck' with a Win box for the ASP stuff, but would
be better off with even using my old P-100 with 64Mb ram as a *nix web
server, to be used for all the PHP/MySQL development work.
Thanks,
Peter
--- End Message ---
--- Begin Message ---
You can extract the file ODBC32.dll from the cabs on your win98 cdrom (the
cab files are like zip files, ie 'cabinets' that hold other compressed
files).
>From command.com change directories into <cdromdrive>\win98
dir win98*.cab | more
Note the first win98_??.cab file. On my disk it is win98_21.cab.
Then type
extract /a win98_21.cab odbc32.dll /l c:\windows\system <enter>
Make sure to substitute win98_21.cab with the first number on your disk
(Win98 Gold, SE, OEM, and Retail disks are all numbered a little
differently).
This will put a copy of the file into c:\windows\system.
The latest version of this file is included with the MDAC update v2.8.
http://support.microsoft.com/?kbid=828396 has more information.
It may be better to get the update, as the version on the win98 disk is
around 4 years old.
Josh
> Miroslav Majdan wrote:
>
> > I am using Win98. I have installed PHP-4.3.4-Win32. When I tried to run
> > php.exe, Windows printed a message "Cannon find ODBC32.dll". I really
> > didn't find that file on my computer. I tried an older PHP-3.0.17, but
> > with the same result.
> >
> > I read that PHP since 4.0 has built-in ODBC support so I don't know why
> > is my system asking for such a thing.
> >
> > The only change that I made to php.ini was changing extension_dir.
> >
> > I was searching for the file "odbc.dll" on Win98 instalation CD but that
> > file wasn't there.
> >
> > What shall I do?
--- End Message ---
--- Begin Message ---
You're code did the same thing my code did... In other words, it didn't
work... ;)
Again; a string "[/URUB] \n\n \n \t
\n Hello World" should read: "</strong><br />Hello World" after
ereg_replace... And I can't get it to work...
What is the difference between ereg_replace and preg_replace except regular
expression syntax and speed? Does preg_replace allways work without any
extensions in php?
.bobo
----- Original Message -----
From: "Justin Patrin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 10:20 PM
Subject: [PHP-WIN] Re: ereg-replace removing whitespace...
> I don't use ereg myself, but with preg_replace you could do:
>
> $str = preg_replace('/\[\/URUB\]\s*/', '</strong><br />', $str);
>
> Bobo Wieland wrote:
> > Hi...
> >
> > I'm trying to use ereg_replace to replace "[/URUB]" with "</strong><br
/>"
> >
> > The problem is that ther might, and might not, be any number of trailing
> > whitespaces after the [/URUB]-tag... Everything between the [/URUB] (and
the
> > tag itself) and the next alphanumeric char should be replaced with
> > "<strong><br />"
> >
> > So far I use:
> >
> > $str = ereg_replace("(\[/URUB\])+( |\n|\t|\r)*","</strong><br />",$str);
> >
> > which doesn't work, leaving a lot of whitespaces behind...
> >
> > Thanks for your help...
> >
> >
> > .bobo
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
OK, we misunderstood I'm afraid :-) It's not so
easy...
I was not asking about uncommenting php.ini config
lines, but about compiling extensions from C source
code in VC++ environment.
Regards
Piotr
--- Seung Hwan Kang <[EMAIL PROTECTED]> wrote:
> Open yourwindowssystems/php.ini
>
> then uncomment it. I mean remove ;
>
> eg.
>
> ;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_cpdf.dll
> ;extension=php_crack.dll
> ;extension=php_curl.dll
> .
> .
> .
> .
>
> :)
>
> Piotr Pluciennik wrote:
>
> > Hi,
> >
> > I've already compiled php and now is time for some
> extensions. So, what
> > should I do, where can I find info on how to do it
> under windows?
> >
> > Waiting to hear from you asap...
> >
> > Piotr
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
--- End Message ---
--- Begin Message ---
Are you talking about your own extension or a third party extension?
On Tue, 2003-12-02 at 16:40, Piotr Pluciennik wrote:
> Hi,
>
> I've already compiled php and now is time for some extensions. So, what
> should I do, where can I find info on how to do it under windows?
>
> Waiting to hear from you asap...
>
> Piotr
--- End Message ---
--- Begin Message ---
Hi,
I'm thinking about both cases. This time I'd like to
compile GD with some modifications and I'd like also
prepare extension with my own functions.
Regards
Piotr
--- "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
wrote:
> Are you talking about your own extension or a third
> party extension?
>
> On Tue, 2003-12-02 at 16:40, Piotr Pluciennik wrote:
> > Hi,
> >
> > I've already compiled php and now is time for some
> extensions. So, what
> > should I do, where can I find info on how to do it
> under windows?
> >
> > Waiting to hear from you asap...
> >
> > Piotr
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
--- End Message ---
--- Begin Message ---
OK, maybe this is what you need to do then(?):
In the first case you need to create a DLL project in VC++
(I understand you are using VC++?), and when you work with
the PHP project you need to include a header file that
describe the DLL functions. In the second case you need to
get the header file from the 3rd party provider which you
then can include in the php project.
//Anders
On Wed, 2003-12-03 at 13:00, Piotr Pluciennik wrote:
> Hi,
>
> I'm thinking about both cases. This time I'd like to
> compile GD with some modifications and I'd like also
> prepare extension with my own functions.
>
> Regards
> Piotr
>
>
> --- "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
> wrote:
> > Are you talking about your own extension or a third
> > party extension?
> >
> > On Tue, 2003-12-02 at 16:40, Piotr Pluciennik wrote:
> > > Hi,
> > >
> > > I've already compiled php and now is time for some
> > extensions. So, what
> > > should I do, where can I find info on how to do it
> > under windows?
> > >
> > > Waiting to hear from you asap...
> > >
> > > Piotr
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
--- End Message ---
--- Begin Message ---
My phpscript with external command ran OK on Win2K server with IIS5
but when I moved them to Win2K3 and IIS6
none shell command could not be executed.
Have anyboby same ideas?
--
Simos Anagnostakis
Dept. of Primary Education
University of Crete
Campus Rethymno 74100
tel +302831077623 fax 77596
--- End Message ---
--- Begin Message ---
Hi all,
The following statement.
$upload = ftp_put($conn_id,'test123.123','c:\test123.txt', FTP_BINARY);
does not work. I'm trying to send a file on my local C drive to the
web\ftp server!! It works fine if I put.
$upload = ftp_put($conn_id,'test123.123','test123.txt', FTP_BINARY);
and make sure the test123.txt file is on the web\ftp server in the same dir
as the code.
The command puts the test123.123 file in the root of the web\ftp server.
I could have done that using the copy command however!!!
But I cant seem to send one from my c drive to the server. I have tried
c:/test123.txt and c:\\test123.txt etc thanks to support from this group
but didn't seem to help. Does anyone know wot i'm on about!!!
hope so :)
Brent.
--- End Message ---
--- Begin Message ---
I am not sure how PHP work with this, but maybe when you do
a ftp put with only the file name your file will end up in the
virtual root directory of your ftp or www site. This would then
imply that you will not be able to refer to a physical hard
drive partition on the system, but you will need refer to the
virtual directory structure of the ftp or www site you are
targeting with the command.
On Wed, 2003-12-03 at 12:44, Brent wrote:
> Hi all,
>
> The following statement.
> $upload = ftp_put($conn_id,'test123.123','c:\test123.txt', FTP_BINARY);
> does not work. I'm trying to send a file on my local C drive to the
> web\ftp server!! It works fine if I put.
> $upload = ftp_put($conn_id,'test123.123','test123.txt', FTP_BINARY);
> and make sure the test123.txt file is on the web\ftp server in the same dir
> as the code.
> The command puts the test123.123 file in the root of the web\ftp server.
> I could have done that using the copy command however!!!
> But I cant seem to send one from my c drive to the server. I have tried
> c:/test123.txt and c:\\test123.txt etc thanks to support from this group
> but didn't seem to help. Does anyone know wot i'm on about!!!
> hope so :)
>
> Brent.
--- End Message ---
--- Begin Message ---
Seams like a answered the wrong question. :)
Anyhow, I see that the file names differ in your
example: e.g. test123.txt v.s. test123.123. Is
that of any influence?
On Wed, 2003-12-03 at 14:02, Svensson, B.A.T. (HKG) wrote:
> I am not sure how PHP work with this, but maybe when you do
> a ftp put with only the file name your file will end up in the
> virtual root directory of your ftp or www site. This would then
> imply that you will not be able to refer to a physical hard
> drive partition on the system, but you will need refer to the
> virtual directory structure of the ftp or www site you are
> targeting with the command.
>
> On Wed, 2003-12-03 at 12:44, Brent wrote:
> > Hi all,
> >
> > The following statement.
> > $upload = ftp_put($conn_id,'test123.123','c:\test123.txt', FTP_BINARY);
> > does not work. I'm trying to send a file on my local C drive to the
> > web\ftp server!! It works fine if I put.
> > $upload = ftp_put($conn_id,'test123.123','test123.txt', FTP_BINARY);
> > and make sure the test123.txt file is on the web\ftp server in the same dir
> > as the code.
> > The command puts the test123.123 file in the root of the web\ftp server.
> > I could have done that using the copy command however!!!
> > But I cant seem to send one from my c drive to the server. I have tried
> > c:/test123.txt and c:\\test123.txt etc thanks to support from this group
> > but didn't seem to help. Does anyone know wot i'm on about!!!
> > hope so :)
> >
> > Brent.
--- End Message ---
--- Begin Message ---
Hi,
I am quite new with PHP, and I am having trouble having my server
printer to work. My server is Apache 1.3.28 on Windows XP connected to a
domain and I use a Domain printer.
I edited my php.ini file and unmarked the extension=php_printer.dll.
When I try to list my printers with the printer_list function with these
options PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE the array returned are
empty.
Can anyone tell me how to have a printer working?
Thanks a lot,
Ricardo
--- End Message ---
--- Begin Message ---
Any one know of any good tutorials for Flash into PHP 4.3.4 the Flash side
I'm O.K. with, just having problems with the PHP, think it's a version thing
?
Col
--- End Message ---
--- Begin Message ---
if you use sendAndLoad into a loadVars object in flash you can just have a
php script that prints a query string...
lets say you have the name "Robert" in a loadVars object names theName. So:
<flash code>
theName.name = "Robert";
</flash code>
now use the sendAndLoad with the POST-method and specify a php-file with the
following code:
<?php
function sayHello($theName) {
print("Hello ".$theName);
}
if (isset($_POST["name"])) {
sayHello($_POST["name"]);
}
?>
"PETCOL" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Any one know of any good tutorials for Flash into PHP 4.3.4 the Flash side
> I'm O.K. with, just having problems with the PHP, think it's a version
thing
> ?
>
> Col
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
Hi,
Can anyone help? I need to turn the source code for a PHP extension into a
Windows DLL.
I don't usually work in Windows and I don't have any idea how to get
started.
thanks,
Kimberly
--- End Message ---
--- Begin Message ---
That depends on the development environ you use. And that is?
On Wed, 2003-12-03 at 14:33, Kimberly Tully wrote:
> Hi,
>
> Can anyone help? I need to turn the source code for a PHP extension into
> a Windows DLL.
>
> I don't usually work in Windows and I don't have any idea how to get
> started.
>
> thanks,
> Kimberly
--- End Message ---
--- Begin Message ---
There is a chap who maintains DLL for PHP extensions:
http://kromann.info/php4.php
Ignatius
_________________________
----- Original Message -----
From: "Kimberly Tully" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 14:33
Subject: [PHP-WIN] Windows Dll
> Hi,
>
> Can anyone help? I need to turn the source code for a PHP extension into a
> Windows DLL.
>
> I don't usually work in Windows and I don't have any idea how to get
> started.
>
> thanks,
> Kimberly
>
--- End Message ---
--- Begin Message ---
I remember there is a way to change php.ini information temporarily on a
page...specifically I want to change the sent from email address on a page
that will email a confirmation message...I forgot how to do it though.
Does anyone know how to do this?
Thanks,
Ron
--- End Message ---
--- Begin Message ---
ini_set("sendmail_from","[EMAIL PROTECTED]");
Jochem
Ron Herhuth wrote:
I remember there is a way to change php.ini information temporarily on a
page...specifically I want to change the sent from email address on a page
that will email a confirmation message...I forgot how to do it though.
Does anyone know how to do this?
Thanks,
Ron
--- End Message ---
--- Begin Message ---
Hi.
I have configured php and apache 1.3.28 (apache 2.0.48) under Win98 like
this
php.ini:
extension-dir:/php-4.3.4-Win32/
httpd.conf:
ScriptAlias = "c:\htdocs"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php-4.3.4-Win32/php.exe"
In c:\htdocs I created simple index.php
I asked my browser (IE and Opera) for http://localhost/index.php and I
became a message:
"The requested URL /php-4.3.4-Win32/php.exe/info.php was not found on this
server."
When give localhost I became index.html which is correct.(apache works
with *.html files correctly)
I tried to change Action "../php.exe" to "../php.exe " (added space) so
that the request would look like php should open /index.php but it didn't
work.
Should I reconfigure php so that it would understand the request or what?
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--- End Message ---