1. Cookies _has_ to be sent before anything else, that just is the case.
2. Sessions are the answer for thisone.
Niklas
-Original Message-
From: Dib, Walid (MED, Stagiaire GEMS) [mailto:[EMAIL PROTECTED]]
Sent: 6. kesäkuuta 2002 10:06
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] cookies
"Scott Hurring" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Depends ;-)
yea, really depnds, but as you mentioned, having parameterless
constructors are more generic, especially when it comes to derive the
classes.
>
> instead (with option #2), you could
Is it possible to use SSI with PHP? If so, where can I learn how
to do this?
TIA,
Jerry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cameron,
afaik it's not a big issue, as far as you have a central point - a database
for example.
you can write your own handlers for session, check
http://www.php.net/manual/en/function.session-set-save-handler.php
i guess the solution is to write a session-handler which stores sessions in
dat
Hi
Have a look at http://www.mohawksoft.com/phoenix/msession.html
I just started playing with it and seems to be ok, except when I try my own
session handler it chucks a core dump now, but if it is as good as they
reckon I wont need my own handler :)
Tom
At 03:17 PM 6/06/2002, Cameron Just w
greetings.
i have a website running that has multiple user directories setup as
HOST/username. Each subdirectory has its own subdir named
"admin" where i'm using phplib to do the session/user management and
authentication.
the problem i'm seeing is that when i login to username1/admin, i'm
> We do all that with mnogosearch (http://www.mnogosearch.ru/).
gr8 it worked... thnx alot
enjoy ;-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Jim!
> ok, here are a few questions for you to clarify things.
> A) Do you want to place a limit on the size of a single file being
> uploaded?
Yes. In fact, i would like to prevent having users upload too
big files. There are two reasons:
First, I don't want my server space to be consumed
I got the problem! php.ini is not saved in c:\winnt by default! Make sure
your php.ini is in c:\winnt and NOT in your profile as saved by the
installer!
"Mindhunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yes I have set cgi.force_redirect=0 in my ph
>> A) Do you want to place a limit on the size of a single file being
>> uploaded?
[...]
> Second, I want to be able to prevent my (limited) traffic to
> be "exhausted". Simple reason: I pay for anything above let's say
> 10 GB of traffic. So what PHP offers to me AFAIK enables me to
> protect my
Michael,
I have not used Oracle from PHP but I may be able to provide some
pointers/questions.
You do not say where the Oracle database is. If it is on the AIX
computer then to connect you will need the "system@tnsname" form of user
name to specify which connection in your tnsnames.ora file t
Hi,
I'm working on a 350+ line message board script with multiple SQL queries,
etc.
It's starting to get a noticeable (although not major) lag. It's probably
the multiple MySQL queries, which I'm going to attempt to minimise and
optimise, but it also brings me to a question about if().
does th
Hi Dan!
> >> A) Do you want to place a limit on the size of a single file being
> >> uploaded?
> [...]
> > Second, I want to be able to prevent my (limited) traffic to
> > be "exhausted". Simple reason: I pay for anything above let's say
> > 10 GB of traffic. So what PHP offers to me AFAIK enabl
On Thursday 06 June 2002 17:53, Christoph Starkmann wrote:
> I know this, not this new to CGI... ;) The only thing I thought/hoped
> was that maybe there's a way to recieve the file size information before
> upping the entire file.
It is possible with some browsers:
http://marc.theaimsgro
>> I know this, not this new to CGI... ;) The only thing I
>> thought/hoped was that maybe there's a way to recieve the file size
>> information before upping the entire file.
>
> It is possible with some browsers:
> http://marc.theaimsgroup.com/?l=php-general&m=102079018906224&w=2
But you s
Thanks Jason,
Works great in htaccess
Zac
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 4:08 AM
Subject: Re: [PHP] global variables without sessions on apache
> On Thursday 06 June 2002 06:05, Zac Hillier wrote:
> > Mi
Hi again, Dan!
> But you still have to rely on your visitors as they could simply use
> another web browser should they wish to DoS your site.
> Security measures
> such as logging in before allowing a file upload can come in
> useful here.
I think I have to agree at this point. I was just hop
So what did you get? Did it work? (No. I doubt it...) Don't just post a
"question" like "Here's what I'm doing...fix it"
Anyway, your really wasting your time by not using a date or timestamp
column. If you don't understand why or realize how easy it is to change
it, you've got a lot of learning
>> SELECT COUNT(*) AS c
>> FROM users_table
>> WHERE UNIX_TIMESTAMP( user_regdate ) > '1022882400'
>
> The only way you can do it with a char column is to select the entire
> database, load it into a PHP array, using strtotime() to (hopefully)
> convert "May 29, 2002", etc, into a unix timestamp,
> >> SELECT COUNT(*) AS c
> >> FROM users_table
> >> WHERE UNIX_TIMESTAMP( user_regdate ) > '1022882400'
> >
> > The only way you can do it with a char column is to select the
entire
> > database, load it into a PHP array, using strtotime() to (hopefully)
> > convert "May 29, 2002", etc, into a un
Sorry, my bad, meant a table for each user, not a database :)
But I'll go with the shared tables then :P
Håkan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I've just tried the sub-select approach. Works great on the first page -
shows names listed alphabetically sorted by country. However, once I click
on
'Next 20' both sorts go bye-bye (neither by name nor country).
[/snip]
I am late to the thread but I wanted to offer another suggestion. Re
Thanks Jay,
Well, I went back to work on it, and with the combined suggestions from the
list, it's working now. I just had to insert the sub-select on the called
page as well. That seemed to be the problem.
Thanks for your suggestion -- I used part of it.
Regards,
Andre
On Thursday 06 June 2
Thanks to all for their help on this. As a follow-up, and after a bunch of
playing around with this yesterday, here's what I've come to learn. Perhaps
it will be helpful to others:
With enable-trans-id compiled into PHP and the following directives in
php.ini:
session.use_cookies = 0(PHP u
on 06/06/02 10:20 PM, Jeff Field ([EMAIL PROTECTED]) wrote:
> So, it would seem, while the SID being appended to all URI's should work for
> all users, non-PHP pages will break the session (not good). And, as for the
> cookie method, not all users have cookies enabled for their browser (also,
>
Hi there. I'm working with RDF/XML that is strict on what characters are
allowed within the elements and attributes. I was wondering if anyone had a
script that processed a string and replaced all illegal-characters with
their HTML code, for example "&" is converted to & and " to ". It should
also
Thanks for the answer..
But this is the story now..
I've finally made Informix & PHP work using ODBC. That's working fine now.
And about native functions, i've downloaded the "manual" instalation of PHP,
and now i have the extensions, dlls, and all that stuff. But still can't
make it work.
I'v
If you use array_walk with an associative array, the only
arguments that PHP automatically passes to the defined
array are the numerical/element keys. Is there any way
you can force it to pass the associative keys?
For example, I have an array:
$bob = array( "this" => "other" );
Instead of pas
This always works for me..
==
/* *\
** chk[] is the list of check boxes sent to browser.
** If chk[$i] equals $i as as you loop
**
through the array.. then it was checked.
** But first
Hi gang-
I am trying to format a number coming from a csv file that I am importing
then sending to a database. Being the wonderful program that Excel is
there is a column that contains a number that only has a decmimal if there
is a value. So 3.05% will display, 3% will display as 3. It is
Remove the semi-c0lon from the following line in php.ini:
;extension=php_ifx.dll
And then restart your web-server if your run PHP as a module...
Mikey
"GastóN" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for the answer..
>
> But this is the story
On Thu, Jun 06, 2002 at 05:32:45AM -, James Edgar wrote:
> class myClass
> {
> function myFunc($var)
> {
> include("xml.inc");
> $obj = new xml($data,"xml");
And what happened when you ran this? Why not tell us? In the future,
please
> Instead of passing "this" and "other" to your array, PHP
> passes "0" and "other". Is there any way I can make it
> so that it passes "this"?
[pulled from the manual directly]
Example 1. array_walk() example
$fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple");
funct
Is there any way to retrieve data (for example - the text *within* a table)
from another URL so that only the text appears and not the html (tables,
cells, colors, etc.)
Below is a script which opens and reads a URL and then outputs the complete
URL.
I am just looking for the text output.
Thank
On Thursday 06 June 2002 23:43, Anthony Ritter wrote:
> Is there any way to retrieve data (for example - the text *within* a table)
> from another URL so that only the text appears and not the html (tables,
> cells, colors, etc.)
strip_tags()
--
Jason Wong -> Gremlins Associates -> www.gremlins
In theory, I would guess you could use combinations of explode and strstr to
maybe explode on <, then run strstr on > so you get everything after the >
but before the next <. Then you'd probably have to implode it or something.
There might be a better way to do it with just substr and strstr so y
I wish I'd seen this before I sent my message!
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Retrieving text from a URL using PHP
On Thursday 06 June 2002 23:43, Anthony Ritter wrote:
> Is
Jason Wong wrote:
>> Page 2:
>> I want the user to be able to use none, some, or all of the fields,
>> so I
>> don't know how many elements will be in the array.
>>
>> $color[] = $_POST["color"];
>
> That should be:
>
> $color = $_POST["color"];
>
> Actually from your results below it seems lik
Thank you Jason.
I'm still trying to figure out how to implement the strip_tags() function on
the script below so that the output of the URL is straight text.
Please advise if you get a chance.
TR
.
Retrieving text from a URL
http://www.blah.
On Thu, Jun 06, 2002 at 07:52:28PM +1000, Justin French wrote:
> It's starting to get a noticeable (although not major) lag. It's probably
> the multiple MySQL queries, which I'm going to attempt to minimise and
> optimise, but it also brings me to a question about if().
>
> does the process of
I am the webperson for a couple of sites, new ones. I've set up several
addresses, some I get and respond to.
What I would like, for all the addresses on the box, is for someone to
be able to run their browser's mailere to be able to download the mail,
and also send mail from the server th3e acco
On Thu, Jun 06, 2002 at 12:47:57PM +0100, Daniel Pupius wrote:
> Hi there. I'm working with RDF/XML that is strict on what characters are
> allowed within the elements and attributes. I was wondering if anyone had a
> script that processed a string and replaced all illegal-characters with
> their
Thanks, I've created a delimited file of all the HTML Character references.
I then loop through and do a replace as previously suggested. However,
IE's XML Parser still doesn't like the é which represents é
For all intents and purposes it's ok and works with the RDF processor.
However, I'd like
I posted this yesterday and did not get any response at all? Just wondering
if someone can give me some insight into some security measures for a
content management application...
Posted 06/05/2002
Ok, I am not a security expert so I would like to know if my security
measures I have implimented
From: "mmcree" <[EMAIL PROTECTED]>
Subject: Worm Klez.E immunity
Date: Thu, 06 Jun 2002 04:53:27 -0400
Klez.E is the most common world-wide spreading
worm.It's very dangerous by corrupting your files.
Because of its very smart stealth and anti-anti-virus
technic,most common AV software can'
On Thu, 6 Jun 2002, Christoph Starkmann wrote:
> Yes. In fact, i would like to prevent having users upload too
> big files. There are two reasons:
> First, I don't want my server space to be consumed by files too big.
> Second, I want to be able to prevent my (limited) traffic to
> be "exhausted"
echo strip_tags($contents);
miguel
On Thu, 6 Jun 2002, Anthony Ritter wrote:
> I'm still trying to figure out how to implement the strip_tags() function on
> the script below so that the output of the URL is straight text.
>
> Please advise if you get a chance.
>
> TR
> ...
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Great...
along with bieng infected with the klez virus,
everyone on php.net now has the address book of someone from the
Department of Juvenile Justice.
This is the best advertisment so far for why uncle sam should switch
to linux.
Vive le penguin!
Heya:
On Thu, Jun 06, 2002 at 04:54:15PM +0100, Daniel Pupius wrote:
> Thanks, I've created a delimited file of all the HTML Character references.
> I then loop through and do a replace as previously suggested. However,
> IE's XML Parser still doesn't like the é which represents é
>
> For all
Thanks Miguel!
TR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I am having hard time passing the variable to the next page. May be you
can help me. Let me explain:
I am using mySQL database to store information about images (ID, name,
author, description, etc). I am pulling some of the information to
create this (look at the example here:
http
Hi there,
I am wondering if it is possible to send email via the mail function with
lets say adress_1 and then if the recipient clicks on return he will adress
his email automaticly to adress_2.
I found this in my docs, but does not work though:
$mailHeaders .= "Return-Path: <".$adress_return."
I know my doubt is probable odd, but I would ask your help please.
I need a user to be able to select an image from a directory, from a
drop down box. For this I need to list all the images available on the
directory, hence, I have this code:
".$f."");
}
?>
.");
b
You mean like the "Reply-to:[EMAIL PROTECTED]" header?
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-06-06 at 13:08, andy wrote:
> Hi there,
>
> I am wondering if it is possible to send email via the mail function with
> lets say adress_1 and then if the recipient clicks on return he will adress
>
To see what I'm working with, go here:
http://www.melancholy.org/test_tree.php
You may want to copy the source and the (mySQL) db structure and
set it up on your system there to test it out. Though, if you don't want
to do that, I show the output at the very bottom of the page.
One note: I t
I think you have to use a "Reply-To" header when sending your mail. The
recipient's mail program will prompt him to use the reply to address
rather than the from address.
> Hi there,
>
> I am wondering if it is possible to send email via the mail function with
> lets say adress_1 and then if the r
Lo all,
How do you manage multiple selects and the data returned by the form?
All my attempts at doing this, only returned one variable from the selected
options, not all of them??
My test...
1
2
3
4
5
blah.php:
echo $_POST['bleh'];
$_POST['bleh'] would only have
[snip]
1
2
3
4
5
[/snip]
Change this like follow;
1
2
3
4
5
The value selected is now in $a_name
HTH!
Jay
"Give a man a program, frustrate him for a day.
Teach a man to program, frustrate him for a lifetime."
--
PHP General Mailing Li
>
>
> 1
> 2
> 3
> 4
> 5
>
>
1
2
3
4
5
Notice the [] on the name, telling PHP it's an array.
Then, to get the items selected, it will be in $_POST['bleh'], which is an
array. So, $_POST['bleh'][0] will be the first one selected, et
Hello,
On 06/06/2002 02:08 PM, Andy wrote:
> I am wondering if it is possible to send email via the mail function with
> lets say adress_1 and then if the recipient clicks on return he will adress
> his email automaticly to adress_2.
>
> I found this in my docs, but does not work though:
>
> $m
[snip]
The value selected is now in $a_name
[/snip]
Or $_POST['a_name']
HTH!
Jay
"Give a man a program, frustrate him for a day.
Teach a man to program, frustrate him for a lifetime."
"It's hip to snip!"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Or you can added the bleh as an array...
example:
Thank you,
RAY HUNTER
-Original Message-
From: Chris Knipe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 5:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] multiple selects and $_POST['vars']
Lo all,
How do you manage multi
I cannot believe that no one with alot of PHP and MySQL experience has not
replied to this post yet. Is PHP not a secure scripting language? I would
really like a little insight into this question, anyone?
"Jas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
Yes, PHP is a secure programming language.
On Thu, 2002-06-06 at 13:18, Jas wrote:
> I cannot believe that no one with alot of PHP and MySQL experience has not
> replied to this post yet. Is PHP not a secure scripting language? I would
> really like a little insight into this question, anyone?
Andy,
I stand to be corrected, but I think you mean the user hits "reply"
rather than "return", in which case it is "Reply-To" you need. I think
"Return-Path" is for error messages for undeliverable mail.
Now someone is probably going to tell me I'm quite wrong...
Regards
Chris
andy wrote:
A have two webs made in php, both uses a authentication based on session
suport.
I use in every page a session_start(); and a session_name( name); to get
different name for the sessions but when i get login i one web, and then go
to the other i get the same login.
what happend?
What means the
I can't seem to get session tracking to work to save my life. The end result I'm
after is to store the value of the single column returned from this query .. SELECT
user_id from users WHERE user_name = '$user_name' AND user_password = '$user_password'
.. for use throughout the site. The curre
[snip]
I cannot believe that no one with alot of PHP and MySQL experience has not
replied to this post yet. Is PHP not a secure scripting language? I would
really like a little insight into this question, anyone?
[/snip]
[rant warning!]
I'll bite! ;-(
A. You gave so much code that those of us
With sessions, the session_start(); function will initiate a session in the
severs tmp directory with a file name such as 55abhc8a83kqk etc. The
session_name("name_of_var"); function allows you to create a unique name for
your session vs. the 55abhc8a83kqk. A good way to check your sessions is t
Ok, so you have pointed out an problem, now that you have been so kind to do
this could please recommend how to resolve this?
Thanks,
Jas
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
002201c20d80$552be430$8102a8c0@niigziuo4ohhdt">news:002201c20d80$552be430$8102a8c0@niigziuo4ohhdt...
> [sn
[snip]
Ok, so you have pointed out an problem, now that you have been so kind to do
this could please recommend how to resolve this?
[/snip]
You may want to do some research on securing plain text transmission.
http://www.ariadne.ac.uk/issue5/securing-forms/
http://www.google.com/search?hl=en&ie=
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- From http://www.snopes2.com/computer/virus/immunity.htm (Urban
myths)
Claim: A free immunity tool will protect your PC from the Klez.E
virus.
Status: False.
Sample message:
"Klez.E is the most common world-wide spreading worm.It's
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
> $aprTemp = number_format($apr, 2); which in the case of 3.05 will return
> 305.00 and 300.00 for 3%. Anyone have a snippet to test and display
> properly so that 3% would be 3.00, etc.
you could try this...
$val = sprintf("%0.02f", $val);
Ch
This is not how they work, the name goes
under not within .
And as others have suggested, using an
array is key here: name="bleh[]".
http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple
Regards,
Philip Olson
On Thu, 6 Jun 2002, Jay Blanchard wrote:
> [snip]
> The value select
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi there,
Yes this is a virus,
a Trojan horse to be precise.
I was commenting that it's nice enough to publish the contents of the
senders address book (see the mail To: & cc: headers)...
See my other email for details.
HTH,
Dw.
- - Original M
The whole idea is that we offer help after you have exhausted all other
resources...
If security is an issue then I suggest getting on a security mailing list
and post your questions.
Plus, it would be better if you found out how to solve the problems that are
associated with security...
check
> Now, what I'm trying to do is build a tree based on the data in the DB.
> It's working relatively ok if I uncomment the code that is on line 48 and
> comment out line 49. However, what I really want to do is build a fully
> associative array doing this and now** an array that has string key
Thanks everyone!! Appreciate it
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Chris Knipe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 7:18 PM
Subject: Re: [PHP] multiple selects and $_POST['vars']
> >
> >
> > 1
> > 2
>
[snip]
This is not how they work, the name goes
under not within .
And as others have suggested, using an
array is key here: name="bleh[]".
[/snip]
You're right, my bad...just fired off a reply quickly without reading
thoroughly. I was too engrossed in a lengthy code bit about security. I
shoul
Yeah, agreed there!!!
You're not supposed to specify a name on a option, just on the select
itself. I've changed it now to use the array bit, and the form results
return it as a array as expected.
Thanks for all the help... I think it's time to download a new copy of the
manual again... :)
-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
This may sound silly - but is there enough free disk space on whatever
partition /tmp is mounted on?
Alternatively, as a workaround, you could create a new directory and give the
web server user permission to write to it and tell PHP to save
Sorry, never thought about using a search on forms to check my existing
security measures... I am currently employing the use of SSL, however I am
not that familiar with "securing forms" in the traditional sense so I do
appreciate your comments. And also, I am not trying to "show off" my code,
si
So can anybody help me with my problem?
-Original Message-
From: Igor Portnoy
Sent: Thursday, June 06, 2002 9:36 AM
To: '[EMAIL PROTECTED]'
Subject: NEED HELP (passing variable to new page)
Hello,
I am having hard time passing the variable to the next page. May be you
can help
I've just tried that. /foo is owned by nobody and is mode 777. there's 135M
available on that partition.
* Shane Wright ([EMAIL PROTECTED]) wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi
>
> This may sound silly - but is there enough free disk space on whatever
> partition
It passes the wrong value to the next page.
Click on first or the second image on the first page. In the new window
the ID is set to 4, however the ID of first image is 2 not 4 (look at
the source code).
-Original Message-
From: Ray Hunter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June
what's weird is that if i set session.save_handler = mm, i obviously don't get the
file error, but it still won't work.
here's another example of what i've tried...
mars:~/apache/htdocs/test.radom.org$ cat test.php
Session Example #1
Welcome to a session-enabled page! The background col
Hello,
I am having hard time passing the variable to the next page. May be you can
help me. Let me explain:
I am using mySQL database to store information about images (ID, name,
author, description, etc). I am pulling some of the information to create
this (look at the example here:
http://www.g
Hi all,
I was wondering how i could make a download 'landing' page, that once a user
has filled out the download form and submitted it, it will send the file
they are requesting as a download (not display a link to it, or display it
in the browser) and also render a page that says something like
Asking twice doesn't help, bud. It's just going to piss people off.
If someone has an answer they'll let you know, otherwise look for other
resources.
---John Holmes...
- Original Message -
From: "Igor Portnoy" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <'[EMAIL PROTECTED]'>
Sent: Thu
Question.. why are you opening up a full sized new window with the
javascript popup script? I susspect the problem has something to do with
the javascript, although I'm not going to take the time to test it myself.
You can open a new page in an HTML link by setting target=new. You
shouldn't have
Common question becuase of it's somewhat unintuitive nature, but it is very
simple. Do a search for keywords "header" and "Content-disposition". That
should reveal what you want. Good luck.
-Kevin
- Original Message -
From: "Nick Richardson" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAI
Have you tried using $_SESSION['bgcolor'] = "bleh"
It might work... who knows...
- Original Message -
From: "dan radom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 8:36 PM
Subject: Re: [PHP] am i just a session tracking idiot?
> what's weird is that if i s
> echo "";
> echo" function pop1() {";
> echo" window.open(\"info.php?prod_id=$result[0]\"); }"; \\ $result[0] is
> variable that stores id of the image in database
> echo "";
>
> I am calling this function in the following manner: echo" onclick=\"pop1();\"";
^
You're not pass
Kevin,
You will need to send the header information for the file...then you can do
a new header so that you show the "thank you for downloading" page...
Thank you,
RAY HUNTER
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 12:49 PM
To:
Try: $ary["this"] = array("that" => 1);
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Chris Boget [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 1:48 PM
> To: PHP General
> Subject:
the last bgcolor example was cut and pasted from oreilly's session tracking examples.
it should work. that file write error concerns me. i think something larger is going
on here.
* Chris Knipe ([EMAIL PROTECTED]) wrote:
> Have you tried using $_SESSION['bgcolor'] = "bleh"
>
> It might work
Hi ppl...
I got the followin code to generate a combo box...
++
function comb_alfabeto( $resultado, $nome, $letra)
{
global $error;
$quant = mysql_num_rows($resultado);
If ($quant == 0)
{
$error->erro();
}
Else
{
//>>
Shane-
Thank you for the response. This works, I also changed the column type to
numeric with a scale of 2 in SQL Server.
Thank you again.
-Scott
On Thu, 6 Jun 2002, Shane Wright wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi
>
> > $aprTemp = number_format($apr, 2); w
No language is "secure" becuase there's no such thing.
even supposedly secure Java VM sandboxes have well-known
security exploits.
PHP code is as secure as you write it.
Bad programmer = bad code
Name any language or program and there are
well-documented ways to subvert it. Buffer
overflows
'.mysql_result($resultado,
$cont,$letra).'');
} else {
echo(' '.mysql_result($resultado, $cont,$letra).'');
}
$cont++;
}
echo("\n ");
}
}
+++
> But, how can i return the selected item value into
1 - 100 of 189 matches
Mail list logo