\n";
$done = $PHP_SELF;
session_register('done');
}
// do some code
echo "
form method='post' action='$PHP_SELF'
input type='hidden' name='submit' value ='1'
input type='submit'
/form
";
?
try this, this allows you to load the page, press submit once, and not
again.
you have a url or code sample to look at ? have you run it through html tidy
?
http://www.w3.org/People/Raggett/tidy/
also included in ultraedit 8.0a
http://www.ultraedit.com/
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED
ho "a href='$val'$pos /a ";
?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""YoBro"" [EMAIL PROTECTED] wrote in message
97hcsp$59n$[EMAIL PROTECTED]">news:97hcsp$59n$[EMAIL PROTECTED]...
Hell
ong way Im trying to say that what your experisnceing is normal
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""kaab kaoutar"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTEC
e=submit
/form
/body
/html
";
?
works or me, email me your comments if this is or isnt working for you
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Jason Murray" [EMAIL PROTECTED] wrote in message
[EMAIL PRO
.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Jon A" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I need some help...
I try to do a ftp connection with php, but when i run th
seem to work in some browsers.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Chris"" [EMAIL PROTECTED] wrote in message
044201c0a112$a06e2470$01c8c8c8@ibcserver">news:044201c0a112$a06e2470$01c8c8c8@ibcserver..
consants must be scalar, they can not be references.
http://php.net/manual/en/function.define.php
what your looking for is this.
?php
define(LN, __LINE__);
?
this is invalid syntax though, I dont know how to answer your question though, sorry
:(
--
Chris Lee
blahbr \n";
more info at
http://php.net/manual/en/control-structures.foreach.php
email me with more questions, I am eager to help
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""george"
will get an undefined index
error.
mysql alter table TABLE_NAME change VAR_NAME VAR_NAME varchar(255) NOT NULL ;
please email me if you have more questions or comments, I am interested in knowing how
this works for you
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph
files, but if this is the case, should the security
not be server side, vs client side? as you mentioned, modify php.ini to change your
limit. does anyone know another use for this ?
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL
ion=display"View Contents Of Cart/A
is a url, you forgot to include the src of cart.php to see where you are accually
calling the function.
cart.php
?php
if ($action == 'display')
display_contents('some_table', $sessionID);
?
please email me if you have more questions o
sounds like a db prodblem, vs php. could be wrong. check your config file. for the max
users.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Todd Cary" [EMAIL PROTECTED] wrote in message
[EMAIL PROTEC
f in /home/httpd/vhosts/somesite/somefile.php
?php
phpinfo();
?
have fun.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Wen Ni Leong" [EMAIL PROTECTED] wrote in message
[EM
.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Fredrik Wahlberg" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm uploading a file to my server, and I check the mime-ty
the name. they request it. I hear problems about
un-stability of 7.0 on phpbuilder.com, are they warented? I am interested in hearing
strong customer testomonials for postgres or against it. I have little info other then
a few benchamrks I ran myself.
--
Chris Lee
Mediawaveonline.com
ph
ESSID=$PHPSESSID";
//
echo "
a href='http://$SERVER_NAME/$PHP_SELF?$SID'here /a
";
?
I amcurious on how this works out
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Rober
thing. using include_once(..) this way has limited usfullness. not
saying its not usfull, just saying its limited.
--
Chris Lee
[EMAIL PROTECTED]
""Ashley M. Kirchner"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Lindsay Ada
time() if it is then
proceed, else update next_time = time + 300;
If you need a code example email me, I'll whip something up :)
--
Chris Lee
[EMAIL PROTECTED]
""george"" [EMAIL PROTECTED] wrote in message
9b1p05$t6c$[EMAIL PROTECTED]">news:9b1p05$t6c$[EMAIL
by hitting
relpy, hehe.
--
Chris Lee
[EMAIL PROTECTED]
""Yasuo Ohgaki"" [EMAIL PROTECTED] wrote in message
news:9b1k02$f6h$[EMAIL PROTECTED]...
Hello all,
I think most of users knows about news://news.php.net and list archives, if you
use your mail client's reply but
Authenticate: Basic realm='$SERVER_NAME' ");
Header("HTTP/1.0 401 Unauthorized");
bad_passwd();
}
?
--
Chris Lee
[EMAIL PROTECTED]
"Patrick Dunford" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can someone explain "
ult['link_name'];
}
}
}
ok this is a supper basic example, but try it, modify it, play around. it'll give you
a basic idea.
--
Chris Lee
[EMAIL PROTECTED]
"Fates" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am trying to make a simple H
I can do it, it aint pretty though
?php
for($c = 0; $c 65535; $c++)
$range[] = $c;
$a[0] = '12';
$a[1] = '198';
$a[2] = 'B';
foreach($a as $pos = $val)
if (in_array($val, $range))
echo "True br";
else
echo "False br";
?
works, just aint pretty.
--
$padding--;
}
all you need is three fields, the categories id, the categories parent, and the
categories name. recusion is tricky stuff :)
--
Chris Lee
[EMAIL PROTECTED]
""Johan Evers Petersen"" [EMAIL PROTECTED] wrote in message
9bnn77$524$[EMAIL PROTECTED]">ne
I preffer the first.
--
Chris Lee
[EMAIL PROTECTED]
""Boget, Chris"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Which is better?
function blah() {
switch( $bob ) {
case 1:
return "this";
cas
I agree with your bracket style not your return policy. oh well :)
if ($true)
{
// do something
} else
{
// do something else
}
--
Chris Lee
[EMAIL PROTECTED]
""Sander Pilon"" [EMAIL PROTECTED] wrote in message
008d01c0c90f$c712bbc0$ce6278d4@cc6755b"&g
.
--
Chris Lee
[EMAIL PROTECTED]
"Philip Olson" [EMAIL PROTECTED] wrote in message
Pine.BSF.4.10.10104192119590.43248-10@localhost">news:Pine.BSF.4.10.10104192119590.43248-10@localhost...
coding style? here's what pear has to say :
http://www.php.net/manual/en/pear.st
compile php as a cgi then do this
php -q test.php
done. no problem, it will probably install php into /usr/local/bin make sure its in
the path
--
Chris Lee
[EMAIL PROTECTED]
""Bertjan Schrader"" [EMAIL PROTECTED] wrote in message
9bmddj$hdd$[EMAIL PROTECTED]&quo
is there a simple way to tell php to use the new format? other then
// top
ob_start();
...
// bottom
echo ereg_replace(?PHPSESSID=. session_id(), /PHPSESSID/. session_id(),
ob_get_contents());
oi, what a mess
--
Chris Lee
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
your variable scope is local not the function
function name()
{
global $variable;
}
--
Chris Lee
[EMAIL PROTECTED]
Subodh Gupta [EMAIL PROTECTED] wrote in message
002b01c0cce9$aa670b60$c834d6d2@subodhgu">news:002b01c0cce9$aa670b60$c834d6d2@subodhgu...
Can You figure out the
How can I get the local Computer IP Address when running PHP program in
Windows command line (i.e. php getmyip.php)
** Since the PHP did not are run on Webserver, so _SERVER[SERVER_ADDR]
won't work.
Many thanks in advance.
Regards,
Chris
--
PHP General Mailing List (http://www.php.net/)
To
How can I get the local Computer IP Address when running PHP program in
Windows command line (i.e. php getmyip.php)
** Since the PHP did not are run on Webserver, so _SERVER[SERVER_ADDR]
won't work.
Many thanks in advance.
Regards,
Chris
--
PHP General Mailing List (http://www.php.net/)
To
Try this:
?php
exec('ipconfig',$catch);
foreach($catch as $line){
if(eregi('IP Address',$line)){
list($t,$ip) = split(':',$line);
echo 'IP is '.$ip.\n;
}
}
?
Thanks Tom, but I think it only work for Win NT, how about Win 9x?
--
PHP General
first?
I am using PHP 4.3.2 (cli) (built: May 28 2003 15:10:38)
Regards,
Chris Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ob_flush()
Thanks curt, it's working ^_^
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(Default is
off). Any Hints?
Regards,
Chris Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You need to use:
php_value register_globals 1
I tried, but still fail, phpinfo still show
register_globals OffOff
Regards,
Chris Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear Umesh,
I already restart Apache, but it didn't work.
OT question:
Do Apache's Directory Directive, use relative path or absolute path
for matching?
Beside, I am using PHP Version 4.2.3
Regards,
Chris Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
301 - 338 of 338 matches
Mail list logo