Re: [PHP] confused with sessions

2001-06-22 Thread Chris Lee
. index.php is ok http://www.e-tankless.com/index.php is not. you will have to re-write it yourself. if cookies are disabled and the phpsessid is not in the url then php has absolutly no way of knowing its the same customer, therfore it creates a new phpsessid. -- Chris Lee [EMAIL PROTECTED

Re: [PHP] protected Images without using htaccess

2001-06-22 Thread Chris Lee
you are so close .. store the images outside the http root. have a php page verify the user and use header('content-type: image.jpeg'); readfile('/tmp/image.jpg'); there ya go. its the only way i can see. -- Chris Lee [EMAIL PROTECTED] ""Arash Dejkam&

Re: [PHP] un-official miror of php.net

2001-06-22 Thread Chris Lee
download the manual from snaps.php.net ALLWAYS has the most current manual. php.net/manual will never be more current then snaps.php.net. php.net/manual will have the comments though. I dont know if php.net will like all those hits of you updating your mirror, email them. -- Chris Lee

Re: [PHP] isset($x) fails !

2001-06-22 Thread Chris Lee
need a little more data. how is it failing ? where in what code ? how are you using it ? in what way do you want it to work ? http://php.net/manual/en/function.isset.php -- Chris Lee [EMAIL PROTECTED] ""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message [EMA

[PHP] Re: how do I include a class into my php page

2001-07-09 Thread Chris Lee
yes of course, you know your own anser :) some_class.egn index.php -- Chris Lee [EMAIL PROTECTED] "Jack" <[EMAIL PROTECTED]> wrote in message 021b01c108b1$ec596640$[EMAIL PROTECTED]">news:021b01c108b1$ec596640$[EMAIL PROTECTED]... Exactly what the title said, I

[PHP] Re: how to use class

2001-07-09 Thread Chris Lee
include_once('some_class.egn'); $some_class = new some_class; $some_class->some_function(); -- Chris Lee [EMAIL PROTECTED] "Jack" <[EMAIL PROTECTED]> wrote in message 020801c108af$36dc70c0$[EMAIL PROTECTED]">news:020801c108af$36dc70c0$[EMAIL PROTE

[PHP] Re: Download function for php

2001-07-09 Thread Chris Lee
src file to a link in the web root. of course you could allways send the download headers and readfile() the file. -- Chris Lee [EMAIL PROTECTED] "Mark Lo" <[EMAIL PROTECTED]> wrote in message 001101c10884$863351a0$caccfea9@Mark">news:001101c10884$863351

[PHP] Re: Domain question

2001-07-09 Thread Chris Lee
not exactly a php question. but to answer your question .. I have no answer. -- Chris Lee [EMAIL PROTECTED] "Reductor" <[EMAIL PROTECTED]> wrote in message 005d01c10881$a8517a80$0200a8c0@ReDucTor">news:005d01c10881$a8517a80$0200a8c0@ReDucTor... Hey, What are

[PHP] Re: Sorting an assoiative Array

2001-07-09 Thread Chris Lee
I used similar and just put it into a function function array_max($array) { asort($array); return current($array); } this just gives me the first element of the array. -- Chris Lee [EMAIL PROTECTED] "Patrick Meisel" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Re: Code Examples for Job Interview

2001-07-10 Thread Chris Lee
shamefull plug alert, shame, shame alert. php/perl/java/etc/etc/etc forum gets two new posts a day. "you can have tens of comments" if you wait 5-7 days. -- Chris Lee [EMAIL PROTECTED] "Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">ne

[PHP] possible switch() bug in 4.0.6 ?

2001-08-02 Thread Chris Lee
/mediawaveonline/test2.php on line 10 if you ask me, I should get a warning on line 2 where the switch is, not on 4, 7, 10 where the case statements are. php 4.0.5 cgi does not do this. -- Chris Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: How to add an excel file directly to MySQL database using PHP?

