RE: [PHP-WIN] Strange Problem ! help required

2003-03-13 Thread Rich Gray
hi i have been using php for 1 year, but i have never face problem like this, when ( by clicking on a link ) the browser navigates to register.php page, it displays correctly , but when i click the refresh button to reload the page, it doesn't display any thing but display only one

RE: [PHP-WIN] Problem with exec(). Help needed!

2003-03-13 Thread Rich Gray
I'm using PHP for accessing PROGRESS database. Due to lack of native interface between PHP and PROGRESS i'm forced to get the data like this: ..some code.. exec($_pro . ' -U '.$p_usertext.' -P '.$p_passtext.' -p query.p',$pro_out,$pro_code); ..some code.. where - $_pro is

RE: [PHP-WIN] Problem with exec(). Help needed!

2003-03-13 Thread Rich Gray
Can you not use ODBC to connect to the Progress database? It will probably be simpler than an exec() call... but anyway if your Progress script is returning data that PHP needs to parse then try using passthru() instead... Thanks! i'll try passthru() right now. ?php

RE: [PHP-WIN] Re: Variable problems

2003-03-10 Thread Rich Gray
Thanks, but I found out something really interesting! I was using php-win32 version 4.3.0 and it would not process the variables. I took the same script and ran it a buddies server with version 4.0.6 and it ran fine. I unloaded 4.3.0 and loaded 4.0.6 on my server and the scripts ran fine!

RE: [PHP-WIN] Setting sessions variables

2003-03-09 Thread Rich Gray
Let me get this straight - if register_globals is set to off, the best way to assign a value to a session variable is to use: $_SESSION['varname'] = 'value' ; Yes - this will also work fine with register_globals set to On This both creates the variable and sets it. And then I can access

RE: [PHP-WIN] basic sessions...

2003-03-07 Thread Rich Gray
I am developing an intranet website using programming tool - php 4.1.1 running as a module, HTML, Javascript. webserver - apache 1.3.x. browser - Internet Explorer 5.0 / Netscape 6.2 platform - Windows 2000. I am having problems with sessions. i am not able to understand what's wrong

RE: [PHP-WIN] MySQL Table Locks

2003-03-07 Thread Rich Gray
Anyone any idea how to check whether a table is locked? In particular I use FLUSH TABLES WITH READ LOCK before backup starts and want to know whether this has happened. Thanks in advance, . : Fran Thomas Fran I don't believe there is any method to show the lock status of a table - well

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Rich Gray
Hello, I just upgraded from PHP3 to PHP4 on Apache 1.3.x on Windows NT. I need to access the PHP and SERVER variables on my PHP 4 installation. My code is as follows: ?php echo $SERVER_SOFTWARE; echo $PHP_SELF; ? However, I get the following error: Notice: Undefined

RE: [PHP-WIN] Re: Unexplained CGI error

