[PHP-WIN] WinXP Error Passing Variables (and creating)

2002-02-19 Thread Chris

I currently have been trying to learn PHP (as Apache module) and it doesn't
work.  Through Apache I get this error:
"[Tue Feb 19 18:41:11 2002] [error] PHP Warning:  Undefined variable:
username in ...filepath...\apache group\apache\htdocs\second.php on line 13"

The book I'm using to program with PHP says that by creating a NAME value
for a FORM gives me a variable with that name (and '$' included infront of
it).  However, it doesn't seem to work that way:

Apache version: 1.3.23
PHP version: 4.1.1
OS: Windows XP

I think Windows XP and Apache are the problem because on their site they
have listed this warning for XP:

"If you will install Apache on Windows XP, be warned. There is a known bug
our users have identified; you may or may not encounter it yourself. It will
be fixed in the forthcoming Apache 1.3.24 release. The effects of this bug
within Apache 2.0 Beta are not yet determined.
It appears the combination of duplicating file handles between and parent
and child process, in conjunction with blocking sends to the http client,
may result in corrupted output. You may not see this in MSIE, which tends to
throw any error in the 'Cannot find server or DNS Error' category.

If you receive such errors on Windows XP using SSI scripting or PHP scripts,
but not static pages, you are probably a victim of this bug. It has been
reported to Microsoft, we have no further details at this time."

The thing is though, the bug is kind of a strange one... not creating the
variable.  Is that the result of Apache and XP or am I doing something
completely wrong (in the following code I also tried the echo function):

CODE
---





Please type your name here:




You typed:






-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] PHP - mssql

2002-03-19 Thread chris

Hi. I have a table that contains lots of names in mssql. and i want to make
a page
where each of theese individuals can login with that spesific username and
password.
So my question is : what is the proper (best) command to use for sending and
returning the info?



This is not working... i have tried everything i can think of that can work
but with no luck.
So if someone have a solution for me... i would apriciate it :)

(and yes i do have defined all the vars in the script they are just not that
important here)

-Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] SESSION TROUBLE...

2002-10-04 Thread Chris

Hi everyone,

i have a tricky situation here...

I'm working on a project that requires session for logins.
The problem is PHP DOES NOT generate a new session id, even if the
appropriate functions are used. I have a little login test site that worked
absolutely perfect, with sessions generated at EVERY login. At logout, the
session is destroyed and DELETED from HDD. When i login again PHP generates
THE SAME session string. How come PHP does this all of the sudden, when I
did not make modifications to my php.ini ?

Does anyone know how come this happens ?

PLEASE send me some help. I really appreciate it !

Thank you so much !

I use PHP 4.2.2 under Apache 1.3.22 as module, on XP Proffesional.
My config in php.ini :

[Session]
session.save_handler = files
session.save_path = /php/sessions
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] comments not working in PHP

2001-08-23 Thread chris

Bizarre problem... maybe a simple issue?  I've tried #, //, /* */ and it
simply will not comment out the phpinfo function... code looks like this:

#  // 

[PHP-WIN] PHP/Apache module, and the php.ini file

2001-08-23 Thread Chris

I have PHP/4.06 running as a module within Apache, and when I change my
php.ini file, I noticed that when I call  I notice that
there are no changes! This doesen't seem to happen when running CGI
version of PHP...


...any ideas?

NOTE: I have tried restarting Apache, Shutting down and restarting
Apache, restarting Windows98, ect, ect. I have also double checked to
see if I had more that one copy of the php.ini file, and I have only
one.

Any help would be greatly appreciated,
Chris

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




[PHP-WIN] Curl/php/Apache on Win32

2001-08-27 Thread Chris

Hello

 Does anyone know how to install and use php_curl.dll for php.
I set extension=c:\phpdev2\php\extension\ and also tried copying files
SSLEAY32.dll,
php4ts.dll,
libeay32.dll in to the winodws system directory and set extension to that
but still no sucess.

I always get a error message saying
"Warning: Unable to load dynamic library
'c:\phpdev2\php\extensions\php_curl.dll' - A device attached to the system
is not functioning"

And also try using  Dependency Wlaker 2.1 but I get error of "Error: At
least one module has an unresolved import due to a missing export function
in an implicitly dependent module."

Can anyone help
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]




[PHP-WIN] How do I obtain the client's IP?

2001-10-13 Thread ChriS

How can I obtain the client's IP address in PHP? I'm trying to migrate from
IIS/ASP to Apache & PHP and need something similar to ASP's servervariables'
collection? (HTTP_REMOTE_ADDR)
Chris
[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]




[PHP-WIN] accessing mssql2k from win2k with PHP4.1.1

2002-02-06 Thread chris

im having major problems with this combination.
it seems that all other functions are working properly.
when i try to access my mssql DB i get this msg :
"test PHP Fatal error: Call to undefined function: mssql_connect() in
c:\inetpub\wwwroot\testsite\test2.php on line 3 "

any idea? any help is highly apriciated.
Thanks :)

Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] php4, IIS5 and mssql8 problems

2002-02-06 Thread chris

Im having huge problems with this.
everything else works just fine, i just cant get my mssql functions to work.
all my calendar and mail mailfunctions are working. whats wrong here?
Doesnt php4 support mssql8??? is that my problem? all help will be
apriciated.



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] PHP 4.1.1 - MSSQL 8

2002-02-07 Thread chris

I can get my tables from my DB but how can i get column names displayed
above the result?

Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] why doesnt this work?

2002-02-08 Thread chris

i get this message when i try to open this page : PHP Warning: Undefined
variable: submit in c:\inetpub\wwwroot\testsite\registrer.php on line 8


form method="post" action="registRer.php">
Fornavn: 
Etternavn: 
 


If you know why it doesnt work please help.




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] im so stupid

2002-02-11 Thread chris

I have made a script and for some reason i dont understand it doesnt do what
its supposed to. maybe you can  tell me whats wrong. its a form where im
supposed to insert a new record in a mssql table. but when i hit submit it
just refreshes blank.




Fornavn: 
Etternavn: 
 




hope you can help.

-Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] im so stupid

2002-02-12 Thread chris

Well i tried this and it only tells me that my values are undefined
variables
It seems like the register.php is not receiving the info from
register.html???
i have checked 1000 times to make sure that the register.html has the right
action and there are no "typo's"  whats going on... ???

"Todd Williamsen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Afan...
>
> First off, to make things easier and since you are calling register.php in
> your form...
>
> Just make a plain HTML page like this and name it whatever the hell you
want
>
> 
>   
>   
>   Fornavn: 
>   Etternavn: 
>
> 
> 
>
> Then make your registrer.php page:
>
>
> $db = MSSQL_CONNECT($hostname,$username,$password);
> mssql_select_db($dbname);
> $sql = "insert into studenter(fornavn, etternavn) values
> ('$fornavn','$etternavn')";
> $result = mssql_query($sql, $db);
>
> 
> 
> Success!
> 
> You have successfully entered the following information  "$fornavn $etternavn"; ?>
> 
> 
>
>
>
> "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message
> news:005601c1b310$fa19ad80$311f49d1@VAIO...
> Try this:
>
> $db = MSSQL_CONNECT($hostname,$username,$password);
> mssql_select_db($dbname);
> $sql = "insert into studenter(fornavn, etternavn) values
> ('$fornavn','$etternavn')";
> $result = mssql_query($sql, $db);
>
>
> Afan
>
>
>
>   - Original Message -
>   From: chris
>   To: [EMAIL PROTECTED]
>   Sent: Monday, February 11, 2002 6:10 AM
>   Subject: [PHP-WIN] im so stupid
>
>
>   I have made a script and for some reason i dont understand it doesnt do
> what
>   its supposed to. maybe you can  tell me whats wrong. its a form where im

>   supposed to insert a new record in a mssql table. but when i hit submit
it
>   just refreshes blank.
>
>   
>   
>   
>   Fornavn: 
>   Etternavn: 
>
>  IF (isset($submit))
>   {
>   $hostname = "dbname";
>   $username = "chris";
>   $password = "*****";
>   $dbname = "chris";
>   MSSQL_CONNECT($hostname,$username,$password);
>   mssql_select_db($dbname);
>   $sql = "insert into studenter(fornavn, etternavn) values
>   ('$fornavn','$etternavn')";
>   $result = mssql_query($sql);
>   $studentnummer = mssql_insert_id();
>   Print("Studenten er lagt inn!");
>   }
>   ?>
>   
>   
>
>   hope you can help.
>
>   -Chris
>
>
>
>   --
>   PHP Windows Mailing List (http://www.php.net/)
>   To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] im so stupid

2002-02-12 Thread chris

Well. this is what shows up...

bruker:
passord:
PHP Warning: Undefined variable: bruker in
c:\inetpub\wwwroot\testsite\registrer.php on line 2 PHP Warning: Undefined
variable: passord in c:\inetpub\wwwroot\testsite\registrer.php on line 3

and this is all i have on the page :

 ';
 echo 'Etternavn: ' . $etternavn . '';
 ?>

So do I have a problem with my PHP configuration???

LOL this thing is gonna drive me crazy before i get it right

-Chris


