I d/l php and i searched through like i did before and i didnt find anything
usefull. I couldnt find anything that had functions in it. except for the
pear stuff. thx for replying though.
--
Dark |++| Darkobjects.com
Justin French [EMAIL PROTECTED] wrote in message
I have a simple method of creating easy form processing I thought
I came up with the idea (I am not claiming to be the first) to have form
elements I want to update via MySQL starting with either - or +.
Example:
+name=DAN
[EMAIL PROTECTED]
-notes=
id=1
The first 2 are required and
Hello,
eNetwizard Developers Team [EMAIL PROTECTED] wrote:
Use $_GET[select] for the switch statement
Some of the people on this list would even recommend you make another
variable first, such as $userselect = $_GET[select] and use
$userselect as your switch statement, though I think it
Hello,
Are you sure you want to do something like this?
This seems like a good candidate for an SQL injection...
(Well, I'm not really sure how you're doing it so I could be wrong.)
Just wondering...
- E
Dan Tappin [EMAIL PROTECTED] wrote:
I have a simple method of creating easy form
I also receive this kind of message. What's happening?
- E
Monty [EMAIL PROTECTED] wrote:
For some reason I get the following e-mail every time I make a post here
recently and not sure why:
---
This message was created automatically by mail delivery software (Exim).
A message that
http://cvs.php.net/co.php/php4/ext/session/session.c?login=2r=1.336
G
DaRk--ObJeCtS [EMAIL PROTECTED] wrote in message
news:20021027024001.28357.qmail;pb1.pair.com...
alright i wanna know where i could see the source of predifened functions
like session_register. Thx.
--
Dark |++|
Hey...
I have a little problem... i want to read an encrypted field from mysql
database to a php variable... what is the code line that i must enter? (ex:
password validation in a login form)
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I am developing a shopping cart based on the above authors shopping cart fom
their book. (Book is a must by the way). I am still pretty new to PHP and
MySQL and need some help with the cart. Basically I need to add a form to
adjust the quantity in the cart instead of just incrementing by one and
Hi,
I have an ssl class which does not work when called within php but works from console.
I reported this as a bug to php.net. (Algorithm [Sun bla bla] not found)
But while the bug is examined, I have to use this class from my website.
1. Do someone knows how can I integrate my site with
I get the following error and I don't know why this is the code:
if($new)
{
$details = get_product_details($new);
if($details[catid])
$target = show_cat.php?catid=.$details[catid];
//line 55 is the bracket below.
}
$path = $PHP_SELF;
$path = str_replace(show_cart.php, ,
Hello,
What is your PHP version? Perhaps, the problem has something to do with
register_globals?
What exactly is the problem you're having? Any error messages?
- E
PS.
The book is really great--it's part of my library :)
Steve Jackson [EMAIL PROTECTED] wrote:
I am developing a shopping
Hello,
A3-Mail Proxy Handler [EMAIL PROTECTED] wrote:
Hi,
I have an ssl class which does not work when called within php but
works from console. I reported this as a bug to php.net. (Algorithm
[Sun bla bla] not found)
But while the bug is examined, I have to use this class from my
The error is probably coming from line 39 in the show_cart.php file
where you're using the array_count_values() function. I'm not sure why
it says line 55 in the error if that's the actual file you're using.
Read the manual page on array_count_values for a possible explanation.
Dan Tappin wrote:
I have a simple method of creating easy form processing I thought
I came up with the idea (I am not claiming to be the first) to have form
elements I want to update via MySQL starting with either - or +.
Example:
+name=DAN
[EMAIL PROTECTED]
-notes=
id=1
The first 2
I wrote a db class which builds my queries for me. Example snippit:
/* -- db.conf -- (table definitions) */
dbNewConn('conn', 'user:password@host');
dbNewDb('database', 'conn');
dbNewTable('my_table', 'database.table_name');
/* -- My script.php -- */
$d = array( 'name' = $_POST['name'],
Edward,
Try
Case 1:
.
Break;
-Original Message-
From: Edward Kehoe [mailto:emkehoe;learn.senecac.on.ca]
Sent: Friday, October 25, 2002 6:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble with switch statements
Ok...I just recently installed Apache1 and PHP 4.2.3 on my
I have two test carts online at the moment.
This one works fine:
http://www.violasystems.com/shop/
this one is the one I want to get working
http://www.violasystems.com/shop_testing/
The code for the first shop basically increments the cart by one when the
submit button is added using the
Hi,
Monday, October 28, 2002, 1:44:37 AM, you wrote:
SJ I have two test carts online at the moment.
SJ This one works fine:
SJ http://www.violasystems.com/shop/
SJ this one is the one I want to get working
SJ http://www.violasystems.com/shop_testing/
SJ The code for the first shop basically
if($new)
{
$details = get_product_details($new);
if($details[catid])
$target = show_cat.php?catid=.$details[catid];
//line 55 is the bracket below.
}
$path = $PHP_SELF;
$path = str_replace(show_cart.php, , $path);
Error:
Warning: Can only count STRING and
John W. Holmes wrote:
I wrote a db class which builds my queries for me. Example snippit:
/* -- db.conf -- (table definitions) */
dbNewConn('conn', 'user:password@host');
dbNewDb('database', 'conn');
dbNewTable('my_table', 'database.table_name');
/* -- My script.php -- */
$d = array( 'name' =
Hey guys,
My service sends out emails every few days to members who wish to have
stats sent to them. The problem is once an email becomes inactive, I the
webmaster gets a failure email sent to me. This is starting to add up and I
can get upwards of 20 of these a day. It just seems likea
Hi,
I want to know if it is possible to do the following in Mysql 3.xx or do
i have to write out a php script.
table1 has a columns A,B,C table2 also has columns A,B,C. The data in column
A is differnt in both tables (though 90% is identical) i want to update B,C
in table2 where table1.A =
php-general Digest 27 Oct 2002 17:35:57 - Issue 1669
Topics (messages 121577 through 121602):
Mac OS X EI TEXTAREA Problem
121577 by: Dan Tappin
Trouble with switch statements
121578 by: Edward Kehoe
121579 by: Thoenen, Peter Mr. EPS
121580 by: eNetwizard
I've been trying for ages to add a form field qty to an array to pass it to
my shopping cart and have finally managed it but not quite.
Please check this cart:
http://www.violasystems.com/shop_testing/
When you add an item using the form text box it doesn't add more than 1 on
the first submit.
Hi,
RedHat 7.2 - PHP 4.0.6
i run this command on the console when im disconnected from the net and i
get an immediate response :
wget yahoo.com/ui.htm -O outfile -a logfile
the logfile has the error mentioning that HOST NOT FOUND
now if do something like this
---test.php---
I found the error,
silly me i had $!/usr/bin/php -q instead of #!/usr/bin/php -q,
sorry
gamin.
Gamin [EMAIL PROTECTED] wrote in message
news:20021027181157.79883.qmail;pb1.pair.com...
Hi,
RedHat 7.2 - PHP 4.0.6
i run this command on the console when im disconnected from the net and
I'm running oracle 8.1.7 w/ php 4.2. I use the oci8 functions to update
clob columns, and maybe 1 out of every 15 or 20 times, updating a clob
column causes the mysterious ora-600, internal error code. Anybody out
there experienced this (and hopefully resolved it) who can shed some light?
thanks
My coding is not very concise and I would appreciate suggestions on how
to clean this up even though it works:
/* MySQL to date */
function mysql_to_date($mysql) {
$retval = ;
if ($mysql) {
$parts = explode(-, $mysql);
$mo = $parts[1];
$dy = $parts[2];
$yr =
function mysql_to_date($mysql)
{
return ( $mysql ? date('m/d/Y', strtotime($mysql) ) : '' );
}
-js
Todd Cary wrote:
My coding is not very concise and I would appreciate suggestions on how
to clean this up even though it works:
/* MySQL to date */
function mysql_to_date($mysql) {
Hi All,
I am have trouble getting $address to print the URL that is in the db.
td class=\dtd\a href=\$address\ target=\_blank\%s/a/td is
printing the url with the word address instead of the real address.
The code is below.
$sql =SELECT * FROM links ORDER BY owner;
$sql_result =
- Original Message -
From: Gary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 27, 2002 2:00 PM
Subject: [PHP] defining a variable
Hi All,
I am have trouble getting $address to print the URL that is in the db.
td class=\dtd\a href=\$address\ target=\_blank\%s/a/td
Why not use DATE_FORMAT in your query, then you don't have to do any
extra PHP at all?
---John Holmes...
-Original Message-
From: Jonathan Sharp [mailto:js-lists;sharpmedia.net]
Sent: Sunday, October 27, 2002 1:45 PM
To: Todd Cary
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Need a
Matt wrote:
- Original Message -
From: Gary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 27, 2002 2:00 PM
Subject: [PHP] defining a variable
Don't just try to change 'address' to $row['address'] abve, because you
haven't fetched the result yet, and it will be blank
I'm writing a survey app in PHP (4.2.2) that will allow people to view a set
of photos and then rate each photo from 1-5 using a little dropdown under
each photo. When they are done choosing their ratings, they click on SUBMIT
to register all their votes at once.
I thought the best way to record
I have set up my own news submission system, basically you write an article and it is
posted into a mysql database and then anyone can use a couple of lines of java script
to access the various news articles.
I have noticed a bug though, in that when I put in particularly long articles and then
this is the first file continut.php
html
head
titleContinut/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
style
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:yellow;
}
/style
script
That's the method I would use. You could try having a separate table for
each poll, though.
---John Holmes...
-Original Message-
From: Monty [mailto:monty3;hotmail.com]
Sent: Sunday, October 27, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Best way to store Votes for Survey app
Say
item_id was a int(10)
member_id was a int(10)
date was a timestamp(14)
rating was a int(1)
then each record would take up 35bytes + a little overhead
Neglecting the overhead 20,000 records would take up only 700kb of space.
So size of the db shouldn't be a issue. But if it is then you could
So how do you store the text into the database? I didn't see that in
here?
---John Holmes...
-Original Message-
From: [EMAIL PROTECTED] [mailto:php;erars.demon.co.uk]
Sent: Sunday, October 27, 2002 3:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] news related
I have set up my own
You'll need to be careful with this method. In an effort to keep spam to a
minimum, some ISP's may refuse messages with more than X number of email
address attached. Then the question becomes: did everyone on the list
actually receive the message?
-Original Message-
From: Justin
Hello,
PHP 4.3.0pre2 is available for download from http://qa.php.net. This
second pre-release incorporates a large number of bug fixes since the
first one. Still, to help us catch as many bugs as possible, please
download it and start testing.
-Andrei
Hello,
On 10/27/2002 06:23 PM, Dwalker wrote:
You'll need to be careful with this method. In an effort to keep spam to a
minimum, some ISP's may refuse messages with more than X number of email
address attached. Then the question becomes: did everyone on the list
actually receive the message?
Hi,
Your solution is a good way (I use the same system for user contributions
vote)..
The size of the DB is not a problem...
You can add an history table if you work month by month.
Like this, your 'voting' table will only have current month value, and the
history table
will get results for each
Hi everyone..
I would know what did you think of my method to prevent 'piracy'..
I do like this :
- A Session is made for each user
In the session, put 2 value : a flag userlogged and the userId
- In a cookie, I put the session Id and an unique crypted value.
When user go on private parts of
I know there's a way to check the current server load... does anyone
know how? Thanks.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To
I would know what did you think of my method to prevent 'piracy'..
I do like this :
- A Session is made for each user
In the session, put 2 value : a flag userlogged and the userId
- In a cookie, I put the session Id and an unique crypted value.
If you're using sessions, there is
I have two very newbie questions..
I want to be able to create a directory index view on my local Apache
server other than the default Apache view (similar to Expow, but not as
complex).. Can anyone recommend a simple script that you know of which
can display Name, Type, Size and Modified Date
I work with double cookie to add a security...
If the user try to change de sessionId, I check with the current sessionId
stored into my own cookie..
But.. It may not to be usefull... :)
The cookie is basically a crypted copy of the session content (with a
different encryption method).
I'm looking
assuming linux and 'server load' to equal 'entire server[read computer]
load' try 'uptime' and look at last three #'s try man uptime for more
details
-js
Leif K-Brooks wrote:
I know there's a way to check the current server load... does anyone
know how? Thanks.
--
PHP General Mailing
BAROILLER Pierre-Emmanuel wrote:
I work with double cookie to add a security...
This is a common technique and does strengthen security somewhat.
If the user try to change de sessionId, I check with the current sessionId
stored into my own cookie..
But.. It may not to be usefull... :)
The
can any one point me to a good tutorial or article that has web server on a
unix box and a win2k server with access on it? is there anything other than
the ocdb_connect... that i need to get/use to connect to it?
Cheers
Peter
the only dumb question is the one that wasn't asked
--
PHP General
Hi Peter,
Check out the PHP-ODBC HOWTO's on http://www.iodbc.org, this will help
you get the *nix side set up.
You will also need an appropriate driver to install on the *nix box -
OpenLink has 30 day trials if you require one.
Best regards,
Andrew Hill
Director of Technology Evangelism -
Thanks Andrew :D
-Original Message-
From: Andrew Hill [mailto:ahill;openlinksw.com]
Sent: Monday, 28 October 2002 12:10 PM
To: Peter Houchin
Cc: php_gen
Subject: Re: [PHP] OCDB Connection from unix box
Hi Peter,
Check out the PHP-ODBC HOWTO's on http://www.iodbc.org, this
Hi guys,
I was doing a script to insert data on a table, and the following message
appeared me when testing the form for data insertion:
Column count doesn't match value count at row 1
I lsaw the PHP manual and some other resources that I have, but couldn't
find anything about it...
Any hint
It means you are most likely performing an insert and have more fields
specified than values given.
If you give us your SQL we can help you out.
Regards
Jarrad Kabral
-Original Message-
From: Miguel Brás [mailto:molino26;netcabo.pt]
Sent: Monday, 28 October 2002 1:40 PM
To: [EMAIL
My guess is that you're doing something like insert into
table(col1,col2,col3) values('val1','val2'). You need to have an equal
ammount of columns and values.
Miguel Brás wrote:
Hi guys,
I was doing a script to insert data on a table, and the following message
appeared me when testing the
Ok I found the problem.
I also had a column on my table and I was not using it, so I deleted her. I
had also one more field on my form and forgot to add him to the query.
Thx for the hint
Best
Miguel
Leif K-Brooks [EMAIL PROTECTED] escreveu na mensagem
Hello,
I think the problem lies here:
$qty = $formqty;
if($cart[$new])
//$cart[$new]++;
$cart[$new] = $cart[$new] + $qty;
else
$cart[$new] = 1;
$total_price = calculate_price($cart);
$items = calculate_items($cart);
}
It seems like you should be adding
Hi all.
I would like to know what does it mean by I need to have a certain library
to have access to a certain function such as encrypt and decrypt?
And how do I install these library?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Monday, October 28, 2002, 2:52:47 PM, you wrote:
MK Hi all.
MK I would like to know what does it mean by I need to have a certain library
MK to have access to a certain function such as encrypt and decrypt?
MK And how do I install these library?
Those are a collection of functions that PHP
Hi there,
Im looking for ANY help regarding his problem - I find this interesting to
say the least.
I recently switched to a new hosting company - they are running php 4.1.2 -
register globals is ON.
the sessions automatically expire without closing the window. if you load
index.php and wait past
php-general Digest 28 Oct 2002 05:50:44 - Issue 1670
Topics (messages 121603 through 121640):
Here's a weird one!
121603 by: Steve Jackson
121637 by: . Edwin
funny system()
121604 by: gamin
121605 by: gamin
oracle: updating clob causes error 600
Hi,
I have just started off myself to learn PHP. I have installed PHP 4.2.3
and Apache 1.3.27. I have built some sample pages which are running
fine. But now I want to integrate PHP with Oracle. Can somebody help me
how to do it ?
Subodh Gupta
--
PHP General Mailing List
I figured it was something like that.
Thanks,
Dan
On Sunday, October 27, 2002, at 01:41 AM, eNetwizard Developers Team
wrote:
My understanding is since $+ is illegal, PHP strips the illegal
characters from the post variables when creating the post array. I
once
read it somewhere and if I
Hello Edwin,
What do you mean by SQL injection...?
Thanks,
Dan
On Sunday, October 27, 2002, at 01:01 AM, @ Edwin wrote:
Hello,
Are you sure you want to do something like this?
This seems like a good candidate for an SQL injection...
(Well, I'm not really sure how you're doing it so I
Hallo,
does anybody know a class or function (or module) in php to do some
simple digital watermarking or steganoraphie. Perhaps in combination
with the image functions?
Thanks in advance,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sun, Oct 27, 2002 at 11:18:28PM -0700, Dan Tappin wrote:
What do you mean by SQL injection...?
Well, to use your example of updating a user record, what if they
added form variables?
+admin=1
+paid_until=2102
+balance=10
Of course, not all will be applicable, but
Hi,
Please start by looking in the manual... I simply typed
http://php.net/oracle into my browser, which resulted in this page:
http://www.php.net/manual/en/ref.oracle.php
Seems to document all the functions, and there are user-contributed notes
down the bottom which seem to provide even more
jump along to php.net/manual/en and have a look in there and it will show ya
how to connect to oracle ( I can't remember :D ) also check out
phpbuilder.com and phpbeginner.com they'll both have tutorials for
connecting to oracle from memory :)
Cheers
-Original Message-
From: Subodh
You only have a difference into your insert query
like this : insert into table (x,y,z) values(x,y) ..
Miguel BráS [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
Hi guys,
I was doing a script to insert data on a table, and the following message
appeared me when
Just curious if anyone out there knows how to do a Please wait type screen
while the script is running in the background.. Like say PHP is doing a
large select from a database, while the user waits for the script I'd like a
graphic or something saying to wait...
Any ideas?
--
PHP General
Hello Dan,
I'm sure you can google for it. Try:
sql injection
as your keyword.
You'll find many interesting articles about it.
Like this: (found at the end of results page)
http://www.webmasterbase.com/article/794
HTH,
- E
Dan Tappin [EMAIL PROTECTED] wrote:
Hello Edwin,
What do
Hello,
James Taylor [EMAIL PROTECTED] wrote:
Just curious if anyone out there knows how to do a Please wait type
screen
while the script is running in the background.. Like say PHP is doing a
large select from a database, while the user waits for the script I'd like
a
graphic or something
Hi all,
thanks for the prompt reply.
The problem is not that I don't know how to use functions and all. I tried
using various function. But I get fatal error everytime I use some
function. I think, some extensions (dll files are missing in my
installation of php.) how can I figure this out?
hi,
How do you refresh a php page , from within your code.
i know that asp uses somthing buffer and expire = 0 or something.
How do i test if a browser supports cookies or not?
When i post a form and i push back , there is an page has expired message -
why does it happen + what does it mean?
It doesn't work with $_POST and it doesn't work with $_GET...
actually I thought there is no difference between the values in $_POST
and $_REQUEST
Does the example work on your box?
Heiko
Rick Emery wrote:
use $_POST, not $_REQUEST
- Original Message -
From: Heiko Mundle [EMAIL
76 matches
Mail list logo