Re: [PHP-WIN] Redirection

2003-11-27 Thread Stuart
PETCOL wrote:


 function browserRedirect()
  {
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;</pre><br>
<pre style="margin: 0em;">if(ns4) URLStr = "<a  href="http://www.php.net"">http://www.php.net"</a>;;
else if(ns6) URLStr = "<a  href="http://www.php.net"">http://www.php.net"</a>;;
else if(ie4) URLStr = "<a  href="http://www.php.net"">http://www.php.net"</a>;;
else URLStr = "<a  href="http://www.php.net"">http://www.php.net"</a>;;
location = URLStr;
  }



In the


  echo "\n";
  echo "browserRedirect()\n";
  echo "\n";
  exit();

You might have a better cleaner suggestion?
If you're going to go this way (which as Rasmus pointed out is generally 
very bad UI design) you might find the following a lot cleaner...


location.href = '<a  href="http://www.php.net/">http://www.php.net/</a>';

There is no reason to do any browser detection, especially if you don't 
actually change anything based on what browser it thinks it is. The best 
solution however would be to reorganise the script so it decides whether 
to redirect before it outputs anything to the browser.

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


Re: [PHP-WIN] Re: Newbie: Apache will not start when I load PHP

2003-12-29 Thread Stuart
Russell wrote:
Me again - I have solved this problem by including a relative path to the
PHP dll from the Apache directory, althoug I'm still not clear as to why the
windows path did not work. Any suggestions would be helpful, as according to
my documentation, both should be OK.
LoadModule php4_module e:/Program
Files/PHP/Windows/php-4.2.3-Win32/sapi/php4apache2.dll
This path contains a space and therefore needs to be enclosed in quotes 
otherwise Apache will read the path as e:/Program. I'm willing to bet 
that the relative path you are now using does not contain a space.

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


Re: [PHP-WIN] binary search in php

2004-01-09 Thread Stuart
Idur wrote:
1. How to searching data in array using "binary search methode" and update the data when found it.
because the data, that i have to process is big, with more than 12000 lines.
2. How did i found tutorial about binary search in php.??? 
A quick Google found this: http://www.mwc.edu/inte/cpsc/03/about.html

3. If i have php script and when i execute, need max_execution_time more than 30 second it's pretend bad???
http://php.net/set_time_limit - much better than changing the value in 
php.ini

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


Re: [PHP-WIN] binary search in php

2004-01-09 Thread Stuart
Stuart wrote:
Idur wrote:
1. How to searching data in array using "binary search methode" and 
update the data when found it.
because the data, that i have to process is big, with more than 12000 
lines.
2. How did i found tutorial about binary search in php.??? 
A quick Google found this: http://www.mwc.edu/inte/cpsc/03/about.html
Or try this for a PHP example: 
http://www.rci.rutgers.edu/~jfulton/binary_search/

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


Re: [PHP-WIN] Calling a function from a hyperlink

2004-01-10 Thread Stuart
Mike Brum wrote:
Can you be a bit more clear on "calling a function from a hyperlink"? If
you're referring to that in the JavaScript sense, then no.
No?

link

Works in most browsers I've come across.

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


Re: [PHP-WIN] Re: Calling a function from a hyperlink

2004-01-10 Thread Stuart
kaizer boab wrote:
The problem I have is this:

I have built a shopping cart using a session. I have an addItem() function,
and I was wondering if it were possible to call this function using a
hyperlink.
At the moment when a user clicks to add an item they are directed to the
"add.php" page as below:
+

I want to have my addItem() function in all shopping pages but I only want
it accessed via a link. Is this possible?
Create an include file that checks $_GET for a particular variable. If 
it's there call addItem, if not do nothing. Then include that file in 
all pages that need to handle adding items.

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


Re: [PHP-WIN] chmod on win xp - update

2004-01-19 Thread Stuart
mayo wrote:
Donatas, you were right:
The tools > Folder Options > advanced settings, uncheck "Use simple file
sharing" was it. The security tab appeared. (Woohoo)
Unfortunately there are still some issues. All the check boxes are grayed
out and I'm still unable to give myself execute privileges.
In the security tab, click on "Advanced". At the bottom of the dialog 
that appears there is a checkbox with the label "Inherit from parent the 
permission entries that apply" Uncheck that, select copy in the 
popup and you should then be able to modify the permissions.

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


Re: [PHP-WIN] Re: Open Port limits on XP

2004-01-22 Thread Stuart
Anthony wrote:
Dunno about 64, but XP has a limit of 10 connections over a network to any
port.  This was MS's way to stop people from using it as a server.  I guess
you could listen on as many ports as you want, but only be able to respond
to requests on 10 at a time. (pretty sure it's 10, could be wrong though)
Yup, 10: http://support.microsoft.com/?kbid=314882

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


Re: [PHP-WIN] Use ASP components in PHP code?

2004-01-28 Thread Stuart
Disko_kex wrote:
Im rewriting my webpage from ASP to PHP, the first problem I discovered
is that I MUST use some ASP components (e.g. send SMS thru ASPSMS). Is
there a way to mix the both, or incorporate ASP in the PHP code.
All  ASP components that I'm aware of are COM objects. Have a read of 
http://php.net/com

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


Re: [PHP-WIN] building a string question

2004-02-03 Thread Stuart
Herhuth, Ron wrote:
for($i=0;$i<$_POST['numberOfAmendments'];$i++)
{
$amendmentNumber = $_POST['amendmentID_$i'];

}
Replace your single quotes with double quotes. Variable substitution is 
not performed on single-quoted strings.

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


Re: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Stuart
David Felton wrote:
SELECT TOP 10 dbo.Table_MIS_Files.File_ID
FROM		dbo.Table_MIS_Files
WHERE dbo.Table_MIS_Files.File_ID NOT IN 
(SELECT TOP 25 dbo.Table_MIS_Files.File_ID
FROM		dbo.Table_MIS_Files)
Shouldn't this be...

SELECT TOP 25 dbo.Table_MIS_Files.File_ID
FROMdbo.Table_MIS_Files
WHERE dbo.Table_MIS_Files.File_ID NOT IN
(SELECT TOP 10 dbo.Table_MIS_Files.File_ID
FROMdbo.Table_MIS_Files)
That will get rows 11-25.
--
Stuart
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] Internal Server Error

2004-04-29 Thread Stuart
Raheel Hussain wrote:
HTTP 500 - internal server error

can somebody guide where i m making mistakes
or wht things to keep in mind while mannually configuring this.
I'm going to assume you're using Internet Explorer in its default 
configuration. Try turning "Show friendly HTTP error messages" in the 
Advanced tab of your Internet Options in the Tools menu. Then refresh 
the page - it *may* give you a more specific error message.

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


Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Stuart
2009/3/17 Bill Mudry 
>
> I hope someone has an answer to what has been a thorny problem for me. I am 
> still junior to using PHP.
> I have a script that displays a bunch of woody botanical orders out of a 
> MySQL file nicely in columns.
> That part works fine.
>
> Next what is wanted is for a user to be able to click on one of them, the 
> result being that it would open up
> a new page that would get details on the woody order the person chose out of 
> another MySQL table.
> Well  I got it to link to a page that opens up ok  except after 
> numerous attempts and ways I cannot
> get the name of the chosen woody order to transfer to this next page.
>
>        - the examples I have seen on the Internet and book use static 
> information for the better part while the
>          very parameter that needs to be passed is derived dynamically. I am 
> fairly sure that is complicating
>          things more.
>
>        - Cookies would be an overkill and have too much persistence. I 
> believe using "session" would be overkill,
>          too, even if it might work. All I need is to make the choice the 
> reader makes go global enough to use it
>          in the very page that it calls. It is then also used both for titles 
> on that page (dynamic) and to do a
>          query for information to display on that chosen order. Writing to a 
> file seems to be an inefficient way if
>          there is only a way to just make it be memory resident instead.
>
> The running copy can be seen and tried (to the degree it is working so far) 
> at:
>        http://www.prowebcanada.com/taxa/viewallorders.php
>
> The files used are viewallorders.php and the response page of showorder.php. 
> I will add these as attachments.
>
> What *will* work? Hope someone can help.

What *will* work is understanding how HTTP works and where variables
come from within a script. For this you need to read up on it - I'm
sure Google can find you a basic introduction to web development.

As for your current problem please ignore all talk of JS and forms,
neither of which are needed. In viewallorders.php where you have...

echo "";

...change it to...

echo "";

Then in showorder.php that value will be available in
$_GET['ordername'], so for example your debugging statement would
change from...

echo "Debug statement: Chosen order is . $ordername . $name";

...to...

echo "Debug statement: Chosen order is ".htmlentities($_GET['ordername']);