"George Pitcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Chris,
>
> If you are concerned that your variables aren't being read and then
> processed, chek them first and forget the db side for now.
>
> On your response page, just have the following:
>
>  echo 'Fornavn: ' . $fornavn . '';
> echo 'Etternavn: ' . $etternavn . '';
> ?>
>
> If you get your variable data being displayed as you entered it then that
> part's fine and you can go on and look at db problems. If not then you
have
> a problem with your php configuration.
>
> George
> "Chris" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Well i tried this and it only tells me that my values are undefined
> > variables
> > It seems like the register.php is not receiving the info from
> > register.html???
> > i have checked 1000 times to make sure that the register.html has the
> right
> > action and there are no "typo's"  whats going on... ???
> >
> > "Todd Williamsen" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > Afan...
> > >
> > > First off, to make things easier and since you are calling
register.php
> in
> > > your form...
> > >
> > > Just make a plain HTML page like this and name it whatever the hell
you
> > want
> > >
> > > 
> > >   
> > >   
> > >   Fornavn: 
> > >   Etternavn: 
> > >
> > > 
> > > 
> > >
> > > Then make your registrer.php page:
> > >
> > >
> > > $db = MSSQL_CONNECT($hostname,$username,$password);
> > > mssql_select_db($dbname);
> > > $sql = "insert into studenter(fornavn, etternavn) values
> > > ('$fornavn','$etternavn')";
> > > $result = mssql_query($sql, $db);
> > >
> > > 
> > > 
> > > Success!
> > > 
> > > You have successfully entered the following information  > > "$fornavn $etternavn"; ?>
> > > 
> > > 
> > >
> > >
> > >
> > > "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message
> > > news:005601c1b310$fa19ad80$311f49d1@VAIO...
> > > Try this:
> > >
> > > $db = MSSQL_CONNECT($hostname,$username,$password);
> > > mssql_select_db($dbname);
> > > $sql = "insert into studenter(fornavn, etternavn) values
> > > ('$fornavn','$etternavn')";
> > > $result = mssql_query($sql, $db);
> > >
> > >
> > > Afan
> > >
> > >
> > >
> > >   - Original Message -
> > >   From: chris
> > >   To: [EMAIL PROTECTED]
> > >   Sent: Monday, February 11, 2002 6:10 AM
> > >   Subject: [PHP-WIN] im so stupid
> > >
> > >
> > >   I have made a script and for some reason i dont understand it doesnt
> do
> > > what
> > >   its supposed to. maybe you can  tell me whats wrong. its a form
where
> im
> >
> > >   supposed to insert a new record in a mssql table. but when i hit
> submit
> > it
> > >   just refreshes blank.
> > >
> > >   
> > >   
> > >   
> > >   Fornavn: 
> > >   Etternavn: 
> > >
> > >> >   IF (isset($submit))
> > >   {
> > >   $hostname = "dbname";
> > >   $username = "chris";
> > >   $password = "*";
> > >   $dbname = "chris";
> > >   MSSQL_CONNECT($hostname,$username,$password);
> > >   mssql_select_db($dbname);
> > >   $sql = "insert into studenter(fornavn, etternavn) values
> > >   ('$fornavn','$etternavn')";
> > >   $result = mssql_query($sql);
> > >   $studentnummer = mssql_insert_id();
> > >   Print("Studenten er lagt inn!");
> > >   }
> > >   ?>
> > >   
> > >   
> > >
> > >   hope you can help.
> > >
> > >   -Chris
> > >
> > >
> > >
> > >   --
> > >   PHP Windows Mailing List (http://www.php.net/)
> > >   To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Configuration

2002-02-12 Thread chris

In an earlier thread i asked about why i couldnt send data from a HTML form
to a PHP script. The data just didnt go through... now i was told that this
is a configuration problem... How and where do i configure such a thing?

-Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] how do you get eapi support in php4apache.dll?

2003-03-23 Thread chris
I downloaded and recompiled the source with MS Visual Studio 6 with eapi 
defined, but the resulting dll is exactly the same, and apache still gives 
warnings and crashes under load.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: Global & POST & uploading files

2003-03-25 Thread chris
On Tue, 25 Mar 2003 13:13:05 -0500, Afan Pasalic <[EMAIL PROTECTED]> 
wrote:

While was working on staging server (Global On) everythign was working 
ok:

Product name: 
Product Ser.#:
Upload 1st image: 
Upload 2nd image: 
Upload 3rd image: 




But, pushing to other server (Global Off) - can't read variables $var1, 
$var2, $var3, actually $POST[var1],  $POST[var3],  $POST[var3].
Even, listing by:

while(list($key, $value) = each($HTTP_POST_VARS))
echo"$key: $value";
can see just prod_name, MAX_FILE_SIZE i SubmitAdd variables.

Need $var1, $var2 and $var3 to validate uploaded files - have to be only 
jpg format.

Any idea?

Afan


http://bugs.php.net/bug.php?id=17958

I think I have the same problem on a Win2k server running Apache.  When we 
switch it to IIS, it works.  If I try a print_r($_POST), it shows an empty 
array.  Only happens with "multipart/form-data" forms.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Help With CGI Timeout

2003-07-21 Thread Chris
I have a script that uploads a data file and inserts several thousand
records into a database table. The script seems to time out when it
exceeds the time out limit imposed by CGI. I am using the
set_time_limit() function, to extend the script’s running time, however
this only works until the CGI limit is reached. I have used this script
on several Linux web servers running Apache without a problem.  This is
the first time using it on a Windows 2000 server with PHP 4.3.1.

The rub here is my PHP script is being hosted by a third party, so I
don’t have the luxury to make changes to the system myself. What I am
trying to determine is, is it possible/reasonable to ask my hosting
provider to increase the CGI time out limit. If so, how would I instruct
them in this matter? Or possibly, are there other solutions?

Thanks for opinions
Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] BTW: Help With CGI Timeout

2003-07-21 Thread Chris
BTW I can run a regular cgi script out of my cgi-bin directory for a much
greater period of time without being shut down by the time limit.

Chris wrote:

> I have a script that uploads a data file and inserts several thousand
> records into a database table. The script seems to time out when it
> exceeds the time out limit imposed by CGI. I am using the
> set_time_limit() function, to extend the script’s running time, however
> this only works until the CGI limit is reached. I have used this script
> on several Linux web servers running Apache without a problem.  This is
> the first time using it on a Windows 2000 server with PHP 4.3.1.
>
> The rub here is my PHP script is being hosted by a third party, so I
> don’t have the luxury to make changes to the system myself. What I am
> trying to determine is, is it possible/reasonable to ask my hosting
> provider to increase the CGI time out limit. If so, how would I instruct
> them in this matter? Or possibly, are there other solutions?
>
> Thanks for opinions
> Chris


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] MySQL problem

2001-04-15 Thread Chris

I was trying to create a database for PHP using MySQL with the command
c:\mysql\bin>mysqladmin create database01 and I received the following
error message
"Can't connect to MySQL server on 'localhost' (10061)
Check that mysql is running on localhost and that the port is 3306.
You can check this by doing 'telnet localhost 3306'"

The Apache server is running. What should I do now?

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




Re: [PHP-WIN] MySQL problem

2001-04-15 Thread Chris

Thanks for the reply.

I went to mysql bin directory and typed mysql.exe, I get an error
message
"Error 2003: Can't connect to MySQL server on 'localhost' (10061)"

What's the problem? Please advise.

I am running Win98SE with Apache.



Plutarck wrote:
> 
> Try going into your mysql bin directory, then type:
> 
> mysql.exe
> 
> Then try using connect, or just doing your query.
> 
> If that doesn't work, ensure MySQL is running. If that doesn't work...then
> there is some other problem.
> 
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
> 
> "Chris" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I was trying to create a database for PHP using MySQL with the command
> > c:\mysql\bin>mysqladmin create database01 and I received the following
> > error message
> > "Can't connect to MySQL server on 'localhost' (10061)
> > Check that mysql is running on localhost and that the port is 3306.
> > You can check this by doing 'telnet localhost 3306'"
> >
> > The Apache server is running. What should I do now?
> >
> > --
> > 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]
> >
> 
> --
> 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]

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




[PHP-WIN] Re: PHP5 IIS6 2003 Access Violation

2004-07-01 Thread Chris
I read an article that said to replace the php5isapi.dll with the one from
RC2.
The article is at http://bugs.php.net/bug.php?id=28799

"David Charles" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I can set up the latest version of 4 to run under IIS6 as isapi dll in 5
> minutes. No problem.
>
> But with PHP5 RC3, making just the standard ini edits, nothing fancy, I
> cannot get this access violation errors message to go away.
>
> The wierd thing is, a blank html page with a .php extension will serve the
> blank page, followed by one line... the access violation. As if it
occurred
> somewhere folowing the interp and execution.
>
> Any ideas? I hope this isn't something you hear all day long.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: setup of MSSQL with PHP

2004-07-05 Thread Chris
Hey have you uncommented the mssql.dll in php.ini? I have the same setup and
it works. You might try calling the server using its ip address or its dns
name. Also, how are you setup for the php extension on the server? Are you
using the php.exe or the php4isapi.dll for the extension?

"Steve Howie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have PHP running and am trying to get my SQL server installation to run
> with it.  I have turned on all the variables in the PHP.ini, but when I
try
> to execute the following:
>
> $db = mssql_connect("WIN2KSRV","sa","xyzxyz") ;
>
> the webpage times out with the message "CGI server time out"
>
> I have verified the names and passwords; they should be correct, although
I
> assume that an error would be generated if it was as simple as that...
>
> I have windows server 2003 with IIS 6 and PHP 4.  PHP does run other pages
> just fine.
>
> Any suggestions?
>
> Thanks in advance,
>
> Steve

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: Installing PHP 5.0 on IIS6/win2003

2004-07-28 Thread Chris
Don't know of any how tos out there, but just finish an install of 5 running
IIS6 on a 2k3 server. We found an exe to install, but we also downloaded the
binaries. If you still need help email me at [EMAIL PROTECTED] and I'll
let you know what we did to get it working.

Chris Shrum


"Brian Rottman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there any howto's out there about installing PHP 5.0 on win2003/IIS6?
> All of the docs @ php.net are still for 4.x and the user comments have
> been wiped out.
>
> Thanks.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] PHP Access Violation

2004-07-29 Thread Chris
Each time I open a php page for the first time in a browser window, I
recieve PHP has encountered an Access Violation at 01C973CD. It doesn't keep
me from doing anything, just shows a violation then continues on. Does
anyone have any suggestions on what to do? Everything is running on a Win
2k3 IIS6 server.

Thanks,
Chris

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] Unable to load php_mysql.dll

2004-08-02 Thread Chris
Nadim Attari wrote:
Hello,
I've installed PHP Version 5.0.0 (windows installer downloaded from php.net)
on Windows 2000 SP4. All works fine!
The configuration is as follows:
 System  Windows NT X 5.0 build 2195
 Build Date  Jul 13 2004 21:34:42
 Configure Command  cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
 Server API  CGI/FastCGI
 Virtual Directory Support  enabled
 Configuration File (php.ini) Path  C:\WINNT\php.ini
 PHP API  20031224
 PHP Extension  20040412
 Zend Extension  220040412
 Debug Build  no
 Thread Safety  enabled
 IPv6 Support  enabled
 Registered PHP Streams  php, file, http, ftp, compress.zlib
 Registered Stream Socket Transports  tcp, udp
Then i've uncommented the line "extension=php_mysql.dll" and set
extension_dir = ".\ext";
I copied the unpacked "php_mysql.dll" file (again downloaded the binaries
from php.net) into "ext" folder in PHP
Now i get the following:
"PHP Warning: PHP Startup: Unable to load dynamic library
'.\ext\php_mysql.dll' - Le module spécifié est introuvable. in Unknown on
line 0"
Note that i've set
- cgi.force_redirect = 0;
- fastcgi.impersonate = 1;
Still the same problem. Any help please.
Nadim Attari
Alienworkers.com
 