2003-03-04 Thread Rich Gray
I have the same problem. And it is totaly random. You can hit F5 several times - everything works fine and on the next hit - CGI error. It sounds to me like bug of uninitialized variable or some buffer overrun problems (if it would be a problem in php.ini - at least it would not be random

RE: [PHP-WIN] Retrieving Server and PHp variables

2003-03-04 Thread Rich Gray
Thanks Rich, That worked fine on my PHP Version 4.3.1 The older syntax seems to work fine on an earlier version of PHP though (Version 4.2.3)!! Regards, Sharat If register_globals is switched on in your php.ini (it's off by default in later versions of php) then it'll work in v4.3.1 as

RE: [PHP-WIN] ADOdb for PHP Website... anyone know what's wrong?

2003-03-04 Thread Rich Gray
I think I'm going to shoot myself. I LOVE ADOdb for PHP but his website seems to be down (has been for two days now)... anyone have an inside track as to when/if he's coming back? http://php.weblogs.com/adodb Thanks, John Don't pull that trigger yet... I just loaded the site no

RE: [PHP-WIN] Re: destroying COM objects

2003-02-28 Thread Rich Gray
I've been using the COM functionality in PHP but I cannot set a way to destroy the objects. If I were using ASP I'd just set OBJECT = nothing. Is there some sort of equivalent in PHP? unset($com_object); -- Michael Power Software Developer Concentrix Limited I may be talking out of my

RE: [PHP-WIN] newbie: hidding form data

2003-02-27 Thread Rich Gray
Edward This is client-side stuff - i.e. JavaScript... PHP is server side. Rich -Original Message- From: Edward David [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 11:52 To: [EMAIL PROTECTED] Subject: [PHP-WIN] newbie: hidding form data Hi, I am trying to create a form that

RE: [PHP-WIN] newbie: installing php_gd

2003-02-26 Thread Rich Gray
Tony Is the php.ini directive extensions_dir set correctly? Rich Using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to: ImageCreate() The following copy is located in my php.ini file...one of which is: ..

RE: [PHP-WIN] newbie: installing php_gd

2003-02-26 Thread Rich Gray
Does it work if you have it like this... extension_dir = C:/php4/extensions Rich -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 16:58 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] newbie: installing php_gd In my php.ini file, this is

RE: [PHP-WIN] Re: Authenticate user

2003-02-21 Thread Rich Gray
Rui You will have to check a session attribute at the start of each of your scripts that you want to protect to ensure that the user has logged on. Locking out other users whilst this user is logged on will mean flipping some flag in a database table or creating a row that tells your login script

RE: [PHP-WIN] PHP HTTP Authentication, Win2k IIS

2003-02-20 Thread Rich Gray
Are you doing the hack needed to use HTTP authentication with IIS? HTTP Authentication is only supported by Apache with PHP as a module, but there is a hack/workaround for IIS/ISAPI. Cheers Rich -Original Message- From: Rico Derks [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 07:49

RE: [PHP-WIN] GD

2003-02-20 Thread Rich Gray
I'm using php 4.3.1 on a Windows XP and I use IIS 5.1 as a server.I tried to use GD lib but is seems like the built in support of bundle GB is missing. Maybe I'm missing something but for me someone forgot to include boundled libgd in Windows version. I that true? So can anyone tell my how

RE: [PHP-WIN] File_Upload

2003-01-27 Thread Rich Gray
Look in the php manual for the section called Handling File Uploads Rich -Original Message- From: Rodrigo San Martin [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 01:33 To: [EMAIL PROTECTED] Subject: [PHP-WIN] File_Upload How kan I Upload F.ex a gif file from any computer to a my

RE: [PHP-WIN] newbie form question..

2003-01-24 Thread Rich Gray
you are not echoing a variable so register_globals set to On will have no effect in this case (I would switch it back Off as it will be more secure and you should get used to coding that way)... Do you see any errors in the server log? Does it work if you use ?php instead of ? as your opening tag?

RE: [PHP-WIN] newbie form question..

2003-01-24 Thread Rich Gray
for details on how to configure apache on win32... Rich -Original Message- From: paradiddles [mailto:[EMAIL PROTECTED]] Sent: 24 January 2003 12:31 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] newbie form question.. Rich, thanks for your response. I've tried using the ?php

RE: [PHP-WIN] Cookies and redirect issues with XP

2003-01-23 Thread Rich Gray
IIRC there is a problem with v4.1.2 of PHP on IIS - is that your platform? I encountered this problem and had to implement a hack to get around it however in my case it affected all clients not just XP so it may not be the same issue... Rich -Original Message- From: Ellen Emerson

RE: [PHP-WIN] $_SESSION

2003-01-13 Thread Rich Gray
don't use session_register(). Try creating a couple of test pages as follows... page1.php ? session_start(); $_SESSION['test'] = 'Blah'; ? page2.php ? session_start(); echo $_SESSION['test']; ? HTH Rich -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: 13 January

RE: [PHP-WIN] $_SESSION

2003-01-13 Thread Rich Gray
Can you post some code that doesn't work Rich -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 12:14 To: Rich Gray; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] $_SESSION First of all; I had written the wrong save_path in php.ini. Thanks

RE: [PHP-WIN] $_SESSION

2003-01-13 Thread Rich Gray
='svar.php'test/a); ? -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 13:50 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] $_SESSION okej.. here it comes as short as I could get it... try the 'test' link to go to page2... page one: ?php

RE: [PHP-WIN] Re: need explanation about includes

2002-12-16 Thread Rich Gray
Do the 2 problematic includes include other files themselves? Davide wrote: I have installed php-4.3.0 (I tried 4.2. but I couldn't make Apache2 to run with it here in win32). Now I noticed a different behaviour in respect of 4.0.6 installed before. I use php_lib_login 0-9b to manage session

RE: [PHP-WIN] Redirect browser to another URL?

2002-11-28 Thread Rich Gray
Jack Sorry - I am a bit confused... Are you saying you could not get a header() re-direct to work in a script that posts form data to itself? As someone else has mentioned the header() call does not have to be at the top of the script it just has to be executed before any output has gone to the

RE: [PHP-WIN] Redirect browser to another URL?

2002-11-28 Thread Rich Gray
looking at using a database to store the comments - it'll make your life much easier. Rich -Original Message- From: Max Graham [mailto:[EMAIL PROTECTED]] Sent: 28 November 2002 15:19 To: Rich Gray; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Redirect browser to another URL? The original issue

RE: [PHP-WIN] Weird PHP Problem

2002-11-27 Thread Rich Gray
When you say the 'first part of the string' do you mean it returns only the string up to the 1st space character? Can you provide an example with code? -Original Message- From: Becky Gruebmeyer [mailto:[EMAIL PROTECTED]] Sent: 27 November 2002 11:24 To: [EMAIL PROTECTED] Subject:

RE: [PHP-WIN] question about session PHP

2002-11-27 Thread Rich Gray
I have used the unlink() function on Win32 with no probs in the past. What are the directory permissions on 'D:/OPENFEDRA/Apache/htdocs/fedra/sv/tmp' - do they allow deletion by the web server process? Was the file to be unlinked already opened by another process i.e. a share violation?

RE: [PHP-WIN] MS FTP ftp_nlist() hang?

2002-11-25 Thread Rich Gray
Jack I'm afraid this is a known bug... and it's still a problem with v4.2.3 I believe.. Check http://bugs.php.net for more info - sorry I don't have the Bug # Rich -Original Message- From: Jack Kelly Dobson [mailto:[EMAIL PROTECTED]] Sent: 25 November 2002 16:22 To: [EMAIL PROTECTED]

RE: [PHP-WIN] HELP !!!

2002-11-23 Thread Rich Gray
Not sure what you are trying to do here... are you trying to set $a from the url i.e. http://blahblah.blah?a=1234 ? If yes then you will need to use $_GET['a'] in your script as variables are no longer automatically assigned from external sources... e.g. ? $a = 123; echo 'Original value: '.$a;

RE: [PHP-WIN] mysql command problem

2002-11-22 Thread Rich Gray
What error do you get with PHP? -Original Message- From: Gareth Thomas [mailto:[EMAIL PROTECTED]] Sent: 22 November 2002 02:17 To: [EMAIL PROTECTED] Subject: [PHP-WIN] mysql command problem Hi, I have a Mysql command that when run in PHP does not work and yet when executed directly in

RE: [PHP-WIN] Class error with php

2002-11-19 Thread Rich Gray
if the classes are in include files then you are probably including the file twice. look into using include_once() require_once() instead... -Original Message- From: ecd [mailto:[EMAIL PROTECTED]] Sent: 14 November 2002 07:08 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Class error with php

RE: [PHP-WIN] HELP - problems with mysql and select .

2002-11-12 Thread Rich Gray
I'm not sure what you are talking about here so I will have to guess... If by JAVA you mean javascript, well that operates client side and it cannot directly interact with a server side PHP script which has finished execution by the time the page is displayed. If you are trying to display data

RE: [PHP-WIN] mysql_fetch_array problem

2002-11-08 Thread Rich Gray
Erm.. isn't the addslashes() just needed to protect the SQL query? IMO the data in the db will not have any slashes embedded in normal circumstances, so there is no reason to stripslashes() any data coming from a database column... Rich -Original Message- From: Dash McElroy

RE: [PHP-WIN] Mixing include path styles. How do I do this???

2002-10-23 Thread Rich Gray
Roderick Have you tried just changing '/acc/includes/headstart.htm' to 'c:/acc/includes/headstart.htm'? i.e. leaving the unix style slashes in place... There is a nasty bug in the latest versions of PHP on Win32 affecting the include statement with absolute paths. The above is a workaround

RE: [PHP-WIN] problem passing variables...

2002-10-09 Thread Rich Gray
So you're doing this right? ?php if (!isset($_GET['i'])) { $i = 1; } else $i = $_GET['i']; echo $i.BR; $i++; echo a href=\passtest.php?i=.$i.\/Press to continue/a; ? -Original Message- From: db [mailto:[EMAIL PROTECTED]] Sent: 09 October 2002 15:58 To: [EMAIL PROTECTED]

RE: [PHP-WIN] php/mySQL ... using different port

2002-10-09 Thread Rich Gray
Try ... mysql_connect('server:','user','password'); Where '' is the alternate port number. HTH Rich -Original Message- From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]] Sent: 09 October 2002 15:34 To: [EMAIL PROTECTED] Subject: [PHP-WIN] php/mySQL ... using different port