Notice how I'm encoding the value going into the URL and escaping it
when it gets echo'd back to the browser. This is important for
security reasons. For more on that please read
http://phpsec.org/projects/guide/.

-Stuart

-- 
http://stut.net/

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



Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Stuart
2009/3/17 Joao Gomes Madeira :
> Hello Bill
>
> I mixed up names and ended up answering the wrong message. Sorry.
>
> Actually it is quite easy...
>
> In viewallorders.php you should replace:
>
> echo "";
>
> with
>
> echo '';
>
> and then, in showorder.php
>
>  parse_str($_SERVER['QUERY_STRING'], $qs);
> $name = $qs['name'];
>
> and that's it!

What have you been smoking? This is already done for you, and the
results are in $_GET. Why duplicate the work?

-Stuart

-- 
http://stut.net/

> Now, the strings passed through this method are insecure. You should use
> a parser function to clean or sanitize them (like urlencode/urldecode).
>
> Cheers
> JP
>
>
>
>
>
> -Original Message-
> From: Bill Mudry 
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter
> to next page
> Date: Tue, 17 Mar 2009 11:39:08 -0500
>
> I hope someone has an answer to what has been a thorny problem for
> me. I am still junior to using PHP.
> I have a script that displays a bunch of woody botanical orders out
> of a MySQL file nicely in columns.
> That part works fine.
>
> Next what is wanted is for a user to be able to click on one of them,
> the result being that it would open up
> a new page that would get details on the woody order the person chose
> out of another MySQL table.
> Well  I got it to link to a page that opens up ok  except
> after numerous attempts and ways I cannot
> get the name of the chosen woody order to transfer to this next page.
>
>        - the examples I have seen on the Internet and book use static
> information for the better part while the
>          very parameter that needs to be passed is derived dynamically. I
> am fairly sure that is complicating
>          things more.
>
>        - Cookies would be an overkill and have too much persistence. I
> believe using "session" would be overkill,
>          too, even if it might work. All I need is to make the choice the
> reader makes go global enough to use it
>          in the very page that it calls. It is then also used both for
> titles on that page (dynamic) and to do a
>          query for information to display on that chosen order. Writing to
> a file seems to be an inefficient way if
>          there is only a way to just make it be memory resident instead.
>
> The running copy can be seen and tried (to the degree it is working so far) 
> at:
>        http://www.prowebcanada.com/taxa/viewallorders.php
>
> The files used are viewallorders.php and the response page of
> showorder.php. I will add these as attachments.
>
> What *will* work? Hope someone can help.
>
> Bill Mudry
> MIssissauga, ON
> -- 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] is ZendStudio IDE necessary????

2009-07-05 Thread Stuart
2009/7/6 gunawan :
> i'm not suggested using Arach for php editor.. since i think another editor
> are better.
> fyi.. i'm using Arach to html editor
>
>
> but in med level.. using not only one editor is something u must face
>
> for me.. i'm using a bunch of editor..
> that's include image editor and text editor.. this is my full list
> * Crimson editor => php editor
> * MS Word => template builder??
> * Irfanview
> * Flash.. image building
> * Photoshop => for polish my image.. but irfanview seem better.. since My
> work not soo need powerfull
> * Filezilla => upload my work
>
> well.. I just want to share.. to inform.. if you want to enter Med to expert
> programer.. u must have a lot tools/editor
> and next step is something you must find to enter EXPERT
> *that's not scary right?

Word? You're freaking kidding right?

In general I would argue that the tools you use have absolutely no
bearing on what level developer you are, but to be using Word for
anything other than word processing takes a special kind of ignorance
and/or stupidity. It has no place as a development tool unless you're
developing Word macros.

-Stuart

-- 
http://stut.net/

>> -Original Message-
>> From: Ravi Joshi [mailto:ravi.josh...@yahoo.com] Sent: 02 July 2009 05:39
>> PM
>> To: php mailling list
>> Subject: [PHP-WIN] is ZendStudio IDE necessary
>>
>> Hi,
>>               I have Arachnophilia(IDE) and i can write php script using
>> it.Is it necessary to install ZendStudio-7.0.0-BETA(IDE) to write php
>> script?
>>
>> -Ravi Joshi
>> 
>>
>> You answered your own question. "I have Arachnophilia(IDE) and i can write
>> php script using it." In case you missed it - no, it's not necessary to
>> install ZendStudio-7.0.0-BETA(IDE) to write php script, you can use
>> Arachnophilia(IDE).
>>
>> Cheers
>> Arno
>>
>>
>>
>
>
> --
> 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] Determining the exact location of the CLI executing the current script?

2009-08-24 Thread Stuart
2009/8/24 Richard Quadling :
> Hi.
>
> Seems like I'm missing something REALLY obvious.
>
> I can find the name of the script at runtime, the parameters, the
> SAPI, etc. Loads of info.
>
> But I can't seem to find the exact name of the executable handing the script.
>
> Which seems a little odd.
>
> Unless I'm missing something.

There is nothing built-in to get you this, but assuming you're on a
unix platform you can use an evil combination of getmypid() and
executing ps to get what you want. I'm sure similar is possible under
Windows but either way it's not very clean.

-Stuart

-- 
http://stut.net/

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



[PHP-WIN] Apache 1.3.20 and PHP 4.1.2 on Win2k Server

2002-04-26 Thread Stuart Dallas

Hi All,

I've got a very strange problem. I have a dual processor server with the
above software configuration running several sites. Most of the PHP that is
used on the sites is commercial (e.g. vBulletin) but there is also some
home-grown. Occasionally we are seeing sytax errors being shown for files
that are being include()d or require()d by PHP. Refresh the page and the
problem goes away. Having witnessed several of these occasions I checked the
files that are accused of being syntactically challenged. On none of the
occasions was there an error on the line given. In fact some of the errors
pointed to blank lines or comments. I am at a loss to explain this and it is
becoming a pain - errors like this on your corporate website do not present
a very professional image!!

Any help would be appreciated.

TIA,
Stuart


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




RE: [PHP-WIN] PHP Command Line Syntax

2002-04-28 Thread Stuart Dallas

Set the environment variable QUERY_STRING prior to running PHP...

set QUERY_STRING=servername=SERVERNAME
c:\php\php.exe -q checksingle.php

HTH,
Stuart

-Original Message-
From: Scott Dowd [mailto:[EMAIL PROTECTED]]
Sent: 28 April 2002 12:32
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP Command Line Syntax


I would like to schedule a series of PHP pages to run overnight from a
Win2k/IIS/PHP4 box. An example of the url is
http://localhost/checklist/checksingle.php?servername=SERVERNAME. When I try
to execute this from a DOS prompt, "C:\PHP\PHP.EXE -q checksingle.php" it
works fine, but when I add "?servername=SERVERNAME" as in the url, it does
not recognize the command.

"PHP Fatal error:  Unable to open checksingle.php?servername=SERVERNAME in
Unknow
n on line 0"

Is this the best way to schedule a PHP page to run ?

Thanks,
Scott.



--
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: i'm stuck guys

2002-04-29 Thread Stuart Dallas

In IE you have to do ctrl+click the refresh toolbar icon. Ctrl+F5 does not
do it.

HTH,
Stuart

