I have made the value hidden. How can I retrieve it in the next page in
php.
-murugesan
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'murugesan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 11:21 AM
Subject: RE: [PHP]
The same way you do any other variable passed in from a form...
$_POST['id']
or $HTTP_POST_VARS['id']
or $id
depending on your version of php and if you have register_globals on (for
the last one)
-Original Message-
From: murugesan [mailto:[EMAIL PROTECTED]
Sent:
I agree with Curt, use mySQL to get the sum of 'sess_itemsize' then
divide the result by size per disk to get quantity. So your function
should look something like this:
function cart_cdqty()
{
$query = SELECT SUM(sess_itemsize) AS total_size
FROM sessions
WHERE
Thanks Curt AND Ralph,
This makes it all a lot more clear and easy to understand. And yes, it
makes sense. I'll try it now and see what happens.
What I've never seen before is what you did with:
if($row = mysql_fetch_array($result))
that made me go LOL!!!
Thanks in advanced,
Cesar Aracena
/var/log/maillog file shold have some clues.
Cesar Aracena wrote:
Before trying to guess what Saddam can and can't do with computers, try
sending e-mails to different addresses (different domains... NOT just
different usernames). Sometimes, the e-mail server you use is NOT
configured properly, so
Hello,
It's not misbehaving and it's not illegal xml. It's a well documented
fact that the character data function may be called more than once. The
normal programming practice is to put the strings that are given to you
at each call into a buffer. Then you write code in the end handler to
andu wrote:
On Mon, 18 Aug 2003 15:40:31 -0500
Ken [EMAIL PROTECTED] wrote:
Those weird function names are taken straight from C. Blame the
inventors of C. PHP is partly intended to be easy to learn for C
programmers.
I'm wondering how many php users are C programmers...
Can only blame the
Actually, I missed a few things on that function. It should look like
this:
function cart_cdqty()
{
$query = SELECT SUM(sess_itemsize) AS total_size
FROM sessions
WHERE sess_id = .$_COOKIE['SID'].;
$result = mysql_query($query);
if(!$row =
I checked ant that is not the cause of this problem.
Any other sugesstion?
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Daniel wrote:
hi, how do i solve this error?
Fatal error: [] operator not supported for strings
in /var/www/html/p.../magazin/cos.php on
==
not
=
$_SESSION[id_produs][]== $_POST[id_produs];
Un saludo, Danny
Daniel
php-general Digest 19 Aug 2003 09:57:40 - Issue 2245
Topics (messages 159952 through 159995):
Mail() Problem Sending
159952 by: Ben C.
159958 by: Michael A Smith
159975 by: Cesar Aracena
159989 by: raditha dissanayake
159995 by: Ivo Fokkema
Re: READ
Cesar Aracena [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
For some e-mail servers, you have to write lots of extra headers in
the e-mails in order to pass their guard.
[/snip]
True! But actually, I' ve seen people using only the 'From:' header to send
mail. Emails can then
This is what you want (thanks go to Billy S Halsey):
?php
header(Content-Type: multipart/mixed; boundary=\-Boundary-12399\);
print ---Boundary-12399\r\n;
print Content-Type: text/html\r\n;
print \r\n;
// Your HTML code goes here
print \n;
print ---Boundary-12399\r\n;
print Content-Type:
Hi list!
I tried the manual, the web, the archives... maybe I'm not approaching this
correctly.
I use parse_ini_file() on a config.ini to fetch some settings the lame
people can set using my application. I want this config file to be as simple
as possible so that I won't get emails about things
Yep, here are some locations for files etc.
Install Apache - http://www.apache.org/dist/httpd/binaries/win32/
Install MySQL (this link for 3.23) -
http://www.mysql.com/downloads/mysql-3.23.html
Install PHP - www.php.net OR even easier -
http://php.weblogs.com/easywindows (a windows installer,
Hi php-general,
I'm reading through the filesystem function of php and I can't find
any function which will list me all the files which are in a certain
directory. Am I blind or do I have to create myself one?
Thanks for help
M. W.
--
Who is the ennemy?
--
PHP General Mailing List
Wrong place, look at directory functions ;)
Matthias Wulkow wrote:
Hi php-general,
I'm reading through the filesystem function of php and I can't find
any function which will list me all the files which are in a certain
directory. Am I blind or do I have to create myself one?
Thanks for help
Hi Jeff,
Nachricht vom Montag, 18. August 2003, 18:14:37:
I've come across this frustrating behavior with the XML parser when it
reads an escaped ampersand (amp;)
If the xml being evaluated is: COLORSBlue, Green amp; Red/COLORS
it calls the character data handler 3 times:
the first
On 18 August 2003 18:49, Jonathan Pitcher wrote:
Robin,
There are 2 problems with the example you provided.
One, $GLOBAL should be $GLOBALS.
Second you can't print a value that has not been set. See updated code
for an example.
?PHP
$aTest = This is a test;
[snip]
Those weird function names are taken straight from C. Blame the
inventors of C. PHP is partly intended to be easy to learn for C
programmers.
I'm wondering how many php users are C programmers...
Can only blame the php inventors for using a bad model.
[/snip]
Hey andu, since you say
Timo Boettcher wrote:
Hi Jeff,
Nachricht vom Montag, 18. August 2003, 18:14:37:
I've come across this frustrating behavior with the XML parser when it
reads an escaped ampersand (amp;)
If the xml being evaluated is: COLORSBlue, Green amp; Red/COLORS
The ampersand character () and
I will definitely agree that there are a few inconsistencies in the
function naming... more than likely due to the many many contributors,
and a lack of strict naming conventions.
Never quite understood (for example) why half of the string based
functions are named str* and the other half
On Tue, 19 Aug 2003 08:15:00 -0500, you wrote:
I will definitely agree that there are a few inconsistencies in the
function naming... more than likely due to the many many contributors,
and a lack of strict naming conventions.
My pet hate:
bool array_walk (array, function)
array array_map
* Thus wrote Daniel ([EMAIL PROTECTED]):
I checked ant that is not the cause of this problem.
Any other sugesstion?
Yes it is the problem. Somewhere the $_SESSION['id_produs'] is set
to a string or number.
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Daniel
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
Cesar Aracena [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
For some e-mail servers, you have to write lots of extra headers in
the e-mails in order to pass their guard.
[/snip]
True! But actually, I' ve seen people using
Please see the attached file for details.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]):
I will definitely agree that there are a few inconsistencies in the
function naming... more than likely due to the many many contributors,
and a lack of strict naming conventions.
Actually there is a scrict nameing convetion.
Never quite
[snip]
Um.. is it jay or justin or both? This kind of confused me :)
[/snip]
Justin inadvertently did not reply to all and instead sent the e-mail
directly to me as a response. I forwarded it to the list and should have
noted that. Although I do have days where I feel as if I am someone
else,
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
True! But actually, I' ve seen people using only the 'From:' header to
send
mail. Emails can then be dropped easily by servers thinking it is spam.
No email server should drop
On Tue, 19 Aug 2003 12:49:43 +0600
raditha dissanayake [EMAIL PROTECTED] wrote:
andu wrote:
On Mon, 18 Aug 2003 15:40:31 -0500
Ken [EMAIL PROTECTED] wrote:
Those weird function names are taken straight from C. Blame the
inventors of C. PHP is partly intended to be easy to learn
Nopes i read you correctly, yours was a complaint against c.
andu wrote:
On Tue, 19 Aug 2003 12:49:43 +0600
raditha dissanayake [EMAIL PROTECTED] wrote:
andu wrote:
On Mon, 18 Aug 2003 15:40:31 -0500
Ken [EMAIL PROTECTED] wrote:
Those weird function names are taken straight from
On Tue, 19 Aug 2003 07:14:19 -0500
Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
Those weird function names are taken straight from C. Blame the
inventors of C. PHP is partly intended to be easy to learn for C
programmers.
I'm wondering how many php users are C programmers...
Can
On Tue, 19 Aug 2003 22:10:25 +0600
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Nopes i read you correctly, yours was a complaint against c.
Good thing you didn't take it as a complaint against you...
andu wrote:
On Tue, 19 Aug 2003 12:49:43 +0600
raditha dissanayake [EMAIL PROTECTED]
[snip]
First is the naming of functions (whoever was the illiterate one who
invented them).
[/snip]
I remeber when andu got upset about RTFM, STFW, STFA...calling it
insulting. Truth is andu complains a lot. I wonder about andu's
age...well not really.
Have a productive and pleasant day!
--
Please see the attached file for details.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 19 Aug 2003 11:18:29 -0500
Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
First is the naming of functions (whoever was the illiterate one who
invented them).
[/snip]
I remeber when andu got upset about RTFM, STFW, STFA...calling it
insulting. Truth is andu complains a lot. I
* Thus wrote anders thoresson ([EMAIL PROTECTED]):
function db_connect ($user, $pwd, $db, $debug = 0)
{
$link = @mysql_pconnect(localhost, $user, $pwd);
if($link mysql_select_db($db))
...
I thought that making another or a third call to db_connect would reuse
the same
Hi
Is it possible to lose a session?
For instance if on www.coke.com $_SESSION['name'] = x; is set
and on www.pepsi.com $_SESSION['name'] = notX; is set.
Then i return to www.coke.com will $_SESSION['name'] == notX;
How does this work?
Thanks
-Gerard.
Hi
Is it possible to lose a session?
For instance if i go to coke.com and
$_SESSION['name'] =3D x;=20
is set.
and then i go to pepsi.com and
$_SESSION['name'] =3D notX;=20
is set.
if i then return to coke.com will $_SESSION['name'] =3D=3D notX;
How does this work?
Thanks
Gerard
I'm getting corrupt files after I've used my upload-script. For images it
works good but when I upload an wav-file , 222KB, the file gets corrupt and
I can't play it. Whats the problem ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I'm getting corrupt files after I've used my upload-script. For images
it
works good but when I upload an wav-file , 222KB, the file gets corrupt
and
I can't play it. Whats the problem ?
[/snip]
agh
Uh, your code? Your server?
--
PHP General Mailing List (http://www.php.net/)
To
August 19, 2003
RELEASE ANNOUNCEMENT
phpDocumentor 1.2.2
http://www.phpdoc.org
The phpDocumentor team is happy to announce the release of phpDocumentor
1.2.2.
phpDocumentor is a complete documentation solution for PHP that can both
extract API documentation directly from source code and also
the second time you request in php you'll have two, and so on.
Until the number of connections in the pool gets filled up will
mysql tell php to use an id that exists.
You mean that until the pool is filled a new id will be used? That's the
case here, anway: I get up to 30 id's and then no more
I would speculate that because what you are doing involves cookies at
coke.com $_SESSION['name'] == X and at pepsi.com $_SESSION['name'] ==
NotX.
On the other hand if on foo.coke.com you set $_SESSION['name'] I'm not
sure if it will be written over at bar.coke.com
-Dan
On Tue,
since it works with other files I think that it's some configuration
somewhere that is wrong,
this is the form head:
FORM ENCTYPE=multipart/form-data name='spara' method='post'
action='filadmin.php'
and the copycode:
copy($_FILES['img1']['tmp_name'], $ufolder.$_FILES['img1']['name'])
Jay
Ralph, I tested the function below but the result at the page is:
CD Quantity: Array
and not the CD quantity according to file size... Why is the array there
and what it is supposed to be called with to give one or another result?
Thanks,
Cesar Aracena
www.icaam.com.ar
Actually, I missed a
[snip]
since it works with other files I think that it's some configuration
somewhere that is wrong,
[/snip]
What is your max file size allowed for uploads?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Cesar Aracena mailto:[EMAIL PROTECTED]
on Tuesday, August 19, 2003 10:18 AM said:
Sensitivity: Confidential
Oh really?
and not the CD quantity according to file size... Why is the array
there and what it is supposed to be called with to give one or
another result?
Pay close attention
You mean that until the pool is filled a new id will be used? That's the
case here, anway: I get up to 30 id's and then no more new a added, but
the time column reset, which I take means that that id is reuses?
There are still 30 open threads/processes in the process list, all with
command
When I push the back buttom in Opera, I get back to the previous
(database/php-generated) page in my site, but when I'm using IE and push
back, I get a message saying that the page isn't valid any more.
Is this an internal IE-issue, or could I make my php-script IE-friendly?
--
anders
Curt Zirzow wrote:
* Thus wrote Jon Drukman ([EMAIL PROTECTED]):
$dbh=mysql_connect() or die(mysql connect failed: . mysql_error());
. Ensure your error_reporting level is high enought to allow
Warnings, and make sure display_errors is on.
or
. Turn on track_errors and use the variable
anders thoresson mailto:[EMAIL PROTECTED]
on Tuesday, August 19, 2003 10:51 AM said:
Is this an internal IE-issue, or could I make my php-script
IE-friendly?
Does it work when you refresh the page?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
If I use Smarty or PEAR on my software, does it make my software GPL?
Thanks in advance,
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is this an internal IE-issue, or could I make my php-script IE-friendly?
There are lots and lots of things that IE does differently then the
rest of the world. Of course, that is because as probably the biggest
monopoly they feel no problems with breaking standards -- at least the
Ok, That's logical, but the thing is that even $x and $n are empty, as
if the result would give a hole bunch of zeros (but it isn't).
Could there be an error in the query or somewhere around that we are all
missing?
Thanks,
Cesar
function cart_cdqty()
{
$query = SELECT
--- anders thoresson [EMAIL PROTECTED] wrote:
When I push the back buttom in Opera, I get back to the previous
(database/php-generated) page in my site, but when I'm using IE
and push back, I get a message saying that the page isn't valid
any more.
Is this an internal IE-issue, or could I
When I push the back buttom in Opera, I get back to the previous
(database/php-generated) page in my site, but when I'm using IE and
push
back, I get a message saying that the page isn't valid any more.
Is this an internal IE-issue, or could I make my php-script
IE-friendly?
[Cesar
Hi All--
Does anyone have a function or something they have already written to
remove any URL hacking characters, mainly the single quote, but I'm
looking for a nice function to filter my _GET variables against. Gotta
protect the database...ya know :)
TIA-
Matt
--
PHP General Mailing List
Is there a way I can make this type of code neater?
$thing = new whatever ();
$thing-doStuff ();
$thing-anotherThing ();
$thing-doThis ();
$thing-doThat ();
$thing-doThis ();
$thing-doThat ();
$thing-anotherThing ();
$thing-doThis ();
// etc. etc.
Some
Hi All--
Does anyone have a function or something they have already written to
remove any URL hacking characters, mainly the single quote, but I'm
looking for a nice function to filter my _GET variables against. Gotta
protect the database...ya know :)
TIA-
Matt
--
PHP General Mailing List
Matt Babineau mailto:[EMAIL PROTECTED]
on Tuesday, August 19, 2003 8:10 AM said:
Does anyone have a function or something they have already written to
remove any URL hacking characters, mainly the single quote, but I'm
looking for a nice function to filter my _GET variables against. Gotta
From: Matt Babineau [EMAIL PROTECTED]
Does anyone have a function or something they have already written to
remove any URL hacking characters, mainly the single quote, but I'm
looking for a nice function to filter my _GET variables against. Gotta
protect the database...ya know :)
Just escape
I'm looking to replace the 'nth' instance of an expression within a string.
Example (very simple)-
$string=My mom can beat up your mom and your mom's dog;
$pattern=mom;
$replacement=dad;
I want to be able to replace any particular instance of the pattern
within that string. I was getting ready
I'm looking to replace the 'nth' instance of an expression within a string.
Example (very simple)-
$string=My mom can beat up your mom and your mom's dog;
$pattern=mom;
$replacement=dad;
I want to be able to replace any particular instance of the pattern
within that string. I was getting ready
actually, you should be able to do this without ever leaving the page that
were clicking from.
if on the page that you are linking to, you add headers to force a download,
you should never actually GO to that page. Your browser should realize that
it is something that it is suppose to download
I have a form connecting to a db. I'veparsed the form
data into arrays and seperated new entries from edits
to existing entries because of the class file and db
structure. This as written, however, will only work a
for a single record (multiple field) edit. I've stayed
up too long and am
So it's not returning any results?
What happens when you do the following...
} else {
$n = $row['total_size'];
echo :$n:;
Put that echo statement in your code and see what happens.
If you've already done this and it prints :: (as opposed to :0: which
From: Thaddeus J. Quintin [EMAIL PROTECTED]
I'm looking to replace the 'nth' instance of an expression within a
string.
Example (very simple)-
$string=My mom can beat up your mom and your mom's dog;
$pattern=mom;
$replacement=dad;
I want to be able to replace any particular instance of
Does it work when you refresh the page?
No. A reload in Internet Explorer kicks me out of my web application. Does
a reload within IE reset session variables?
Reloading a page in the application using Opera works.
--
anders thoresson
--
PHP General Mailing List (http://www.php.net/)
To
why don't you run this
a href='#no-hash' onClick=window.open();
Jim Lucas
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'murugesan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 18, 2003 11:18 PM
Subject: RE: [PHP] window.open(hai.php?id=one);
The same
This is just a security measure placed there by MS people. It should
work after refreshing the page.
But it doesn't...
Are session variables killed when an IE user presses back button?
[Cesar Aracena]
Well, They shouldn't. What are you trying to achieve? If it's something
like a
This is the header of my aplication
?php
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past
header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified
header(Cache-Control: no-store, no-cache, must-revalidate); // HTTP/1.1
header(Cache-Control: post-check=0,
anders thoresson mailto:[EMAIL PROTECTED]
on Tuesday, August 19, 2003 11:46 AM said:
Does it work when you refresh the page?
No. A reload in Internet Explorer kicks me out of my web
application. Does a reload within IE reset session variables?
No, realoading will (should) not reset the
Cesar Aracena mailto:[EMAIL PROTECTED]
on Tuesday, August 19, 2003 11:38 AM said:
Importance: High
Sensitivity: Confidential
Is this being done by your server or by you?
It does print 0 so I guess something must be wrong somewhere else. My
guess is that $row['total_size'] is not
Hi,
I am new in this php and fdf field, this is the questions when I am
trying to solve the problem of my company:
1. when fdf_create() create a new fdf file, where does it put the file?
I tried to set up the path, but it does not work like I wish.
2. when an end user fill in some data in a
From: Thaddeus J. Quintin [EMAIL PROTECTED]
I'm looking to replace the 'nth' instance of an expression within a
string.
Example (very simple)-
$string=My mom can beat up your mom and your mom's dog;
$pattern=mom;
$replacement=dad;
I want to be able to replace any particular instance of
look where it says Microsoft Internet Explorer Sessions Fix at:
http://www.phpfreaks.com/tutorials/41/1.php
regards,
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Importance: High
Sensitivity: Confidential
Is this being done by your server or by you?
By me, because of my Company's policies and requirements. Sorry if it
bothers anyone :)
It does print 0 so I guess something must be wrong somewhere else.
My
guess is that $row['total_size'] is
--- Klaus_Kaiser_Apolinário [EMAIL PROTECTED] wrote:
But this Cache control are not working
What do you mean by not working? Something is cached that shouldn't be? Also,
you are sending multiple Cache-Control headers, sending expired dates, etc. Try
a more straightforward approach first:
But to clarify, are you getting a little dialog box that asks you to
resubmit the data or cancel? OR is it an actual error page from IE?
I get an error page from IE saying that the page isn't valid any more (I
think that's what IE would tell me if I was using an english version
anyway. I'm using
Perfect solution.
Thanks, I don't know how I overlooked the preg_replace_callback
function. That's exactly what I needed.
Thaddeus
CPT John W. Holmes wrote:
From: Thaddeus J. Quintin [EMAIL PROTECTED]
I'm looking to replace the 'nth' instance of an expression within a
string.
Example (very
Please see the attached file for details.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to wipe out all previous session variables with one
command?
Thx
Tim Winters
Creative Development Manager
Sampling Technologies Incorporated
1600 Bedford Highway, Suite 212
Bedford, Nova Scotia
B4A 1E8
www.samplingtechnologies.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Office:
I have had no success sending multipart/alternative emails with php. I have
tried everyone's various code snippets with no luck. I test the results with
Outlook and Outlook Express. Everytime my boundary tag ends up showing as
part of my message and thus the plain text and html portions show up as
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
* Thus wrote anders thoresson ([EMAIL PROTECTED]):
function db_connect ($user, $pwd, $db, $debug = 0)
{
$link = @mysql_pconnect(localhost, $user, $pwd);
if($link mysql_select_db($db))
...
I thought that making another or a
I'm getting the following error and can't find out anything about it. Has anyone else
gotten it? Could the encoder referred to be the Zend Encoder?
input conversion failed due to input error
Bytes: 0x90 0xBD 0xE9 0x80
xmlParserInputBufferGrow: encoder error
Thanks,
Jeff
From: Tim Winters [EMAIL PROTECTED]
Is there a way to wipe out all previous session variables with one
command?
With register_globals OFF:
$_SESSION = array();
If register_globals is ON and you want to get rid of $val1, $val2, $val3,
etc... then:
foreach($_SESSION as $key = $value)
{
$_SESSION['uname'] = $_POST['uname'];
$_SESSION['pwd'] = $_POST['pwd'];
When the user first logs in I also adds two more session variables within
accesscontrol():
$_SESSION['editor'] = mysql_result($result,0,u_editor);
$_SESSION['admin'] = mysql_result($result,0,u_admin);
Both is either an Y or
Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
Bummer.
Why is that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: anders thoresson [EMAIL PROTECTED]
$_SESSION['uname'] = $_POST['uname'];
$_SESSION['pwd'] = $_POST['pwd'];
When the user first logs in I also adds two more session variables within
accesscontrol():
$_SESSION['editor'] = mysql_result($result,0,u_editor);
$_SESSION['admin'] =
Please see the attached file for details.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: John Taylor-Johnston [EMAIL PROTECTED]
Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
Bummer.
Why is that?
Probably to expensive to look up with every request. Look it up yourself.
http://us2.php.net/manual/en/function.gethostbyaddr.php
---John Holmes...
I Guys:
I have php 4.3.1 so the global scope is off.
Reading php manual:
...or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead
of $id...
But I made a script writing:
a href=\c08p160.php?identif=$idtelefon=$telefnome=$nome\$nome/a
And the variables goes to url:
$_SERVER['REMOTE_HOST'] = gethostbyaddr($_SERVER['REMOTE_ADDR']);
better?
On Tuesday 19 August 2003 01:18 pm, John Taylor-Johnston wrote:
Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
Bummer.
Why is that?
--
Everything has a natural explanation. The moon is not
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]):
From: John Taylor-Johnston [EMAIL PROTECTED]
Aw gee, $_SERVER['REMOTE_HOST'] (only REMOTE_ADDR) does not exist in PHP?
Bummer.
Why is that?
Probably to expensive to look up with every request. Look it up yourself.
yes, very
Thanks,
So what does session_unset() do then?
Tim Winters
Creative Development Manager
Sampling Technologies Incorporated
1600 Bedford Highway, Suite 212
Bedford, Nova Scotia
B4A 1E8
www.samplingtechnologies.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Office: 902 450 5500
Cell: 902 430 8498
Fax::
The following code snippet outputs a table from a mySQL database.
In version 1, I am able to get alternating background cell colors. However,
the output gives me the same post five times.
In version 2, I am able to receive five separate posts - which is what I'm
looking for - but I'd like to
* Thus wrote Tim Winters ([EMAIL PROTECTED]):
Thanks,
So what does session_unset() do then?
John overlooked that function, and instead looped through the
variables in php instead. This would be used if you have
register_globals on and choose to use sessions insecurely.
-Original
From: Tim Winters [EMAIL PROTECTED]
So what does session_unset() do then?
Ah, good catch. Use that instead of my second example. If register_globals
is ON, it appears that session_unset() will take care of getting rid of the
global variables made.
---John Holmes...
From: CPT John W. Holmes
* Thus wrote Anthony Ritter ([EMAIL PROTECTED]):
The following code snippet outputs a table from a mySQL database.
[snipped 255+ lines of code]
That is way to much information, please be a brief in your code
that you post. You'll find you'll get more people to analyze your
code.
Curt
--
I
1 - 100 of 144 matches
Mail list logo