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
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
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
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!
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
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
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
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
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
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
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
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
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
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:
..
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
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
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
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
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
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?
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
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
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
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
='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
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
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
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
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:
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?
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]
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;
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
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
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
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
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
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]
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
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 =
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
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
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.
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
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
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
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
...
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
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()
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,
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
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
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:
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
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
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
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
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
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
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
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
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
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 ...
?
//
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
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
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))
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
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
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
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
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 æ...
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
72 matches
Mail list logo