php-windows Digest 5 Feb 2004 15:03:27 -0000 Issue 2108
Topics (messages 22732 through 22736):
Apache problem
22732 by: Frédéric HARDY
RE:[PHP-WIN]Thanks for everyone's help!
22733 by: Marlene Burckhalter
22734 by: Shannon Eric Peevey
Re: Converting from ASP to PHP
22735 by: Duane Lakoduk
Problem with form
22736 by: Disko_kex
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 ---
Hello !
When I start Apache, it said : [Wed Feb 04 10:38:19 2004] [warn] (2)No such file or
directory: exec() may not be safe
Have you got any solution ?
I'm using windows 98 SE, apache 1.3.29 and PHP 4.3.3.
Best regards,
Fred
===================================================================
Frederic HARDY Email: [EMAIL PROTECTED]
HEXANET SARL URL: http://www.hexanet.fr/
ZAC Les Charmilles Tel: +33 (0)3 26 79 30 05
3, allée Thierry Sabine Direct: +33 (0)3 26 61 77 84
BP 202 - 51686 REIMS CEDEX 2 FRANCE
===================================================================
--- End Message ---
--- Begin Message ---
Dear Svensson, B.A.T.(HKG),
Thank you for your professional advice. I did actually isolate the problem to a block
of code, took it out, and wrote better code with the help of someone who knows more
than I. Someone a lot like you, probably.
Thanks,
Marlene
--- End Message ---
--- Begin Message ---
Marlene Burckhalter wrote:
Dear Svensson, B.A.T.(HKG),
Thank you for your professional advice. I did actually isolate the problem to a block of code, took it out, and wrote better code with the help of someone who knows more than I. Someone a lot like you, probably.
Yeah, I find that B.A.T's replies can be condescending... Might take a
note from Stas Bekman, who is running the mod_perl2 project. He is
always approachable and polite, (even for newbies...:) ).
Best regards,
speeves
cws
--- End Message ---
--- Begin Message ---
Thanks for the info, Trevor. I will check out the links you provided below.
fyi, on the LDAP stuff, one thing I had problems with at first in ASP was
the account to use for access the Exchange server. Once I set
authentication to basic and supplied an account with the necessary
permissions on Exchange server for the script, it worked just fine. Seems
likely this would be an issue in PHP as well.
I will let the you know if/when I have successfully used the LDAP and Remote
scripting functions.
Thanks again, to all.
> -----Original Message-----
> From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 03, 2004 1:23 PM
> To: PHP-WIN
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Converting from ASP to PHP
>
>
>
>
> > -----Original Message-----
> > From: Duane Lakoduk [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 02, 2004 3:27 PM
> >
> > I have been developing ASP sites and applications for about 7 years.
> > Recently, I have been considering doing some of my new
> > development projects in PHP. Depending on the learning curve, I
> > will have to support and continue ASP for some time. I know there
> > a lots of resources available for PHP and I have a few of the
> > recommeded books, documentation, etc.
>
> I think you'll find the learning curve quite easy. I went
> from ASP and
> various other scripting languages as a background, to PHP and I'm
> constantly amazed at the flexibility and functionality of PHP. Every
> time I think "God, I'm goinna have to create a function to do such and
> such", PHP usually already has something built into it. A
> great relief.
> I'm just used to having to manually create a lot of basic
> functions like
> I used to do in ASP.
>
> > My environment is Windows 2000 AS, IIS 5.0 and SQL Server
> > 2000. Support is for I.E. 5.5+.
> >
> > I need to be able to perform programming tasks like:
> >
> > - LDAP queries against Exchange 5.5 database
> > - Remote Scripting (Microsoft - MSRS)
> > - Typical database SELECTS, INSERTS, UPDATES, DELETES and
> > execute Stored
> > Procedures
> >
> > I have not seen any examples of performing LDAP queries or
> > remote scripting. I know there are many examples of database access.
>
> http://www.php.net/manual/en/ref.ldap.php
>
> I started to play with this one day, but the LDAP extension
> for PHP was
> giving me some issues (some silly configuration issue probably) so I
> left it alone. I'll go back to it eventually.
>
> I havn't looked into MSRS, personally.. So can't really tell
> you much as
> far as using PHP with it, but there's most likely some way to do it.
> PHP's pretty flexible.
>
> As for databases and stored procedures, you can either use PHP's built
> in MS Sql, Oracle, ODBC, MySQL, etc database functions or you
> can use a
> script like PHPEverwhere's "ADODB" script
(http://php.weblogs.com/adodb)
to make portable database code that you can use on just about any
database just by changing the connect string.
Since I work with MS Sql and Oracle, I find this to be pretty useful.
Don't have to change my way of thinking of or coding, just do the same
stuff for all the DBs I access.
> I am interesting in hearing from anyone who also made the
> switch to PHP. What problems or challenges were met, what
> limitations or advantages were discovered. If any of the
> above (LDAP or MSRS) were particularly troublesome in
> conversion or development in PHP.
No real problems or challenges in learning PHP itself, it's really
straightforward if you ask me. You always learn new little tricks as
you go along, but I found it much easier to learn than ASP.
The database stuff was a little interesting, but there are some good
examples online and once you find a method that works for what you want,
then you can just keep using the same technique. Just a matter of
copy/paste or making a standard database access scheme.
Like I have a "dbconnect.inc" file in a shared includes folder that all
my scripts hit. I set $database="DatabaseIdentifier" then I have a
"switch" statement that dynamically sets the connection string.
>From there, the "dbconnect.inc" processes a variable called $sqlquery
that contains the SELECT, INSERT or DELETE string. The default result
set for ADODB is "$arr", so in my main script I just do a "if
(count($arr) > 0)" then do the good stuff, " } else { " Do what you need
to do if no data is returned from query.
I handle updates and inserts slightly different than select statements,
but that's the essential gist.
Once I set up a connection string for each DB, I just write a script
assigning a $database= and an $sqlquery= and then process $arr after I
include the dbconnect.inc file.
If someone has a better way, I'm always happy to listen, but it seems to
work pretty good for me and provide me with the flexibility and
modularity that I need.
Like I said about LDAP, the extension choked on me, but I havn't taken
the time to diagnose the issue.
Good luck! Report back with your trials and tribulations, I'd be
curious to hear more about the LDAP and MSRS functionality with PHP.
-TG
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi
If a have a <select name="omr[]">, what is the name of the "select"? I
tried with both "omr" and "omr[]", but no one works. It works fine if
the name is "omr" but then it is only one value posted.
Maybe its easier to understand if you see it yourself:
http://www.lokalguiden.se/index2.php?action=ledigalokaler
It's the second select I must name omr[] to get all the values posted
but then the javascript doesn't understand the name omr[], what to do?
Thx.
--- End Message ---