I don't think that relative path is pointing to where you think it is 
(if it's pointing anywhere at all). Try setting the extension_dir to the 
full pathname of the ext dir. (like extension_dir = "C:\PHP\ext\" ) .

Chris
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] PHP Access Violation

2004-08-05 Thread Chris
Each time I open a php page for the first time in a browser window, I
recieve PHP has encountered an Access Violation at 01C973CD. It doesn't keep
me from doing anything, just shows a violation then continues on. Does
anyone have any suggestions on what to do? Everything is running on a Win
2k3 IIS6 server. When this access violation happens, I also get a DCOM error
in my logs. Any suggestions or ideas will get greatful.

Thanks,
Chris

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Apache, mod_ssl, OpenSSL, PHP 5.0.2 causes php to crash

2004-09-25 Thread Chris
I'm on Windows XP SP1, Apache 1.3.31, and PHP 5.0.2.
PHP5's ISAPI module crashes often with the error message (via error.log):
[warn] Loaded DSO c:/php/php5apache.dll uses plain Apache 1.3 API, this 
module might crash under EAPI! (please recompile it with -DEAPI)

The website where I received the Apache/mod_ssl/OpenSSL Package is 
http://hunter.campbus.com/

The Author says Apache needs to be compiled under EAPI in order for 
mod_ssl to work. Is there anything I can do to resolve this crashing?

Any help would be useful..
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: error. no database selected.

2004-10-26 Thread Chris
Have you tried using the function "mysql_select_db" to select the database?
Patrick Roane wrote:
Ok,
No syntax errors this time, but when I hit enter
(after I type in the code below), I get 'error 1046,
no database selected'
CREATE TABLE phonelist(
id INT(100) PRIMARY KEY,
firstName VARCHAR(15),
lastName VARCHAR(15),
email VARCHAR(20),
phone VARCHAR(15)
  );
There must be something I'm  not doing. Any ideas?
=

"forget your lust for the rich man's gold. All that you need, is in your soul. You can do 
this if you try. All that I want for you my son, is to be satisfied"
  ~ Lynard Skynard
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] Escaping quotes in form validation

2004-12-20 Thread Chris
From your minimal details, I assume you're trying to print the value of 
a textbox/textarea to a webpage?

You would need to use htmlentities() to escape  the quotes if that's the 
case.

Chris
S.D.Price wrote:
Hi can anyone help. I have a news blog system where a user can add news
stories to a database. As part of the data validation I  indicate when
the user has not entered data correctly and allow then to re-enter data
in a n error prompt form
However if the user has entered quotes the error prompt form does not
display the information correctly. For example if I enter Steven's news
blog in the original form then either steven (non-escaped quotes) or
steven\ (escaped quotes) will appear in the error prompt form. This is
because the html value attribute is ended prematurely.
I can't find any solution to this, can anyone help?
Thanks
Steve
 

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] sharing files over network with XP Home and PHP?

2005-01-23 Thread Chris
DvDmanDT wrote:
Errm.. I did search accutually.. But didn't find anything.. Partly cause I'm
running home edition.. There's no security tab there.. And the folders are
shared.. Apache is running as SYSTEM, and I'm as User or something like
that.. Any more ideas?
 

I don't know if this would work or not, but the 'Security' tab is off by 
default.

Try the following:
 Tools -> View (tab) -> uncheck 'Use simple files sharing (recommended)'
 Apply to all folders
And try out the file/folder again.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] PHP and Apache

2005-03-01 Thread Chris
No, mod_php.c does nto have to exist.
Provided that c:/PHP/php5apache.dll acctually exists, your problem is 
likely that you have got php5ts.dll in your system path (copying it to 
the WINNT/System32/ directory works.

Chris
Logan B wrote:
Hi,
I'm using Apache 1.3 on my Windows XP Pro box with PHP 5. I'm trying to get
Apache to reconize it. I've added "LoadModule php5_module
"c:/PHP/php5apache.dll"" and "AddModule mod_php5.c" to the httpd.conf file.
I restart Apache, but it throws a santax error that says that the module
[mod_php5.c] is not in the loaded modules list and that it cannot be loaded.
I have double checked the directory that PHP is in. Is it bad that I cannot
find "mod_php5.c" in that directory? I can find php5apache.dll, just not the
.c file.
Can anyone help me?
Thanks!
./ Logan
 

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] Form problem variables are being sent in the query string

2005-08-22 Thread Chris

Your form should be defined like this:

method="post">


The post method is what keeps the variables off the URL string, the 
action is the page to submit the data to.


Chris

Jim MacDiarmid wrote:


I have 2 form fields one is a checkbox and the other is a hidden field. The
checkbox is called "Display_" and gets incremented as the table rows are
built like so. 

'Display_'.$rec_count + 1 

The hidden field is an array like this:  Field[] 


The form method is $_SERVER['PHP_SELF']

For some reason, these form variables are being passed on the query line.
Is there any way this can be prevented?

Thanks in advance,

Jim

 



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: [PHP-DB] php portfolio

2007-04-19 Thread Chris

Matt Anderton wrote:

awesome guys.  thanks a lot.  one thing I think I DO have going for me --
true I have only flown solo, never worked on a team, but my current project
was designed entirely to someone else's specs.  I knew there would be lots
of changes as it went along and I think I did a decent job of working in
some basic OOP so I would only have to make changes once.

I guess what I still don't get is how do I go about "exposing" the code for
it?  it is a live web site -- I don't want the average visitor to see 
chunks

of code all over the place.  do I put up a separate copy on a separate
website?  point the employer to the real deal first, then give him a 
link to

a "behind the scenes" version?  and then what?  just throw in "" tags
-- "this is how I did this part"?


Just email him a file or two, much easier :)

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Re: [PHP-DB] ntwdblib.dll not found in any of the 5.2.8 zip files

2008-12-21 Thread Chris

Fred Silsbee wrote:



--- On Sat, 12/20/08, Fergus Gibson  wrote:


From: Fergus Gibson 
Subject: Re: [PHP-DB] ntwdblib.dll not found in any of the 5.2.8 zip files
To: fredsils...@yahoo.com
Date: Saturday, December 20, 2008, 6:06 PM
On Sat, Dec 20, 2008 at 7:59 AM, Fred Silsbee
 wrote:

ntwdblib.dll proves to be necessary...otherwise

I'll get a mssql_connect not found

I used the ntwdblib.dll file from a 5.2.6 zip file

This resource might help:

http://www.userscape.com/helpdesk/index.php?pg=kb.page&id=13

According to the information there and on the forum thread
they link,
the problem you have is likely that the ntwdblib.dll is the
wrong
version.  They say you can find the correct DLL in the
system32
directory on the SQL Server.  If you copy that to your
extension dir,
you should be good.



YOU ARE THE MAIN MAN! THAT WORKED! THE CORRECT VERSION SHOULD BE

INCLUDED IN THE 5.2.8 ZIP FILE


So lodge a bug at http://bugs.php.net.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Unable to load dynamic library php_ifx %1

2010-02-23 Thread Chris
Hello, and thanks for your assistance in advance.  I am using PHP 4.4.9 on 
Windows 2008 64 bit with informix and am reciving the following error:


PHP Warning: Unknown(): Unable to load dynamic library 
'D:\php\extensions\php_ifx.dll' - %1 is not a valid Win32 application in 
unknown on line 0.


On another server, I have the same setup but using the Sqlserver dll.  Any 
Suggestions?


Thanks,
Chris




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Unable to load php_msql.dll

2010-04-28 Thread Chris
Hello, and thanks for your assistance in advance.  I am running windows 2008 
64 bit/PHP 4.49 and mysql.  When I run my application, I get an error.  When 
I check the php.log file it states:


PHP Warning Unknown() Unable to load dynamic library 
c:\php\extensions\php_msql.dll - The specified moduel could not be found. 
Although that is the error, I know it is there.


When I run dependency walker I see that php.exe cant find GPSVC.DLL 
IESHIMS.DLL and LINKINFO.dll which all appear to be there.


Any suggestions?
Thanks Again.



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] Unable to load php_msql.dll

2010-04-28 Thread Chris
Hello Richard, and thanks for your assistance.  I do have it in the path.  I 
have done a search on the server for msql.dll and it doesnt exist.  Where 
does it come from and how do I get it?


Thanks,
Chris

"Richard Quadling"  wrote in message 
news:r2v10845a341004280743obc4213eay22903118d3ee8...@mail.gmail.com...

On 28 April 2010 15:33, Chris  wrote:


Hello, and thanks for your assistance in advance. I am running windows 
2008 64 bit/PHP 4.49 and mysql. When I run my application, I get an error. 
When I check the php.log file it states:


PHP Warning Unknown() Unable to load dynamic library 
c:\php\extensions\php_msql.dll - The specified moduel could not be found. 
Although that is the error, I know it is there.


When I run dependency walker I see that php.exe cant find GPSVC.DLL 
IESHIMS.DLL and LINKINFO.dll which all appear to be there.


Any suggestions?
Thanks Again.



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Do you have c:\php\extensions\php_msql.dll?

If so, do you also have the msql.dll library available in your PATH 
somewhere?


php_msql.dll requires msql.dll

See the "Notes for Win32 users" on
http://docs.php.net/manual/en/msql.installation.php



--
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling 



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] Unable to load php_msql.dll

2010-04-28 Thread Chris

My badI do have msql.dll in c:\php and it is part of the env path.

Thanks,
Chris

""Chris""  wrote in message 
news:6d.87.02305.a4c48...@pb1.pair.com...
Hello Richard, and thanks for your assistance.  I do have it in the path. 
I have done a search on the server for msql.dll and it doesnt exist. 
Where does it come from and how do I get it?


Thanks,
Chris

"Richard Quadling"  wrote in message 
news:r2v10845a341004280743obc4213eay22903118d3ee8...@mail.gmail.com...

On 28 April 2010 15:33, Chris  wrote:


Hello, and thanks for your assistance in advance. I am running windows 
2008 64 bit/PHP 4.49 and mysql. When I run my application, I get an 
error. When I check the php.log file it states:


PHP Warning Unknown() Unable to load dynamic library 
c:\php\extensions\php_msql.dll - The specified moduel could not be found. 
Although that is the error, I know it is there.


