php-windows Digest 2 Feb 2002 11:36:37 -0000 Issue 981
Topics (messages 11776 through 11792):
Compiling PHP code
11776 by: Nicole Amashta
11779 by: Shrock, Court
11791 by: John Lim
Event Viewer Entries
11777 by: Gary Pullis
Re: Plot Graphs by PHP...
11778 by: Shrock, Court
DLL problems
11780 by: Dave
11781 by: alain samoun
11782 by: Mike Maltese
Cookies
11783 by: Angie Tollerson
11784 by: Shrock, Court
11786 by: Angie Tollerson
11787 by: Shrock, Court
11788 by: Shrock, Court
Php extensions
11785 by: Mauricio Lairet P.
cURL on Windows
11789 by: Zackary Wilson
Help needed on point system
11790 by: Jerry Leonard
PHP latest version / Oracle Support
11792 by: webfolks
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 ---
OK, this may sound far fetched, or maybe not. By any chance would it be
possible to "compile" php code into some sort of executable, or similiar
form, so that way when I distribute code to customers, they aren't able to
view the code?
This was suggested by a co-worker in case it is possible. Does anyone have a
clue if this is feasible?
TIA!
--
Nicole Amashta
Web Applications Developer
ABOL Software, Inc.
( 678 ) 494 - 3172
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Nicole,
It is called Zend Encoder and is located at
http://www.zend.com/zend/products.php#encoder. The only catch, is that it
is not always without cost. I haven't actually used it so I would be
interested in your opinion if you decide to go ahead with it.
Court
> -----Original Message-----
> From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 01, 2002 9:17 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Compiling PHP code
>
>
> OK, this may sound far fetched, or maybe not. By any chance
> would it be
> possible to "compile" php code into some sort of executable,
> or similiar
> form, so that way when I distribute code to customers, they
> aren't able to
> view the code?
>
> This was suggested by a co-worker in case it is possible.
> Does anyone have a
> clue if this is feasible?
>
> TIA!
>
> --
> Nicole Amashta
> Web Applications Developer
> ABOL Software, Inc.
> ( 678 ) 494 - 3172
> [EMAIL PROTECTED]
>
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
Visit http://zend.com They have an Encoder product that does this.
Regards, John
Nicole Amashta <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> OK, this may sound far fetched, or maybe not. By any chance would it be
> possible to "compile" php code into some sort of executable, or similiar
> form, so that way when I distribute code to customers, they aren't able to
> view the code?
>
> This was suggested by a co-worker in case it is possible. Does anyone have
a
> clue if this is feasible?
>
> TIA!
>
> --
> Nicole Amashta
> Web Applications Developer
> ABOL Software, Inc.
> ( 678 ) 494 - 3172
> [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
When I use the syslog() function under Win2K, I get the following from
Event Viewer:
"The description for Event ID ( 2000 ) in Source ( c-client ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event:
c-client[2052], foo."
This is already a known bug:
http://bugs.php.net/bug.php?id=8314
The problem seems to be that, either the Windows port of PHP does not
have an eventmessagefile dll, or the existence of the dll is not getting
noted in the system registry.
BTW, here is a great (and pretty short) read about event messages under
NT/2K:
http://www.johnjohnston.com/w2kevtlog.html
Is there anyone who could confirm or deny the existence of an
eventmessagefile dll for PHP?
Thanks!
--
Gary Pullis
Supporting: Sage MAS90/MAS200 | Linux | Windows NT | Novell Netware
Office Management Technologies
http://www.omt.cc
--- End Message ---
--- Begin Message ---
Actually, there is a complete graphing suite written in OO PHP that already
does all the hard work. It is called jpgraph and located at
http://www.aditus.nu/jpgraph/. A bit of forewarning, you need to make sure
you have zlib, libpng, libjpeg, and gd installed and setup. Of course, php
needs to be linked to the above libraries as well...
> -----Original Message-----
> From: Kjartan Mannes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 01, 2002 6:48 AM
> To: [EMAIL PROTECTED]
> Cc: GreatKent
> Subject: Re: [PHP-WIN] Plot Graphs by PHP...
>
>
> Wednesday, January 31, 2001, 7:16:23 AM, GreatKent wrote:
> > Hi all, I wonder if PHP4 can plot graphs based on input formulas?
>
> Should be possible using the gd lib functions:
>
> http://www.php.net/manual/en/ref.image.php
>
> --
> Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
> :: "Scandisk is now checking your hard disk. You can start
> praying."
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
Hi,
I'm using win 98, php 4.04, and apache 1.3.19. Have had no problems
executing simple scripts, including some with mySql access.
HVR, when I uncomment any of the php dll's in the php.ini file I get the
following message (one for each dll):
"unable to load dynamic library 'c:\windows\system\php_gd.dll'. A device
attached to the system is not functioning".
The path shown is correct, so it seems to be 'seeing' the dll, but something
else is obviously not working. I get the same message for ANY dll, specific
to that file. Any clues as to what 'device' is not functioning?
Thanks!
--- End Message ---
--- Begin Message ---
1) Did you enable the dll in php.ini (make sure that there is only one copy
of php.ini in path)?
2) Did the dll have been compiled for your PHP version?
3) Some other reasons ;)
A+
Alain
-----Original Message-----
From: Dave [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] DLL problems
Hi,
I'm using win 98, php 4.04, and apache 1.3.19. Have had no problems
executing simple scripts, including some with mySql access.
HVR, when I uncomment any of the php dll's in the php.ini file I get the
following message (one for each dll):
"unable to load dynamic library 'c:\windows\system\php_gd.dll'. A device
attached to the system is not functioning".
The path shown is correct, so it seems to be 'seeing' the dll, but something
else is obviously not working. I get the same message for ANY dll, specific
to that file. Any clues as to what 'device' is not functioning?
Thanks!
--
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]
--- End Message ---
--- Begin Message ---
In the folder that you unzipped your php distribution to, there is a folder
named dlls. Just copy or move the contents of this folder to
C:\WINDOWS\system.
Post back with the result.
Mike
----- Original Message -----
From: "Dave" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 9:39 AM
Subject: [PHP-WIN] DLL problems
> Hi,
> I'm using win 98, php 4.04, and apache 1.3.19. Have had no problems
> executing simple scripts, including some with mySql access.
> HVR, when I uncomment any of the php dll's in the php.ini file I get the
> following message (one for each dll):
> "unable to load dynamic library 'c:\windows\system\php_gd.dll'. A device
> attached to the system is not functioning".
> The path shown is correct, so it seems to be 'seeing' the dll, but
something
> else is obviously not working. I get the same message for ANY dll,
specific
> to that file. Any clues as to what 'device' is not functioning?
> Thanks!
>
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
I have a WebSpeed page that is passing to my php page. They are using
session cookies to test for login status. I didn't think there was
anyway for me to test for a session cookie set by another language using
php. So I had them create an additional client cookie for me to test
by. Not only did my scripts not detect the cookie on my machine, but
when I echo out the size of $HTML_COOKIE_VARS it says 1 (even though I
have 50 cookies on my machine) and item 0 of the array is empty when I
echo that out. Why isn't the traditional way of grabbing cookies
working, and is there any way for me to utilize the session cookies that
Webspeed set.
P.S. I am using IE 6.0 if that makes any difference
Angie
Top of script BEFORE any html headers:
<?php
$cookie = $HTTP_COOKIE_VARS["aa_login"]; //is null even though
//cookie present and
//with that name
echo $cookie;
echo sizeof($HTTP_COOKIE_VARS); // echo's out 1
?>
--- End Message ---
--- Begin Message ---
I might not understand what you mean by "Webspeed page that is passing to my
php page". Is your browser requesting the Webspeed page, or is your php
script connecting to webspeed directly via a call to fopen?
What domain(url) was the original cookie made valid for? If you are
requesting your script from the same domain(url), you will get the results
that you expect, but if you they are different, your browser knows that
difference and cookies valid in one domain(url) will not show up when you
look for them in another domain(url).
Court
> -----Original Message-----
> I have a WebSpeed page that is passing to my php page. They are using
> session cookies to test for login status. I didn't think there was
> anyway for me to test for a session cookie set by another
> language using
> php. So I had them create an additional client cookie for me to test
> by. Not only did my scripts not detect the cookie on my machine, but
> when I echo out the size of $HTML_COOKIE_VARS it says 1 (even though I
> have 50 cookies on my machine) and item 0 of the array is empty when I
> echo that out. Why isn't the traditional way of grabbing cookies
> working, and is there any way for me to utilize the session
> cookies that
> Webspeed set.
> P.S. I am using IE 6.0 if that makes any difference
> Angie
--- End Message ---
--- Begin Message ---
Sorry everyone, I had a brain spasm or something. I was reminded that
cookies only work on the same domain, and since the webspeed scripts
were creating the cookie on out test server and php was on the
production server it was a no go. Thanks!
Angie
>>> "Angie Tollerson" <[EMAIL PROTECTED]> 02/01/02
02:54PM >>>
I have a WebSpeed page that is passing to my php page. They are using
session cookies to test for login status. I didn't think there was
anyway for me to test for a session cookie set by another language
using
php. So I had them create an additional client cookie for me to test
by. Not only did my scripts not detect the cookie on my machine, but
when I echo out the size of $HTML_COOKIE_VARS it says 1 (even though I
have 50 cookies on my machine) and item 0 of the array is empty when I
echo that out. Why isn't the traditional way of grabbing cookies
working, and is there any way for me to utilize the session cookies
that
Webspeed set.
P.S. I am using IE 6.0 if that makes any difference
Angie
Top of script BEFORE any html headers:
<?php
$cookie = $HTTP_COOKIE_VARS["aa_login"]; //is null even though
//cookie present and
//with that name
echo $cookie;
echo sizeof($HTTP_COOKIE_VARS); // echo's out 1
?>
--
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]
--- End Message ---
--- Begin Message ---
another solution:
since they changed their code for you already, you might try to get them to
add your domain to the list of valid domains in the cookie that they set,
therefore, your scripts would be able to pick them up....just a thought.....
--- End Message ---
--- Begin Message ---
sorry to be a pest....
but, not necessarily....for example:
two different "sites" hosted on the same server in the same domain
http://www.mydomain.com/dir1/login.php
http://www.mydomain.com/dir2/login.php
do not necessarily share the same cookies.....if the domain(url) is set to
"www.mydomain.com" the cookies will be shared, but the domain(url) can also
be set to "www.mydomain.com/dir1/" in the first site, and
"www.mydomain.com/dir2/" in the second. In the latter case, the cookie set
from /dir1, would not be visible to /dir2.
--- End Message ---
--- Begin Message ---
Hi!
I wanted to know somehting. If my hosting provider does not inlude PEAR in
their PHP installation, am I able to do it myself?
I mean like you do with some Perl modules that are not installed and you use
use lib 'path_to_lib' in Perl.
Is there a way to do something similar with Php extensions?
Thanks in advance,
Mauricio
--- End Message ---
--- Begin Message ---
I have installed the cURL module on windows, and now I'm ready to try
it out. I can get this code to work,
<?
$ch = curl_init ("http://www.php.net/");
$fp = fopen ("php_homepage.txt", "w");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
?>
but I am now trying to make a connection in https:// I need the windows
equivilant to this Unix code:
curl -d "birthyear=1905&press=OK" www.hotmail.com/when/junk.cgi
to be able to post to encrypted connections. Can anyone pelase help?
Zack
--- End Message ---
--- Begin Message ---
Hi all,
I am relatively new to php and mysql and would appreciate any help you can
provide. Here is the task:
I need to have a point system added to my site. What I would like is when a
user logs in they will get 1000 points. But they only get it once per day.
I am the kind of person that cannot learn from just reading from a book.
I have bought plenty on php and mysql. I can however learn by seeing things
work. I have tried to find a script that has a way to add points to a
database
but cannot find one.
I am not asking anyone to write the whole code but help get me started.
I am running:
Xitami on WinME, PHP 4.06 and Mysql 3.23.43 win binary.
If anyone is willing to help I will provide a database dump and any part or
the script you will need. I would give the info now except I don't know what
parts will be needed.
Thanks for any help
Regards
Jerry
--- End Message ---
--- Begin Message ---
Hi,
Does PHP's latest version support Oracle 9i database?
Please do let me know.
Also send me the links which provide information about setting up PHP to access Oracle
database.
Thanks and Regards
Rohit
--- End Message ---