RE: [PHP-WIN] dates

2002-10-04 Thread Rich Gray
Tim In your select statment you have labeled the returned column as date yet your mysql_fetch_array uses the label 'tutdate' - the labels don't match... To fix it, either do this... $query = SELECT DATE_FORMAT(tutdate, '%b-%e %l%p') as tutdate FROM tutorial_table; or do this ... $vardate =

RE: [PHP-WIN] Getting last id from database

2002-10-03 Thread Rich Gray
why not select id from poll order by id desc limit 1 HTH Rich -Original Message- From: Davy Obdam [mailto:[EMAIL PROTECTED]] Sent: 03 October 2002 16:58 To: Php-Windows Mailing Subject: [PHP-WIN] Getting last id from database Hiya people,.. I have a script and i need to get the

RE: [PHP-WIN] Alternate table rows

2002-10-03 Thread Rich Gray
Hi Davy Use the modulo function to switch colours eg echo 'table cellpadding=2 cellspacing=1 bgcolor=#ff\n'; for ($i=0;$imysql_num_rows($sql_id);$i++) { echo 'tr bgcolor=#'.(($i % 2 == 0) ? 'd3d3d3' : 'efefef').''. 'td... etc etc See what I mean? HTH Rich

RE: [PHP-WIN] session under windows

2002-09-25 Thread Rich Gray
Where's the session_start()? You need it on every page that is gonna use session vars I think.. Rich -Original Message- From: Antonello Oliveri [mailto:[EMAIL PROTECTED]] Sent: 24 September 2002 18:27 To: [EMAIL PROTECTED] Subject: [PHP-WIN] session under windows I've istalled PHP ver.

RE: [PHP-WIN] Pool: Pictures as files or text/blobs

2002-09-19 Thread Rich Gray
Luis FWIW... I would always choose storing the URL to the image in the database over storing the binary image in a text/blob field I can't back up my choice with hard evidence - just a gut feeling that an injudicious 'select * from blobtable' would probably cripple the server performance wise

RE: [PHP-WIN] form-problems

2002-09-19 Thread Rich Gray
Assuming v4.2.x of PHP Is register_globals set to On or Off? If set to Off (default) then you need to use $_POST['lastname'] instead of $lastname, and $_SERVER['PHP_SELF'] instead of $PHP_SELF Cheers Rich -Original Message- From: Luis Moreira [mailto:[EMAIL PROTECTED]] Sent: 19

RE: [PHP-WIN] Inserting text with single quotes into database

2002-09-18 Thread Rich Gray
Hi Lanham Use addslashes() if gpc magic quotes is off. Cheers Rich -Original Message- From: Lanham Rattan [mailto:[EMAIL PROTECTED]] Sent: 18 September 2002 14:40 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Inserting text with single quotes into database I am trying to insert text into a

RE: [PHP-WIN] Error after a while???

2002-09-12 Thread Rich Gray
Can you post some code to look at? -Original Message- From: M.B. [mailto:[EMAIL PROTECTED]] Sent: 11 September 2002 20:32 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Error after a while??? Hi, I have a database and a site which has members and so on.. but now I have service (also for

RE: [PHP-WIN] Re: exec() without waiting for completion in Win2k

2002-09-09 Thread Rich Gray
... Rich -Original Message- From: Noel Llopis [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 00:35 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Re: exec() without waiting for completion in Win2k On Sun, 08 Sep 2002 22:42:44 -0700 Rich Gray [EMAIL PROTECTED] wrote: Sorry

RE: [PHP-WIN] Re: exec() without waiting for completion in Win2k

2002-09-08 Thread Rich Gray
What does this do? exec(getenv('COMSPEC').' /c c:\path\to\your\bat\file\build.bat NUL'); Do you see any errors in the log file? Rich -Original Message- From: Kurtis Harper [mailto:[EMAIL PROTECTED]] Sent: 08 September 2002 15:33 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: exec()

RE: [PHP-WIN] GET / POST

2002-09-08 Thread Rich Gray
Comments below... -Original Message- From: XXXPixie [mailto:[EMAIL PROTECTED]] Sent: 08 September 2002 09:52 To: [EMAIL PROTECTED] Subject: [PHP-WIN] GET / POST hi! I'm a total newbie to php4 or web design and i (of course) have a problem: i'm using apache 2.x and php4 as a module. so,

RE: [PHP-WIN] Re: exec() without waiting for completion in Win2k

2002-09-08 Thread Rich Gray
case, try single quotes, eg add this to your php script: exec ('start C:\path\to\your\bat\file\build.bat'); I'm afraid it didn't. Still the same problem. The page just waits for the process to end. On Sun, 08 Sep 2002 20:56:28 -0700 Rich Gray [EMAIL PROTECTED] wrote: What does this do

RE: [PHP-WIN] Help! I will even Donate through Paypal, I only want to make a thumbnail of a picture through php code.

2002-09-07 Thread Rich Gray
Hi Kurtis So what error do you get when you run exec on convert.exe? Rich -Original Message- From: Kurtis Harper [mailto:[EMAIL PROTECTED]] Sent: 07 September 2002 08:55 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Help! I will even Donate through Paypal, I only want to make a thumbnail of a

RE: [PHP-WIN] Stupid problem: cannot send variables!

2002-09-07 Thread Rich Gray
Either switch on register_globals in php.ini (security implications however) or use echo $_GET['field'] instead of echo $field. HTH Rich -Original Message- From: Elias Lovén Larsson [mailto:[EMAIL PROTECTED]] Sent: 07 September 2002 11:32 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject:

RE: [PHP-WIN] PHP 4 Apache 2 and Windows XP

2002-09-04 Thread Rich Gray
Matt Is anything logged in the Apache/PHP error log? Rich -Original Message- From: Matt Carlson [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 17:29 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] PHP 4 Apache 2 and Windows XP I would have thought the same thing. Over about 2 hours, i

RE: [PHP-WIN] Trouble with printer_list

2002-08-30 Thread Rich Gray
hi Luis Can you post the code you used e.g. printer_list(PRINTER_ENUM_LOCAL); What was the different error message you received when you uncommented the extension=... What OS are you running? XP? FYI There is an open bug for php v4.2.1/XP for this function #18408 Rich -Original

FW: [PHP-WIN] Trouble with printer_list

2002-08-30 Thread Rich Gray
it. Cheers Rich -Original Message- From: Luis Moreira [mailto:[EMAIL PROTECTED]] Sent: 30 August 2002 16:41 To: Rich Gray Subject: Re: [PHP-WIN] Trouble with printer_list Hi Rich Using just this ?php var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED) ); ? I get Fatal error

RE: [PHP-WIN] Capturing IP Address

2002-08-28 Thread Rich Gray
Be warned that this will return the IP of any proxy or cacheing server being used. If that is the case then you can also check $_SERVER['HTTP_X_FORWARDED_FOR'] for the client IP address and this may also contain multiple comma separated addresses... Rich -Original Message- From: Richard

RE: [PHP-WIN] php help

2002-08-26 Thread Rich Gray
I presume you have v4.2 of PHP installed... Globals are off by default so use $_POST['id'] in course.php or set register_globals to on in php.ini (security implications however) -Original Message- From: mathew jose seby [mailto:[EMAIL PROTECTED]] Sent: 23 August 2002 23:23 To: [EMAIL

RE: [PHP-WIN] Always getting a parse error

2002-08-25 Thread Rich Gray
You're missing a closing ')' on the if statement i.e. if (!empty($name) !empty($email) !empty($submit) should be ... if (!empty($name) !empty($email) !empty($submit)) - extra closing bracket HTH Rich -Original Message- From: Dennis Hoffmann [mailto:[EMAIL PROTECTED]] Sent: 25

RE: [PHP-WIN] array way....

2002-08-25 Thread Rich Gray
Crizz use myvar[] in the form and PHP will generate an array for you input type=text name=myvar[] input type=text name=myvar[] HTH Rich -Original Message- From: crizz [mailto:[EMAIL PROTECTED]] Sent: 25 August 2002 09:21 To: [EMAIL PROTECTED] Subject: [PHP-WIN] array way Can you

RE: [PHP-WIN] Apache...

2002-08-21 Thread Rich Gray
Brian FWIW I had major problems getting PHP to run with Apache 2.x on NT4.0 - I had to revert back to v1.3.x ... Rich -Original Message- From: Brian McGarvie [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 13:25 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Apache... What version of Apache

RE: [PHP-WIN] Undefined Constant error Anybody Help?

2002-08-04 Thread Rich Gray
put the array key names in quotes... 'Code' = TIR etc etc -Original Message- From: Sean M. Mayhew [mailto:[EMAIL PROTECTED]] Sent: 03 August 2002 13:28 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Undefined Constant error Anybody Help? Can anyone tell me why the following php code produces

RE: [PHP-WIN] Re: Problem in passing parameters

2002-08-01 Thread Rich Gray
v4.2.x has register globals set to Off by default. Is that the case for your PHP configuration? If yes you can either switch them to On in your php.ini file (security implications however...) else you have to reference these variables via the super globals... so taking Lung's example ... ? //

RE: [PHP-WIN] End session

2002-07-30 Thread Rich Gray
How about... session_unset(); session_destroy(); header('Location: blah blah'); // Send user back to home page exit; The above should initialise the $_SESSION array and blow away the session data. HTH Rich -Original Message- From: Kit Kerbel [mailto:[EMAIL PROTECTED]] Sent: 30 July

RE: [PHP-WIN] PHP WIN2K MYSQL Authentication

2002-07-24 Thread Rich Gray
Frank I'll guess you are using v4.2.x of PHP - well the $PHP_AUTH_USER probably won't be set as now the default installation has the register_globals directive set to off rather than on... this has broken lots of existing code... You have 2 options... 1) Switch back on register_globals in

RE: [PHP-WIN] Syntax

2002-07-23 Thread Rich Gray
If $i equals 0 then return $i else return $i multiplied by 20 -Original Message- From: Kit Kerbel [mailto:[EMAIL PROTECTED]] Sent: 23 July 2002 12:35 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Syntax What, if you please, does this syntax denote exactly. ($i==0?($i):($i*20))

RE: [PHP-WIN] Forward

2002-07-16 Thread Rich Gray
Try - header(location: next page) -Original Message- From: Joco Paulo Batistella [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 14:40 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Forward How can I forward the user to another page? Thanks, JP

[PHP-WIN] Formless post question

2002-07-11 Thread Rich Gray
I am doing a formless post to a CGI script on another site (PayPal). I am doing this because the current site design has 2 different submit images on a single form which need to post different data to the CGI script (after registering the customer in the local database) dependent upon whcih image

RE: [PHP-WIN] mysql_pconnect()

2002-07-02 Thread Rich Gray
Matt I have seen instances with v4.0.6 of php where it didn't re-use persistent connections and opened up another channel for each pconnect - within a small amount of time MySql maxed out and refused any more connections... so if you're using that version of php (or earlier) I would monitor your

RE: [PHP-WIN] Vars not accepted in script.php?var=xy

2002-07-01 Thread Rich Gray
1st issue: If you are using v.4.2.x of PHP then globals are turned off by default as a security measure. You can either switch back on globals defined bt default by changing register_globals to On in your php.ini file (not a good idea for security however) or change your code to use the super

[PHP-WIN] Cannot load ISAPI Filter DLL

2002-05-23 Thread Rich Gray
Win2K IIS5.0 PHP 4.2.1 I am trying to configure IIS to load PHP as an ISAPI module - but every time the service starts I get the following error in the event log... The HTTP Filter DLL C:\WINNT\system32\php4isapi.dll failed to load. The data is the error. : e6 03 00 00 æ...

Re: [PHP-WIN] Cannot load ISAPI Filter DLL

2002-05-23 Thread Rich Gray
Sorted... I did put the php4isapi.dll in system32 and it successfully loaded after I also dropped the php4ts.dll into the same folder... Thanks for your reply anyway Cheers Rich - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: Rich Gray [EMAIL PROTECTED] Sent: Thursday