On Saturday 23 October 2004 13:05, Walter Wojcik wrote:
> I am trying to write a script that checks a table for a value in MySQL. It
> opens the table and queries it fine but if my query returns nothing i have
> no way of testing to see if it returned anything. I have tried testing for
> "false"
I am trying to write a script that checks a table for a value in MySQL. It opens the
table and queries it fine but if my query returns nothing i have no way of testing to
see if it returned anything. I have tried testing for "false" and "" and ! $result in
a if statement but i don't know what
Trying to go the other way now - and maybe this isn't a PHP issue, but help
would be appreciated anyway
Is there a way to block the referring page information, so that if I send
someone to a site, that site doesn't see what page sent the visitor to them?
Looking at this from a marketing sta
* Thus wrote Herman Scheepers:
> Hi
>
> I am a PHP newbie from a Java/C/Oracle background. I
> cannot seem to get session management with PHP
> working.
>
>
> #echo 1;
>
> $old = ini_set('session.use_cookies', 0);
>
> session_start();
> $username = $_REQUEST["username"];
> session_r
* Thus wrote Patrick Fehr:
>
> For the definition of some needed graphical functions,
> I depend on gd compiled into php.
> As I am using a linux gentoo2.6.8.1 box, I use portage for that kind.
> I emerge'd php again, but with the USE-Flag +gd set, this seemed to work.
>
> But still the function
* Thus wrote Nick Lane-Smith:
> Hello php-list,
>
> I'm curious to why default mysql support was dropped from PHP 5?
It was due to the changes in the mysql license. Due to the changes
the PHP Team decided not to enable mysql by default. MySQL had
modified there license but it was too late, the
* Thus wrote Kevin Grigorenko:
>
>
>
> begin 666 hitcounter.doc
Please dont post attatchments, put the file up on weberver instead
and just reference it here.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Kevin Grigorenko" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> Now, I just found out after implementing this whole solution locally that
> when I uploaded to the server, the PHP safe_mode options are on, and
> non-overwritable. Therefore, fopen() doesn't even work!
>
"John Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Kevin Grigorenko wrote:
>
> > Unfortunately, for some security
> > issues, I cannot get to the Apache statistics for the site, so I have to
> > create my own solution.
>
> I recommend you find a better host that gives you a
Kevin Grigorenko wrote:
Unfortunately, for some security
issues, I cannot get to the Apache statistics for the site, so I have to
create my own solution.
I recommend you find a better host that gives you access to the raw logs
and/or doesn't have safe_mode on.
--
---John Holmes...
Amazon Wishli
I think what Brent is suggesting is a single script that will handle the
display and processing of all 5 form 'pages'. The code below is just to give
an idea of how I think the 'flow' could go, don't go copying the code and
expect anything (positive) to happen !!
if(!$_POST['step'] || $_POST['ste
A customer of mine is looking for the below package/requirements
on a BSD/OS 4.3.1 running apache-ssl with perl 5.8.5 and php 4.3.9
Sorry for the delay getting back to you. Here are the requirements:
1. Form Content Security. (FormmailEncoder/Decoder)
As I understand it, on a secure website th
ApexEleven wrote:
I've googled the question and found no answer that has fixed my
problem. I also searched this list to try and find the answer to no
avail.
My problem is that after my form submits data to another script the
$_FILES global returns nothing but "array()" when I try to "print_r()"
it.
On Fri, 2004-10-22 at 14:55, Jay Blanchard wrote:
> [snip]
> I am using COPY for PostgreSQL and having problems...
> [/snip]
>
> So, is this a PHP problem, or a PostgreSQL problem?
If I took the file it is trying to COPY into PostgreSQL and psql to
bring it in on the server directly, no issues.
Thanks for the many great replies, since at the moment the project is based
on PHP4, I will try if the filesystem functions provide what I need. Opening
the port and sending doesn't seem to be a problem, I'll try it out tonight.
If for some reason it doesnt provide the functionality I need, I will
Brent - Thank you I will try that method.
Can you elaborate more on below. I take it to mean you
have one page/script that your pages are going to do
all the checks.
This form is 5 pages long. So I chose session
variables just to keep it neat and "maybe", more
secure.
Stuart
--- Brent Baisl
You can pass the error in the redirect URL:
header("Location: http://www.xx.com/page1.php?errmsg=You missed
some stuff")
On your main page you just check if there is an errmsg to be displayed:
if(isset($_GET['errmsg'])) {
echo $_GET['errmsg'];
}
That a simplified version obviously. Bu
The only problem I'm having here is that if a user
goes backwards, the error from the session variable
will show up. I put an unset $.. underneath the
echo but that seems to have no effect.
Stuart
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote:
> See below:
> --- Jason Wong <[EMAIL PROTECT
See below:
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> What are you trying to do here?
> Is 'Page1' == TestMulti4a.php?
> Are you trying to display $_SESSION['er'] as set in
> Page2?
> If so why are you assigning $_POST['er'] to
> $_SESSION['er']? All you need to
> do is echo $_SESSION['er'].
>
On Fri, 22 Oct 2004 14:34:39 -0400, Robert Fitzpatrick
<[EMAIL PROTECTED]> wrote:
> I am using COPY for PostgreSQL and having problems now that the incoming
> file contains more than approx 1500 lines. Is this an issue anyone is
> aware of? Lot's of files over 1000 lines have worked fine, but after
Jay Blanchard wrote:
[snip]
Why does it matter??? Just answer the ding-dang question. ;)
[/snip]
Easy there Kemosabe', someone might mistake you for someone who wants to
help!
*goes back to lurking*
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List
[snip]
Why does it matter??? Just answer the ding-dang question. ;)
[/snip]
Easy there Kemosabe', someone might mistake you for someone who wants to
help!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, all fixed now!
Thank you for the help!
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 23 October 2004 02:38, Stuart Felenstein wrote:
> This isn't working:
> Page2 (after page1 has been posted):
>
>else
>{
> $_SESSION['er'] = 'Please make sure to fill in all 3
> corresponding values .';
If you want keep changes to any session variables (so that they're
Jay Blanchard wrote:
[snip]
I am using COPY for PostgreSQL and having problems...
[/snip]
So, is this a PHP problem, or a PostgreSQL problem?
Why does it matter??? Just answer the ding-dang question. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing L
[snip]
I am using COPY for PostgreSQL and having problems...
[/snip]
So, is this a PHP problem, or a PostgreSQL problem?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> > What is the best way to output 38884 as $38,884.00?
> >
> >
>
> number_format()
or http://us2.php.net/money_format
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Perry, Matthew (Fire Marshal's Office) wrote:
What is the best way to output 38884 as $38,884.00?
Use the manual Luke...
http://us4.php.net/number_format
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I've googled the question and found no answer that has fixed my
problem. I also searched this list to try and find the answer to no
avail.
My problem is that after my form submits data to another script the
$_FILES global returns nothing but "array()" when I try to "print_r()"
it. I coppied the sc
Perry, Matthew (Fire Marshal's Office) wrote:
What is the best way to output 38884 as $38,884.00?
number_format()
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What is the best way to output 38884 as $38,884.00?
This isn't working:
Page2 (after page1 has been posted):
else
{
$_SESSION['er'] = 'Please make sure to fill in all 3
corresponding values .';
header("Location:
http://www.x.com/TestMulti4a.php"; );
exit;
}
}
Page1:
Opening after session_start
$_SESSION['er']
I am using COPY for PostgreSQL and having problems now that the incoming
file contains more than approx 1500 lines. Is this an issue anyone is
aware of? Lot's of files over 1000 lines have worked fine, but after
getting a file over 1800 I began having problems. I have broke the file
down to a appro
On Saturday 23 October 2004 01:25, Stuart Felenstein wrote:
> I'm not quite sure how to get an error message to
> print out after a redirect. I know it's possible.
It's not possible. Think about it. How *can* you print something out when
you've already told the browser to go somewhere else? BTW
Now why didn't I think of that ! Thank you Jay!
Stuart
--- Jay Blanchard
<[EMAIL PROTECTED]> wrote:
> [snip]
>{
> header("Location:
> http://www.xx.com/page1.php";
> );
> print "You have errors";
> exit;
>}
>
> }
> [/snip]
>
> You either need to carry info about the
[snip]
{
header("Location: http://www.xx.com/page1.php";
);
print "You have errors";
exit;
}
}
[/snip]
You either need to carry info about the error in a session variable or
url string or something...above your redirect happens before any error
can be sent to the browser
I'm not quite sure how to get an error message to
print out after a redirect. I know it's possible.
Now page1 moves to page2, check below is on page2
If I leave it on page2 (without redirect), it prints
error to user fine. Once it redirects no print.
I also tried leaving it on form1, at the top
I put the loop at the top of the next page, before any
output to the browser:
http://www.2soon2show.com/TestMulti4a.php"; );
print "You have errors";
}
}
?>
Before I added the redirect the print worked (and yes
it doesn't belong in that part of the loop)
Now the redirect is working , but
I'm trying to build an html table using the results from pg_meta_data()
but none of the access functions seem to work. I am getting results but
just can't seem to do anything with them.
Here's what I'm using to verify that results are being returned:
$connstring = "dbname=pub_status user=postgre
You can also use the DIO extension (built-in as of PHP 5.0.0).
using dio_open, dio_read, dio_write and dio_close you can do a lot of
magical things ;)
http://www.php.net/manual/en/ref.dio.php
Greg Donald wrote:
On Fri, 22 Oct 2004 18:11:43 +0200, Ulrik Witschass <[EMAIL PROTECTED]> wrote:
Hello L
Ulrik Witschass wrote:
Hello List,
I am searching information about serial communication with PHP on Windows
machines.
I want to communicate with a colorimeter via a COM-Port, using a PHP-GTK
application.
Can anybody point me into the right direction (a webpage, a PHP
class/function, a PHP-GTK list
On Fri, 22 Oct 2004 18:11:43 +0200, Ulrik Witschass <[EMAIL PROTECTED]> wrote:
> Hello List,
>
> I am searching information about serial communication with PHP on Windows
> machines.
There's a simple example on this page:
http://www.php.net/function.fopen
Search for 'SERIAL'.
--
Greg Donald
Z
Yes, I think that will work, as soon as I can figure
out where on the page it should go. On error should
post to itself, on success it moves to next page.
I put the loop on top and am getting an invalid
argument for the foreach.
Stuart
--- "Ford, Mike" <[EMAIL PROTECTED]> wrote:
> In which case
Hello List,
I am searching information about serial communication with PHP on Windows
machines.
I want to communicate with a colorimeter via a COM-Port, using a PHP-GTK
application.
Can anybody point me into the right direction (a webpage, a PHP
class/function, a PHP-GTK list) where I can find i
> Thank you for two of you. Im amazed how quick the replys were. Very
> pleased.
> When I simply inserted the PHP sentense, it worked.
> But as I turned off register_globals,
> and changed as Matthew suggested, it looked like this:
>
> Warning: mysql_num_rows(): supplied argument is not a valid MyS
* Skrol29 <[EMAIL PROTECTED]>:
> It's seems to be allowed to add a new property (a member ?) to an object
> instance in both PHP 4 and 5.
> For example:
> **
> class Test {
> var $Prop1 = 'anything';
> }
> $MyObj = new Test;
> $MyObj->Prop2 = 'hello';
> ***
Andrew Hauger wrote:
Thanks Raditha. Unfortunately, I am still having
problems. I am new to building extensions, and now my
problem is an error during the java extension build
process.
I got the message :
configure.in:65: error: possibly undefined macro:
AC_PROG_LIBTOOL
Sorry haven't seen this p
Hello,
It's seems to be allowed to add a new property (a member ?) to an object
instance in both PHP 4 and 5.
For example:
**
class Test {
var $Prop1 = 'anything';
}
$MyObj = new Test;
$MyObj->Prop2 = 'hello';
**
But I can't found any documentatio
Yep, Mike's solution is simpler.
It's getting late on Friday and the brain is starting to slow down.
(That's my excuse anyway...)
[snip]
> >
> > Is there a simpler way / shorter way to check
> > conditions to do this ?
>
> So, the entry is valid only if all three are non-blank?
>
> In which ca
Slightly simpler:
foreach(...)
{
$count = 0;
if ($skill != '')
$count++;
if ($skys[$key] != '')
$count++;
if ($slus[$key] != '')
$count++;
if $count < 3
echo 'Invalid';
else
echo 'Valid';
}
Graham
> -Original Message-
> From: Stuart Felenstein [mailto:[EMA
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 22 October 2004 15:34, Stuart Felenstein wrote:
> I have rows of input fields
> Each row contains 3 fields. The user must fill out
> the entire row (all 3 fields) for things to
On Fri, 2004-10-22 at 09:26 -0400, Mike R wrote:
> >
> > find the mysql-devel package that matches the version you are running.
> >
> > tip: download apt from freshrpms.net
> >
> > http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/apt/
> >
> > install the rpm for apt... then run:
> > apt-get u
Thanks Raditha. Unfortunately, I am still having
problems. I am new to building extensions, and now my
problem is an error during the java extension build
process.
I got the message :
configure.in:65: error: possibly undefined macro:
AC_PROG_LIBTOOL
when I ran phpize in the ext/java directory. I
Stuart Felenstein wrote:
I have rows of input fields
Each row contains 3 fields. The user must fill out
the entire row (all 3 fields) for things to work
right.
I want to generate an error in case they have only
filled in 1 or 2 of the boxes.
Thinking I might use something like this:
foreach($ski
I have rows of input fields
Each row contains 3 fields. The user must fill out
the entire row (all 3 fields) for things to work
right.
I want to generate an error in case they have only
filled in 1 or 2 of the boxes.
Thinking I might use something like this:
foreach($skills as $key => $skill)
Hi Pablo
it really depends on what you want to do.
I mean, if you want a hierarchy of users (like: guest, normal, administrator, root) or you
wnat to limit certain users to an "area" of your site and certain others to another area
(no hierarchy here, just "fences").
Anyway, in both cases I sugge
Christian Stocker wrote:
On Fri, 22 Oct 2004 10:44:48 +0200, franco bevilacqua
<[EMAIL PROTECTED]> wrote:
Christian Stocker wrote:
On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
<[EMAIL PROTECTED]> wrote:
Hello,
I have a question regarding the html_dump_mem function. I build an xml
tree wit
> On Thu, 2004-10-21 at 16:05 -0400, Mike R wrote:
> > > On Thu, 21 Oct 2004 15:35:09 -0400, Mike R
> > > <[EMAIL PROTECTED]> wrote:
> > > > Even after re-compiling with the location of the mysql
> headers, it still
> > > > won't work. :\
> > > >
> > > > Pretty discouraging. What version of PHP
On Fri, 2004-10-22 at 09:05, Pablo D Marotta wrote:
> Hi, I´m developing an intranet on Apache-PHP-Mssql.
> I need to know if there´s any way of managing users to have access to specific
> areas inside my site, and at the same time, managing other users, giving them
> permision to acces other areas
sorry, M. Sokolewicz, everyone, reposting in english :)
(previous post had some japanese text.)
>Arigato thank you.
It was my pleasure.
This is your problem:
> Bad query: You have an error in your SQL syntax near 'and Tit like and Aut
> like and Auty like ' at line 4
The SQL query you forme
Hi, I´m developing an intranet on Apache-PHP-Mssql.
I need to know if there´s any way of managing users to have access to specific
areas inside my site, and at the same time, managing other users, giving them
permision to acces other areas only, because all of the codes and information
I´ve found (
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 22 October 2004 11:53, David Robley wrote:
> On Fri, 22 Oct 2004 03:51, Mike Ford wrote:
>
> > To view the terms under which this email is distributed, please go
> > to http://d
Its been awhile since I did any PHP but I would look at if you need to excape some of
those double quote or encapsulate your sql in a single quote.
Sugimoto <[EMAIL PROTECTED]> wrote:Thank you for two of you. Im amazed how quick the
replys were. Very pleased.
When I simply inserted the PHP sente
Hi,
I'm trying to wrote my own serialization routines and I've found a
previsible problem: protected members are not visible to my
serialization routine. This is ok and it should be as is, but I've seen
that PHP's serialize function have access to that members anyway, so the
question is: Is the
On Fri, 22 Oct 2004 03:51, Mike Ford wrote:
> To view the terms under which this email is distributed, please go to
> http://disclaimer.leedsmet.ac.uk/email.htm
>
>
>
> On 21 October 2004 18:01, Robert Cummings wrote:
> Believe me, I have researched this extensively -- you will find that the
>
Hi,
We've got a script setup that forks a number of child processes,
using pcntl_fork. When a child finishes we capture the SIGCHLD, do
pcntl_wait, and then fork of another child. This has worked fine in one
script but now using exactly the same forking code in another script has
resulted in pro
On Fri, 22 Oct 2004 10:44:48 +0200, franco bevilacqua
<[EMAIL PROTECTED]> wrote:
> Christian Stocker wrote:
> > On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
> > <[EMAIL PROTECTED]> wrote:
> >
> >> Hello,
> >>I have a question regarding the html_dump_mem function. I build an xml
> >>tree w
Christian Stocker wrote:
> On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
> <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>> I have a question regarding the html_dump_mem function. I build an xml
>> tree with HTML tags. When I dump it, I expect that my brother interpret
>> HTML tag procduced by th
Stuart Felenstein wrote:
I just remembered something (smacks myself in the
head)
In both my multi select and select menus I use dynamic
options (meaning the options available come from a
table. So:
Table for states would look like this:
+--+---+
| StateID | State [Label
Christian Stocker wrote:
On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
<[EMAIL PROTECTED]> wrote:
Hello,
I have a question regarding the html_dump_mem function. I build an xml
tree with HTML tags. When I dump it, I expect that my brother interpret
HTML tag procduced by the dump. But the du
I just remembered something (smacks myself in the
head)
In both my multi select and select menus I use dynamic
options (meaning the options available come from a
table. So:
Table for states would look like this:
+--+---+
| StateID | State [Label|
+--+-
On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
<[EMAIL PROTECTED]> wrote:
> Hello,
> I have a question regarding the html_dump_mem function. I build an xml
> tree with HTML tags. When I dump it, I expect that my brother interpret
> HTML tag procduced by the dump. But the dump produce only
Ramil Sagum wrote:
On Fri, 22 Oct 2004 16:13:07 +0900, Sugimoto <[EMAIL PROTECTED]> wrote:
Thank you for two of you.
dou itashimashite.
This is your problem:
Bad query: You have an error in your SQL syntax near 'and Tit like and Aut
like and Auty like ' at line 4
The SQL query you formed may hav
On Fri, 22 Oct 2004 16:13:07 +0900, Sugimoto <[EMAIL PROTECTED]> wrote:
> Thank you for two of you.
dou itashimashite.
This is your problem:
> Bad query: You have an error in your SQL syntax near 'and Tit like and Aut
> like and Auty like ' at line 4
The SQL query you formed may have an invalid
Marco Stranieri
Net.Software Division
NETHOUSE S.p.A.
C.so Re Umberto I, 57 - 10128 Torino - Italy
Tel. +39-011-227.227 - Fax +39-011-227.228
http://www.nethouse.it - mailto:[EMAIL PROTECTED]
Il presente
messaggio non costituisce un impegno contrattuale tra NETHOUSE S.p.
Hi,
I’ve a problem when I start apaci on my server:
[EMAIL PROTECTED] bin]$ ./apachectl start
Syntax error on line 232 of
/usr/local/apache2/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms
The conf
Hello,
I have a question regarding the html_dump_mem function. I build an xml
tree with HTML tags. When I dump it, I expect that my brother interpret
HTML tag procduced by the dump. But the dump produce only a text with my
html tag. Does someone knows how to do HTML interpretation with using
D
Hi,
Friday, October 22, 2004, 4:10:50 PM, you wrote:
HS> Hi
HS> I am a PHP newbie from a Java/C/Oracle background. I
HS> cannot seem to get session management with PHP
HS> working.
HS>#echo 1;
HS> $old = ini_set('session.use_cookies', 0);
HS> session_start();
HS> $username = $_REQUES
Owkee here goes:
* Removing the foreach loop only supplied me with not being able to log
in.
But again I dunnot think this is the problem.
The variables are stored correctly.
At certain times the user_id sessions were just swapped...
* Now I've seen that
session_register('email');
79 matches
Mail list logo