2001-08-03 Thread Chris Lee
I dont mean to be picky but .. ".. allows you to import comma separated files .. dunno about .csv .." csv = comma seperated values so yes mysql can import csv using the LOAD DATA func or user writen php func :) sorry about pointing that out. -- Chris Lee [EMAIL PROTECTED]

[PHP] Re: [php] undefined offset?

2001-08-03 Thread Chris Lee
you never defined test[8] thats why its undeined. more likley then not check in your php.ini file, i bet you have warning = ~E_WARNINGS E_ALL; in your linux box and warning = E_ALL; in your win box. I like all warnings and errors showing, personal opinion. -- Chris Lee [EMAIL

[PHP] Re: Am I being Hacked ???

2001-08-07 Thread Chris Lee
check your status code at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.9 on a side note, your post was in the wrong newsgroup, try a orum related to http not php. -- Chris Lee [EMAIL PROTECTED] "Mark Lo" <[EMAIL PROTECTED]> wrote in message 00090

[PHP] Re: cropping a string

2001-08-13 Thread Chris Lee
is trims the string to the spec length and takes the last word (or pastial word) off. you might want to take a look at wordwrap() too, probably not what your looking for though. -- Chris Lee [EMAIL PROTECTED] "Tom Carter" <[EMAIL PROTECTED]> wrote in message 01ea01

[PHP] Re: large external script to include in many pages

2001-08-13 Thread Chris Lee
putting something like

[PHP] variable arguments wish list

2001-09-04 Thread Chris Lee
nc( '". implode("', '", $args) ."', 'one more arg' ); "; } thats just nasty. and dont try putting the func_get_args() in the implode, I get a warning saying dont even try it. plus it would still be ugly. -- Chris Lee [EMAIL PROTECTED] --

Re: [PHP] << Previous / Next Buttons >>

2001-09-06 Thread Chris Lee
I just use LIMIT its alot better, alot less CPU intensive. if (!isset($pos)) $pos = 0 SELECT * FROM product LIMIT 0, $pos $pos++ if ( !((SELECT count(*) FROM product) > $pos) ) Next you get the idea. Chris Lee [EMAIL PROTECTED] "Jeff Oien" <[EMAIL PROTECTED]&g

[PHP] Re: SESSIONS! - please help

2001-09-06 Thread Chris Lee
$value) vs while (list($key, $value) = each ($count)) -- Chris Lee [EMAIL PROTECTED] "Christian Haines" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, > > PHP-4.03pl > LINUX 7.0 > > i am still havin

[PHP] Re: Mailing, which is faster

