php-windows Digest 1 Nov 2001 09:27:20 -0000 Issue 832

Topics (messages 10136 through 10143):

multidimensional array
        10136 by: afan
        10138 by: Justin Garrett

PHP4, Xitami, NT4 Workstation issues
        10137 by: Erik H. Mathy

PHP.ini problems
        10139 by: Harry Blohm
        10142 by: Justin Garrett

system()
        10140 by: Ross Fleming
        10141 by: Ross Fleming

Re: php_mcrypt.dll ?
        10143 by: Liquidice

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]


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


Hi all,
to put an array into database I use serialize/unserialize function.
How can I put a multidimensional array?

Thanks for any help!

Afan




Should be able to do it the same way you do a one dimensional array.

--
Justin Garrett

"Afan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
> to put an array into database I use serialize/unserialize function.
> How can I put a multidimensional array?
>
> Thanks for any help!
>
> Afan






Hey All!

        I hit a snag earlier today on something I've done a million times before.
Perhaps one of you might be able to lend a hand.

Situation:

        I use a Dell Latitude laptop for development. It's got pretty much
everything I need for my day to day needs. NT Workstation, mysql, mssql,
odbc drivers galore, Xitami, etc... Until now I've had PHP3 on it. There's
no particular reason that I haven't upgraded to PHP4. Lazy, I guess.
Anyways, today I downloaded the PHP4.0.6 zip and did the install.

        We all know the drill. Unzip into the menu of choice (D:/Php4/), copy over
the renamed php.ini file, copy over php4ts.dll, edit php.ini to suit, change
Xiatmi's default.cfg (.phtml=D:\Php4\php.exe), double check permissions,
fire up Xitami, test with a print("test"); or phpinfo();...done!

        Wrong. When I hit my test page with a web browser I get a blank screen. A
check of the source shows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

        Xitami's status continues to show activity for 30 seconds after the page
itself is done loading. My current max_execution time in php.ini is set to
240, in Xitami it's the same.

        The kicker is when I go to the command prompt I can fire off that page
manually and get results. My test code of:

<?
print("test\r\n");
?>

        gets me:

D:\PHP4>php.exe -e -f D:\work\moskal\oracle\ora_test.php
test

        This makes me think that, for some reason, Php4 and Xitami aren't really
communicating. But I'm not getting any errors, even though my error
reporting in php.ini is set to (error_reporting = E_ALL).

Any ideas?
- Erik





Hi,

    I'm running PHP4.06 on win2k server.. and PHP seems to work fine.
I'm running a Vbulletin and that mostly works like a pro. I find my that
I can't use any email function under Vbulletin. After chasing this
around for many day I believe the problem is that php.ini file is not
being read. When I use the phpinfo function it shows my SMTP set
localhost and does not reflect the sendmail_from email address I've
used.  Either the phpinfo does not report accurately or my php.ini file
is not being read.

    I have searched for a day thru all manner of PHP related sites and
have found others asking about this problem but whenever the problem
pertains to a win2k machine no one responds. According to phpinfo it is
looking for php.ini in the
c:\winnt directory ..which is where the dumb thing is and always has
been. I have removed ALL other files with a php and an .ini in the
name.  The only thing I see.. and it seems nearly impossible is the fact
that technically my the directory is name C:\WINNT all in uppercase and
the phpinfo refers to it in lowercase. Those are the same directories in
NT but not in unix.
I'm thinking that php was born of unix and somehow that is the root of
the problem.

HELP this is an absurd problem! Does anyone know where to find the
setting that controls what directory php.ini is expected to live ??

Help ?????

Harry





Use phpinfo() to see where PHP is looking for its config file.

--
Justin Garrett

"Harry Blohm" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
>     I'm running PHP4.06 on win2k server.. and PHP seems to work fine.
> I'm running a Vbulletin and that mostly works like a pro. I find my that
> I can't use any email function under Vbulletin. After chasing this
> around for many day I believe the problem is that php.ini file is not
> being read. When I use the phpinfo function it shows my SMTP set
> localhost and does not reflect the sendmail_from email address I've
> used.  Either the phpinfo does not report accurately or my php.ini file
> is not being read.
>
>     I have searched for a day thru all manner of PHP related sites and
> have found others asking about this problem but whenever the problem
> pertains to a win2k machine no one responds. According to phpinfo it is
> looking for php.ini in the
> c:\winnt directory ..which is where the dumb thing is and always has
> been. I have removed ALL other files with a php and an .ini in the
> name.  The only thing I see.. and it seems nearly impossible is the fact
> that technically my the directory is name C:\WINNT all in uppercase and
> the phpinfo refers to it in lowercase. Those are the same directories in
> NT but not in unix.
> I'm thinking that php was born of unix and somehow that is the root of
> the problem.
>
> HELP this is an absurd problem! Does anyone know where to find the
> setting that controls what directory php.ini is expected to live ??
>
> Help ?????
>
> Harry
>






Hi folks,

I've written a C program that takes input from stdin that I want to run from
a php script.  Whenever I want to run the program I give the command
parser.exe < filename.xyz
and it runs the program fine.

However, I want to do the same from inside a php script, no probs I thought,
system("parser.exe < filename.xyz");

but the program that I call receives now input. (ie filename.xyz is not
being fed to the program parser.exe

I figure it must be possible, because if I create a .bat file (run.bat) with
the line:
parser.exe < filename.xyz
in it and then run the batch file from php:
system("run.bat");
then it works fine, but it echo's the batch commands to the page which I
don't want.

Has anyone any ideas?  I can't for the life of me figure out how to get php
to run the command
parser.exe < filename.xyz      !!!!!!!

For simplicity at the moment, EVERYTHING is in htdocs.
Using win98/apache1.3.20/PHP4

Any help appreciated!!

Ross





OK it's not so important now, I've rewritten the C program to take the input
as an argument and handle all the file opening.

system("parser filename.xyz");

now works fine.

If anyone knows why
system("parser filename.xyz");
doesn't work though I'd be interested to hear.  anyone?

Ross

-----Original Message-----
From: Ross Fleming [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 01:36
To: PHP Windows mailing list
Subject: [PHP-WIN] system()


Hi folks,

I've written a C program that takes input from stdin that I want to run from
a php script.  Whenever I want to run the program I give the command
parser.exe < filename.xyz
and it runs the program fine.

However, I want to do the same from inside a php script, no probs I thought,
system("parser.exe < filename.xyz");

but the program that I call receives now input. (ie filename.xyz is not
being fed to the program parser.exe

I figure it must be possible, because if I create a .bat file (run.bat) with
the line:
parser.exe < filename.xyz
in it and then run the batch file from php:
system("run.bat");
then it works fine, but it echo's the batch commands to the page which I
don't want.

Has anyone any ideas?  I can't for the life of me figure out how to get php
to run the command
parser.exe < filename.xyz      !!!!!!!

For simplicity at the moment, EVERYTHING is in htdocs.
Using win98/apache1.3.20/PHP4

Any help appreciated!!

Ross


--
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]







I need this too ! :(

"Paul - Zenith Tech Inc" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Does anybody know where I can download the php_mcrypt.dll extension for
PHP
> 4.06??
>
> Many thanks,
> Paul
>
>




Reply via email to