When I run dependency walker I see that php.exe cant find GPSVC.DLL 
IESHIMS.DLL and LINKINFO.dll which all appear to be there.


Any suggestions?
Thanks Again.



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Do you have c:\php\extensions\php_msql.dll?

If so, do you also have the msql.dll library available in your PATH 
somewhere?


php_msql.dll requires msql.dll

See the "Notes for Win32 users" on
http://docs.php.net/manual/en/msql.installation.php



--
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling 



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] Unable to load php_msql.dll

2010-04-28 Thread Chris

Pretty much the same exact thing.
C:\PHP>php -m

[PHP Modules]

bcmath

bz2

calendar

com

ctype

domxml

ftp

gd

msql

mysql

odbc

overload

pcre

session

standard

tokenizer

wddx

xml

xslt

zlib



[Zend Modules]





C:\PHP>php -i | find "ext"

Content-type: text/html


[PHP-WIN] ISAPI and Includes

2002-02-18 Thread Chris Ogles

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have a an IIS 5.0 runing the ISAPI and have a problem getting my
includes to work.  The situation is the main php page includes page d
and e.  Pages d and e both have other includes in them.   When i go
to the pages now i get an include error like the following:

Warning: Failed opening 'phpbb/includes/constants.php' for inclusion
(include_path='c:\php\includes\') in
E:\InetPub\wwwroot\phpbb\common.php on line 113

My php.ini file is pointing to only one directory for includes which
is the "c:\php\includes".  I have trided to put in the other pathes
to each of the includes that the other file need, but still get the
exact same error.  Does anyone have any ideas??

Drop me a line at [EMAIL PROTECTED]

Thanks
Chris

-BEGIN PGP SIGNATURE-
Version: PGP 7.0

iQA/AwUBPHGR9KNIaumjVcTHEQIcTgCg0TnGt5mbMZfCPwVERgrlmAPav48AoOp8
EQGLfaWs86YD7VSr8kjTNQRC
=W09Y
-END PGP SIGNATURE-


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: WinXP Error Passing Variables (and creating)

2002-02-19 Thread Chris Earle

No offense taken, but I have never done this before so I don't really know
what I'm doing with the variable passing and stuff (aside from C++ and VB
knowledge).  I  copied that from the book exactly and it did not work.

Your form does not work either, it simply gives me the else statement's
actions ("No data yet, or $username is empty.").  I do believe I hit the bug
they were talking about and am now thinking of getting Linux from my boss
too install and run for PHP.  Thanks for the help.

"Devon Knowles" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> No offense, but you are doing something completely wrong.  For starters,
> your  has neither a method nor an action. Try this code, if you have
> Apache and PHP installed correctly, it will work. Even on XP.
>
> 
> 
> 
>  Test Form
> 
> 
> 
> 
> 
> 
>  if ($username)
> {
>  echo "Username: " . $username;
> } else
> {
>  echo "No data yet, or \$username is empty.";
> }
> ?>
> 
> 



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Re: WinXP Error Passing Variables (and creating)

2002-02-20 Thread Chris Earle

Yours did not work as it either.  Thanks for the attempt.  Although a few
things about your code that I thought my be the problem:
- You had " wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try this instead.  I couldn't get Devon's to work on my system either, but
> this one does.  Note the use of the empty() function which tests a string
> for emptiness.
>
> Let me know if it works?
>
> 
> 
> 
>  Test Form
> 
> 
>  if (empty($username))
> {
>  echo "
> 
> 
> 
> No data yet, or username is empty.";
> }
>
>
>  else
> {
>  echo "Username: " . $username;
> }
>
>
> ?>
> 
> 



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] 'popen' command under WinXP

2002-03-01 Thread Chris Haidvogel

I am currently trying to get some php code working that was originially
written to run under UNIX.  I have a problem though.  The function 'popen'
doesn't seem to want to work.  Here is the code snipet:

$command = $CVS->conf['paths']['rcsdiff'] . " $options -r$rev1 -r$rev2
'$fullName' 2>&1";
 if (!($diffStream = popen($command, 'r'))) {
return false;
} else {
while ($line = fgets($diffStream, 4096)) {
  $diff[] = rtrim($line);
  }
  return $diff;
}

I have confirmed that $command is properly set and I also realize that WinXP
has no idea what "2>&1" means.  I have tried altering the command as such:

 $command = "cmd /K \"" . $CVS->conf['paths']['rcsdiff'] . "
$options -r$rev1 -r$rev2 '$fullName'\"";

and also:

 $command = "command.com  /C \"" . $CVS->conf['paths']['rcsdiff'] . "
$options -r$rev1 -r$rev2 '$fullName'\"";

however neither appear to be producing a stream for me.  I don't want to be
returning false.  I need it to capture the output from the command.  First
off, is there a way to get popen to work in WinXP?  If not, is there a way
to rewrite this code to capture the output from this command?

I am currently running PHP 4.1.1 on Apache 1.3.23.

Thank you in advance for any help.

--
Chris Haidvogel
Software Engineer
Videk, Inc.
2200 Brighton Henrietta Town Line Rd.
Rochester, NY 14623
Phone: (716) 292-6210
Fax: (716) 292 5884
E-mail: [EMAIL PROTECTED]






-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Apache 2.0.35

2002-04-10 Thread Chris Dion

Now that there is a binary out for apache 2 for windows...are we going to
get a binary for php for apache 2?  Anyone know?  Or how I can manage to
compile php for apache2?



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Newbie to php

2002-04-12 Thread Chris Hogben

Sorry if i'm posting twice, but i used my nospam address, and i know this
server is pickky on addresses :P

Hi there,

You could always try using mysql_error() to get a better error description.
Try this:



Hope this helps

Chris Hogben


"Nik Alleyne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Good evening everyone,
> I am new (very new) to php. I was doing some research on the net and learn
> of this packaged and after reading just a couple of pages, i figure i
should
> learn this instead of ASP. It looks so easy. Anyhow here is my problem.
>
> I am trying to connect to the database (MySQL) however, I can't I am
> connecting to the server, but I cannot connect to my sample database.
>
> Here is my script?
>  mysql_connect("nik", "", "") or
>   die("could not connect to the database");
> mysql_select_db("guestbook") or
> die ("could not connect to the specified database");
> ?>
> I'm getting the "could not connect to the specified database" message.
>
> Please Help
> Thx
> Nik
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Apache 2.0.35

2002-04-15 Thread Chris Dion

Tried that still can't start apache2.  What version and stuff are you using
and are you sure that's all you added to your http.conf?

--Chris

"Steffen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This works for me:
>
> LoadModule php4_module d:/bin/php/experimental/apache2filter.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Steffen
>
>
> "Haagen Waade" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 4.2.0 RC3 is out, and with Apache2 support.
> >
> > But how to configure it with apache2 ? I see there is a
> > /experimental/apache2filter.dll
> > I guess this is the new module for apache2, but how do I configure it in
> > httpd.conf
> > I've tried to load it as an module, but did not get it to work.
> >
> >
> > "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Now that there is a binary out for apache 2 for windows...are we going
> to
> > > get a binary for php for apache 2?  Anyone know?  Or how I can manage
to
> > > compile php for apache2?
> > >
> > >
> >
> >
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Apache 2.0.35

2002-04-15 Thread Chris Dion

Yeah I got it to work too.  It Helps when you tell php where it's extensions
are.man it's been a long day.

--Chris

"Haagen Waade" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thx, Steffen!
>
> I got it to work now.
> I still had the old php.ini file, and php4ts.dll file (from 4.1.2); and
even
> that is working with the apache2filer!
> Guess it's not depenent on the php version then?
>
> Chirs: yes, this is all you need to enable php.
>
> h.
>
> "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Tried that still can't start apache2.  What version and stuff are you
> using
> > and are you sure that's all you added to your http.conf?
> >
> > --Chris
> >
> > "Steffen" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > This works for me:
> > >
> > > LoadModule php4_module d:/bin/php/experimental/apache2filter.dll
> > > AddType application/x-httpd-php .php
> > > AddType application/x-httpd-php-source .phps
> > >
> > > Steffen
> > >
> > >
> > > "Haagen Waade" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > 4.2.0 RC3 is out, and with Apache2 support.
> > > >
> > > > But how to configure it with apache2 ? I see there is a
> > > > /experimental/apache2filter.dll
> > > > I guess this is the new module for apache2, but how do I configure
it
> in
> > > > httpd.conf
> > > > I've tried to load it as an module, but did not get it to work.
> > > >
> > > >
> > > > "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > > Now that there is a binary out for apache 2 for windows...are we
> going
> > > to
> > > > > get a binary for php for apache 2?  Anyone know?  Or how I can
> manage
> > to
> > > > > compile php for apache2?
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Getting Apache 2.0.35 and PHP 4.2 to work on Win2k

2002-04-25 Thread Chris Dion

David,
Install PHP 4.2 like you usually would but in your httpd.conf put:

LoadModule php4_module C:\php\experimental\apache2filter.dll
AddType application/x-httpd-php .php

I did a complete uninstall and reinstall of both apache and php when I
upgraded so nothing would be confused.

--Chris

"David" <[EMAIL PROTECTED]> wrote in message
001501c1eb49$e440da80$6700a8c0@WOPR">news:001501c1eb49$e440da80$6700a8c0@WOPR...
> I've been running apache 2 as my server for a while, and have been
> running php as a cgi (I know not the best idea). I saw that 4.2 offered
> experimental support, so I tried upgrading to that. Install.txt only
> includes instructions for 1.3.x, but I tried adjusting it to 2.x I
> couldn't get them to work. I then  reverted to 4.1.2, but this had the
> following odd behavior: whenever I have a page request such as
> "file.php?foo=bar" it would never acknowledge it (load the page as
> though foo=bar wasn't there." I haven't had this problem before. I then
> tried running 4.2 as a cgi. It causes a message "The procedure entry
> point php_output_activate could not be located in the dynamic link
> library php4ts.dll" to pop up. Any help with apache 2 and php 4.2 would
> be a great help.
>
> David Tucci
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] passing variables with 4.2

2002-04-26 Thread Chris Dion

Is there something I am missing here.  With php 4.1.2 i can do
blah.php?action=foo but with 4.2 I can't.  What am I doing wrong?  The php
page just acts like nothing was passed.  Happens with form data too.

--Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] PHP Triad or Nusphere or ??

2002-04-29 Thread Chris Lott