2001-09-06 Thread Chris Lee
benchamrking is a common question with a common answer, "try it yourself", depending on your situation/hardware/software this will very greatly from machine to machine. -- Chris Lee [EMAIL PROTECTED] "Niklas lampén" <[EMAIL PROTECTED]> wrote in message [EMA

[PHP] Re: multi updates

2001-09-06 Thread Chris Lee
ually need the $conn in mysql_query() and die() is just nasty, I like a little bit more friendly user errors. I also like to shorten things by putting the mysql_query in the if() statement if ( !mysql_query($sql) ) -- Chris Lee [EMAIL PROTECTED] "Gary" <[EMAIL PROTECTED]> wr

[PHP] Re: this newsgroup via newsgroup program?

2001-09-06 Thread Chris Lee
I use Outlook Express and Im posting this via news.php.net into php.general -- Chris Lee [EMAIL PROTECTED] "Chris Hayes" <[EMAIL PROTECTED]> wrote in message 3B981E0F.25754.4210CA@localhost">news:3B981E0F.25754.4210CA@localhost... > hi, > from http://www

[PHP] Re: Releasing Your Code

2001-09-06 Thread Chris Lee
dont like it, write your own. my examples are allways updated, they're just symbloic links to the accual files I use. because its code src, not bin, you can change it however you want, have fun, people shouldnt be so anal about their code or others code. -- Chris Lee [EMAIL PROT

[PHP] string comparisons not working as expected

2001-09-14 Thread Chris Lee
ve spec. type casted that as strings, they should compare fine as strings. this is where I beleive there is more then a quirk and more of a bug. the third susceeds just as it should, its just not near as elegant as a simple if ($var_1 == $var_2). -- Chris Lee [EMAIL PROTECTED] -- PHP G

[PHP] Re: Problem: lost session id when htaccess'ing.

2001-09-18 Thread Chris Lee
- you have cookie support on or off ? - you using any header redirects ? (you have to manually add the SID to URI's) send some src and a link. lets see whats going on. -- Chris Lee [EMAIL PROTECTED] "Lic. Rodolfo Gonzalez Gonzalez" <[EMAIL PROTECTED]> wrote in mes

Re: [PHP] What is PHP's equivalent?

2001-09-18 Thread Chris Lee
correct me if Im wrong, but I wanted to add a note saying that php supports loading .COM and .NET only if the server is windows based. -- Chris Lee [EMAIL PROTECTED] "Sterling Hughes" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

[PHP] Re: Getting data over https?

2001-09-18 Thread Chris Lee
php doesnt support https url-wrappers. grab the data with an external app maybe, it'll be ugly. exec('lynx -source https://www.pilotmedia.fi/ > /tmp/somefile.txt'); fopen('/tmp/somefile.txt', 'r'); unlink('/tmp/somefile.txt'); -- Chris Le

[PHP] Re: how can i show my table 5 record by five record ?

2001-09-18 Thread Chris Lee
) echo " "; echo " {$val['product_name']} "; } echo " "; there you go every five products you get a new line. -- Chris Lee [EMAIL PROTECTED] "Alawi Albaity" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] Handling sessions between servers?

2001-09-18 Thread Chris Lee
using mysql is an excelent choice, if your not using a db Ive seen people pass the data raw echo " mediawaveonline.com "; then session_decode(base64_decode($session_data)); its ugly, but it works. -- Chris Lee [EMAIL PROTECTED] "Josh Hoover" <[EMAIL PROTE

[PHP] Re: Sockets

2001-09-19 Thread Chris Lee
is this even a php related question? post some code and an example site and we'll see what we can do. -- Chris Lee [EMAIL PROTECTED] "Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I run a web appli

[PHP] Re: Modularity--Optimizing Includes and Libs

2001-09-19 Thread Chris Lee
aries that your not going to use ? only put relevant data in your libraries and only call relevant libraries and you wont have a problem. -- Chris Lee [EMAIL PROTECTED] "Bora Paksoy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

[PHP] Re: session screw up - any experience/hints for me?

2001-09-19 Thread Chris Lee
('Last-Modified: '. gmdate('D, d M Y H:i:s') .' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); should tell most browsers not to cache. -- Chris Lee [EMAIL PROTECTED] "Wolfram Kriesing&q

[PHP] Re: calling javascript function from a form image

2001-09-21 Thread Chris Lee
or if you want the hand to show up over the image. change the tag to -- Chris Lee [EMAIL PROTECTED] "Neil Freeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have a form which contains an: > > W

[PHP] Re: writing files

2001-09-25 Thread Chris Lee
'/images/image1.png' is '/images/image1.png' 'images/image1.png' is '/images/image1.png' you are using the first, unless your something wierd on your first box, like chroot, or safe_mode, or something else Ive never used, I dont know why the first server i

[PHP] Re: dates only in the future

2001-09-25 Thread Chris Lee
server, if it isnt, just send the user back with a nasty message and tell them to smarten up :) if ( time() > mktime(1, 1, 1, $month, $day, $year) ) echo "Bad !!"; else echo "Good, now I'll save the data"; -- Chris Lee [EMAIL PROTECTED] "Kristjan K

[PHP] Re: Test.php does not show that it was configured with sybase on Linux 7.1

2001-09-25 Thread Chris Lee
change that to where ever your sybase dir is. -- Chris Lee [EMAIL PROTECTED] "Caleb Carvalho" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I have installed sybase on my Linux 7.1 machine and after > c

[PHP] Re: Counter

2001-09-25 Thread Chris Lee
there are tutorials all over the inet. -- Chris Lee [EMAIL PROTECTED] "Mark Lo" <[EMAIL PROTECTED]> wrote in message 000501c145d9$c5f56ca0$caccfea9@mark">news:000501c145d9$c5f56ca0$caccfea9@mark... > Hi, > > I would like to know how to w

[PHP] Re: Socket help

2001-09-25 Thread Chris Lee
script can NOT use the first apps socket, sockets arent shared like that. yes, sending and recienveing should be ok, any data backed up will just be stored in buffers. -- Chris Lee [EMAIL PROTECTED] "Stefano Baronio" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

[PHP] Re: 2D array from file

2001-09-26 Thread Chris Lee
have you thought of just using http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php its alot easier. -- Chris Lee [EMAIL PROTECTED] "John Frenzel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:

[PHP] Re: session var being lost between pages

2001-10-01 Thread Chris Lee
27;]) AND $PHPSESSID != $HTTP_GET_VARS['PHPSESSID']) all small things, nothing big looks wrong. try it and see. -- Chris Lee [EMAIL PROTECTED] "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Ok, newbie I am but ... I seem