-Original Message-
From: Luis Ferro [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 19:00
To: Webmaster
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Re: i'm stuck guys


Internet Explorer doesn't respect reloads and cache orders in any
perceived way. The only way i found to workaround this was (in a ASP
project) to add the response.* properties that manipulate with the cache
and add in the  of the pages the meta statements. But for
the 100% workaround in IE i had also to make it check the page for
updates ALWAYS (tools, internet options, settings, Every visit to the page).

Hope that helps,
Luis Ferro


Webmaster wrote:

>Nope, CTRL F5 doesn/t work, php then gives the same page anyway, I also
>tried to make the page php appears on to expire and consulted Microsoft of
>this problem, but nobody seems to know why this happens...
>
>The only thing that works is to manually flush the browsers cache...
>
>Webmaster
>
>"Dash McElroy" <[EMAIL PROTECTED]> schreef in bericht
>ABA3F1F1A223D411BE6C006008A6F7E23E63EE@MSX1-PTON">news:ABA3F1F1A223D411BE6C006008A6F7E23E63EE@MSX1-PTON...
>
>
>>In Mozilla and IE you can do a -F5 and it will do a force refresh.
>>
>>-Dash
>>
>>-Original Message-
>>From: Webmaster [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, April 29, 2002 10:30 AM
>>To: [EMAIL PROTECTED]
>>Subject: [PHP-WIN] Re: i'm stuck guys
>>
>>
>>Hi again,
>>I really do have problems with windows refreshing the screen, that's why i
>>see the same pages all the time too, but after all the pages does have
>>changed!
>>
>>When you insert some code and get the same page back, try this:
>>
>>Go to extra, Internet options, temporary internet files (tijdelijke
>>
>>
>internet
>
>
>>bestanden) and remove files (bestanden verwijderen) this way explorer
>>flushes it's cache, which it really not like to do :(
>>
>>Hope this will help too!
>>
>>Webmaster
>>
>>"Erik" <[EMAIL PROTECTED]> schreef in bericht
>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>
>>
>>>hi,
>>>
>>>that error indeed disapperars but now i cannot use  the html buttons
>>>
>>>
>>anymore
>>
>>
>>>when i click submit it keeps on showing me the same page over and over
>>>
>>>
>>again
>>
>>
>>>i created the script if the form is correctly fill in it should display
>>>
>>>
>a
>
>
>>>message like
>>>print "hi $name your message has been sended to me thank you ."; or
>>>incompplete fields
>>>print "oeps you forgot some requierd fields go back and fill in the
>>>
>>>
>>complete
>>
>>
>>>form please .";
>>>but that doesn't happen anymore it shows the same page al the
>>>
>>>
>time
>
>
>>>info:
>>>os:windows 2000 pro
>>>server:Apache
>>>phpversion 4.2.0
>>>browser:internet explorer 6.0
>>>daimned windows computers :-) i will buy mandrake linux soon so php runs
>>>normal i think there is nothing wrong with php only windows and php
>>>
>>>
>>doesn't
>>
>>
>>>like eachother  haha :-)
>>>
>>>the http 500 error is gone now  "see above"
>>>
>>>regards from belgium
>>>Erik
>>>
>>>
>>>
>>>
>>
>>--
>>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] File Uploader - Progress

2002-05-03 Thread Stuart Dallas

On 3 May 2002 at 15:57, Mike Flynn wrote:
> At 01:21 AM 5/4/02 +0530, Arijit Chaudhuri wrote:
> >File uploads are a breeze to code in php. However, I have got a
> >request from a client to show the percentage uploaded or some graphic
> >progress monitor as the upload process is difficult to track for
> >large files. Is there any way of coding such a progress tracker for
> >file uploads in php?
>
> Unfortunately, I don't think there is.  The file data is sent in the
> *request* for the PHP page, meaning the PHP page doesn't even get sent
> back to the user until the file is done uploading.  So there's not
> really any choice but for the user to view the page with the upload
> form until the file is done uploading.

I've been thinking about this, and there may be a way. I don't know how PHP handles 
file 
uploads, but it has to be saving the file it's receiving somewhere. You could launch a 
popup 
window when the form is submitted. That popup goes to a page that gets the size of the 
file 
PHP is saving the upload to and displays it and refreshes itself periodically.

I dunno if it would work, but it's a possibility.

-- 
Stuart

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




Re: [PHP-WIN] Re: How do i get SSI (Server Side Include) to work

2002-05-05 Thread Stuart Dallas

On 5 May 2002 at 9:32, Alex wrote:
> How did you installed PHP i have tried without sucess. I tried the
> experimental, but I get the message "Loadmodule takes two arguments, a
> module name and the name of a shared object file to load it from "
> which I did -  LoadModule php4_module C:/Program Files/Apache
> Group/Apache/php-4.2.0-Win32/php4apache.dll
> 
> Please tell me what did I do wrong?

Put the path to the DLL in quotes like so...

LoadModule php4_module "C:/Program Files/Apache Group/Apache/php-4.2.0-
Win32/php4apache.dll"

-- 
Stuart

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




Re: [PHP-WIN] Sessions under PHP 4.2

2002-05-13 Thread Stuart Dallas

R.S. Herhuth <[EMAIL PROTECTED]> wrote:
> I installed 4.2 and I want to use sessions with the "stock
> configuration."  I tried this but it doesn't work...what should I be
> doing different?

In what way? What error do you get?

-- 
Stuart


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




[PHP-WIN] Win2k + PHP + dynamic disk mirroring

2002-05-13 Thread Stuart Dallas

Is anyone running PHP on Win2k with dynamic disk mirroring? If so, have you had any 
problems with it?