Not having used any of them myself (yet), is there any compelling
reason to choose one of the "unified" installer packages over another?
I am leaning towards PHP Triad because it is free (which is good for
myu students) and because Nusphere makes me a bit itchy with all the
bad blood with MySQL. I think there are a few other projects like this
out there?

But the bottom line is I want something that works without too much
tweaking so that my web design students can focus on the language
instead of the installation...

c


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] More than one cookie

2002-05-02 Thread Chris Dion

I am using PHP 4.2.0 and I am trying to set some cookies. The problem is
only the last one get set.  Yes the cookie names are different.  Any ideas?

--Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] More than one cookie - more info

2002-05-02 Thread Chris Dion

Ok as i said before the only cookie being written is the last call to
setcookie
I'm using Php 4.2.0
Apache 2.0.35
Windows XP

I'm setting the cookie like:

setcookie("dawg_tag", "test1", time()+(24*3600*365));
setcookie("dawg_visits", "test1", time()+(24*3600*365));
setcookie("dawg_session", "test1", time()+1800);

--Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Loading extensions...

2002-06-02 Thread Chris Knipe

Hi,

I got some problems loading php extensions (php_gettext.dll)...  When IIS
starts, PHP complains that it cannot load the dll...


>From my \winnt\php.ini:
; Directory in which the loadable extensions (modules) reside.
extension_dir = d:\php\extensions\
extension=php_gettext.dll

The system itself:
[d:\php\extensions]cacls php_gettext.dll
D:\php\extensions\php_gettext.dll Everyone:F

Everyone's got access to read the dll  Why on earth won't PHP load it??
It's PHP 4.2.0 (Win32) for those wanting to know, running on NT4 via IIS


--
me



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Re: Loading extensions...

2002-06-02 Thread Chris Knipe

It loads gd lib perfectly right also via a extension... so the extension
path or anything like that isn't the problem, my gut tells me the gettext
dll is screwed from the distribution...

Anyone have a dll of gettext they can send me?


- Original Message -
From: "Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 02, 2002 10:14 PM
Subject: [PHP-WIN] Re: Loading extensions...


> Try extension_dir = d:\php\extensions
>
> or extension_dir = d:/php/extensions/
> etc
>
>
> "Chris Knipe" <[EMAIL PROTECTED]> wrote in message
> 001b01c20a61$56f0c3c0$[EMAIL PROTECTED]">news:001b01c20a61$56f0c3c0$[EMAIL PROTECTED]...
> > Hi,
> >
> > I got some problems loading php extensions (php_gettext.dll)...  When
IIS
> > starts, PHP complains that it cannot load the dll...
> >
> >
> > From my \winnt\php.ini:
> > ; Directory in which the loadable extensions (modules) reside.
> > extension_dir = d:\php\extensions\
> > extension=php_gettext.dll
> >
> > The system itself:
> > [d:\php\extensions]cacls php_gettext.dll
> > D:\php\extensions\php_gettext.dll Everyone:F
> >
> > Everyone's got access to read the dll  Why on earth won't PHP load
> it??
> > It's PHP 4.2.0 (Win32) for those wanting to know, running on NT4 via IIS
> >
> >
> > --
> > me
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Re: Loading extensions...

2002-06-02 Thread Chris Knipe

K.. Just so you all know, I upgraded to PHP 4.2.1 with all the extensions
that came with 4.2.1, and it's working now...

So yeah.. Just comes to proof the gettext dll that ships with 4.2.0 aren't
working properly...

--
me

- Original Message -----
From: "Chris Knipe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 02, 2002 10:23 PM
Subject: Re: [PHP-WIN] Re: Loading extensions...


> It loads gd lib perfectly right also via a extension... so the extension
> path or anything like that isn't the problem, my gut tells me the gettext
> dll is screwed from the distribution...
>
> Anyone have a dll of gettext they can send me?
>
>
> - Original Message -
> From: "Peter" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 02, 2002 10:14 PM
> Subject: [PHP-WIN] Re: Loading extensions...
>
>
> > Try extension_dir = d:\php\extensions
> >
> > or extension_dir = d:/php/extensions/
> > etc
> >
> >
> > "Chris Knipe" <[EMAIL PROTECTED]> wrote in message
> > 001b01c20a61$56f0c3c0$[EMAIL PROTECTED]">news:001b01c20a61$56f0c3c0$[EMAIL PROTECTED]...
> > > Hi,
> > >
> > > I got some problems loading php extensions (php_gettext.dll)...  When
> IIS
> > > starts, PHP complains that it cannot load the dll...
> > >
> > >
> > > From my \winnt\php.ini:
> > > ; Directory in which the loadable extensions (modules) reside.
> > > extension_dir = d:\php\extensions\
> > > extension=php_gettext.dll
> > >
> > > The system itself:
> > > [d:\php\extensions]cacls php_gettext.dll
> > > D:\php\extensions\php_gettext.dll Everyone:F
> > >
> > > Everyone's got access to read the dll  Why on earth won't PHP load
> > it??
> > > It's PHP 4.2.0 (Win32) for those wanting to know, running on NT4 via
IIS
> > >
> > >
> > > --
> > > me
> > >
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] RE: [PHP] How to Show my Own Error Message Instead of Mysql Error?

2002-06-21 Thread Chris Boget

> i made a Registration Form for user to input their Data, but i also had some
> Field Check before the data can be insert to the Mysql_Database!
> I had a question here, sometime the mysql shows the error :
> "Duplicate Key for xxx"
> I know what is this about, reguarding to my Registration Form, it mean the
> Login Name is Duplicated! But i want to show my own message to the user for
> this error instead the Mysql Error! It is meanness to show User the Mysql
> Error, cause they won't understand it!!!
> Could Someone pls tell me how i can do this?

Here's a function I use.  I just pass it the mysql_errno() and mysql_error() that
is generated with each query.  The error messages are based off the result
codes as specified on the mySQL site.  Changing these to say what you want
will be a simple matter.

hth

Chris


function setErrorMsg( $dbErrorNum, $dbErrorMessage ) {

  $dbaMessage = "";

  switch( $dbErrorNum ) {
case 1000:
   $dbaMessage .= "Error number : $dbErrorNum - hashchk";
   break;

case 1001:
   $dbaMessage .= "Error number : $dbErrorNum - isamchk";
   break;

case 1002:
   $dbaMessage .= "Error number : $dbErrorNum - NO";
   break;

case 1003:
   $dbaMessage .= "Error number : $dbErrorNum - YES";
   break;

case 1004:
   $dbaMessage .= "Can't create file '%-.64s' (errno: %d)";
   break;

case 1005:
   $dbaMessage .= "Can't create table '%-.64s' (errno: %d)";
   break;

case 1006:
   $dbaMessage .= "Can't create database '%-.64s'. (errno: %d)";
   break;

case 1007:
   $dbaMessage .= "Can't create database '%-.64s'. Database exists";
   break;

case 1008:
   $dbaMessage .= "Can't drop database '%-.64s'. Database doesn't exist";
   break;

case 1009:
   $dbaMessage .= "Error dropping database (can't delete '%-.64s', errno: %d)";
   break;

case 1010:
   $dbaMessage .= "Error dropping database (can't rmdir '%-.64s', errno: %d)";
   break;

case 1011:
   $dbaMessage .= "Error on delete of '%-.64s' (errno: %d)";
   break;

case 1012:
   $dbaMessage .= "Can't read record in system table.";
   break;

case 1013:
   $dbaMessage .= "Can't get status of '%-.64s' (errno: %d)";
   break;

case 1014:
   $dbaMessage .= "Can't get working directory (errno: %d)";
   break;

case 1015:
   $dbaMessage .= "Can't lock file (errno: %d)";
   break;

case 1016:
   $dbaMessage .= "Can't open file: '%-.64s'. (errno: %d)";
   break;

case 1017:
   $dbaMessage .= "Can't find file: '%-.64s' (errno: %d)";
   break;

case 1018:
   $dbaMessage .= "Can't read dir of '%-.64s' (errno: %d)";
   break;

case 1019:
   $dbaMessage .= "Can't change dir to '%-.64s' (errno: %d)";
   break;

case 1020:
   $dbaMessage .= "Record has changed since last read in table '%-.64s'";
   break;

case 1021:
   $dbaMessage .= "Disk full.";
   break;

case 1022:
   $dbaMessage .= "This duplicate record could not be added to the database.";
   break;

case 1023:
   $dbaMessage .= "Error on close of '%-.64s' (errno: %d)";
   break;

case 1024:
   $dbaMessage .= "Error reading file '%-.64s' (errno: %d)";
   break;

case 1025:
   $dbaMessage .= "Error on rename of '%-.64s' to '%-.64s' (errno: %d)";
   break;

case 1026:
   $dbaMessage .= "Error writing file '%-.64s' (errno: %d)";
   break;

case 1027:
   $dbaMessage .= "'%-.64s' is locked against change";
   break;

case 1028:
   $dbaMessage .= "Sort aborted.";
   break;

case 1029:
   $dbaMessage .= "View '%-.64s' doesn't exist for '%-.64s'";
   break;

case 1030:
   $dbaMessage .= "Got error %d from table handler";
   break;

case 1031:
   $dbaMessage .= "Table handler for '%-.64s' doesn't have this option";
   break;

case 1032:
   $dbaMessage .= "Could not find the record that was requested.";
   break;

case 1033:
   $dbaMessage .= "Incorrect information in file: '%-.64s'";
   break;

case 1034:
   $dbaMessage .= "Key

Re: [PHP-WIN] Moron question: What is the & in a class meant to do?

2002-06-24 Thread Chris Boget


> I'm a bit confused.  I keep stealing code and using it for my own devious
> purposes and parts of it I don't understand.  What is the "&" in a piece of
> code that looks like this meant to do?  I looked all through the Class stuff
> in the docs but can't seem to find the reason for it.
> $foo = &$bar->some_function();

I've never seen it used like that, but the & means pass "by reference" instead
of the default *by value".

Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] case-sensitive

2002-06-25 Thread Chris Schmidt

Why on windows is PHP not case-sensitive but on Unix it is?  And can this be
configured



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] case-sensitive

2002-06-25 Thread Chris Schmidt

Sorry.

I have an Windows 2000 box running PHP as CGI

I use this
$includePath ="../";
include($includepath."config.php");

Works on my Windows 2000

not on unix.

I change $includePath to $includepath and it works on both.

