an IP at all, if this is just for a cart...
then big deal, some script kiddy could try 36^32 possible combinations of a
PHPSESSID to try and hijack their cart ! haha. maybe for a something a
little more secure.
Chris Lee
Mediawaveonline.com
"Brandon Orther" [EMAIL PROTECTED] wrote in mess
. Maybe just programming style, everyone to they're own.
Chris Lee
Mediawaveonline.com
"Jason Murray" [EMAIL PROTECTED] wrote in message
1595534C9032D411AECE00508BC766FB010528D0@MERCURY">news:1595534C9032D411AECE00508BC766FB010528D0@MERCURY...
if you have ever worked in a
just add this somewhere near the top.
$filezip_name = ereg_replace(' ', '_', $filezip_name);
Chris Lee
Mediawaveonline.com
""David Smith"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
With the following code how can I ch
It works, it works in
lynx,
netscape 4.76
netscape 6
mozilla 0.7
IE 5.5
opera 5.01
amaya 4.2.1
now I havent used any mac browsers but if it works for all those I assume it
will for Mac browsers eh.
Chris Lee
Mediawaveonline.com
"Alex Black" [EMAIL PROTECTED] wrote in mess
Its also very handy when you get an error like that to check you log files,
usually when you get no error and no page like that, php has segfaulted
apache, might want to check :) there might be other errors in the log files
to help you too.
Chris Lee
Mediawaveonline.com
"Jared Howard&qu
other php developers store their passwd's
-plain text in db
-use of unix password()
-use of db password()
-other ?
Chris Lee
Mediawaveonline.com
""Jason Jacobs"" [EMAIL PROTECTED] wrote in message
011501c07f3f$c415bcc0$5800a8c0@doc">news:011501c07f3f$c415bcc0$5800a8c0
well your code snipit allready shows your answer.
$result = mysql_db_query($DBName, "SELECT * FROM basket WHERE
UserID='$UID'");
while ($row = mysql_fetch_array($result))
{
$CID = $row[0];
$DMN = $row[1];
$DMB = $row[2];
$BID = $row[4];
echo "Price: $DMBbr\n
?
Chris Lee
Mediawaveonline.com
"Brandon Orther" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello Everybody,
I have seen a lot of people ask for XML support for PHP. I was wondering
what it does that makes it good fo
', $mtime);
$mtime = $mtime[1] . $mtime[0];
return($mtime);
}
Chris Lee
Mediawaveonline.com
"Angela" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I see that you got a lot of responses, but I didn't see anyone using
what I use. I had p
I use ultraedit 8.0 this editor rocks :)
on a side note as someone else posted, 'everyone to their own' it dont
matter what editor you love as long as the work gets done.
Chris Lee
Mediawaveonline.com
""Murph"" [EMAIL PROTECTED] wrote in message
003201c08027$e886c480$[EM
Im nearly posative this isnt what your looking for, but I thought I would
see if maybe it was :)
compile php as a cgi so you can run it from the command prompt. then just
run the php file from the command prompt through exec ()
?
exec("php -q somephpfile.php ");
?
untested of cour
quot;
can you compile/download php for windows as a cgi ? that would solve your
problem eh.
Chris Lee
Mediawaveonline.com
"Alaiddin Tayeh" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am using write.exe in the windows to edit my php
'
value='$SkyAccNo' " . checked(@$account_num[$SkyAccNo], $SkyAccNo) . "
/td\n";
}
?
email me if you have more questions.
Chris Lee
Mediawaveonline.com
""Wade Halsey"" [EMAIL PROTECTED] wrote in message
025401c0811c$214dfb40$256410ac@WADEH">news:025401c
No if memory serves me correctly php by default saves the session files in
its own format, but you can tell php to save sessions in XML (wddx? am I way
off) Ive never used XML, WDDX, or tried doing anything directly with the
sessions files
Chris Lee
"Eivind Trondsen" [EMAIL PROTEC
There is nothing easier then by going to
news://news.php.net
I never until php had any use for news groups, they were for perverts with
to much bandwidth, haha. now I use my news reader all the time :)
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]"
find the prior easier to read. they both work 100% no quibles.
Chris Lee
Mediawaveonline.com
""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message
017b01c081a0$2ad77e50$0afc020a@kstubsjoen">news:017b01c081a0$2ad77e50$0afc020a@kstubsjoen...
Hello,
I am tryi
';
$test_b[] = '501';
$new_array = array_intersect($test_a, $test_b);
print_r($new_array);
?
Array
(
[0] = 501
)
array_insersect() only seems to work with small numbers... or small text.
Chris Lee
Mediawaveonline.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
ok, Ive got my code to work, but its a big jerry-rig haha. because I am
using mtime() (the last two chars are allways 00) I substr the last two
chars off, array_insersect() them, then add 00 the the end of all the values
in the result array. dumb eh.
Chris Lee
Mediawaveonline.com
"Chri
xample you can add another element to $test-s and the loop
will auto adjust for this.
but both methods work.
Chris Lee
Mediawaveonline.com
Joe Stump [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Put them in an array? PHP allows for variable variables
D CUserName =
'$CUserName' ";
if ($CAge)
$query .= " AND CAge = '$CAge'";
if ($CEducation)
$query .= " AND CEducation = '$CEducation'";
the latter only works if there is at LEAST one variable to be used.
Is this what you meant? no? email me k.
Chris Lee
Mediawave
$GLOBALS[] should have all varibales right ? maybe someone could correct me.
?
foreach($GLOBALS as $pos = $val)
{
echo "$pos : $valbr\n";
}
?
Chris Lee
Mediawaveonline.com
"Romulo Roberto Pereira" [EMAIL PROTECTED] wrote in message
001101c082eb$6536f
them through $var_1, $var_2, $var_3
Ramus had a good note though, dont think just because its not a GET or
Cookie var that a user cant whip up a simple html POST page in about 10sec.
Chris Lee
Mediawaveonline.com
"Dale Robinson" [EMAIL PROTECTED] wrote in message
000d01c083e1$54610aa
t;br\n";
?
all classes do is organize data, its a nice way of doing it too. all the -
is access that data/function.
Im not quite sure what you mean when you say "generic- becomes something
twice" as far as I can see, nothing is becoming nothing.
Chris Lee
Mediawaveonline.com
compile with --enable-trans-sid
works great for me :)
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi..
i use the session-functions with php4 and everything works fine.
but if a visitor turns off cookies nothi
havent tested this but im almost sure that netscape waits until the entire
page is downloaded until being displayed IF there are tables on the page.
write a small test script to see if Im right.
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Spallek, Heiko"&qu
4%2 = 0
4 div 2 equals remainder 0
2 div 4 doesnt divide so your left with the remainder equal to what you
started with, 2
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Mike P"" [EMAIL PROTECTED] wrote in message
94qjq0$rde$[EMAIL PROTECTED]">news
then
mysql_db overhead.
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
"Noel Akins" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Would there be any point in using php sessions if you aren't using
cookies?
You have to store logi
input type=file name=somefile
$somefile
$somefile_name
$somefile_type
nice eh ?
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Fredrik Arild Takle"" [EMAIL PROTECTED] wrote in message
009d01c08adb$b67d26a0$accd4382@hp">news:009d01c08adb$b67d26a0$accd4
t it
works.
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
"Nicklas af Ekenstam" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!
Is there some way (perhaps using a multi threaded httpd?) that I can get
php to fork processes?
I.e. I'd like t
?
echo @$test;
?
This works without Zend Optimizer installed, as soon as I turn on Zend I get
'undifined variable'. Why doesn't the @ turn this warning off when Zend
installed?
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
function some($foo, $bar)
{
if ($foo != $bar)
return ;
...
}
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message
004701c08bd5$eecbc340$0afc020a@kstubsjoen">news:004701c08bd5$eecbc340$
works and alot simpler
?
$result = mysql_db_query('some_db', "SELECT * FROM people");
while ($r = mysql_fetch_array($result))
{
echo $r['name'];
}
?
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Mike"" [EMAIL PROTECTED] wrote in message
95c3
email_body = "htmlbodyhello? /body/html\n";
mail($email_address, $email_subject, $email_body, $email_header);
?
This should work...
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
"Jeff Gannaway" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTE
. I love it. works great.
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
"Jon Jacob" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
This list is very active, but I find that I am deleting about 70% of the
messages about reading the f
True enough...
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Boget, Chris"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Good idea, I agree, this would be nice. It would allow
posters to better categorize thei
you mean sessions? cookies are client side, sessions are server side (with assistance
from cookies or url re-writing)
http://php.net/manual/en/ref.session.php
should have more then enough information, phpbuilder also has a few articles.
--
Chris Lee
Mediawaveonline.com
ph
is an array with all the headers pos and their value. this causes
segfaults.
any idea's? I would pref not to use the dev version of php? I also noticed on
ftp://ftp.cac.washington.edu/imap/ that the newest imap is beta, anything stable out
there?
--
Chris Lee
Mediawaveonline.com
SSID=$PHPSESSID");
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Brandon Orther"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
Is there a way for me to t
trim()
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Brandon Orther"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
Is there a
form method=post action='$PHP_SELF'
input type=submit
/form
even the simplest forms product a 0x013 0x10 imediatly after the form I wish there
was a way to control this behaviour. I thought it was normal, and anoying.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph
.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Robert Cooper" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a set of pages I've been working on to do address entr
/sec with 10 includes each on
ALL difernet files. you could have 1000hit/sec on the same files.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Eduardo Dominguez"" [EMAIL PROTECTED] wrote in
code snipits allways help :) but a guess would be that your not putting the var in ''
echo "
select name='somename'
option value='$value'$value
/select
";
please email if this is not the problem.
--
Chris Lee
Mediawaveonline.com
ph. 250.377
ot;;
?
im not exactly sure on what
if (issset($userfile))
{
global $userfile;
unset($userfile);
} else
{
// do some code
}
this is supposed todo, what is the global there for? what does it do? please explain.
--
Chris Lee
Media
but doesnt seem stable either, some imap functions if
there are no folders or headers causes apache to seg fault.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
use news.php.net it rocks. no huge bulk email in your box after a weekend. no funky
re-pley, nice.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Rick St Jean" [EMAIL PROTECTED] wrote in messa
ime('start');
// code snippit
$debug-time('end');
?
works great or me. you can find out exactly where your code is slowing you down, only
thing is now to find out how to improve that :)
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
ok, Ive now been able to fetch news headers, but boy is it slow. to fetch 10 out of
430 headers your looking at 19sec.
news://news.php.net/php.gtk
$headers = imap_fetch_overview($this-mail_stream, "427:437");
is slow... oi. any ideas on speed ?
--
$kodpocztowy $miejscowosc}";
'' vs "" is a big difference, single quotes do not parse the data in between them,
therfore it is ok to use '' with {}
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
($tmp_array as $pos = $val)
echo $array[$pos]['name'] ."br\n";
?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Zenith"" [EMAIL PROTECTED] wrote in message
9844ps$qi2$[EMAIL PROT
you mean you want the url ?
$HTTP_REFERER
This variaable is set by the client's browser though, this means it may not be set at
all, or could be forged. you will have to check against this.
I dont think this is what you mean though, email me I'll see what I can do.
--
Chris
?php
function check()
{
$arrLoginName = explode("@", $row-usr_loginName);
foreach($arrLoginName as $pos = $val)
if (match)
return 1;
return ;
}
?
is this what you mean? please post regarding.
--
Chris Lee
Mediawaveonline.com
ph. 250.377
ut to lunch here, but sithout a code snippit im grabing here.
please post regarding, thank you.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""WreckRman2"" [EMAIL PROTECTED] wrote in message
[EM
this-start = $this-break;
}
}
$debug = new debug;
//---
$debug-time('start');
// code snippit
$debug-time('end');
?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECT
)
{
if (is_array($val))
{
if (in_multi_array($needle, $val))
return 1;
} else
if ($val == $needle)
return 1;
}
}
if (in_multi_array('d', $test))
echo "TRUE br\n";
else
echo "FALSE br\n";
?
--
Chris Lee
Mediawaveonline.com
type=file name=db_file
input type=submit
/form
/body
/html
";
?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Daniele" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED].
input type='submit' name='done' value='Submit'
/form
";
?
simple stuff, server side is fool proof, client side is foolable.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Christopher Cheng"" [EMAIL P
";
?
there ya go
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Leo" [EMAIL PROTECTED] wrote in message
98be7g$qnj$[EMAIL PROTECTED]">news:98be7g$qnj$[EMAIL PROTECTED]...
hi
i'm currently progra
permisions ?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""noah"" [EMAIL PROTECTED] wrote in message
98be51$o3u$[EMAIL PROTECTED]">news:98be51$o3u$[EMAIL PROTECTED]...
is there a reason why doing
- syntax highlighting
- linking to php.net/manual/ functions.
- new files open inside main windows (file tabs) not in new windows (like IE)
there are lots
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Dan Cleveland&qu
I use a script like this, place it in cron, run it once a day to search the db and
email the nescisary people the reminders they request.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""John Huggins"" [EM
on the
other side, not accually included. ie.
include_file.php
?php
echo "hello";
$test = 'chris lee';
?
index.php
?php
include_once(http://$SERVER_NAME/include_file.php);
?
this will echo
hello
and $test will not be avalible to index.php
include() work very differnert
simple example
?php
$database_db = 'bookmarks';
include_once('database_class.egn');
$HOW_MANY = 10;
if (!isset($pos))
$pos = 0;
$pos_prev = $pos - $HOW_MANY;
$pos_next = $pos + $HOW_MANY;
$product_count = $database-count('site', '');
$result = $database-select_array('', 'site',
untry, $this_country) ."$this_country
";
}
echo "
/select
input type='submit' name='done' value='Submit'
/form
";
?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Nicole Lallande" [EMAIL PR
/
in the users home dir, ie. /home/lee make a symbolic link callred wwwroot to where
ever you want their home ftp dir to be.
ln -s /home/httpd/vhosts/lee.com /home/lee/wwwroot
done.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED
, in a file, oi,
headache.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Marian Vasile"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What is faster for a chat
/form
a href='index.php". make_args() ."'index/a
";
?
--
Chris Lee
[EMAIL PROTECTED]
"Nick Davies" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi (again).
Is there a simple was to take post data from a form and create a
;WHERE username = '$PHP_AUTH_USER' AND password =
'$PHP_AUTH_PW' ") )
$SessionID = $peop_r['peopleID'];
else
{
Header("WWW-Authenticate: Basic realm='$SERVER_NAME' ");
Header("HTTP/1.0 401 Unauthorized");
bad_passwd();
}
?
--
Chris Lee
[EMAIL PROTECTED]
&quo
your not putting it in quotes.
echo "
input type=hidden name=people_name value=$people_name
";
change to
echo "
input type='hidden' name='people_name' value='$people_name'
";
quotes are your friend :)
--
Chris Lee
[EMAIL PROTECTED]
"&
please post more code, ie where $name is set.
in the mean time try this, shouldnt help but might
foreach($empid as $pos = $val)
{
echo "{$empid[$pos]} {$name[$pos]}br";
}
--
Chris Lee
[EMAIL PROTECTED]
""Tom Harris"" [EMAIL PROTECTED] wrote in messag
you should be doing.
?php
$A[] = '0';
$A[] = '1';
$A[] = '2';
$A[] = '3';
if (isset($A))
foreach($A as $pos = $val)
// do something
?
alot simpler, expandible and easier to read. Im sure its probably faster too...
--
Chris Lee
[EMAIL PROTECTED]
"Ekkard Gerlach" [EMA
In defence of zend technologies and open source. Is your php code being used for
profit? then purchase the encoder. Is your code being used for non-profit? then
release it as open source for the community to use.
--
Chris Lee
[EMAIL PROTECTED]
""Chris Anderson"&qu
I dont know how good of an idea it is to have 180 variable variable names. oi,
headache. but the question you asked was this.
" $q = 'tar1-1' how do I access the variable $tar1-1 "
no problem
echo $$q;
--
Chris Lee
[EMAIL PROTECTED]
""Per Kallin"" [EMA
have a 1024 limit for data in the url bar, I could be wrong. the
other thing is you'll find spaces suck in url bars.
http://www.mediawaveonline.com/index.php?name=Chris Lee
?php
echo $name;
?
will echo
Chris
thats all. the space ends all. you'll have to convert all spaces to %20
where/$file_name");
--
Chris Lee
[EMAIL PROTECTED]
""Thalis A. Kalfigopoulos"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Helloppl,
a problem with a file_upload form :-( Here is what I've done so far:
File test.php whic
');
call_user_func($fav_color);
?
there are obviously easier ways todo this, but its a simple example.
--
Chris Lee
[EMAIL PROTECTED]
""Boget, Chris"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
http://www.php.net/manual/en/ref.
unset()
?php
$test[0] = 0;
$test[1] = 1;
$test[2] = 2;
$test[3] = 3;
foreach($test as $pos = $val)
echo "$valbr";
unset($test[2]);
foreach($test as $pos = $val)
echo "$valbr";
?
--
Chris Lee
[EMAIL PROTECTED]
&quo
stanard newbie answer :)
php is server side, not client side
php is serverside there is no way of ever ever doing anything client side because of
this.
http://php.net/manual/en/function.fopen.php
are the functions for opening files.
--
Chris Lee
[EMAIL PROTECTED]
"
so your trying to take a list of variables and register them as session vars?
?php
function make_session($vars)
{
$vars = explode('|', $vars);
foreach($vars as $pos = $val)
{
global $val;
session_register($val);
}
}
?
this will work for that.
--
Chris Lee
[EMAIL
.
--
Chris Lee
[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi, I am trying to set a cookie and it doesn't work. I am running IE 5.
I have IE set to prompt before setting cookies but I never get a prompt.
Here is my code - b
attachments ar stripped for security purposes by the mailing list server. please post
the code in your msg.
--
Chris Lee
[EMAIL PROTECTED]
""Miguel Loureiro"" [EMAIL PROTECTED] wrote in message
00ad01c0b2ff$f12a9c00$[EMAIL PROTECTED]">news:00ad01c0b2
other way around, set the variable the register it
session_start();
$hello = 'chris lee';
session_register('hello');
here is my session file.
?php
include_once('time.egn');
if ( isset($PHPSESSID) )
session_id($PHPSESSID);
session_start();
if (!isset($HTTP_SESSION_VARS
how long my string is ?
--
Chris Lee
[EMAIL PROTECTED]
--
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]
);
session_start();
if (!isset($HTTP_SESSION_VARS['SessionID']))
{
$SessionID = mtime();
session_register('SessionID');
}
$PHPSESSID = session_id();
$SID = "PHPSESSID=$PHPSESSID";
?
--
Chris Lee
[EMAIL PROTECTED]
"Michael Champagne" [EMAIL PROTECTED] wrot
image/jpeg');
readfile('/path/imagename.jpg');
--
Chris Lee
[EMAIL PROTECTED]
""Marcelo Pereira"" [EMAIL PROTECTED] wrote in message
006001c0b396$05167cc0$0b01a8c0@hmmg">news:006001c0b396$05167cc0$0b01a8c0@hmmg...
Hi All,
How can I show images, captured by a webcam
);
session_start();
if (!isset($HTTP_SESSION_VARS['SessionID']))
{
$SessionID = mtime();
session_register('SessionID');
}
$PHPSESSID = session_id();
$SID = "PHPSESSID=$PHPSESSID";
?
this is my session file, works great for me.
--
Chris Lee
[EMAIL PROTECTED]
""
it fixes it for you.
--
Chris Lee
[EMAIL PROTECTED]
""Matt Williams"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi
I am trying to validate a form to check the user has entered there date of
birth correctly
There are three field
fault or your browsers, not php's, blame the browser" haha j/k
--
Chris Lee
[EMAIL PROTECTED]
"Carfield Yim" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Why the data in HTML form lost when the user press back button? And I
find
best/easiest/bulkist way it to serialize it and urlencode it.
?php
$test[] = 'chris';
$test[] = 'lee';
echo "a href=''$PHP_SELF?". urlencode(serialize($test)) ."test/a";
?
--
Chris Lee
[EMAIL PROTECTED]
""Scott Fletcher"" [EMAIL
you want to just execute the perl script? use
http://php.net/manual/en/function.exec.php
$return = exec("/pathtocgi/script.cgi VAR1 VAR2 ");
if you want the data returned, its in $return.
--
Chris Lee
[EMAIL PROTECTED]
""Brandon Orther"" [EMAIL PROTE
time stamp , time(), you can play with them using
getdate() and mktime() those two functions will provide all the date verification you
need.
--
Chris Lee
[EMAIL PROTECTED]
""Rob McMahan, Jr."" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
version? speed/reliability/stability ? In some
benchmarks I did I found postgres lightning fast when it came to multiple table joins,
but I have yet to run it in production, so I dont know about stability/reliability.
--
Chris Lee
[EMAIL PROTECTED]
""Steve Brett"" [EM
have you edited your php.ini file ? you have to uncomment the imap dll.
extension=php_imap4r2.dll
if you dont have this dll, you'll have to find it, cant help you there.
--
Chris Lee
[EMAIL PROTECTED]
""Nilesh Parmar"" [EMAIL PROTECTED] wrote in message
001b01c0
I have to agree Nuno, sessions are alot easier/simpler.
--
Chris Lee
[EMAIL PROTECTED]
"Nuno Silva" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
short:
try removing the third parameter to setcookie and if the errors go a
-select_array('', 'orders, orders_product', $query) as $pos =
$orders)
{
...
}
--
Chris Lee
[EMAIL PROTECTED]
--
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
another note (yat) is why do you use php3?
Ive seen a few people still using php3 vs php4. I coulndt see any reasn for staying.
just alot of reasons to switch.
--
Chris Lee
[EMAIL PROTECTED]
"Louis Brooks" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">new
im to lazy to figure out the mysql commands, just copy the files.
cp sometable.MYI sometable2.MYI
cp sometable.MYD sometable.MYD
cp sometable.frm sometable.frm
mysqladmin flush-tables
easier.
--
Chris Lee
[EMAIL PROTECTED]
""McShen"" [EMAIL PROTECTED] wrote in
I was interested in stripping the content between the tags too though. the content
between the tags is allways 18 char so I did this.
$article_body = ereg_replace("image+.{18}/image ", '', $article_body);
that seemed to work. oi, regex is bad stuff, haha.
--
Chris Lee
[EMAIL
sounds like php is having a problem resolving the dns. could be 1 of a 100
things ...
try putting the IP of the machine in vs the domain name.
--
Chris Lee
[EMAIL PROTECTED]
Martin Leclair [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
how those remote servers destinguish where the images are coming from is
from the Referr header.
play around with getting the data manually using fopen()/fwrite()/fread()
and your done. not so easy eh, well it works.
--
Chris Lee
[EMAIL PROTECTED]
Martin Kampherbeek [EMAIL PROTECTED
1 - 100 of 338 matches
Mail list logo