I have a problem where include files are being corrupted somewhere between the disk 
and PHP and it's causing huge problems. The only difference between this server and 
the other servers we have running PHP is the dynamic disk mirroring. We'd seen it a 
couple of times on other sites we host, but we've recently installed ezPublish and 
it's become almost constant. For an example, go to http://www.gurn.to/ - if you get an 
error on the page, simply hit refresh until it goes away (sometimes it doesn't). That 
will show just how random it is.

We are not experiencing any other filesystem problems on that server. We don't want to 
disable the mirroring without being pretty sure it will solve the problem.

All experiences/insights, good and bad, are appreciated.

-- 
Stuart



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

2002-05-13 Thread Stuart Dallas

On 13 May 2002 at 17:21, Mauricio wrote:
> I am using apaches' authentication.
> How do i do for get user name and password in PHP?

PHP 4.1.x or later: $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW']

Earlier PHP: $PHP_AUTH_USER and $PHP_AUTH_PW

-- 
Stuart

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




Re: [PHP-WIN] server variables

2002-05-14 Thread Stuart Dallas

[EMAIL PROTECTED] wrote:
> I am using Win2K, IIS5 and PHP4.12.
> When an SSL connection with client certificate established, IIS owns
> some server variables containing information about client certificate
> (CERT_xxx or HTTPS_xxx). Although PHP does not registers them. So the
> question is: how can I access these server variables from PHP script?

http://www.php.net/getenv

-- 
Stuart


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




Re: [PHP-WIN] Needed: Several short, swift kicks.

2002-05-28 Thread Stuart Dallas

On 29 May 2002 at 0:03, Mark Filipak wrote:
> 1 - Can PHP be used as a batch processor under MS-Windows?

Yes. Just use "php -q c:\path\to\script.php". For the full set of command line 
options, type 
"php -h" at the command line. The relevant manual page is 
http://www.php.net/manual/en/html/features.commandline.html.

> 2 - I downloaded php-4.2.1-installer.exe and php-4.2.1-Win32.zip. I
> ran php-4.2.1-installer.exe to the point where I got this dialog:
> 
>   Title Bar: "Mail Configuration"
>Query #1: "Please enter the address of your SMTP server."
>  Textbox #1: "localhost"
>Query #2: "Please enter the 'from' address for the mail function."
>  Textbox #2: "[EMAIL PROTECTED]"
> 
> I don't know what is being asked. What do I do now?

If you want to send email from PHP on a Windows box you need to have an SMTP server 
available - that's the first value. The second value sets the email address that will 
be used 
as the envelope address for all emails sent (bounced mail will usually be sent to this 
address).

> 3 - To run PHP for command line scripting, do I need Apache? I think I
> do, though here: http://www.php.net/manual/en/installation.php, is
> found this: "If you are also interested to use PHP for command line
> scripting ... you need no server and no browser", but the installer
> seems to demand a mail server (see question 2, above), so I'm very
> confused.

No you don't need Apache to use PHP from the command line. If you want to send email 
from PHP using the mail() function you still need to specify an SMTP server. If you 
are not 
going to be sending email from PHP the values you enter in that installation dialog 
are 
irrelevant.

> 4 - What run time environment does PHP for command line scripting
> expect and how much of it, a, is installed by php-4.2.1-installer.exe,
> and b, is found in php-4.2.1-Win32.zip?

You need php.exe and php4ts.dll (this needs to be on the path) - that's the minimum. 
That 
installation package installs most things you could possibly need including a healthy 
set of 
extensions (none loaded by default IIRC).

> Generally, my experience has not been that there is too little
> documentation, but that there is too much, that it is poorly written,

The PHP manual is extremely comprehensive and (IMHO) quite well-written. However, it 
is 
written as a reference manual, not a beginners guide. There are lots and lots of good 
PHP-
for-beginners books. A good place to start looking for a suitable book is 
http://www.php.net/books.php.

I hope that lot helps.

-- 
Stuart

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




Re: [PHP-WIN] GD...

2002-05-29 Thread Stuart Dallas

Brian McGarvie <[EMAIL PROTECTED]> wrote:
> Any Ideas?

Show us your code and we'll see if we can identify the problem.
Unfortunately we're not mind readers.

--
Stuart


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




Re: [PHP-WIN] GD...

2002-05-29 Thread Stuart Dallas

Brian McGarvie <[EMAIL PROTECTED]> wrote:
> Any configuration points to check out?
> win2k server, iis5, php 4.2.1...

Do you have register_globals set to on or off? The code you're using needs
it to be on for it to work. If that is the problem you would be better off
modifying the code to use the new superglobal array $_GET.


>  border="0">

What do you get if you go to this URL in a browser directly instead of
embedding it inside a page?

--
Stuart


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




Re: [PHP-WIN] GD...

2002-05-29 Thread Stuart Dallas

Mark Filipak <[EMAIL PROTECTED]> wrote:
> I'm about as rank a newbie as you could imagine so please forgive me
> if I err, but doesn't line 3 below ('/*') comment out the entire PHP
> code block?
> 
>> > // button.php
>> /*
>>   define("TextFONT", "3");
>> 
>> 

Erm, yes. I cannot believe that I missed that!!

-- 
Stuart


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




Re: [PHP-WIN] How do I get PHP 4.1.2 to work with Apache 2.0.36 on win32?

2002-06-03 Thread Stuart Dallas

On Monday, June 3, 2002 at 2:13:03 PM, you wrote:
> I'm having a little trouble setting up PHP 4.1.2 to run on my Win32
> Apache 2.0.36 installation.  Apache is working flawlessly ortherwise, 
> but If I try and add/uncomment the "LoadModule" line for 
> php4apache.dll then Apache doesn't even load, just exits.

PHP 4.1.2 doesn't support Apache 2. You need to get PHP 4.2.x - it has a module
specifically for Apache 2.

-- 
Stuart


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




[PHP-WIN] problem with IIS..

2002-06-07 Thread Nick Stuart

Hello all, I have recently installed php4.2.1 with IIS 5 and 2000 SP2 and
I'm having some wierd problems. PHP "IS" running but it is not running
correctly. It doesnt seem to be posting and/or getting any info from
forms/pages and the request variables. If I have a page like index.php it
works fine, but if I try to do something like index.php?Topic=blah I getNotice:  
Undefined variable:  Topic in
c:\inetpub\wwwroot\phpboard\MessageBoard.php on line 3
I know the code works as I have the exact same page running on another
server across the building but cant figure out why it wont work here. Aslo
along the same lines I cant get PHPMyAdmin to work correctly either. The
first page displays fine and shows everything it should, but when ever i
go to actually do anything I get a 404 error page can not be found
thanks for all your hep!
-Nick



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




Re: [PHP-WIN] Re: PHP 4.2.1 And WinXP

2002-06-10 Thread Stuart Dallas

Monday, June 10, 2002, 12:57:49 PM, you wrote:

> This seems to be a common theme for PHP4.2.1.  I'm running on Win2k and
> seeing the same problem, as is another poster (see: "Form Problem".)  Given
> that several people are seeing the same thing, it does seem to indicate a
> problem with PHP 4.2.1 and not our individual installations.  I hope that
> someone can contribute an answer to this.

It is not a problem with PHP. Please read the release notes for the software
you have installed (http://www.php.net/release_4_2_1.php) and pay specific
attention to the 'External variables' section. If you still don't understand
what is going on after that, feel free to let me know.

-- 
Stuart


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




Re: [PHP-WIN] How to pass passwd Server <-> Client in a "secure" way

2002-06-10 Thread Stuart Dallas

Monday, June 10, 2002, 2:49:14 PM, you wrote:
> But before I start all this implementation, I wonder what other
> kinds of solution other might have been using - I would prefer
> not to have scripts running on the client side, but a public
> key system force me to do this. (And I can use php, so it
> pointless to refer to any php specific methods.)

The best way is to send it across an SSL connection.

-- 
Stuart


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




Re: [PHP-WIN] Re: Re: PHP 4.2.1 And WinXP

2002-06-10 Thread Stuart Dallas

On Tuesday, June 11, 2002 at 3:39:21 AM, you wrote:
> Thank you very much.  I see that I must access variables using $_POST['var']
> syntax.  I'm disappointed that variable access appears not to be backward
> compatible to earlier versions fo PHP, but such is life.

It is. If you've read the notes linked from the release note you'll know that
if you turn register_globals on in php.ini then the variables will be
registered in global scope as they were in previous versions.

-- 
Stuart


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




Re: [PHP-WIN] SSL Support for PHP....

2002-06-14 Thread Stuart Dallas

On Friday, June 14, 2002, 9:13:59 AM, Brian McGarvie wrote:
> How does IIS fair against Apache with servring multiple sites? each site will be 
>like... http://customername.ourdomain.co.uk

Both are capable of serving multiple sites without any issues that I am aware
of.

> Also - more an IIS/Apache Q, how do you configure the above to work in both IIS and 
>Apache?

In IIS you set the host header for the site when you set the IP for the site.
In Apache you use the NameVirtualHost directive. See the MSIIS and Apache docs
for more detailed instructions.

> We arenot using ASP - yet, but might do at a later date... can IIS and Apache live 
>together? if so how would you confirue a site who's PHP is served with Apache and ASP 
>with IIS.

IIS and Apache can live together happily. You have to disable connection
pooling for IIS (can't remember how - there is a knowledge-base article on the
MS site that gives full details).

Why would you want to have Apache serve PHP and IIS serve ASP for the same
site? Why not just have IIS do both?

> SSL Certificates... how do they work on Apache? IIS is a simple Wizard, I've not had 
>to set SSL up before.

Dunno, never used SSL with Apache. Sorry.

I hope that helps.

-- 
Stuart


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




Re: [PHP-WIN] SSL Support for PHP....

2002-06-14 Thread Stuart Dallas

On Friday, June 14, 2002, 11:07:24 AM, Brian McGarvie wrote:
> Basically then there is no real reason for Apache over IIS on win2k server?

Not now Apache 2 is here. Apache 1.x has always been considered by the Apache
group as beta code and therefore not suitable for use in a production
environment. I have been using Apache 2 for development on Win2k since it was
first released to the public and I will upgrade my public server as soon as PHP
releases a production version of their module. I have IIS on the same server
and have never had a problem with them co-existing.

> With our leased line we aqquired 16 ips, so in the IIS config I would just use that 
>IP and keep it port 80?

In the site configuration, click on the "Advanced..." button next to the IP
address. Make sure that each entry has the IP address, port 80 and the host
header set to the site domain name.

> (I will read the manual, I will read the manual, I will read the manual!)

A very good idea ;o)

> SSL is a must for a few of the 'sites' that will be getting ran.

As I said, I have not experience with SSL on Apache, but on IIS it is as simple
as following a wizard.

> I'm kinda trying to verify that using IIS with PHP isapi module is as secure as 
>Apache?

A web server is only as secure as it's administrator is anal. I personally
believe that IIS on Win2k can be made as secure as Apache on any platform, but
not a lot of people agree with that. As for how secure PHP is, most of that
will depend on the scripts rather than the server/PHP interface you're using.

> Heres a strange one tho jist on the side: I installed Apache2/PHP on my own machine 
>(used for writing code etc) and copied the application to an apache location, and ran 
>it, but... there is
> supposedly files missing according to apache, all is as on the other machine - 
>files/code wise.

What files did it say were missing? Were they scripts, modules, what?

> One last item I need some advise with... is IIS able to handle LOTS of sites accross 
>multiple servers? as we have lots of clients so in the future will possibly need a 
>machine to load-balance etc
> and seperate database serving machines - databases primarily MsSQL/Access/MySQL.

Again, here is where my experience falls short. I have not yet had a chance to
be involved in a load-balanced project. However, I would expect that there
would be little difference whether you implement it using IIS or Apache.

> Btw, thanks Stuart, thats kinda making me feel easier about keeping it IIS.

No problem. Don't get me wrong, I think the ?AMP combination
(Linux/FreeBSD/etc, Apache, MySQL and PHP) is unbeatable as a server platform,
but I strongly believe that, done properly, IIS on Win2k is still a strong
platform. The problem is that MS have (purposefully) made IIS accessible to the
average PC user which I think is one of the main reasons that it has *that*
reputation.

-- 
Stuart


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




[PHP-WIN] Re: [PHP] 'CC' and 'BCC' in mail function

2002-06-14 Thread Stuart Dallas

On Friday, June 14, 2002 at 10:01:24 PM, Sridhar Moparthy wrote:
> Does any one know how to make mail() function to send mail to 'CC' and 'BCC'
> address. I have tried to keep 'CC' and BCC' in header, but it is not
> working. Mail function is sending the message to 'To' address but not to
> 'CC' and 'BCC'.
 if (mail($to,$subject,$message,$header))


The mail function sends the message to the addresses in the first parameter, so
you need to specify all the users you want the message to go to in $to.

PS. I (and I'm sure there are others) would prefer it if you could create a new
thread for a new topic. It makes things a lot easier to follow.

-- 
Stuart


-- 
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 Stuart Dallas

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] file upload woes...

2002-06-26 Thread Nicholas Stuart

Hello and good day all. I am having problems trying to upload files
through php. Followed the online manual and the uploading appears to work
fine for small text files. But when I go to try and upload say an mp3 it
doesnt work. It just spits back the error:Warning: Unable to open '' for reading: No 
such file or directory in
/mnt/Dell/mget/index.php on line 20File upload failed!

And there is no local file name so it never gets upload!  =\ I made sure
that my size limits were well above what was needed just incase, but still
no luck.
Thanks for the help.
-Nick



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




Re: [PHP-WIN] file upload woes...(solved)

2002-06-26 Thread Nicholas Stuart

DUH! never mind the newb over in the corner!
Changed the wrong max file size setting. Oh well...live and learn!


Nicholas Stuart said:
> Hello and good day all. I am having problems trying to upload files
> through php. Followed the online manual and the uploading appears to
> work fine for small text files. But when I go to try and upload say an
> mp3 it doesnt work. It just spits back the error:Warning: Unable to
> open '' for reading: No such file or directory in
> /mnt/Dell/mget/index.php on line 20File upload failed!
>
> And there is no local file name so it never gets upload!  =\ I made
> sure that my size limits were well above what was needed just incase,
> but still no luck.
> Thanks for the help.
> -Nick
>
>
>
> --
> 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] cookies in windows

2002-06-27 Thread Stuart Dallas

On Thursday, June 27, 2002, 9:55:00 AM, "michael" wrote:

> I've installed php v4.2.1 on my IIS (Win2000). The IIS works fine with php
> but I can't set a cookie. There is no error message or anything, only no
> cookie. Does anyone have an idea what might be wrong?

My guess is that it's register_globals related.

> There's nothing wrong in my code cause it works fine on another server, just
> not on localhost.

Your code is not the only variable when moving from server to server. Check the
PHP version on the other server and also compare your register_globals setting
to theirs.

-- 
Stuart


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




[PHP-WIN] PHP or Apache error?!?

2002-07-01 Thread Nicholas Stuart

Hello all, I seem to be having an odd problem with uploading files. The
problem is I'm trying to upload multiple files at a time, but when I try
to do anything more then 10 megs it doesnt work. It doesnt give any error
reports or anything it just goes to the page and acts as if no files were
uploaded at all. Change the files around so that the total is under 10M
and it works fine. I'm pretty sure I've checked all the settings for PHP
but I could have missed something. Not sure about Apache but couldnt find
anything for that either.
Thanks for the help!
-Nick



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




RE: [PHP-WIN] PHP or Apache error?!?

2002-07-01 Thread Nicholas Stuart

Yes I already changed that. Like I said before it works for anything up to
10 megs, but once it seems to get to 11 it doesnt work. All the settings
are well over 10 and I dont know what else to look for.
Thanks again.
-Nick

Dash McElroy said:
> Have you checked your php.ini?
>
> Taken from mine:
>
> ; Maximum allowed size for uploaded files.
> upload_max_filesize = 2M
>
> There is a call you can make in PHP to change it for certain scripts,
> although I'm not sure what it is.
>
> -Dash
>
> -Original Message-
> From: Nicholas Stuart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 11:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP or Apache error?!?
>
>
> Hello all, I seem to be having an odd problem with uploading files. The
> problem is I'm trying to upload multiple files at a time, but when I try
> to do anything more then 10 megs it doesnt work. It doesnt give any
> error reports or anything it just goes to the page and acts as if no
> files were uploaded at all. Change the files around so that the total is
> under 10M and it works fine. I'm pretty sure I've checked all the
> settings for PHP but I could have missed something. Not sure about
> Apache but couldnt find anything for that either.
> Thanks for the help!
> -Nick
>
>
>
> --
> 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] Apache2.0.40/php4.2.2/Win XP home

2002-08-16 Thread Stuart Hamilton

I have read lots of info about this problem on the news group however it 
has not solved my problem!

I am trying to get PHP 4.2.2 to load up on Apache 2.0.40 as a module but 
it just ain't working.  I follow the instructions and add the following 
lines to the http.conf file:-

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

But when I try and start the server from a command prompt I get the 
following error:-

Syntax error on line 174 of C:/Program Files/Apache 
Group/Apache2/conf/httpd.conf:
Cannot load C:/php/sapi/php4apache2.dll into server: The 
specified procedure could not be found.

I have moved the .dll file to the modules directory of the server and 
still no luck in starting.

HOWEVER, if I set up apache to load PHP as CGI/BIN the server starts and 
I can display info through the phpinfo cmd.

Is there someting I am doing wrong or is there a bug in the system.

Stewieh
NZ


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




[PHP-WIN] Re: Apache2.0.40/php4.2.2/Win XP home

2002-08-20 Thread Stuart Hamilton

Andrew, Thanks for the info.

I managed to get apache to work with a php module after downloading the 
following file and extracting the php4apache2.dll to the sapi dir.

http://snaps.php.net/win32/php4-win32-latest.zip

Check out the latest version 7? of the php manual it has a lot of 
usefull links from other users.  Thats we I found the link.

Stuart


Andrew V. Romero wrote:

> I just got apache2 and php set up on winXP home after 2 two weeks of 
> playing with it.  First, take out the addtype application line, you 
> don't need this line appartently for apache 2.  See if that fixes the 
> problem.
> -Andrew V. Romero
>
> Stuart Hamilton wrote:
>
>> I have read lots of info about this problem on the news group however 
>> it has not solved my problem!
>>
>> I am trying to get PHP 4.2.2 to load up on Apache 2.0.40 as a module 
>> but it just ain't working.  I follow the instructions and add the 
>> following lines to the http.conf file:-
>>
>>LoadModule php4_module c:/php/sapi/php4apache2.dll
>>AddType application/x-httpd-php .php .phtml
>>
>> But when I try and start the server from a command prompt I get the 
>> following error:-
>>
>>Syntax error on line 174 of C:/Program Files/Apache 
>> Group/Apache2/conf/httpd.conf:
>>Cannot load C:/php/sapi/php4apache2.dll into server: The 
>> specified procedure could not be found.
>>
>> I have moved the .dll file to the modules directory of the server and 
>> still no luck in starting.
>>
>> HOWEVER, if I set up apache to load PHP as CGI/BIN the server starts 
>> and I can display info through the phpinfo cmd.
>>
>> Is there someting I am doing wrong or is there a bug in the system.
>>
>> Stewieh
>> NZ
>>
>
>
>
>
>


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




[PHP-WIN] cookie problems...

2002-09-04 Thread Nicholas Stuart

Hello all, I seem to be having problems with getting cookies to set
correctly. I use the following code:
___

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=1, pre-check=1", false);
header("Pragma: no-cache");

setcookie("User", $_POST['user']);
setcookie("FirstName", $row["first_name"]);
setcookie("LastName", $row["last_name"]);
setcookie("Ext", $row["EXT"]);
setcookie("Department", $row["dept"]);

\\and to display it:


First Name:
Last Name:
Extension:
Department:








___
The problem it that the cookie does not set itself the first time the page
is loaded. It gives the following error:
Notice: Undefined index: FirstName in c:\inetpub\wwwroot\helpdesk\menu.php
on line 37
Once you hit the reload button it works fine.
And if the cookie is set and the user logs back into the page with a
different user name then the old info is still set in the cookie until you
hit the reload button.
Thanks for the help!
-Nick



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




Re: [PHP-WIN] Re: cookie problems...

2002-09-04 Thread Nicholas Stuart

Thanks Angie, I was just in the process of seperating out my cookie
setting and that is just what I needed. Works like a charm.
Thanks again.
-Nick

> Also, Please keep in mind that on windows, you will not be able to
> successfully set a cookie if your script redirects to another page using
> the typical header("Location:.."); command.  Instead, you have to print
> out headers to the page that uses meta tag refresh to refresh the page
> to a new url location.  Then the cookie properly sets. Otherwise...it
> won't.
>
> Angie Tollerson
> Alliance Technologies
> Web Programmer
> (515)245-7628
> [EMAIL PROTECTED]
>
>>>> "George Nicolae" <[EMAIL PROTECTED]> 09/04/02 12:35PM >>>
> You can't set a cookie in a page and use it immediately. From the
> manual:
> "Cookies will not become visible until the next loading of a page that
> the
> cookie should be visible for. To test if a cookie was successfully
> set,
> check for the cookie on a next loading page before the cookie expires.
> "
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___
> PaginiWeb.com  - Professional Web Design
> www.PaginiWeb.com
>
>
> "Nicholas Stuart" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hello all, I seem to be having problems with getting cookies to set
>> correctly. I use the following code:
>> ___
>>
>> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
>> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
>> header("Cache-Control: no-store, no-cache, must-revalidate");
>> header("Cache-Control: post-check=1, pre-check=1", false);
>> header("Pragma: no-cache");
>>
>> setcookie("User", $_POST['user']);
>> setcookie("FirstName", $row["first_name"]);
>> setcookie("LastName", $row["last_name"]);
>> setcookie("Ext", $row["EXT"]);
>> setcookie("Department", $row["dept"]);
>>
>> \\and to display it:
>> 
>> 
>> First Name:
>> Last Name:
>> Extension:
>> Department:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> The problem it that the cookie does not set itself the first time the
> page
>> is loaded. It gives the following error:
>> Notice: Undefined index: FirstName in
> c:\inetpub\wwwroot\helpdesk\menu.php
>> on line 37
>> Once you hit the reload button it works fine.
>> And if the cookie is set and the user logs back into the page with a
>> different user name then the old info is still set in the cookie
> until you
>> hit the reload button.
>> Thanks for the help!
>> -Nick
>>
>>
>
>
>
> --
> 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] phpinfo()

2001-07-17 Thread Stuart Hunter

I have just installed version 4.06 on my Windows 2000 machine, but when 
I open the web page I have that contains phpinfo() it still reports 
4.05.  Is that a known issue or have I done something wrong in my 
upgrade?

Stuart

-- 
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] phpinfo()

2001-07-19 Thread Stuart Hunter

In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> My guess is that you probably have an outdated .dll in you winnt\system32
> folder. Try copying all the necessary .dll files from the 4.06 zip file
> again.
> 
> 
Spot on, thanks Robin.  I double checked and I had copied the dll to the 
c:\winnt directory. The old dll was in the c:\winnt\system32 directory.

Stuart

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

2001-07-19 Thread Stuart Hunter

When I first installed 4.0.5 I downloaded a version that already had 
graphics capability built in, and I was able to create web pages with 
graphs based on MySQL data.

Now I have installed 4.0.6 I don't have the graphics capability any more 
and my scripts throw these types of error:

Fatal error: Call to undefined function: imagecreate() in c:\program 
files\apache\htdocs\drawchart.php on line 81

Can someone point me to what I should install to get my graphics 
capability back?

Thanks.

Stuart

-- 
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] Help! convert manipulate gif and jpgs

2001-09-20 Thread Cameron Stuart

Hi,

Under win32, your best bet is to work with jpg's and png's, take a look at
your php.ini and make sure 
the gd extension is enabled:

first make sure PHP knows which directory you are using:

; Directory in which the loadable extensions (modules) reside.
extension_dir = C:/php/extensions

Then un-comment the extensions

extension=php_gd.dll
not
;extension=php_gd.dll

In a win32 distribution of PHP, you get all the dll's and extensions by
default, but that are not always turned on in php.ini (should be
C:\winnt\php.ini)

To be sure of what you have enabled, try this:



A rather large table with lots of cool info will show up, telling you what
you have enabled.

If your PHP distribution does not contain the dll's or extension's drop me a
line and I will send you mine (NT)
(obviously not via the mailing list)

Hope this helps
Cheers,
  

> -Original Message-
> From: aaron [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, 21 September 2001 11:56
> To:   [EMAIL PROTECTED]
> Subject:  [PHP-WIN] Help!  convert manipulate gif and jpgs
> 
> I'm using Windows IIS 4.0 and am trying to create gifs and jpgs and
> manipulate them but there is NO documentation describing what components I
> need to install so I can do so.  There is some documentation on
> installation
> packages needed for Unix but none work on Windows or require a C compiler
> to
> build the files which eventually fail during build as well.   Where is the
> windows documenatation?  What components do I need to manipulate gifs and
> jpgs and in what order do I need to install them, and what versions do I
> need?
> 
> Thanks for any help.
> 
> Aaron
> 
> 
> 
> 
> -- 
> 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]
> 
> 
Privileged/Confidential Information may be contained in this message. 
If you are not the addressee indicated in this message, you may not copy 
or deliver this message to anyone.  In such case, you should destroy this 
message and notify the sender by reply email. Opinions, conclusions and 
other information in this message that do not relate to the official 
business of this organisation shall be understood as neither given nor 
endorsed by it.

-- 
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] PHP, iPlanet Server and Win200 Server

2002-02-12 Thread Stuart Hart

Hi,
I have installed the above mentioned config. But I have problem when serving
.phtml pages, but not .php.

.phtml gets a "not found" error. Looking in the error log I get:

[12/Feb/2002:16:23:18] failure ( 2564): for host xxx.xxx.xxx.xxx trying to
GET /hello.phtml, shellcgi-send reports: can't find file association of
d:/inetpub/wwwroot/ngsc/hello.phtml for execution "

The MIME types are defined the same as follows and I have also tried
defining both extensions on the same line:

  type magnus-internal/shellcgi php
  type magnus-internal/shellcgi phtml


And the association is defined in windows for both .php and .phtml, I can
execute both file types from the command line (just by typing the file name
hello.phtml).

Does anybody have any ideas?
Thanks
Stuart/



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




[PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread Stuart Felenstein
I can't believe Chapter 1 , section 1 and I'm off to a bad start already. 
Using this form and script, I keep getting "undefined index" for the variables I 
declare in the script.  Running PHP 4.3.2 on XP Pro.  Thanks.
Stuart
 
Form:
 



  Item
  Quantity


  Tires
  


  Oil
  


  Spark Plugs
  


  



 
Script:
 


  Bob's Auto Parts - Order Results


Bob's Auto Parts
Order Results

Your order is as follows: ';
echo $tireqty.' tires';
echo $oilqty.' bottles of oil';
echo $sparkqty.' spark plugs';
?>




Re: [PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread Stuart Felenstein
Yes, register globals are now on.  Though it doesn't apparently matter.
 
Stuart

toby z <[EMAIL PROTECTED]> wrote:
register globals on or off ?

--- Stuart Felenstein wrote: > I can't believe
Chapter 1 , section 1 and I'm off to a bad start
> already. 
> Using this form and script, I keep getting "undefined index" for
> the variables I declare in the script. Running PHP 4.3.2 on XP
> Pro. Thanks.
> Stuart
> 
> Form:
> 
> 
> 
> 
> Item
> Quantity
> 
> 
> Tires
>  [input] > maxlength="3">
> 
> 
> Oil
>  [input] > maxlength="3">
> 
> 
> Spark Plugs
>  [input] > maxlength="3">
> 
> 
>  [input] > Order">
> 
> 
> 
> 
> Script:
> 
> 
> 
> 
> 
> 
> Bob's Auto Parts
> Order Results
> > //create short variable names
> $tireqty = $_POST['tireqty'];
> $oilqty = $_POST['oilqty'];
> $sparkqty = $_POST['sparkqty'];
> ?>
> > echo '
Your order is as follows: 
';
> echo $tireqty.' tires
';
> echo $oilqty.' bottles of oil
';
> echo $sparkqty.' spark plugs
';
> ?>
> 
> 
> 


Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

Re: [PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread Stuart Felenstein
It's more then a warning.  The script does not work.  All i get back on the screen is:
 
Order ResultsYour order is as follows: 
';echo $tireqty.' tires
'; echo $oilqty.' bottles of oil
'; echo $sparkqty.' spark plugs
'; ?> 
 
>From what I've read though I agree that global registers is not the problem.  Besides 
>I've tried both ways.  
 
Stuart

Stephen <[EMAIL PROTECTED]> wrote:
Which just goes to show some people will say anything...

I don't think this has anything to do with register globals (Sorry toby).
Undefined index sounds like php is just warning you that you are using a
variable without a value. Since you are using a form to send data, this can
occur. To be honest, its a fairly pointless warning, so you probably want to
ignore it. In your php.ini file search for and find the
error_reporting
option. I recommend you change your settings to
error_reporting = E_ALL & ~E_NOTICE
This should solve your problem.

- Original Message - 
From: "Stuart Felenstein" 
To: 

Sent: Saturday, June 14, 2003 10:18 AM
Subject: Re: [PHP-WIN] Help please: undefined index in sample code


> Yes, register globals are now on. Though it doesn't apparently matter.
>
> Stuart
>
> toby z wrote:
> register globals on or off ?
>
> --- Stuart Felenstein wrote: > I can't believe
> Chapter 1 , section 1 and I'm off to a bad start
> > already.
> > Using this form and script, I keep getting "undefined index" for
> > the variables I declare in the script. Running PHP 4.3.2 on XP
> > Pro. Thanks.
> > Stuart
> >
> > Form:
> >
> >
> >
> >
> > Item
> > Quantity
> >
> >
> > Tires
> > [input] > maxlength="3">
> >
> >
> > Oil
> > [input] > maxlength="3">
> >
> >
> > Spark Plugs
> > [input] > maxlength="3">
> >
> >
> > [input] > Order">
> >
> >
> >
> >
> > Script:
> >
> >
> >
> >
> >
> >
> > Bob's Auto Parts
> > Order Results
> > > //create short variable names
> > $tireqty = $_POST['tireqty'];
> > $oilqty = $_POST['oilqty'];
> > $sparkqty = $_POST['sparkqty'];
> > ?>
> > > echo '
> Your order is as follows:
> ';
> > echo $tireqty.' tires
> ';
> > echo $oilqty.' bottles of oil
> ';
> > echo $sparkqty.' spark plugs
> ';
> > ?>
> >
> >
> >
>
> 
> Want to chat instantly with your online friends? Get the FREE Yahoo!
> Messenger http://uk.messenger.yahoo.com/



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


[PHP-WIN] Grrrrr! Definitive guide for setup on XP Pro?

2003-06-15 Thread Stuart Felenstein
I had to do a system restore yesterday and basically blew out my PHP setup.  What I 
seem to not be able to find is a definitive guide to setting up PHP properly.  I have 
followed the install guidelines on php.net (documentation) for Windows.  What I found 
though before, was that it was not completely accurate and some of the comments 
helped.  For instance, in the documentation it says to put php.ini into the root 
directory, which by the way suggested would be /winnt.  No there is no /winnt under 
XP.  So following the other possiblity I dropped it into /windows.  Nothing happened 
so following someone's comment I put it into /system 32 along with php4apache2 and 
php4ts.  This seemed to turn it on.  This though confuses me as it still states to 
reference php4apache2 in the http.conf file as apache/sapi/php4apache2.  If I copied 
it over to system32 should I reference it there.
 
Anyway is there a definitive guide for install, or some proven method to get PHP 
4.3.2, Apache 2 (latest stable) and XP Pro all singing the same tune?
 
Thanks
Stuart


Re: [PHP-WIN] Re: Help please: undefined index in sample code

2003-06-15 Thread Stuart Felenstein
I actually did get the form and script to behave and work correctly as written below.  
I think my configuration was off though I did a mass reconfigure so which particular 
steps made it work I have no idea.  I did dump all my dll's into my /system32 
directory.
 
Anyway, I still get the same warning in Zend Studio as to the "undefined index" and 
will try to figure that out.  Regardless it works correctly on the web page.
 
Thanks 
Stuart


Adam Goossens <[EMAIL PROTECTED]> wrote:Stuart,

This problem occurs when you try to access an index in an array that 
does not exist.

First off, make sure that your variables are getting passed to the 
script via POST. Do this by calling the function print_r(), and passing 
the $_POST array as an argument to it.

print_r($_POST);

That will dump the entire contents of the _POST array onto the screen, 
so you may check exactly what's in there. This may give you a clue as to 
what is going wrong. I tested your script on my 4.3.2 build, and it 
worked fine.

If $_POST doesn't work, give $HTTP_POST_VARS a try. If that doesn't 
work, I'm stumped. What web server are you using?

-Adam.

Stuart Felenstein wrote:
> I can't believe Chapter 1 , section 1 and I'm off to a bad start already. 
> Using this form and script, I keep getting "undefined index" for the variables I 
> declare in the script. Running PHP 4.3.2 on XP Pro. Thanks.
> Stuart
> 
> Form:
> 
> 
> 
> 
> Item
> Quantity
> 
> 
> Tires
>  [input] > maxlength="3">
> 
> 
> Oil
>  [input] 
> 
> 
> Spark Plugs
>  [input] > maxlength="3">
> 
> 
>  [input] 
> 
> 
> 
> 
> Script:
> 
> 
> 
> 
> 
> 
> Bob's Auto Parts
> Order Results
> > //create short variable names
> $tireqty = $_POST['tireqty'];
> $oilqty = $_POST['oilqty'];
> $sparkqty = $_POST['sparkqty'];
> ?>
> > echo '
Your order is as follows: 
';
> echo $tireqty.' tires
';
> echo $oilqty.' bottles of oil
';
> echo $sparkqty.' spark plugs
';
> ?>
> 
> 
> 


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



Re: [PHP-WIN] Phpinfo.php

2003-06-20 Thread Stuart Felenstein
I also put php.ini, php4ts, php4apache2 all into my system32 directory.  
 
Stuart

Dean Hayes <[EMAIL PROTECTED]> wrote:

Did you add the lines

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

to your httpd.conf file


Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com

<-- I design and i redesign but still i never designed true beauty like you 
-->





From: "Mathias" 
Reply-To: "Mathias" 
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Phpinfo.php
Date: Fri, 20 Jun 2003 11:31:30 -0500

I use Microsoft Windows XP Pro, and PHP4. Im reading the book Sams teach
yourself PHP, Mysql and Apache.
I setup mysql apache2 and php4. I cannot get to work. Can
anyone HELP PLEASE?!?!???



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

_
Hotmail is now available on Australian mobile phones. Go to 
http://ninemsn.com.au/mobilecentral/signup.asp


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


[PHP-WIN] Parsing Error: Short just a few lines of code, please look

2003-06-21 Thread Stuart Felenstein
Created a small registration form, trying to spit back the information for 
confirmation.  Getting a parsing error.  I don't know if it means anything, but I 
created the form and table in GoLive.  Up to defining the variables everything is 
cool, ZDE points to line 32, as an unexpected >.  Though even if I took that out I 
don't beleive the fault lies in that line 
 


 
  
  
  Welcome to Adobe GoLive 6
 
 
  
  
   
   
   
   Please confirm that this is your correct 
information:
   
   
   

 Last Name
 $LastName;


 Address 1
 $Address1;


 City
 $City;


 State
 $State;


 Zip
 $Zip;


 Telephone
 $HTele;
 
 
   
 ?>  
   
   
   
  
  
  
  
  
  
 



Re: [PHP-WIN] Phpinfo.php

2003-06-23 Thread Stuart Felenstein
Oh sorry, no I was just responding to Mathias...my php is working.
Thanks though
Stuart

sven <[EMAIL PROTECTED]> wrote:
hi stuart,

try this:
move php.ini to \winnt
leave php4ts.dll and php4apache2.dll in \winnt\system32

in httpd.conf
change the loadmodule line to:
LoadModule php4_module /PATH_TO/php/sapi/php4apache2.dll
(note the apache2!)

and tell me if this worked for you.

ciao SVEN

Stuart Felenstein wrote:
> I also put php.ini, php4ts, php4apache2 all into my system32
> directory.
>
> Stuart
>
> Dean Hayes wrote:
>
> Did you add the lines
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php
>
> to your httpd.conf file
>
>
> Dean "The Insane Guy" Hayes
> Mystical Web Designs
> http://www.mystical-sector.com
>
> <-- I design and i redesign but still i never designed true beauty
> like you -->
>
>
>
>
>
> From: "Mathias"
> Reply-To: "Mathias"
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Phpinfo.php
> Date: Fri, 20 Jun 2003 11:31:30 -0500
>
> I use Microsoft Windows XP Pro, and PHP4. Im reading the book Sams
> teach yourself PHP, Mysql and Apache.
> I setup mysql apache2 and php4. I cannot get to work. Can
> anyone HELP PLEASE?!?!???
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> _
> Hotmail is now available on Australian mobile phones. Go to
> http://ninemsn.com.au/mobilecentral/signup.asp



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


[PHP-WIN] OT[slightly] Tables and layers

2003-06-25 Thread Stuart Felenstein
I'm sure this is possible but not sure where to look to learn.  Still really at the 
starting stages of PHP but if someone can point me in the right direction.
 
Basically I don't want to swap out pages but as a for instance have a php enabled form 
in a table that will send [whatever is returned] to another table or layer somewhere 
else in the same page.  
 
Is this possible?  I know nothing about HTML and will only take in as much as 
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to do the 
bulk of the dirty work.
 
Stuart
 


Re: [PHP-WIN] OT[slightly] Tables and layers

2003-06-25 Thread Stuart Felenstein
I understand what you are saying.  PHP doesn't create or hide layers etc.  What I'm 
trying to understand is will PHP work in that environment or not? Could I code one 
layer with a get or post form and have another layer translating it?
 
Stuart
Thank you for your response.

Jim Hunter <[EMAIL PROTECTED]> wrote:PHP is a Server Side language. What you need to 
do is handled with
Javascript or some other scripting language on the Client side. If you use
Javascript you will find that it is easy to manipulate anything on a page,
even remove or add items to a page on the fly. But this is definately not a
PHP type of thing.

Jim Hunter

---Original Message---

From: Stuart Felenstein
Date: Wednesday, June 25, 2003 11:14:11 AM
To: PHP List
Subject: [PHP-WIN] OT[slightly] Tables and layers

I'm sure this is possible but not sure where to look to learn. Still really
at the starting stages of PHP but if someone can point me in the right
direction.

Basically I don't want to swap out pages but as a for instance have a php
enabled form in a table that will send [whatever is returned] to another
table or layer somewhere else in the same page. 

Is this possible? I know nothing about HTML and will only take in as much as
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to
do the bulk of the dirty work.

Stuart



Re: [PHP-WIN] OT[slightly] Tables and layers

2003-06-25 Thread Stuart Felenstein

Jim Hunter <[EMAIL PROTECTED]> wrote:
 
Layers are in Netscape-Once a page is drawn in Netscape it is 
not possible to change the HTML of an object. You can change attributes like 
color, position, etc, but you can not do anything like the IE method of 
innerHTML' which is used to change the information contained in an object. 
(insert the appropriate Netscape joke here). 
 
I was thinking of multiple layers where some are hidden and then called to through an 
action and then appear. So, not one layer that can have it's text changed for 
instance, but one layer, and then when a submit button was hit, the other layer 
appears.  Anyway you don't have to hit me over the head  because I understand your 
explanation.
 
Part of my confusion is my plain ignorance aka inexperience.  The other is I'm looking 
over the GoLive documentation where it says you can make "objects" dynamic (forms, 
tables, layers).  I took that to mean that the object has a life of it's own and once 
sent to the server a hidden layer or table could automatically appear, again without 
redrawing the entire page.  
 
Sorry for the confusion.
Stuart

Jim 

---Original Message--- 

From: Stuart Felenstein 
Date: Wednesday, June 25, 2003 01:33:15 PM 
To: Jim Hunter; [EMAIL PROTECTED] 
Subject: Re: [PHP-WIN] OT[slightly] Tables and layers 

I understand what you are saying. PHP doesn't create or hide layers etc. 
What I'm trying to understand is will PHP work in that environment or not? 
Could I code one layer with a get or post form and have another layer 
translating it? 

Stuart 
Thank you for your response. 

Jim Hunter wrote: PHP is a Server Side language. What 
you need to do is handled with 
Javascript or some other scripting language on the Client side. If you use 
Javascript you will find that it is easy to manipulate anything on a page, 
even remove or add items to a page on the fly. But this is definately not a 
PHP type of thing. 

Jim Hunter 

---Original Message--- 

From: Stuart Felenstein 
Date: Wednesday, June 25, 2003 11:14:11 AM 
To: PHP List 
Subject: [PHP-WIN] OT[slightly] Tables and layers 

I'm sure this is possible but not sure where to look to learn. Still really 
at the starting stages of PHP but if someone can point me in the right 
direction. 

Basically I don't want to swap out pages but as a for instance have a php 
enabled form in a table that will send [whatever is returned] to another 
table or layer somewhere else in the same page. 

Is this possible? I know nothing about HTML and will only take in as much as 
necessary and rely on WYSIWYG type of programs like Dreamweaver or GoLive to 
do the bulk of the dirty work. 

Stuart 



[PHP-WIN] oci8 not showing underphpinfo

2006-06-14 Thread Steven Stuart
HI all,
 I am not able to see the oci8 section under phpinfo.  The mssql and the 
odbc sections are both there.

 I am running this on Windows 2003, IIS6 combination.I have the 
php.ini file under c:\WINDOWS.I have input the extension_dir directory 
in, and it appears to work since it finds the php_mssql.dll without any 
problems (assumption since SQL connections work).I have the php_oci8.dll 
uncommented.   Also the Oracle connections are failing with
Fatal error: Call to undefined function oci_pconnect()

error.
We have Oracle 9 installed.
The path has c:\oracle\v9204\bin  and  E:\PHP.

Thanks,
Steven Stuart

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



Re: [PHP-WIN] oci8 not showing underphpinfo

2006-06-14 Thread Steven Stuart
Hi Matt,

That is hard for me to say. On our Windows 2000 servers it works fine, but 
not our Windows 2003 servers. The packages that are on the SMS servers, are 
different though. Here is what I am installing.

Oracle Base Network Configuration - 1.01 - W2K3 Server

Oracle Net - 9.2.0.4.0 - W2K3 Server

ODBC Driver - Version 9.2.0.5.4 - W2K3 Server

Oracle Provider for OLE DB - Version 9.2.0.4.0 - W2K3 Server

Oracle Data Provider for .NET - Version 9.2.0.4.0 - W2K3 Server

Oracle Services for Microsoft Transaction Server - Version 9.2.0.4.0 - W2K3 
Server

When accessing Oracle from ASP pages and so forth it works without a 
problem. Does PHP use a different portion of the Oracle application? Is 
there a way manually to determine if the "oracle instant client" is 
installed.

Thanks,
Steven Stuart


""Matt Murphy"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]


I know this seems silly since you have oracle installed, but do you have
the oracle instant client installed? Installing Oracle may not
necessarily mean it installed a client on there!

Matt

> -----Original Message-
> From: Steven Stuart [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 13, 2006 7:11 PM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] oci8 not showing underphpinfo
>
> HI all,
>  I am not able to see the oci8 section under phpinfo.
> The mssql and the odbc sections are both there.
>
>  I am running this on Windows 2003, IIS6 combination.
> I have the
> php.ini file under c:\WINDOWS.I have input the
> extension_dir directory
> in, and it appears to work since it finds the php_mssql.dll
> without any
> problems (assumption since SQL connections work).I have
> the php_oci8.dll
> uncommented.   Also the Oracle connections are failing with
> Fatal error: Call to undefined function oci_pconnect()
>
> error.
> We have Oracle 9 installed.
> The path has c:\oracle\v9204\bin  and  E:\PHP.
>
> Thanks,
> Steven Stuart
>
> --
> 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] oci8 not showing underphpinfo

2006-06-14 Thread Steven Stuart
Hi Matt,
  I have found out that the client is installed.Our main DBA had me 
run some tools that showed that it was installed, and working.

  So it appears to be a php configuration issue.

Thanks,
Steven Stuart


""Matt Murphy"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

I'm not sure how to tell it's installed, I'd recommend just installing
it anyway, I doubt it can hurt your oracle install.

I am *not* an oracle expert however, I just got a connection to it
running on my w2k3 server.

Matt

> -Original Message-
> From: Steven Stuart [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 14, 2006 10:51 AM
> To: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] oci8 not showing underphpinfo
>
> Hi Matt,
>
> That is hard for me to say. On our Windows 2000 servers it
> works fine, but not our Windows 2003 servers. The packages
> that are on the SMS servers, are different though. Here is
> what I am installing.
>
> Oracle Base Network Configuration - 1.01 - W2K3 Server
>
> Oracle Net - 9.2.0.4.0 - W2K3 Server
>
> ODBC Driver - Version 9.2.0.5.4 - W2K3 Server
>
> Oracle Provider for OLE DB - Version 9.2.0.4.0 - W2K3 Server
>
> Oracle Data Provider for .NET - Version 9.2.0.4.0 - W2K3 Server
>
> Oracle Services for Microsoft Transaction Server - Version
> 9.2.0.4.0 - W2K3 Server
>
> When accessing Oracle from ASP pages and so forth it works
> without a problem. Does PHP use a different portion of the
> Oracle application? Is there a way manually to determine if
> the "oracle instant client" is installed.
>
> Thanks,
> Steven Stuart
>
>
> ""Matt Murphy"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>
> I know this seems silly since you have oracle installed, but
> do you have
> the oracle instant client installed? Installing Oracle may not
> necessarily mean it installed a client on there!
>
> Matt
>
> > -Original Message-
> > From: Steven Stuart [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 13, 2006 7:11 PM
> > To: php-windows@lists.php.net
> > Subject: [PHP-WIN] oci8 not showing underphpinfo
> >
> > HI all,
> >  I am not able to see the oci8 section under phpinfo.
> > The mssql and the odbc sections are both there.
> >
> >  I am running this on Windows 2003, IIS6 combination.
> > I have the
> > php.ini file under c:\WINDOWS.I have input the
> > extension_dir directory
> > in, and it appears to work since it finds the php_mssql.dll
> > without any
> > problems (assumption since SQL connections work).I have
> > the php_oci8.dll
> > uncommented.   Also the Oracle connections are failing with
> > Fatal error: Call to undefined function oci_pconnect()
> >
> > error.
> > We have Oracle 9 installed.
> > The path has c:\oracle\v9204\bin  and  E:\PHP.
> >
> > Thanks,
> > Steven Stuart
> >
> > --
> > 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