"Stuart Dallas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tuesday, June 25, 2002 at 9:27:42 PM, "Chris Schmidt" wrote:
>
> > Why on windows is PHP not case-sensitive but on Unix it is?  And can
this be
> > configured
>
> If you mean filenames, this is a choice the filesystem designers made and
there
> is no way to change it. If this is not what you mean, please be more
specific.
>
> --
> Stuart
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] case-sensitive

2002-07-01 Thread Chris Schmidt

include("config.php");
does not work;

"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> PHP variable names are case sensitive aren't they?
>
> It might just be that config.php can be found by Win2000 without the
> $includepath-as if you were typing include("config.php");
>
>
> "Chris Schmidt" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Sorry.
> >
> > I have an Windows 2000 box running PHP as CGI
> >
> > I use this
> > $includePath ="../";
> > include($includepath."config.php");
> >
> > Works on my Windows 2000
> >
> > not on unix.
> >
> > I change $includePath to $includepath and it works on both.
> >
> > "Stuart Dallas" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > On Tuesday, June 25, 2002 at 9:27:42 PM, "Chris Schmidt" wrote:
> > >
> > > > Why on windows is PHP not case-sensitive but on Unix it is?  And can
> > this be
> > > > configured
> > >
> > > If you mean filenames, this is a choice the filesystem designers made
> and
> > there
> > > is no way to change it. If this is not what you mean, please be more
> > specific.
> > >
> > > --
> > > Stuart
> > >
> >
> >
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Getting users IP Address

2002-07-02 Thread Chris Earle

$_SERVER["REMOTE_ADDR"] is I believe the variable (you can do phpinfo();
call to find others).

"R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> How do I get a users IP address using either Javascript or PHP?
>
> Thanks,
> Ron



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Followed install.txt... and NOTHING

2002-07-02 Thread Chris Earle

I'm almost entirely sure that this is Apache's fault (well XP).

XP and Apache don't get along together.  To get this to work you might need
to install Win2k or some form of Linux.

"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> make sure these lines are in your httpd.conf file in the conf dir of
apache
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php4 .php .htm .php3 .inc
> AddType application/x-httpd-php-source .phps
>
> also make sure you have copied the php.ini file to you windows dir... ( if
you can't see that file there will be a file called php.ini.dist or
something like that and copy that there an rename it to php.ini)
>
> and it should work.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 2 July 2002 2:10 PM
> To: Peter
> Subject: Re: [PHP-WIN] Followed install.txt... and NOTHING
>
>
> I get no messages... its as if the PHP scripting wasnt present!
>
> - Original Message -
> From: "Peter" <[EMAIL PROTECTED]>
> Newsgroups: php.windows
> To: "news.per.connect.net.au" <[EMAIL PROTECTED]>;
> <>
> Sent: Tuesday, July 02, 2002 12:14 PM
> Subject: RE: [PHP-WIN] Followed install.txt... and NOTHING
>
>
> > wot messages do you have coming up on your browser?
> >
> >
> > -Original Message-
> > From: news.per.connect.net.au [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 2 July 2002 1:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Followed install.txt... and NOTHING
> >
> >
> > I am using Windows XP Professional version 2002.
> >
> > I have followed the instructions of install.txt that came with the
zipped
> > package at
> > http://www.php.net/do_download.php?download_file=php-4.2.1-Win32.zip a
> > number of times and I get no output when I try to write PHP files.  For
> > example, a simple  tag will display a blank page on my
> > browser.  I have tried running it through Apache version 1.3.24  (I must
> > admit I don't really know what I'm doing or what this all means).  All I
> > want to do is start using the PHP language with MySQL eventually.  Are
> there
> > simpler ways to configure this?  I'm stuck!
> >
> > Thanks :o)
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] case-sensitive

2002-07-02 Thread Chris Schmidt

Yes includes work My problem is with case of vars

if I have this on my  Win2k


$includePath ="test";
echo $includepath;

the output is test

if I  do the same on a unix box the output is nothing

Case Sesitivaty seems to have been turned of on my Win2K box.  I would like
it back on.

"Scott Hurring" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I assure you, include() does work ;-)
>
> Verify that the file is indeed present in the 'include_path' (as set
> manually by ini_set() or in 'php.ini'), and make sure that the
> server is actually parsing PHP files correctly.
>
> --
> Scott Hurring
> Systems Programmer
> EAC Corporation
> scott (*) eac.com
> --
> "Chris Schmidt" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > include("config.php");
> > does not work;
> >
> > "Peter" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > PHP variable names are case sensitive aren't they?
> > >
> > > It might just be that config.php can be found by Win2000 without the
> > > $includepath-as if you were typing include("config.php");
> > >
> > >
> > > "Chris Schmidt" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > Sorry.
> > > >
> > > > I have an Windows 2000 box running PHP as CGI
> > > >
> > > > I use this
> > > > $includePath ="../";
> > > > include($includepath."config.php");
> > > >
> > > > Works on my Windows 2000
> > > >
> > > > not on unix.
> > > >
> > > > I change $includePath to $includepath and it works on both.
> > > >
> > > > "Stuart Dallas" <[EMAIL PROTECTED]> wrote in message
> > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > > On Tuesday, June 25, 2002 at 9:27:42 PM, "Chris Schmidt" wrote:
> > > > >
> > > > > > Why on windows is PHP not case-sensitive but on Unix it is?  And
can
> > > > this be
> > > > > > configured
> > > > >
> > > > > If you mean filenames, this is a choice the filesystem designers
made
> > > and
> > > > there
> > > > > is no way to change it. If this is not what you mean, please be
more
> > > > specific.
> > > > >
> > > > > --
> > > > > Stuart
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] RE: PHP4 and Apache2

2002-07-09 Thread Chris Dion

Reese,
They do work together.  I am using PhP 4.3.0-dev because it solves
cookie problems and apache2 support is no longer experimental.at least
not in the experimental folder.  You should upgrade to apache 2.0.39.  
In the httpd.conf file I have:

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

You will need to set the path to the module to what ever it was in 4.2.1.
 I think it's in the experimental folder.

Hope this helps

Chris




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] PHP Network functions

2002-07-15 Thread Chris Knipe

Lo all,

What extensions needs to be enabled to be able to use PHP's network functions in 
Windows?

I'm specifically after the DNS related functions (getmxrr, gethostbyname & 
fsockopen)... 

Thank you kindly.

--
me




[PHP-WIN] Re: [PHP] Problem on file_exists()

2002-07-16 Thread Chris Hewitt

Jack wrote:

>Dear all
>I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing
>room\report) it stores a lot of PDF reports in there.
>I'm trying to use the file_exists() function to detect if a specific file
>exist in this folder, but i got a problem is :
>It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go
>through (dealing room) folder. i had made test on it, i moved a file into
>(\\nedcoraa\pdf_reports), then php can detect it, but if i move it to
>(\\nedcoraa\pdf_reports\dealing room), then it can't detect the file! why?
>
>I'm using php in windows NT IIS environment!
>
I think you will need to escape the space, usually with a \

HTH
Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Include Issues Windoes 2000

2002-07-25 Thread Chris Schmidt

I have two server

FS = File Server
WS = Web server

WS is IIS and is conecting to a share on FS.
So the path to the PHP files is
\\FS\iisweb\phpfiles\

So if i call test.php and that is located at http://WS/client/test.php
and config is at http:\\WS\phpfiles\config.php

test.php has this as a line:
include("\\FS\iisweb\phpfiles\config.php")
or
include("..\phpfiles\config.php")
I get  that a file can not be found

Does PHP for windows work with Shares?



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] SESSIONizing Post form vars

2002-07-30 Thread Chris Boget

> Is there a quick way to add all of the vars in the $_POST[] array to
> the $HTTP_SESSION_VARS[]? 
> I suppose a loop would do the trick.

array_merge() might work, too.

Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Can't send mail

2002-08-16 Thread Chris Schoeman

I am using php as an isapi module on IIS.
Sending mail from within php scripts don't work.
Anyone has an idea of what is wrong?

Thankx

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] finding out if a key exists in an associative array

2002-08-22 Thread Chris Boget

:: I'm creating an associative array that creates keys and values for
:: those keys on the fly.  Later I need to check and see if the array
:: contains a key before I call it to avoid the dreaded "Undefined
:: Index" error.  Is it possible to see if a key exists in an
:: associative array before I call it?  Kind of like the "isset" to
:: check if a variable exists before you call it, and it doesn't error
:: out on you. 

Do you know the key before hand?  If so, you can do something like 
this:

if( isset( $array["key"] )) {
}

If you don't know, you can check out the following page:

http://www.php.net/manual/en/function.key.php

Chris



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] mysql_query() & mail() - something weird is going on !

2002-09-12 Thread Chris Knipe

Lo all,

I get a timeout on line 523 of my code (posted and marked below).  However,
I fail to see where the timeout is occurring, and even debugging
(mysql_error()) doesn't report anything wrong!

I'm baffled as to what exactly is causing this timeout  The code is
currently on Apache (Win32) with PHP 4.2.3.  When I move the code over to a
*nix system, it works perfectly via sendmail_path in php.ini, but when it
calls the SMTP server via a remote address, it fails.

The mail server's exim-3.36, receiver and sender verification has been
turned off.  The mail does go through the mail server.  I also tried
bouncing the messages through a local Exchange server, and the result of
this, is that the email get's additional headers that becomes part of the
body!

Line 523 is indicated with a **


// Insert the Technical Administrator's details into the Database as the
Company
// Administrator.
$MakePassword = new GeneratePassword(16,5);
$Password = $MakePassword->makePassword();