[PHP] Re: HTTP Authentication / Logging Out

2001-10-01 Thread Chris Lee
. Header("WWW-Authenticate: Basic realm='someother-domain' "); Header("HTTP/1.0 401 Unauthorized"); -- Chris Lee [EMAIL PROTECTED] "Eric J Schwinder" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

[PHP] Re: search result page, need some ideas on how to do [PREV] 1 2 3 4 [NEXT] stuff..

2001-10-05 Thread Chris Lee
g $search_a - $search_b of $search_c Orders "; if ($prev >= 0) echo " <$IMG src='image/back.gif'> "; echo " <$IMG src='image/home.gif'> "; if ( $next < $search_c ) echo " <$IMG src='image/next

[PHP] Re: accessing localtime array directly

2001-10-05 Thread Chris Lee
there are functions like current() next() etc but they wont help you in this case. I just wrote my own. function index($array, $index) { return @$array[$index]; } $now = index(localtime(), 7); -- Chris Lee [EMAIL PROTECTED] "John A. Grant" <[EMAIL PROTECTED]> wrote i

[PHP] Re: help with exec()...

2001-10-05 Thread Chris Lee
with exec() I wouldnt assume that all the PATH info is there, just to be sure, use hardcoded paths. exec("/usr/bin/mysqldump > /tmp/somesql.txt", $return); print_r($return); -- Chris Lee [EMAIL PROTECTED] "Christian Dechery" <[EMAIL PROTECTED]> wrote in me

[PHP] Re: Fancy thing.

2001-10-05 Thread Chris Lee
why is this amazing ? -- Chris Lee [EMAIL PROTECTED] "Andrey Hristov" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > After getting the PHP source from the CVS and compiling I tested with > phpinfo(). The result was

[PHP] Re: next and previous links

2001-10-05 Thread Chris Lee
o " Displaying $search_a - $search_b of $search_c Orders "; if ($prev >= 0) echo " <$IMG src='image/back.gif'> "; echo " <$IMG src='image/home.gif'> "; if ( $next < $search_c ) echo " <$IMG src

Re: [PHP] .jpg/.gif extension problem!

2001-01-30 Thread Chris Lee
$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$accd4382@hp... Hi! I hav

Re: [PHP] Php and forking

2001-01-31 Thread Chris Lee
client to email.php and that will call email_press.php wich is now running in the backgound. not at all like forking a process, but it works. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Nicklas af Ekenstam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

