php-windows Digest 19 Jul 2002 08:26:17 -0000 Issue 1248
Topics (messages 14832 through 14838):
Re: snmp / php / linux /error
14832 by: David Robley
error compiling example-extension
14833 by: Marco Glatz
How to program for Paypal(IPN), Using Php
14834 by: Patanjali Telang
Re: Oracle or OCI8
14835 by: Philippe Saladin
help with csv
14836 by: Angie Tollerson
nested resultsets
14837 by: Sandeep Murphy
"weeks" via date function
14838 by: Wolfgang Schneider
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 ---
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> Iam trying to use my php file in a Linux machine.
>
> #!/usr/local/bin/snmp_guard.php -q
>
> <?
> $bat = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.12.0");
> $sum = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.13.0");
> $drift = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.10.0");
> $verk = snmpget("192.168.10.8", "pub_likt", ".1.3.6.1.4.1.2606.1.2.11.0");
> echo $bat;
> ?>
>
> Then I start it with php snmp_guard.php
>
> All I get is
>
> Call to undefeind funcion snmpget()
>
> WHY??
That error is usually an indication that the particular resource hasn't
been included when php was compiled.
Use phpinfo() to see what capabilities your installation has.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--- End Message ---
--- Begin Message ---
hi there,
i tried to compile the example-extension from the manual under Win32 with
VC++ 6.0, but i get these error-messages:
------------
test.obj : error LNK2001: unresolved external symbol "__declspec(dllimport)
int __cdecl zend_parse_parameters(int,void * * *,char *,...)"
(__imp_?zend_parse_parameters@@YAHHPAPAPAXPADZZ)
Release/mod_test2.dll : fatal error LNK1120: 1 unresolved external link
------------
this is my header-file:
#ifndef PHP_TEST_H
#define PHP_TEST_H
#ifndef PHP_WIN32
#define PHP_WIN32
#endif
#ifndef ZEND_WIN32
#define ZEND_WIN32
#endif
#ifndef ZEND_DEBUG
#define ZEND_DEBUG 1
#endif
#ifndef COMPILE_DL_FIRST_MODULE
#define COMPILE_DL_FIRST_MODULE
#endif
#ifndef ZTS
#define ZTS
#endif
#endif
--------------------
have i forgotten to define something ??
hope someone can help me.
greets, marco
--- End Message ---
--- Begin Message ---
Dear All,
I am trying to write a code for posting to https,
through PHP 4.1.0, with Apache 1.3.24 <win 32>, and
MySQL 3.23.49 as backend. I know PHP cann't post to
SSL and I need to use cURL.
Can someone send me the links on how to Install cURL
on my machine and use it to accomplish my task. Any
help/input in this matter is highly appreciated.
Have a great scripting time!!!
Regards
Patanjali
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--- End Message ---
--- Begin Message ---
> I have tried both, it seems Oracle (i.e Ora_?) is much faster but OCI8
is
> more powerful. So, how can I tune OCI8 in order to have faster response.
ora_* functions are for Oracle 7 only.
oci_$ functions are for Oracle 7, Oracle 8 (and I suppose for Oracle 9).
So, for future compatibility, oci_* are IMHO the best choice.
What kind of faster response do you expect ? from a select, an update ? have
you tried stocked procedures ?
Regards,
Philippe
--- End Message ---
--- Begin Message ---
I have put a csv out side my web directory for security issues. I
wanted to mail it as an attachment. What is strange is that with
Internet Guest permissions on the csv, I am able to write to the file
just fine. But i get an error when i try to read it with PHP to send as
an attachment. If I move it down into the webdirectory I can read it
but I don't want it in the web because I don't want people to browse to
it. Does anyone know what I could be doing wrong? Win 2000 with 4.0.6
php. Thanks!
Angie Tollerson
Alliance Technologies
Web Programmer
(515)245-7628
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi,
How do I handle nested resultsets??
like i hv
while( $row = $resultSet->fetchRow(DB_FETCHMODE_ASSOC) )
{
echo "CODE = ".$row["code"]." NAME = ".$row["name"]."<br>";
$policySQL = "SELECT policy_code from profile_policy where profile_code
=".$row["code"];
$result = $dbSP->query($policySQL);
while($rows = $result->fetchRow(DB_FETCHMODE_ASSOC) )
{
// now IF I try to echo the result stored in the array $rows,
nothing happens. why???
}
}
thnx,
sands
--- End Message ---
--- Begin Message ---
Hello everyone,
I have a question concerning how to determine the week of the year
via the date functions in php ...
Does anyone have a suggestion on how to set up some code to determine
which "week of the year" the "current date" is in, that is for
today's date (19 July 2002) it should return "29" (this being the
29th week of 2002).
I've checked info on "date" in various sources available to me, but
couldn't find a hint on how to do it ...maybe I am just blind . Any
helpful information is gladly appreciated ... whether you have a
sample or just a place to point me to to check. You can also reply to
me privately, if this is not an appropriate topic for this list.
Thanks in advance.
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de
-- Bookstore: http://www.worthy.net/BibelCenter/
--- End Message ---