$SQL  = "INSERT INTO CompanyContacts (ContactActive, CompanyID, ";
$SQL .= "ContactName, IDNumber, EMailAddress, CellNumber, Password)
VALUES ('1', '";
$SQL .= mysql_escape_string($CompanyID) . "', '" .
mysql_escape_string($_POST['TechName']) . "', '";
$SQL .= mysql_escape_string($_POST['TechID']) . "', '" .
mysql_escape_string($_POST['TechEMail']) . "', '";
$SQL .= mysql_escape_string($_POST['TechCell']) . "', PASSWORD('" .
mysql_escape_string($Password) . "'));";
$TechRegisterSQL = mysql_query($SQL) or die(mysql_error());

// Mail the login details for the Company Administrator, Redirect him to
the login
// page, and we're done!.
$msg = "";
$msg .= "Dear " . $_POST['TechName'] . ",\n";
$msg .= "\n";
$msg .= "Below follows your login details for MegaMonitor.  As the
registrar of\n";
$msg .= "" . $_POST['CompanyName'] . ",\n";
$msg .= " you have been given the rights of Company Administrator.\n";
$msg .= "\n";
$msg .= "This allows you to log in at the MegaMonitor web site, and add
further\n";
$msg .= "configurations for your company.  These may include account
contacts, \n";
$msg .= "technical contacts, time periods, service checks, and
everything else \n";
$msg .= "needed to setup monitoring for your company.\n";
$msg .= "\n";
$msg .= "You also may request for any number of additional services from
MegaLAN\n";
$msg .= "Corporate Networking Services, including access to a wider
spectrum of\n";
$msg .= "monitoring by purchasing more licenses for IP addresses.\n";
$msg .= "\n";
$msg .= "MegaLAN Corporate Networking Services also will be offering
other\n";
$msg .= "excellent value added services over the not to distant future.
We are\n";
$msg .= "hard at work to get these up and running, and as a client, we
will notify\n";
$msg .= "you when they become available.  Some of these services
include:\n";
$msg .= "\n";
$msg .= "  - MegaMAIL, a e-mail virus scanning service for corporates.
We scan all\n";
$msg .= "  in and outgoing e-mails on your behalf to ensure
your company\n";
$msg .= "  does not get infected with viruses via
e-mail.\n";
$msg .= "  - MegaDNS,  a DNS hosting and administrating service for
corporates,\n";
$msg .= "  where we will provide access to DNS
administrative tools, as\n";
$msg .= "  well as secondary domain hosting - free of
charge.\n";
$msg .= "\n";
$msg .= "To log in to MegaMonitor and configure your company's profile,
please visit\n";
$msg .= "http://www.imadethis.co.za/login.php\n";;
$msg .= "\n";
$msg .= "Your Username: " . $_POST['TechEMail'] . "\n";
$msg .= "Your Password: " . $Password . "\n";
$msg .= "\n";
$msg .= "You may change your password at anytime via our administrative
interface on\n";
$msg .= "our web site.\n";
$msg .= "\n";
$msg .= "Thank you for your interest in MegaMonitor, and we hope we will
benefit\n";
$msg .= "your company tremendously.\n";
$msg .= "\n";
$msg .= "MegaLAN Customer Support.\n";
$msg .= "\n";
mail($_POST['TechEMail'], "MegaMonitor Registration Details", $msg,
 "From: MegaLAN Customer Support <[EMAIL PROTECTED]>\r\n");

// Mail everything to MegaLAN support for confirmation.
// Look up the bank name in the Database.
**$BankQuery = mysql_query("SELECT BankName FROM GlobalBankNames WHERE
BankID='" . mysql_escape_string($_POST['BankInstitution']) . "';") or die
(mysql_error());
while ($BankList = mysql_fetch_array($BankQuery)) {
  $BankLongName = $BankList['BankName'];
}
if ($_POST['BankAccountType'] == "3") {
  $BankAccountTypeLong = "Cheque Account";
} elseif ($_POST['BankAccountType'] == "2") {
  $BankAccountTypeLong = "Transmission Account";
} elseif ($_POST['BankAccountType'] == "1") {
  $BankAccountTypeLong = "Savings Account";
} else {
  // We

[PHP-WIN] IIS 5 and Tomcat?

2001-04-28 Thread Chris Boothe

Does anyone have any experience with setting up IIS 5 with Tomcat? I have downloaded 
the Win32 version of tomcat in several zip files. However they only consist of one DLL 
each.

I need to get more information where can I look?

Thanks,

Chris Boothe
[EMAIL PROTECTED]



Re: [PHP-WIN] IIS 5 and Tomcat?

2001-04-28 Thread Chris Boothe

Just answering my own question I think...
Haven't tried this solution yet.

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html


Chris Boothe
[EMAIL PROTECTED]



Re: [PHP-WIN] need help displaying random records

2001-04-30 Thread Chris Adams

On 30 Apr 2001 17:27:44 -0700, r.gelstharp <[EMAIL PROTECTED]> wrote:
> As a university degree student my final year project is a comparison on ASP
> v PHP. I have to make two identical sites in both languages, but am at the
> moment having trouble duplicating a function on my ASP pages in PHP.
> 
> The default page in my ASP pages display random records from the database to
> the screen, but I'm having a bugger of a time trying to duplicate the effort
> in PHP.

Which database are you using? If you don't have an easy database (e.g. records
from 1 to 100 allowing a simple select where ID=rand()), you'll probably need
something database specific - for example, in SQL Server you should be able to
do SELECT TOP 1 ... ORDER BY RAND(). 

Alternately, if you only have a small number of records, you could simply
select all of the records and then pick a row from the resultset at random.

Chris

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




[PHP-WIN] Path error session.save_path at php.ini.

2001-05-04 Thread Chris Boothe

Has anyone seen this before or know how to fix it? I am trying to run setup.php from 
phpProjeckt.

Session error!

please set the correct temp path in the variable session.save_path at php.ini.

The ini file has a value of /tmp does this work on IIS5?

Thanks,


Chris Boothe
[EMAIL PROTECTED]



Re: [PHP-WIN] msvcr70.dll ?

2001-05-07 Thread Chris Adams

On 2 May 2001 02:58:04 -0700, Ermanno Iannacci <[EMAIL PROTECTED]> wrote:
> When I start Apache, I get a lot of errors saying "Could not find
> msvcr70.dll". Which dll is this?
> (NT4 Apache 1.3.17 PHP 4.0.5)

It's one of the Visual C runtime DLLs. It'll apparently ship with Windows XP
from what I've gathered. In the PHP 4.0.5 for Windows distribution, it's
required by the SSLEAY32.DLL and LIBEAY32.DLL, which are included by the curl
and openssl extensions. Since I don't currently need either, I just told PHP
not to load it; if you need it, you might try seeing if it works with different
versions of the ssleay DLLs.

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




[PHP-WIN] SSL on IIS5?

2001-05-07 Thread Chris Boothe

Is there a way to get something like OpenSSL to work on IIS5? I am doing development 
on my machine and when it is ready I will be porting it to a hosting company that 
shares their certificate.

Any suggestions?

Chris Boothe
[EMAIL PROTECTED]



[PHP-WIN] Netscape and $PHP_SELF?

2001-05-07 Thread Chris Boothe

My script works fine in IE 5.5 however a hyperlink is missing the script name when it 
is displayed in Netscape Navigator 4.77.

echo "$id\n";

Instead of view.php?id=1&act=v I get ?id=1&act=v
which doesn't work obviously.

Thanks,

Chris Boothe
[EMAIL PROTECTED]



Re: [PHP-WIN] Netscape and $PHP_SELF?

2001-05-08 Thread Chris Boothe

I know what you are saying it is a bit odd.

The problem is that
$id

is being called within a function and the $HTTP_HOST, etc. seem to be set to
null within the function.

Thanks,


Chris Boothe
[EMAIL PROTECTED]
- Original Message -
From: "Mike Flynn" <[EMAIL PROTECTED]>
To: "Chris Boothe" <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 6:58 PM
Subject: Re: [PHP-WIN] Netscape and $PHP_SELF?


> $PHP_SELF is on the server side, since PHP is a server-side scripting
> language.  The user's browser has no bearing on the value $PHP_SELF gets
> because it is all done on the server before the page even reaches the
> user.  Try viewing the source in the two different browsers and confirming
> that it really is different and doesn't just appear that way from the
> browser window?
>
> -Mike
>
> At 11:22 PM 5/7/01 -0400, you wrote:
> >My script works fine in IE 5.5 however a hyperlink is missing the script
> >name when it is displayed in Netscape Navigator 4.77.
> >
> >echo "$id\n";
> >
> >Instead of view.php?id=1&act=v I get ?id=1&act=v
> >which doesn't work obviously.
> >
> >Thanks,
> >
> >Chris Boothe
> >[EMAIL PROTECTED]
>
> Today's alienated gem:
> "Send your favorite mom lots of love and affection, free of shipping
> charges!" -- Seen on a shopping site
>
>-=- Mike Flynn - Burlington, VT -=-
> [EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
>   Wouldn't the free market, in its true form, be anarchy?
>


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




Re: [PHP-WIN] ISAPI

2001-05-09 Thread Chris Adams

On 9 May 2001 12:07:54 -0700, Tim Uckun <[EMAIL PROTECTED]> wrote:
> Is there a document that explains the intracasies of this environment.
> If I decide to scrap IIS and go to apache will php run as a loadable module 
> or CGI? Will it be fast and efficient like ISAPI?

Loadable module. And yes, it's efficient. It's also nice to have the much
richer Apache environment available instead of IIS.

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




[PHP-WIN] Question

2001-05-09 Thread Chris Cranford

Hello Everyone

I am using the PHP 4.0.5 I believe's php.exe preprocessor.  How do I pass it the 
QUERY_STRING parameters from the dos window's command line ???  I need to do some 
manual testing and can not figure out how to pass it the URL's query line.

Thanks
Chris



[PHP-WIN] PHP Preprocessor - URGENT

2001-05-09 Thread Chris Cranford

All - 

I am using the php.exe preprocessor and I want to run the preprocessor manually and 
see the output it generates on a particular .php file I have wrote. 

The .php file I have written requires some URL arguments which would normally be 
submitted in the QUERY_STRING argument on the URL link.  How can I force these values 
into the QUERY_STRING using the preprocessor php.exe file?

Thanks
Chris



[PHP-WIN] PHP 4.0 and Payflow Pro

2001-05-10 Thread Chris Mahaffey

Hello,
I am having a problem setting up PHP 4.0.5 to work
with Verisign's Payflow Pro.  I have the Windows
Binary, PHP Source files and the Payflow Pro SDK.  I
have seen in the language reference how to set up PHP
with the Payflow Pro extensions on a non-Windows box,
but I can't figure out how to do it for Windows.  Do I
need to compile my own version of the PHP executable? 
If so, how/what to do?
I do have PHP running perfectly without the Payflow
Pro extensions on a Windows 2000 Server with IIS 5. 
Any help would br greatly aprreciated.
TIA,

Chris

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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




Re: [PHP-WIN] HTML -> PHP -> HTML calling sequence

2001-04-22 Thread Chris Adams

On 21 Apr 2001 17:06:05 -0700, Bob Sears <[EMAIL PROTECTED]> wrote:
>
>I'm stuck. Module A is a HTML program with a FORM/ACTION/GET that xctls to 
>a PHP module. I have no problem getting to
>the PHP module, displaying a dummy screen, and returning to the HTML 
>program. In a PHP text I perused through at Border's,
>the text said to access STDIN via:
>
>$fh = open("PHP://stdin","r")
>
>to get the stuff that is being passed via the method=get from the HTML 
>module. However, when I issue that command
>and look at the contents of stdin, it's nothing. No data is being retrieved.

Did that work without error? I thought that the php: urls needed to be lower
case.

In any case, is there any reason why you can't iterate through the
$HTTP_GET_VARS array? IIRC, the stdin method only works with CGI programs.

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




[PHP-WIN] setting up .phps

2001-05-15 Thread Chris Sano

How do I set up .phps files in windows? I'm running IIS5.0 on win2k. Any
help would be appreciated, 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]




Re: [PHP-WIN] Can't get XML Parser Class to work

2001-05-15 Thread Chris Sano

Show me some snippets and I can help..

-c

""Steve Dowell"" <[EMAIL PROTECTED]> wrote in message
9drfhk$cc6$[EMAIL PROTECTED]">news:9drfhk$cc6$[EMAIL PROTECTED]...
> I am very new at using PHP and need some help.
>
> I have downloaded several of the pre written XML Parser Classes and can't
> seem to get any of them to work. They simply don't return any data.
>
> I wrote a simple routine that calls the XML Parser and writes the output
to
> the browser and it works fine.
>
> I am using PHP 4.05 on W2k Pro and IIS 5.
>
> Any suggestions would be greatly appreciated,
>
> Steve Dowell
>
>
>
> --
> 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]
>



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




[PHP-WIN] SQL & PHP

2001-05-16 Thread chris . cranford

All - 

I am trying to execute an odbc_exec ($sql) command.  A code example
is shown below:

$description = "Chris's Place";
$sql = "UPDATE SEARCH_RECORDS SET DESCRIPTION=\"".$description."\"";

// CX is already defined as a datbase connection
$stmt = odbc_prepare(CX, $sql);
if (odbc_execute($stmt)) { echo "Successful.": } else { echo
"Unsuccessful."; }

Why does the command:

UPDATE SEARCH_RECORDS SET DESCRIPTION="Chris's Page" 

fail?

Thanks
Chris

PS -- Using a microsoft access 1997 database.

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




Re: [PHP-WIN] error in ip2long

2001-05-16 Thread Chris Adams

On 16 May 2001 19:56:52 -0700, Ruslan Ohitin <[EMAIL PROTECTED]> wrote:
> hello all!
> 
> I try to convert ip address (aaa.bbb.ccc.ddd)
> to IPv4 integer using ip2long().
> 
> ip2long("200.200.200.12") = 3368601612
> but it must be -926365684.

That's the same value - the first time is treating it as an unsigned integer,
the second as a signed integer.

Chris

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




Re: [PHP-WIN] Sessions: Accessing PHP session variables under PWS

2001-05-20 Thread Chris Sano

A code snippet would be helpful to pinpoint the problem..
-C


"Zachary Harris" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am writing an app that uses sessions and can't access them outside of
> the script that they were written with.
>
> I get the following error:
>
> Warning: Undefined index: userID in
> C:\Inetpub\wwwroot\resume\posters\default2.php on line 18
>
> Please email me with any solutions
>
>
> --
> 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]
>



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




