Jacky,
You do not need the value. The variable $id will either exist (if the user checked it)
or not (if the user did not check it).
Hope this helps.
Chris
Jacky wrote:
> Hi all
> I have a form with check box and name of those checkboxes is usuing variable lke
>this,
>
>
>
>
> and when I
the variable $id in the second sniplet come from the id from talble when I
run query and loop it using mysql_fetch_array. So I end up have value of $id
from the id field from table, right?But the value store in $id is now in
string value, and if I need to use that value for the if..then.. else
con
so how do I check at the next page which one is checked?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Chris Fry <[EMAIL PROTECTED]>
To: Jacky <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, Apri
Thanks for that help! Now I am getting an interesting error that I am not
sure what to make of.
Warning: REG_ERANGE in /home/httpd/www/worldvibe.org/digitall/edit_f.php on
line 91
Here are lines surrounding 91:
89-> strtolower($f_loc_name);
90-> $f_loc_new = "";
91-> $f_loc_new = ereg_re
Oops, noticed a small impossibility error:
TEST.file.#.txt should be converted to sean.coyle..txt
Should read
TEST.file.#.txt should be converted to test.file..txt
But, I would imagine you guys figured that one out already.
Cheers,
Sean
On 4/18/01 12:26 AM, in article [EMAIL PROTECT
Hi there,
i'm having a little trouble with cleaning up sessions.
I have a login page that sets a certain session variable that is used to
determine wether a user is logged on.
When the user has cookies turned on the application recognizes the
running session an resumes it, that also happens on the
> The input from the search form is $searchtext. The Returned
> Search data is
> $searchdata.
>
>
> $sql = "SELECT searchdata FROM table WHERE searchdata LIKE
> '%$searchtext'";
> $result = @mysql_query($sql, $connection)
> or die (mysql_error());
>
> $num = mysql_num_rows($result);
>
> $x
Hi all
I have a form with the checkbox like this
$query="select id from foo";
$result=($query,$con);
while ($row = mysql_fetch_array($result))
{
}
submit button and stuffs here...
After I submit to next page, at next page, how do I check which check box is checked?
like this?
i
> After I submit to next page, at next page, how do I check which
> check box is checked?
> like this?
>
> if ($id=="on") {
> do something
> }else{
> do something
> }
Hi
try this assuming you have no toher check boxes called $id
if(isset($id))
{
do something
}else{
do other
}
M@
--
P
Sorry - thought you only had one! - it's late.
To Name the checkboxes you need:
You would have to do a $HTTP_GET_VARS on the next page to find out which ones
exist.
Then your select statement would be:
$query = "select * from table where id IN ('comma delimited list of values')";
Messy
I did look up in the manual for $HTTP_GET_VARS but could not find it? what
is it? a function?
sorry to ask this again, just try to find out how to use that.
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Chris
Hi all,
I still cannot get my problem sought out, pretty desparate here so decided
to post my question again.
Allow me to repeat my question again:
I have a form with the checkbox like this
");
}
submit button and stuffs here...
?>
After I submit to next page, at next page, how do I ch
No. Just point your links to https://www.yoursecureserver.com/dir/page.htm
or, if your SSL is on another port, to
https://www.yoursecureserver.com:otherportnumber/dir/page.htm.
cu, Jens
> -Ursprüngliche Nachricht-
> Von: phpman [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 17. Apri
Hello Jacky!
Try to echo the variable to see its value.
HTH
- Original Message -
From: "Jacky@lilst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 10:19 PM
Subject: [PHP] to find out which checkbox is checked
> Hi all,
> I still cannot get my problem so
So sprach Joseph Blythe am Wed, Apr 18, 2001 at 10:48:14AM +0930:
> Hey,
>
> Why doesn't HTTP_POST_VARS work inside functions?
>
> ---somefile.php - forms action ---
>
> function foo() {
>reset($HTTP_POST_VARS);
Because this particular HTTP_POST_VARS is not the HTTP_POST_VARS you have
So sprach Nando2 am Mon, Apr 16, 2001 at 03:28:11PM -0300:
> Can anyone remind me of that?
(raw)urlencode
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die
So sprach Dddogbruce (@home.com) am Mon, Apr 16, 2001 at 03:12:25PM -0700:
> $greeting = "Hello!"
> echo "$greeting"
> ?>
Since I also have this problem, I tried your suggestion, and it didn't work.
However, I expected this, because apache doesn't know which interpreter to
use to exec this scri
> Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example
>echo "`$x++`" would first evaluate $x++ and then print the resulting value.
>
> Euan Greig
> Technical Consultant
> BRANN DATA
> [EMAIL PROTECTED]
> 01285 645997
>
>
>
**
Dear All,
I wonder if there is a php function that could return content
of an array, in print_r style, as a string. I need to get it and
send as debug information. If not, is there a workaround or
alternative, other than writing a function? Many thanks.
Chien-pin
--
PHP General Mailing L
echo ++$x;
http://www.php.net/manual/en/language.operators.increment.php
> > Is there a php equivalent for the use of ` (I think) in Unix/Perl? So
for example echo "`$x++`" would first evaluate $x++ and then print the
resulting value.
> >
> > Euan Greig
> > Technical Consultant
> > BRANN DATA
Sorry - try $HTTP_POST_VARS
Chris
Jacky wrote:
> I did look up in the manual for $HTTP_GET_VARS but could not find it? what
> is it? a function?
> sorry to ask this again, just try to find out how to use that.
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal
I deliberately gave a simple example, perhaps too simple. I want to output quite long
and complicated strings that may involve evaluated variables, calls to functions etc.
But I also want it to as legible as possible. But even something simple along the
lines I quoted gives me problems. See th
Hi James
I'll paste the code I use..
$string = search string entered in the text box.
#
// REPLACE SPACES FOR MULTIWORD SEARCH
$string = str_replace(" ","%",$string);
$db->query("SELECT title,description FROM files WHERE (title LIKE
'%
Hi all,
Extremely desparate here as I still cannot get my problem sought out, so decided
to post my question again.
Allow me to repeat my question again:
I have a form with the checkbox like this
");
}
submit button and stuffs here...
?>
After I tried check on few checkboxes and submit
I get this error
Fatal error: Call to undefined function: shm_attach() in
/usr/local/apache/phplib/ct_shm.inc on line 31
Here is my compile parameter
'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-config-file-path=/usr/local/apache/conf' '--enable-versioning'
'--with-ldap' '--wit
Hi Jacky
In it's simpliest form try this
###
##
>
> Hi all,
> Extremely desparate here as I still cannot get my problem sought
> out, so decided
> to post my question again.
> Allow me to repeat my question again:
> I have a
I would like to query a postgresql db with the php language.
Today I wrote a script (connectandquery.php) performing the following :
- connect to the DB : $conn = pg_Connect("dbname = foo");
- execute the query : $res = pg_Exec($conn,"SELECT * from BAR");
But I would like to write this in two s
i'm trying to use sessions with my project, but it seems that registered
variables in a session aren't global by default.
It doesn't even seem like the session is global, because if I reference the
sessionid (which only shows up if cookies are disabled)
by using , it shows up within a function
Jacky wrote:
>
> Hi all
> I have a form with the checkbox like this
>
> $query="select id from foo";
> $result=($query,$con);
> while ($row = mysql_fetch_array($result))
> {
>
> }
> submit button and stuffs here...
>
One possibility:
Add a hidden field in the form and write al
Can anyone tell me what is cookiesand how i can use it
Thank
TACHAGO
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
At 00:28 18-4-2001 -0700, Sean Coyle wrote:
>Thanks for that help! Now I am getting an interesting error that I am not
>sure what to make of.
>
>Warning: REG_ERANGE in /home/httpd/www/worldvibe.org/digitall/edit_f.php on
>line 91
>
>Here are lines surrounding 91:
>
>89-> strtolower($f_loc_name)
If a checkbox is NOT checked, the attached PHP variable is NOT set. Only if
it
is checked will you be able to see/query the variable "id"
Using isset() should allow to you see the boolean state of a checkbox, or
using
the "value" component after you do an isset() call will give you the
specifics
derick Wed Apr 18 02:48:39 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/mcryptmcrypt.c
Log:
- MFH (Bug #8839)
Index: php4/ext/mcrypt/mcrypt.c
diff -u php4/ext/mcrypt/mcrypt.c:1.45.2.1 php4/ext/mcrypt/mcrypt.c:1.45.2.2
--- php4/ext/mcrypt/mcrypt
Hi,
put: include("connect.php"); at the beginning of query.php.
Johannes
""Picard, Cyril"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to query a postgresql db with the php language.
> Today I wrote a script (connectandquery.php) perfor
wez Wed Apr 18 03:43:21 2001 EDT
Added files:
/php4 README.STREAMS
Log:
Information about php streams
Index: php4/README.STREAMS
+++ php4/README.STREAMS
An Overview of the PHP Streams abstraction
==
$Id:
Hi
I have the following code
$fp=fopen($agentcode.date("m-d-Y-g-i-s").'CyberTrac.ctr', "w");
fwrite($fp,"$agentcode etc etc");
$fc = fopen($fp, 'rb');
$attachment = fread($fc , filesize($filename));
fclose($fc);
$mail = new html_mime_mail('X-Mailer: Html Mime Mail Class');
$mai
> mt_srand ((double) microtime() * 100);
Thanks alot, I will use the upper one... Perhaps decrease it abit ;)
> Note: one way to auto-logout someone is to use something like a on_unload
> javascript procedure, but don't bother. Not worth the hassle and it's
isn't
> fool-proof.
Nopp, trie
Your problem has little to do with the things mentioned.
First of all, you are refering to a variable variable incorrectly. You must
use brackets, like this:
${$id}
If ID has the value "Blue", then the above is the same as:
$Blue
So in your examble if you had the checkbox with the value "on",
I want do create Images dynamicly, i have a High Color png but after
CreateImagefrompng() it have only 256 colors. What can i do?
thx
Nils
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
RTFM (ReadTheFineManual ;)
http://us.php.net/manual/en/function.setcookie.php
As listed in the manual for an explanation on cookies:
http://www.netscape.com/newsref/std/cookie_spec.html
--
Plutarck
Should be working on something...
...but forgot what it was.
"Bertrand TACHAGO" <[EMAIL PROT
On Tuesday 17 April 2001 15:56, you wrote:
> > Easy. Just use fopen('http://localhost/file.asp') then fread
> > the data you want. I do this technique to read Access tables
> > from a Linux box.
>
> But that gives you the RESULTS of the ASP script, not the script
> itself.
fopen ("/path/to/asp/
Hi,
I have question about regular expressions; I don't know anything
about it and was wondering if someone could help me out.
I have this text:
"[ this is atest ] and this is the rest of the text"
I want to get the text inbetween the [ and ].
If someone could help me out, i would appreciate i
On Tuesday 17 April 2001 16:28, you wrote:
> Yes... I'm not familiar with sessions. This should be like this ? :
>
> In connect.php :
> session_start();
> $connect = pg_pConnect("blablabla");
> session_register("connect");
> clique ici
> ?>
Simply using pg_pconnect() (without saving the connecti
Try:
function getStringFromObj($prmObjIn)
{
ob_start();
var_dump($prmObjIn);
$output = ob_get_contents();
ob_end_clean();
return $output;
}
I grabbed this from user comments somewhere on php.net. It works a treat.
-Original Message-
From: Chi
Rather than bothering with SID whos existance is uncertain, use the variable
$PHPSESSID. It's set whenever you use session_start, to my knowledge.
The simplest method, and the only one I am aware of, of accessing session
variables globally is by explicitly declaring them global in your function.
hummm... I don't know how to use pg_pconnect()... It returns a connection
ID, isn't it ? And I have to use this connection ID later ?
I would like to reuse this connection ID to another script... and the
problem is here :(
I feel that I ignore something so important that I'm stopped and so trivi
include will help me to organize my scripts, but it will effectively
establish the connection each time I perform the query.
I would like to establish the connection one time, and then to be able to
perform many queries using this connection.
I've been told that i could declare $conn as global in
(Learning from my last mistake, I'll now try to make clear right away what
each sentence means *G*)
Introductory lines:
I want to write a FastCGI compatible PHP script. In order to do so, PHP
obviously need to recompile PHP with '--with-fastcgi'. However, looking at
some PERL FastCGI scripts, I
Use file() to read the file up into an array (we'll call it $array).
Then I would personally use:
foreach ($array as $val)
{
trim($val);
$arr = explode("\t", $val); // "\t" means tab, but it will not work if
it's only spaces instead of a real tab
$stock_name = $arr[0];
$stoc
Hi all,
I'd like to know if there is any vulnerability with PHP 4.0.4 pl1 running on
IIS servers.
Regards,
Alessandro.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
PHP General Mailing L
i'm trying to use sessions with my project, but it seems that registered
variables in a session aren't global by default.
It doesn't even seem like the session is global, because if I reference the
sessionid (which only shows up if cookies are disabled)
by using , it shows up within a function
On Wednesday 18 April 2001 06:01, you wrote:
> Dear All,
>
> I wonder if there is a php function that could return content
> of an array, in print_r style, as a string. I need to get it and
> send as debug information. If not, is there a workaround or
> alternative, other than writing a functi
1. there are no multi-dimensional arrays in php, just single dimension
arrays each element of which may be an array (or any other variable type).
If you make every element of an array an array of size x, you will get what
can be used as a multi-dimensional array. But if you forget what it really
i
Ensure your database name as listed in either mysql_select_db or
mysql_db_query is valid.
After that, it's probably a GRANT problem. Make sure the username/password
pair is correct, first of all, and check the privileges of that user.
My guess is that either the DB name is incorrect, or the user
On Wednesday 18 April 2001 07:22, you wrote:
> Hey there guys,
>
> This may seem like a dumb question, but I have to ask it anyway.
>
> I have a form in one of my php based scripts that allows for file
> uploads. I recently noticed a potential issue if people upload files
> containing anything
At 13:39 18-4-2001 +0200, Jeroen Geusebroek wrote:
>Hi,
>
>I have question about regular expressions; I don't know anything
>about it and was wondering if someone could help me out.
>
>I have this text:
>
>"[ this is atest ] and this is the rest of the text"
$data = "[ this is a test ] and this i
On Wednesday 18 April 2001 12:00, you wrote:
> >Warning: REG_ERANGE in
> > /home/httpd/www/worldvibe.org/digitall/edit_f.php on line 91
> >
> >Here are lines surrounding 91:
> >
> >89-> strtolower($f_loc_name);
> >90-> $f_loc_new = "";
> >91-> $f_loc_new = ereg_replace("[^[_a-z0-9-\.]]", "",
Hi.
I've installed unixODBC (2.0.5) and then compiled php (4.0.4pl1 and latest
CVS) with --with-unixodbc=/www/unixodbc. Suprisingly, when I noticed that
there is:
Fatal error: Call to undefined function: odbc_connect() in
/www/virtual/firebird/common/pre.php on line 25
Can anybody explained me
Replying to myself...the first sign of madness.
I found the solution, which was hidden characters in the text file, which
was confusing javascript.
""Dave Mateer"" <[EMAIL PROTECTED]> wrote in message
9bf1v5$4iq$[EMAIL PROTECTED]">news:9bf1v5$4iq$[EMAIL PROTECTED]...
> Happy Easter to all!
>
>
Hi,
Why destroying it "before" a user logs in? Isn't it
better to start the session "after" a successful login?
And then destroying the session when the user logs out.
Or did I get it wrong. A few lines of code would help
to understand.
Johannes
"Jens Kisters" <[EMAIL PROTECTED]> schrieb im Ne
Hi,
Does anyone know if php stores POST variable names as well as values? I'm
using HTTP_POST_VARS for the values but I'm having to create my own array
for the names.
cheers,
Mat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
sas Wed Apr 18 04:42:31 2001 EDT
Modified files:
/php4/ext/ircg ircg.c php_ircg.h
Log:
Support notice which should be used to query bots etc.
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.59 php4/ext/ircg/ircg.c:1.60
--- php4/ext/ircg/i
mboeren Wed Apr 18 05:31:08 2001 EDT
Modified files:
/php4/ext/dbx dbx.c dbx.h
Log:
Added DBX_CMP_TEXT and DBX_CMP_NUMBER constants and support for them in
the dbx_cmp_desc and dbx_cmp_asc functions. The old method of passing a
string "number" is now no
Hi,
this will list all your posted variables with name and
the posted value.
while (list($key, $value)=each($HTTP_POST_VARS) ) {
echo "$key = $value ";
}
Johannes
""Mat Marlow"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL PROTECTE
Mat Marlow wrote:
>
> Hi,
> Does anyone know if php stores POST variable names as well as values? I'm
> using HTTP_POST_VARS for the values but I'm having to create my own array
> for the names.
>
> cheers,
>
> Mat
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mai
>I'd like to know if there is any vulnerability with PHP 4.0.4 pl1 running
on
>IIS servers.
None that I'm aware of that are due to php, unless you write silly scripts
which allow access to things they shouldn't. There are probably uncountable
NT vulnerabilities though. One which recently frightene
> >> >Ok, I found out what the problem was. I'm still curious
> >> >why the problem is occuring.
> >> >> if( $tmpArray[errorNumber] & $typesToDisplay ) {
> >> you're using the bitwise & when you want the logical &&
> >No, I actually wanted to use the bitwise &. I wanted to see
> >if the "error
mboeren Wed Apr 18 05:34:53 2001 EDT
Modified files:
/php4/ext/dbx dbx_pgsql.c
Log:
Removed some old commented code (Mc)
Index: php4/ext/dbx/dbx_pgsql.c
diff -u php4/ext/dbx/dbx_pgsql.c:1.6 php4/ext/dbx/dbx_pgsql.c:1.7
--- php4/ext/dbx/dbx_pgsql.c:1.6
Hi
I'm using wddx_deserialize($packet) and what I'm getting returned does not
seem right in the slightest
my code is:
$values = wddx_deserialize($packet);
Packet:
Senior
Legal AdviserHead of Litigationblah blah blahblah blah
blah234236<
/data>
when I run wddx_deserialize on my packet, I'm get
Christian,
Thanks for pointing that out! Everything works excellently now!
Now, all I have to do, is run another ereg_replace() to look for any
duplicate full stops '.' and replace them with one, but I don't think that
one will be to hard.
For those of you interested, this is what the
Don't use GD. You need either the new GD2 extension or the Imlib2
extension from http://mmcc.cx/php_imlib/
-Rasmus
On Wed, 18 Apr 2001, Nils Sondermann wrote:
> I want do create Images dynamicly, i have a High Color png but after
> CreateImagefrompng() it have only 256 colors. What can i do?
>
Quick answer: HTTP_POST_VARS is an associative array. The "name" of the
submitted variables are the keys, and the value of the element is the value
that was submitted.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Mat Marlow"" <[EMAIL PROTECTED]> wrote in message
9
I ' m trying to develop a page that exports data to a Palm ,my question is
,can i do this with PHP or with JavaScript ? .If it's possible please let me
know ,thnks
Sebastián Renzi
Consultoría & Desarrollo de Sistemas.
CODES S.A
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Hi! I don't understand why PHP is having trouble with the odbc_exec. Is
there a bug in PHP code? Here's what the error messages said!
"SQL error: [OpenLink][ODBC][Driver]No key columns found for table
referenced by keyset driven cursor., SQL state IM909 in SQLExecDirect".
This show that
If you want to access a global variable in a function, it must be declared
"GLOBAL". Otherwise PHP's local scope would be totally useless.
If you want to access a variable inside of a function, you must explicitly
declare it as global.
There are a few exceptions such as $GLOBALS, but they should
"exporting data to a palm" is far too vague.
PHP can produce data in a format suitable for saving on a Palm, or you can
have it interpret data from a Palm. To physically save data from a webpage
to a palm requires client-side scripting.
--
Plutarck
Should be working on something...
...but forgo
"Plutarck" <[EMAIL PROTECTED]> wrote:
> Your problem has little to do with the things mentioned.
>
> First of all, you are refering to a variable variable incorrectly.
Actually, he's not.
>You must
> use brackets, like this:
>
> ${$id}
The braces aren't required in this case. Of the four examp
Thank you ,where i can download more info about this ?
> -Mensaje original-
> De: Plutarck [SMTP:[EMAIL PROTECTED]]
> Enviado el: miércoles 18 de abril de 2001 10:42
> Para: [EMAIL PROTECTED]
> Asunto: Re: [PHP] Connection with a Palm
>
> "exporting data to a palm" is far too v
> 1. If $id is a number I believe PHP will choke b/c I don't believe numbers
> can be used as variable names.
Well, generally that is true. If you try to assign a value directly to a
variable that is a number such as:
$1 = "Hello World";
Then it won't work. However, due to a somewhat quirky
[From BugDB]
ID: 10375
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
PHP Version: 4.0.4pl1
Assigned To:
Comments:
fixed in cvs, will not be in 4.0.5, but later releases.
Previous Comments:
---
I think you're misunderstanding what include actually does.
Let's say we have a file called db.php, with the contents:
Now, if the contents of your other script are:
It is the same as having the contents:
When you execute a query with pg_exec you are using the current connection,
not es
Don't forget take a look at dev-list archive, there are many useful posts how to
compile with gd2.
--
Yasuo Ohgaki
""Nils Sondermann"" <[EMAIL PROTECTED]> wrote in message
9bjthb$fu2$[EMAIL PROTECTED]">news:9bjthb$fu2$[EMAIL PROTECTED]...
> I want do create Images dynamicly, i have a High Color
Nope, you don't need to save the ID. PHP/database does the work of
remembering what the ID of your persistant connection is.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Picard, Cyril"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
So :
Is it what you mean ?
PS : I understand that my code here is not very usefull ;-)
> -Message d'origine-
> De: Plutarck [SMTP:[EMAIL PROTECTED]]
> Date: mercredi 18 avril 2001 15:57
> À:[EMAIL PROTECTED]
> Objet:Re: [PHP] Persistent connection & many scripts ?
>
> N
> In the second set of code lines, what I need to do is somehow bracket off
the $test++ so it is evaluated before being echoed.
You need to use the string concantenation operator (a period) to use things
like $test++, else PHP get's confused.
> echo "Value of test: $test++ ";
To get that to wor
Well I've never actually made two calls to connect in one script, but what
happens on the second one is PHP notices you already have a connection open,
and instead of establishing a new one it just returns the current connection
ID.
On your first call to pconnect, PHP looks for any persistant con
Hm...can't say I've seen many subjects about this, but you might want to
look around for information on WAP/WML.
Maybe someone else would know more though, because I have no experiance with
non-PC browsers.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Renzi, Seba
Hi,
Recently I noticed e-mails on this list about Imlib2 and GD2 extensions
which I was not aware of. So I started to wander if there are more
extensions working with PHP which allows graphic process (the only one I
knew was GD). Is it? If so, is it possible to use these extensions on all
platfor
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote:
> > 1. If $id is a number I believe PHP will choke b/c I don't believe
numbers
> > can be used as variable names.
>
> Well, generally that is true. If you try to assign a value directly to a
> variable that is a number such as:
>
> $1 = "Hello World";
> Why destroying it "before" a user logs in? Isn't it
In case the user did not log out properly, his session would still be marked
as valid & logged in
> better to start the session "after" a successful login?
starting works fine, restarting is the problem
> And then destroying the session whe
hi
i installed php with this "config" on rh6.2..
'./configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-trak-vars'
'--with-xml' '--with-wddx'
and a phpinfo(); show me this too...
but when i try to use anny wddx function i get this message...
Fatal error: Call to undefined fu
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote:
> > > 1. If $id is a number I believe PHP will choke b/c I don't believe
> numbers
> > > can be used as variable names.
> >
> > Well, generally that is true. If you try to assign a value directly to a
> > variable that is a number such as:
> >
> > $1
Hi,
how about setting a expiry time for the cookie. Like
45 min after logging in or whatever suits your needs.
You could use session_set_cookie_params() and set
the cookie lifetime to 0. That would at least prevent a login after
the browser window is closed.
Your site is nice by the way.
cheer
> The braces aren't required in this case.
Yup, your right. I stand corrected.
I had forgotten that multiple $s are fine, and that I simply don't use them
because I have trouble reading them.
The joys of learning ;\
--
Plutarck
Should be working on something...
...but forgot what it was.
""
On Wednesday 18 April 2001 13:39, you wrote:
> I have this text:
>
> "[ this is atest ] and this is the rest of the text"
>
> I want to get the text inbetween the [ and ].
if (preg_match ('/\[([^\]])\]/', $Subject, $Matches)) {
echo "Found it : '" . $Matches [1] . "'";
}
looks a bit perverse
On Wednesday 18 April 2001 17:07, you wrote:
> On Wednesday 18 April 2001 13:39, you wrote:
> > I have this text:
> >
> > "[ this is atest ] and this is the rest of the text"
> >
> > I want to get the text inbetween the [ and ].
>
> if (preg_match ('/\[([^\]])\]/', $Subject, $Matches)) {
> echo
I have not managed to get IE to download my file on the fly as suggested.
so I was wondering if there are any other suggestions on how I can create a
temp file for download and after the download is complete the file is
deleted.
thanks
randy
Instead of:
header("Content-disposition: filename=
hi...
sorry i found the error myself... it shoube be --enable-wddx and not --with-wddx
markus
Am Mit, 18 Apr 2001 schrieb Markus Maussner:
> hi
>
> i installed php with this "config" on rh6.2..
> './configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-trak-vars'
>'--with-xml'
The 3rd argument for fwrite() is the length of the string. So you should do:
$fp = fopen('./file.txt','w');
$line = "$text\n";
fwrite($fp,$line,strlen($line));
fclose($fp);
--Joe
On Wed, Apr 18, 2001 at 01:38:11AM -0500, chris herring wrote:
> this is really buggin me... i've got this free-for-
NO SALES PITCH, NO PRESSURE, NO NOTHING.
Just the best non-tackified grip enhancer you'll ever use for your golf game,
GUARANTEED, or your money back.
From football's #1 specialty product company, SUPAGRIP25 is now available to golf
enthusiasts everywhere.
Click here
http://www.creativef
1 - 100 of 205 matches
Mail list logo