[PHP] Zend Optimizer not working with @

2001-01-31 Thread Chris Lee
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/) To unsu

Re: [PHP] Pricing for PHP programming???

2001-01-31 Thread Chris Lee
easier and faster, you may want to charge the same amount, or more because the work is done quicker, or less because its easier for you now. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Shane McBride"" <[EMAIL PROTECTED]> wrote in message 001a01c08bc3$f61aa9

Re: [PHP] Exit Function

2001-01-31 Thread Chris Lee
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$eecbc34

Re: [PHP] Cant get this one

2001-02-01 Thread Chris Lee
works and alot simpler -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Mike"" <[EMAIL PROTECTED]> wrote in message 95c33h$5a3$[EMAIL PROTECTED]">news:95c33h$5a3$[EMAIL PROTECTED]... > Im trying to create an edit page for database records

Re: [PHP] Setting The Font In SENDMAIL

2001-02-01 Thread Chris Lee
You mean, 'how do I send an HTML email' right? I dont see how you can set a font unless its HTML or RichText. hello? \n"; mail($email_address, $email_subject, $email_body, $email_header); ?> This should work... -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED]

Re: [PHP] Suggest for List

2001-02-01 Thread Chris Lee
. 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 > message

Re: [PHP] Suggest for List

2001-02-01 Thread Chris Lee
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

Re: [PHP] XML Parsing with PHP

2001-02-05 Thread Chris Lee
nothin plus broken code. He doesn explain what even one of his four functions are for. completely confused. I hate to ramble, but phpbuilder is a terrible site that ruins php for many newbies. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Joe Stump" <[EMAIL PROTECTED]>

Re: [PHP] Odd question regarding creating a php file

2001-02-06 Thread Chris Lee
to get around sending variables through POST/GET/COOKIES ? I would highly recommed sessions if this is your idea. Speed and Easy of use will be greatly increased. Please respond back with your answer, Im curious. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Dusten""

[PHP] XSLT problems....

2001-02-06 Thread Chris Lee
ase help if you could. -- Chris Lee Mediawaveonline.com [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]

Re: [PHP] Sessions and SSL

2001-02-07 Thread Chris Lee
erver, this will work. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Jeffrey A Schoolcraft" <[EMAIL PROTECTED]> wrote in message 20010207203105.I16742@chimera">news:20010207203105.I16742@chimera... > I'm wondering if it's possible to somehow transf

Re: [PHP] Passing arrays as arguments to a method

2001-02-08 Thread Chris Lee
arr[] = 'mediawaveonline.com '; $test = new test($arr); ?> there's nothing to it. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "rodrigo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it possible t

Re: [PHP] UserAUTH from webform

2001-02-08 Thread Chris Lee
www.mediawaveonline.com the browser will send the username / passwd to that page, any page on that domainname. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""FredrikAT"" <[EMAIL PROTECTED]> wrote in message 95u24u$t92$[EMAIL PROTECTED]">news:95u24u$t92$[EMAIL PROTE

Re: [PHP] splitting a class across separate files?

2001-02-08 Thread Chris Lee
Its called inheritance. rarley.php main_class.php -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Monte Ohrt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a class with many functions. About 80% of these func

Re: [PHP] gif support

2001-02-08 Thread Chris Lee
mmend this older version of gd, - its old - its using illegal file formats, opening the door for you to be liable. stick to png or jpeg. its your only option if you want to be legal. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Pablo Martin De Natale" <[EMAIL PROTECTED

[PHP] XSLT

2001-02-08 Thread Chris Lee
sablotron seems to be converting to is this normal? its not valid XHTML. index.xsl -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] PHP auth... a little help :)

2001-02-08 Thread Chris Lee
'$SERVER_NAME' "); Header("HTTP/1.0 401 Unauthorized"); bad_passwd(); } ?> -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Brandon Orther"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