Re: [PHP-WIN] PHP/Javascript

2001-05-20 Thread Chris Sano


Mike is right - It's best to process everything on the server side and
update the client side after everything has been updated (database, etc.)
This requires some more coding (setting the drop boxes, text boxes to the
same values that the user chose before "submitting"), but it's the safest
way to go.

-C

"Bob Sears" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is what my screen looks like:
>
>I want to order ...
> description imagedropdown box  @ 7.95 each = [text
box]
>containing 0-20
>numerics
>
> I had been contemplating using Javascript to perform the text box
extension
> of the quantity * rate calculation. However, the
> need is to also update a MySQL table with the session tracking number and
> other pertinent information about the selection
> so a purchase order can be written in a subsequent module.
>
> Can this be done with straight PHP or will it require a mix of Javascript
> for the calculation and PHP for the data base update?
> If so, what might the code look like?
>
> Bob
>
>
> --
> 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]
>



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




RE: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.

2001-05-23 Thread Boget, Chris

> Midnight Commander on Linux is one of the best editors our 
> there.  It ranks right up there with the VERY OLD Microsft 
> Editor which I still use regularly!  Anybody else remember "me"?

"me"?  Multi-Edit?
If so, that editor rules!  I just wish their Windows version didn't
suck.  I still use the DOS version.

Chris



[PHP-WIN] mail(); error

2001-07-31 Thread Chris Burwell

when i try to send an e-mail using the mail(); function i get the following
message:

Warning: Failed to Connect in d:\Server\apache\htdocs\dev\inc\functions.inc
on line 26

Line 26 of the functions.inc file reads like this:

$mailsend = mail("$email", "$subject", "$body", "From:
$from\r\nContent-type:text/plain");

Can someone help me out?



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




[PHP-WIN] Re: mail(); error

2001-08-01 Thread Chris Burwell

Thanks Everybody I didn't even think of the whloe smtp server thing on my
own computer. Thanks for your help!
"Chris Burwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> when i try to send an e-mail using the mail(); function i get the
following
> message:
>
> Warning: Failed to Connect in
d:\Server\apache\htdocs\dev\inc\functions.inc
> on line 26
>
> Line 26 of the functions.inc file reads like this:
>
> $mailsend = mail("$email", "$subject", "$body", "From:
> $from\r\nContent-type:text/plain");
>
> Can someone help me out?
>
>



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




[PHP-WIN] Help with PHP/Apache/Win98 install

2001-08-24 Thread Chris Scott

Hello Everyone

I have installed php on my win98 computer with Apache.  The php files are in
c:\php directory.  I put a test script in the Apache htdocs directory and
ran the script but all I getting is the raw text of the script file.  Php
does not appear to be processing file(http://localhost/test.php) and no
errors appear.   Can anyone tell what I'm doing incorrectly?

Chris Scott
[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]




[PHP-WIN] Embedding PHP in C

2001-08-28 Thread Chris Wilson

Hello Everyone

I'm doing a project for which I want to have a C/C++ act as a process proxy
for which can pass information and retrieve information from a called PHP
script. I think that can be done in perl however perl I don't take is the
best langauge. I've fell in love with PHP and would love use it and avoid
have to call PHP from the commandline and parsing the outputs.

Any suggestion on if this can be done or any other langauge that do the
trick besides PERL..

Thanks
Chris





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




[PHP-WIN] mail(); Help

2001-09-09 Thread Chris Burwell

I am having a little trouble getting my script to work correctly. PHP send
the mail out fine, but when i see the mail in my inbox, it have no from
address. I have tryed to figure out why this is not working, but i have gad
no sucess. I have enclosed the code below, any help is greatly appreciated!
---
function new_user_mail ($username, $password, $email, $name, $homepage)
{
$subject = "Welcome to the $site_name community!";
$body = "Thank you for registering to become a memeber of the $sitename
community!
You have registered with the following information:
Username : $username
Password : $password
Name : $name
E-Mail : $email
Homepage : $homepage

You are now able to login to our community at this time. If you have any
questions you may contact our administrator.
If you did not sign up for this account simply reply to this E-Mail with the
word 'REMOVE' in the body.

Have Fun!";
mail($email,
$subject,
$body,
"From: $site_name\r\nReply-to: $admin_mail\r\n");
}




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




[PHP-WIN] User registration not working!

2001-09-09 Thread Chris Burwell

I am having some trouble with my user authentication system. I just can't
get it to work the way i want it to. When i try to register with an e-mail
that is already in the database it dooes not give me the proper error. Can
someone help me out? I have included the registration file in th is message.
Any help is greatly appreciated!


begin 666 register.php
M/#]P:' *)&%BPH_/@H\8V5N=&5R/@H\9F]R;2!M971H
M;V0](G!O'0B(&YA;64](G5S97)N86UE(B!S:7IE/2(R-2(@;6%X;&5N
M9W1H/2(R,"(^"B @(" @(" @(" @/"]T9#X*(" @(" @(#PO='(^"B @(" @
M(" \='(^"B @(" @(" @(" @/'1D/@H@(" @(" @(" @(" @("!087-S=V]R
M9" H,3@@8VAAF4](C(U(B!M87AL96YG=&@](C$X(CX*
M(" @(" @(" @(" \+W1D/@H@(" @(" @/"]TF4](C(U(CX*(" @(" @(" @(" \+W1D/@H@(" @(" @/"]TF4](C(U(B!V86QU93TB:'1T<#HO+R(^"B @(" @(" @(" @/"]T
M9#X*(" @(" @(#PO='(^"B @(" @(" \='(^"B @(" @(" @(" @/'1D(&%L
M:6=N/2)C96YT97(B(&-O;'-P86X](C(B/@H@(" @(" @(" @(" @(" \:6YP
M=70@='EP93TBPH@('!R:6YT("@B4&QE87-E(&5N=&5R(&$@=F%L:60@<&%SPH*(" @(&5C:&\@(CQF;VYT(&-L
M87-S/5PB+F5R2!T86ME
M;B!B>2!A;F]T:&5R(&UE;6)E2!Q=65S=&EO;G,@>6]U(&-A;B!%+4UA:6P@=&AE
M;B!T;R \82!H2!R96=I2!R96%S;VYS('EO=2!W:6QL(&AA=F4@
M=&\@6]U(&AA=F4@86YY('%U97-T:6]N71H:6YG(&ES(&]K
M(&EN7-Q;%]Q=65R
M>2@D<75E6]U
M(&AA=F4@86YY('%U97-T:6]Nhttp://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]




[PHP-WIN] Fast Template PHP4 patch

2001-09-10 Thread Chris Burwell

How do I patch Fast Template to PHP4? I see the code to do so on their web
site (http://www.thewebmasters.net/php/FastTemplate.phtml), but I do not
know where in class.fasttemplate.php3 to put that cade. Can someone help me
out? Any Help is greatly appreciated!



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




[PHP-WIN] Where's my mcrypt function??

2001-09-12 Thread Chris Scott

I cannot find the php_mcrypt.dll function in the 4.0.6 build. It is not
contained in any of the downloads. Is there any way to have its
installed?  Thanks, Chris Scott




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




  1   2   3   >