RE: [PHP-WIN] No communication between PHP 5.0.3 +MySQL 4.1.9 on Windows XP Pro

2005-01-16 Thread Shrock, Court
"Call to undefined function" always means that the function is not available to php. Have you verified that PHP is actually loading the .dll's -- call phpinfo(). What you don't say is whether or not you are using ISAPI for CGI. Besides that, extension dll's are normally located in the "extension

RE: [PHP-WIN] Call ActiveX component

2005-01-15 Thread Shrock, Court
The comma before the second trim is misplacedby chance, do you mean this instead: $ReturnBalance=$DelphiASPObj->GetClientBalance(trim($Outlet_session)."E", trim($Application["FinURL"])); -Original Message- From: Louis Young [mailto:[EMAIL PROTECTED] Sent: Friday, January 14, 2005 6:1

[PHP-WIN] Feature request for PHP on windows

2004-06-04 Thread Shrock, Court
How about using the registry to store the location of the php.ini. It could default to c:\windows for backward compatibility. I currently have multiple versions of PHP setup on the same system. This works fine, as long as I don't use the ISAPI module because the path to php.ini is hardcoded to c:

RE: [PHP-WIN] Virtual Hosts - How to Configure

2004-03-30 Thread Shrock, Court
There might have been a little confusion as to what I proposed. First, assuming that php is installed in c:\php, create the directory c:\php\includes -- this will be where we put all of our files so that they can be accessed by php no matter where your web root (site files) are located. This dire

RE: [PHP-WIN] Virtual Hosts - How to Configure

2004-03-29 Thread Shrock, Court
The most straight forward that I can see would be to always prepend a php file that does the appropriate ini_set's based on $_SERVER['HTTP_HOST'] or $_SERVER['SERVER_NAME']. For example: : your php.ini : include_path = ".;c:\php\includes" auto_prepend_file = setup_vhost.php : c:\ph

RE: [PHP-WIN] fastcgi again on 4.3.X

2004-01-23 Thread Shrock, Court
I am not sure of exactly what you want to accomplish, but you might be able to do something with netcat. From the readme.txt: A far more exciting thing to do is to get a quick shell going on a remote machine by using the -l or "listen" option and the -e or "execute" option. You run Netcat listen

RE: [PHP-WIN] Running multiple versions of php on IIS

2004-01-22 Thread Shrock, Court
> -Original Message- > We have a new piece of software to roll out in the next week. > The software is built on PHP 4.3.4, but the webservers that > we intend to use are also running other websites which are > only tested on PHP 4.0.4 or 4.1.2 or something. Obviously > ideally, we wou

RE: [PHP-WIN] Searching a string for everything but a-z and 0-9

2002-07-17 Thread Shrock, Court
preg_match('/[^a-z0-9]/i', $stringToSearch); http://www.php.net/preg_match > -Original Message- > From: Matt Babineau [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 10:56 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Searching a string for everything but a-z and 0-9 > >

RE: [PHP-WIN] Handling Multi-Select form lists

2002-07-16 Thread Shrock, Court
This is the correct form: Option 1 Option 2 When the above is submited, $_POST['choices'] will be an array that contains the selected options. If you have register_globals = On in your php.ini, $choices will also be an array of selected options. > -Original Message- > From: Dash

RE: [PHP-WIN] track_vars and register_globals

2002-07-08 Thread Shrock, Court
$SESSION['count'] wouldn't workbut $_SESSION['count'] shouldif not, you are using an older version of PHP. > -Original Message- > From: David Elliott [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 08, 2002 1:18 PM > To: php-windows > Subject: Re: [PHP-WIN] track_vars and registe

RE: [PHP-WIN] PHP Page does not seem to render

2002-07-03 Thread Shrock, Court
shouldn't this line: $fp = fsockopen("$remotehost[$i]", $remoteport[$i], $errno, $errstr); be this: $fp = fsockopen("{$remotehost[$i]}", $remoteport[$i], $errno, $errstr); OR $fp = fsockopen($remotehost[$i], $remoteport[$i], $errno, $errstr); -Original Message- From: C. Hendrie To: [EM

RE: [PHP-WIN] HTTP_REFERER

2002-07-03 Thread Shrock, Court
Two things: The undefined notice you are getting is the result of your error_reporting setting in your php.ini... http://www.php.net/manual/en/function.error-reporting.php What is ultimately causing the error is that not all HTTP requests to your page have a referrer defined, therefore, on the o

RE: [PHP-WIN] Beginner question - blank php page

2002-07-03 Thread Shrock, Court
What happens when you load a page that only contains the one line: > -Original Message- > From: Arthur [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 03, 2002 5:49 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Beginner question - blank php page > > > Just installed php for the

RE: [PHP-WIN] Is it possible to get a hostname?

2002-07-03 Thread Shrock, Court
Try gethostbyaddr() http://www.php.net/manual/en/function.gethostbyaddr.php > -Original Message- > From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 03, 2002 8:01 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Is it possible to get a hostname? > > > > Is it possi

RE: [PHP-WIN] .server side includes on Windows IIS 4.0

2002-06-06 Thread Shrock, Court
SSI in IIS follows the form: but this only works out-of-the-box within .asp files.I do not know how to "turn on" SSI of this form for any other extension within IIS. Including a php file from an asp page would be possible iff IIS was configured to process the include file based on the exten

RE: [PHP-WIN] Detecting Usernames

2002-06-06 Thread Shrock, Court
You could configure IIS to require authentication before giving them access to the form, thereby allowing you access to their username. It really doesn't take that long to type your username/password. -Original Message- From: Carl Whittaker To: [EMAIL PROTECTED] Sent: 6/6/02 7:47 AM Subj

RE: [PHP-WIN] CSV. Parsing a defined row?

2002-06-05 Thread Shrock, Court
do you mean? // load your csv $fp = fopen('your.csv', 'r'); while(($line = fgetcsv($fp, 4096)) && $line[0] != $_GET['id']); // the loop terminated...possible outcomes are a match or EOF, in which // case $line will be boolean and not an array if (is_array($line)) { // you matched the correct

RE: [PHP-WIN] Easy Way To Compile Extension in Win32

2002-05-21 Thread Shrock, Court
(but is reversible to assembler). > > In windows i would recomend you to build a com component... they are > easy to do and if build with C++, they are very fast. > > VB is also an option, but, the problem is that it is too near source > code also... > > Hope that

RE: [PHP-WIN] Easy Way To Compile Extension in Win32

2002-05-21 Thread Shrock, Court
Is Zend Encoder an option? http://zend.com/store/products/zend-encoder.php > -Original Message- > From: Bruce Miller [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 21, 2002 1:19 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Easy Way To Compile Extension in Win32 > > > I have an algo

RE: [PHP-WIN] ASP and PHP

2002-05-16 Thread Shrock, Court
Sure ASP can't do associative arrays ASP can only do numerical multi-dimension arrays ASP can't do serious string manipulation ASP carries way too much around in each function call--global scope all the time for all variables ASP cannot short-circuit a boolean expression ASP database connecti

RE: [PHP-WIN] how do I get a user name?

2002-05-14 Thread Shrock, Court
I have been using $_SERVER['AUTH_USER'] and $_SERVER['AUTH_PASSWORD'] IIS 4 > -Original Message- > From: toby z [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 13, 2002 10:50 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] how do I get a user name? > > >

RE: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Shrock, Court
Oops.replace the "ALL" with "E_ALL" and "NOTICE" with "E_NOTICE" > -Original Message- > From: Shrock, Court [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 09, 2002 4:51 PM > To: Afan Pasalic; [EMAIL PROTECTED] > Subject: RE:

RE: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Shrock, Court
line 2 > > Any idea? > > > Afan > > > - Original Message - > From: Shrock, Court > To: brother ; '[EMAIL PROTECTED]' > Sent: Thursday, May 09, 2002 1:07 PM > Subject: RE: [PHP-WIN] register_globals and php 4.2 > > > Replace a

RE: [PHP-WIN] PHP Graphing engine

2002-04-26 Thread Shrock, Court
http://www.aditus.nu/jpgraph/ > -Original Message- > From: Matt Babineau [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 4:28 PM > To: 'Php-Win (E-mail)' > Subject: [PHP-WIN] PHP Graphing engine > > > Does anyone know of any good graphing engines for PHP? I need a slick > wa

RE: [PHP-WIN] PHP Warning: No File Uploaded in Unknown on Line 0.. any ideas?

2002-04-17 Thread Shrock, Court
.html files are not normally parsed by php...do you have your webserver setup to parse .html files using PHP? > -Original Message- > From: Ethan Nelson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 17, 2002 3:08 PM > To: '[EMAIL PROTECTED]' > Subject: [PHP-WIN] PHP Warning: No File

RE: [PHP-WIN] Another Newbie Question

2002-04-10 Thread Shrock, Court
Are you sure that the database server is called 'nik'.if the same system is both your web server and database server, I would recommend replacing 'nik' with 'localhost'. I am thinking that your mysql_connect() should be as follows: mysql_connect('localhost', 'nik', ''); //connect to localhos

RE: [PHP-WIN] Editing setting session_save.path in the php.ini file doesn't register the change!!!

2002-04-02 Thread Shrock, Court
That is because php is looking for php.ini in c:\winnt.it has no relation to whether or not the file actually exists there. If a php.ini does not exist where it looks for it, php uses defaults for every internal setting. > -Original Message- > From: Hammad Sophie [mailto:[EMAIL PROTE

RE: [PHP-WIN] How to add more domains on apache w2k

2002-04-01 Thread Shrock, Court
You can add another domain by creating a section in your httpd.conf file for each domain you want to add. Inside this section, you specify the document root directory to serve files from. a sample follows (More information can be found at http://www.apache.org/docs/vhosts/): # this directive t

[PHP-WIN] NT User info using COM...ASP getObject() alternative

2002-03-28 Thread Shrock, Court
Was searching through the groups and thought I would share this code: FullName . ''; //Returns Account Name echo $ADSIObject->Name . ''; //Returns Account Description echo $ADSIObject->Description . ''; ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP-WIN] PHP 4.1.2 problems

2002-03-19 Thread Shrock, Court
Did the include_path change in your php.ini? Verify your include_path directive in your php.ini. -Original Message- From: Steve To: [EMAIL PROTECTED] Sent: 3/18/02 5:19 PM Subject: [PHP-WIN] PHP 4.1.2 problems I just updated my php instalation to 4.1.2 (the one witht he forced redirect

RE: [PHP-WIN] sendmail for windows

2002-03-08 Thread Shrock, Court
There are 5 different address classes. You can determine which class any IP address is in by examining the first 4 bits of the IP address. Class A addresses begin with 0xxx, or 1 to 126 decimal. Class B addresses begin with 10xx, or 128 to 191 decimal. Class C addresses

RE: [PHP-WIN] Dumb Question

2002-03-02 Thread Shrock, Court
Worry not, the only dumb question is the one that is not asked [after you have searched for an answer yourself].if you are running php on windows (which I assume you are because you sent it to the windows list), you do not need to worry about the vulnerability because it only affects some sola

RE: [PHP-WIN] Re: Parse error?!

2002-03-02 Thread Shrock, Court
I see a closing double-quote, but I do not see a semicolon after that double-quote on the last line you included: provider-authenticatie...: static-password" should it be: provider-authenticatie...: static-password"; Can't really see anything else, but I have had some misleading error

RE: [PHP-WIN] PHP Troubles

2002-03-02 Thread Shrock, Court
The most likely reason it was "locking up" was that php.exe was expecting input from STDIN since you did not specify a filename when you started it. In the future, try pressing CTRL-Z, CTRL-D, or CTRL-C (I can't remember which one it uses right now) to get it to terminate. -Original Message--

RE: [PHP-WIN] any comment?

2002-03-01 Thread Shrock, Court
re: open source and php--I agree with John re: the article--It is a rather obvious attempt to take pressure off of Microsoft. The paragraph: "In the past, Microsoft's Internet Information Server has had a slew of problems with flaws in its components that allowed hackers and worms to break in. T

RE: [PHP-WIN] passthru() on Win98 ??

2002-02-25 Thread Shrock, Court
To explain the 400 bad request, you most likely had a typo when you typed in the HTTP request. The request is case-sensitive and very particular. Most likely, the "Host: localhost" portion of the request messed up somehow. When you get a "HTTP/1.1 200 OK" response, that means that the webserver

RE: [PHP-WIN] passthru() on Win98 ??

2002-02-25 Thread Shrock, Court
Sure, go to http://www.chiark.greenend.org.uk/~sgtatham/putty/latest/x86/putty.exe and download it. It is PuTTY, an open source telnet/ssh client that is far superior than the telnet included in windows. Instructions are prefaced with a *. *run the exe *type in the HostName field: localhost *m

RE: [PHP-WIN] passthru() on Win98 ??

2002-02-25 Thread Shrock, Court
Have you tried to telnet to localhost:80 and given it a valid request header to see what your response from teh webserver is? when connected via telnet to port 80, type: GET / HTTP/1.1[enter] Host: yourhost.com[enter] [enter] [enter] You should see something like: HTTP/1.1 200 OK Date: Mon, 25 F

RE: [PHP-WIN] Cookies

2002-02-01 Thread Shrock, Court
sorry to be a pest but, not necessarilyfor 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.

RE: [PHP-WIN] Cookies

2002-02-01 Thread Shrock, Court
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 upjust a thought. -- PHP Windows Mailing List (http://www.php.net/)

RE: [PHP-WIN] Cookies

2002-02-01 Thread Shrock, Court
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 sc

RE: [PHP-WIN] Compiling PHP code

2002-02-01 Thread Shrock, Court
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- >

RE: [PHP-WIN] Plot Graphs by PHP...

2002-02-01 Thread Shrock, Court
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 b

RE: [PHP-WIN] Com

2002-01-31 Thread Shrock, Court
Joe, here is a link that will help in learning how to do COM (an excel example included): http://phpbuilder.com/columns/alain20001003.php3 > -Original Message- > From: Mainolfi, Joe [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 31, 2002 11:22 AM > To: 'PHP-WIN' > Subject: [PHP-WI

RE: [PHP-WIN] response.expire

2002-01-31 Thread Shrock, Court
yes, but you do it by sending the appropriate http header using the header function. check out http://www.php.net/manual/en/function.header.php. The examples show you how to do it. > -Original Message- > Subject: [PHP-WIN] response.expire > > > is there something like response.expire

RE: [PHP-WIN] Native connection MS SQL2000

2002-01-31 Thread Shrock, Court
You can even do it on a unix platform using freeTDS (http://freetds.org), just compile php --with-sybase=/freetds/base/install/dir and make sure you set the TDS version depending on your mssql server version. > -Original Message- > From: Paco Ortiz [mailto:[EMAIL PROTECTED]] > Sent: Thurs

RE: [PHP-WIN] Bcc headers in mail function

2002-01-30 Thread Shrock, Court
Personally, I have tried many ways to get it to work. In an earlier post, I mentioned that the only way I was able to get mail to work at all was removing the bcc and cc headers from my windows php scripts. If a solution does exist, I would be interested in it as well Court > -Original

RE: [PHP-WIN] How to find out MAC address of remote user

2002-01-30 Thread Shrock, Court
Your MAC address on your NIC is unique, but a problem arises because the MAC address is Ethernet (the same collision domain) and the internet routes IP, which is a layer above Ethernet. The majority of the internet routes IP over ATM, a much quicker alternative to Ethernet. You see, Ethernet, AT

RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed

2002-01-24 Thread Shrock, Court
Weird...have you verified that you can send mail using the server specified in php.ini using another app --outlook express, netscape mail, mozilla mail, etc... >Court- >No luck yet. Here is the call to mail(): > >$mr = mail("[EMAIL PROTECTED]", "subject", "Line 1"); > >Simple and straight forward

RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed

2002-01-24 Thread Shrock, Court
I had a similar error running in CGI mode on WinNT. I ended up taking apart my call to mail() until it worked. A simple call with dummy values and no extra headers would work, but what I wanted would not. I traced the cause to the bcc header. Also, I noticed that the cc header does not work ei

RE: [PHP-WIN] Include()

2002-01-23 Thread Shrock, Court
hweb services.I am curious about an alternative to .Net and Sun for web services.anybody? -Original Message- From: alain samoun [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 11:48 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [P

RE: [PHP-WIN] Include()

2002-01-22 Thread Shrock, Court
Alain, The PHP engine can only process php code in files on your local filesystem(*). It just so happens that PHP is smart enough to realize that if a file is not entirely PHP code, the rest must be meant for output to the client (which can be ANY device, not just a human behind a browser). When

RE: [PHP-WIN] Include()

2002-01-21 Thread Shrock, Court
Yes, it works on Linux/Apache. But the results are not what you might expect. When one normally uses the include statement, you intend to process some php file, not the output from such a file. For example: nfo.php contains, located at http://www.myserver.com/nfo.php : --BEGIN FILE

RE: [PHP-WIN] Redirection Question.

2002-01-18 Thread Shrock, Court
Curtis, the call to session_register needs a string that names the variable: Instead of: session_register($username); You need: session_register('username'); This would register the $username variable Court -Original Message- From: Curtis [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: [PHP-WIN] sending email out using php?

2002-01-11 Thread Shrock, Court
It would be best to use the smtp server of your isp, as yahoo has disabled public relaying (At least I hope--as should everyone else). In the info that they sent you, they probably provided you with a name that you can use such as "mail.yourisp.net" or "smtp.yourisp.com". Your isp knows that mai

RE: [PHP-WIN] sending email out using php?

2002-01-11 Thread Shrock, Court
Brian, It seems that you are getting the message because PHP doesn't know how to connect to "server", therefore you need to tell it where to connect to. In you php.ini, you need to set the SMTP value where the line says "server" to something meaningful. This value needs to point to a valid smtp