Re: [PHP] To The Hacker: CodeBoy

2001-02-08 Thread Chris Lee
ittle higher then username : [blank] password: [blank] you leave your keys in a running auto and the doors unlocked, try talking to an insurance agency... they wont cover you... -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Jonathan Sharp"" <[EMAIL PROTECT

Re: [PHP] fopen warning error message

2001-02-08 Thread Chris Lee
@ sign is your friend. if ($file = @fopen('...', 'r')) { } else { } -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Ade Smith"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > &

Re: [PHP] converting a date to a string format

2001-02-13 Thread Chris Lee
$date = getdate(); $date['mday'] -= 14; $date = getdate(mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year'])); echo $date['year']; echo $date['mon&#x

Re: [PHP] Using a variable in a variable

2001-02-13 Thread Chris Lee
your better using arrays if you can though. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Brandon Orther"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &g

Re: [PHP] parse speed vs require speed

2001-02-13 Thread Chris Lee
istributed is minimal. Everything comes down to cost, the little it would cost to add more ram/cpu to compinsate for this *minor* overhead would be 100x cheaper then extra time spent in development due to huge files being confusing... -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 25

Re: [PHP] php and xml

2001-02-13 Thread Chris Lee
testing testing"); ?> works for me on my linux box. have you checked your permisions ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Jan Grafström"" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] Would Like to know

2001-02-13 Thread Chris Lee
-- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Barry Fawthrop"" <[EMAIL PROTECTED]> wrote in message 00ad01c095fc$d6865940$[EMAIL PROTECTED]">news:00ad01c095fc$d6865940$[EMAIL PROTECTED]... Can

Re: [PHP] Going backwards with sessions.

2001-02-13 Thread Chris Lee
mine is alot simpler and works fine, try this. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Doug Budny" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'

Re: [PHP] Going backwards with sessions.

2001-02-13 Thread Chris Lee
I dont have to call session_register() on every page, should have to, just call session_start() thats it. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Michael McGlothlin" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] $PHP_SELF in Netscape PART 2

2001-02-14 Thread Chris Lee
dont use ' , ' use ' . ' echo 'hello'; -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""John Vanderbeck"" <[EMAIL PROTECTED]> wrote in message 005601c09696$08331480$[EMAIL

Re: [PHP] need better solution

2001-02-14 Thread Chris Lee
() . ':' . mysql_error() . "\n"; echo "Query: $query\n"; exit(); } } I havent played with a more automatic metod, ie. error_reporting(); -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "

Re: [PHP] HTTP Authentication not getting unset

2001-02-14 Thread Chris Lee
his would prevent anyone from viewing cached pages more then 30min old and force them to re-login -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Toby Miller"" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] XML parsing without the PHP4 XML functions

2001-02-14 Thread Chris Lee
modules dynamically on runtime http://php.net/manual/en/function.dl.php Ive never needed it / used it. sorry :( -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Stefen Lars"" <[EMAIL PROTECTED]> wrote i

Re: [PHP] Is this "typecast" safe?

2001-02-14 Thread Chris Lee
Try it, it should be no problem. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""John Vanderbeck"" <[EMAIL PROTECTED]> wrote in message 011a01c096a7$f8e78080$[EMAIL PROTECTED]">news:011a

Re: [PHP] require('asdf')

2001-02-14 Thread Chris Lee
is this what you want ? somefile.php -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Brandon Orther"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &

Re: [PHP] PDF Functions

2001-02-14 Thread Chris Lee
h-ttf \ --with-t1lib\ --with-gd \ --with-pdflib \ if your configure isnt finding pdflib it wont fail, it just wont include pdf support -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554

Re: [PHP] Debugger, Debugger and Debugger

2001-02-15 Thread Chris Lee
quallity. http://zend.com/store/products/ide-test-drive.php -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Ricardo D'Aguiar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Re: [PHP] PHP and cookies and/or headers

2001-02-15 Thread Chris Lee
it a shot, im sure this will work for you. if not please give me an email, I will help you. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Jeremy Gillies" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

Re: [PHP] ob_gzhandler and shtml files

2001-02-15 Thread Chris Lee
decompress it. maybe its not really being *garbled* maybe the browser just doesnt know that its supposed to accept and de-compress ssl pages. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Maciek Uhlig"" <[EMA

Re: [PHP] PHP compiler

2001-02-16 Thread Chris Lee
Zend Technologies has an encoder, might be what your looking for, might not. why do you want to compile your code, you havent mentioned ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "dmalcolm" <[EMAIL PROTECT

Re: [PHP] cache problem

2001-02-16 Thread Chris Lee
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); -- Chris Lee Mediawaveonline.c

Re: [PHP] Delete from cart

2001-02-16 Thread Chris Lee
ry spec on what software your using. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > It is Friday af

Re: [PHP] shopping cart classes

2001-02-16 Thread Chris Lee
I found the same as you, I wrote some classes of my own. have you done much with postgres ? Ive used mySQL alot here and am not happy with the stability, postgres (beta) seems to be faster but havent used it in products so cant comment on stability. Im curious. -- Chris Lee

Re: [PHP] Delete from cart

2001-02-16 Thread Chris Lee
#x27;])) { $cart = new cart(); session_register('cart'); } ?> -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &g

Re: [PHP] Can PHP execute a refresh to a new page?

2001-02-16 Thread Chris Lee
HTTP can also tell a broswer to 'refresh' http://$SERVER_NAME$PHP_SELF"); ?> -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Kenneth R Zink II"" <[EMAIL PROTECTED]> wrote in message 0

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread Chris Lee
. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""John Vanderbeck"" <[EMAIL PROTECTED]> wrote in message 002601c098f9$797715a0$[EMAIL PROTECTED]">news:002601c098f9$797715a0$[EMAIL PROTECTED]...

Re: [PHP] Newbie password-check program

2001-02-20 Thread Chris Lee
= $peop_r['peopleID']; else { Header("WWW-Authenticate: Basic realm='$SERVER_NAME' "); Header("HTTP/1.0 401 Unauthorized"); bad_passwd(); } ?> where cookie.egn sets SessionID as a session var. and database.egn contiains mysql wrapers (fetch_db_value).

Re: [PHP] GD with Jpeg Support Problems

2001-02-20 Thread Chris Lee
your --with-jpeg-dir=/usr/local -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Michael Bryan"" <[EMAIL PROTECTED]> wrote in message 004001c09af6$ded35cc0$f45efea9@default">news:004001c09af6$ded35

Re: [PHP] checkboxes & sessions

2001-02-20 Thread Chris Lee
is it ok to just check the ckecboxs and hit submit? thats what most sites do? thats real easy todo. follow up if you want some code examples. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""kaab kaoutar"&quo

Re: [PHP] Adding a string and a numeric

2001-02-20 Thread Chris Lee
-- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Don" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know this is most assuredly in the manual and I have loo

Re: [PHP] Newbie: [PHP] $HTTP_POST_VARS

2001-02-20 Thread Chris Lee
I dont think HTTP_POST_VARS is what your looking for I think its more HTTP_SERVER_VARS -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Phil Labonte"" <[EMAIL PROTECTED]> wrote in message 331AB909C797

Re: [PHP] Uploading files

2001-02-20 Thread Chris Lee
7;, '$db_file_name', '$db_file_type' "); } echo " "; ?> something like this is real simple and works. might not be what your looking for but could be easily modified. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.269

Re: [PHP] Navigation

2001-02-20 Thread Chris Lee
; Next "; echo " "; ?> simple, no complicated code here :) KISS. this can be easily modified to handle one at a time, change HOW_MANY = 1; -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Chris&qu

<    1   2   3   4