RE: [PHP] Tracking Users via Cookies? IDEA
Quoting Joe Harman <[EMAIL PROTECTED]>: > What if you could read a browser's history file... There has to be a way > to do this with something like javascript... Just an idea... > > Joe > That would be a major privacy loophole if it were allowed.. -- Adam Alkins http://www.rasadam.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unzipping Files
Try the zziplib library, http://www.php.net/manual/en/ref.zip.php -- Adam Alkins http://www.rasadam.com Quoting Matt Palermo <[EMAIL PROTECTED]>: > Anyone know where I can find tutorials or examples on how to use the > gunzip, gzip, and other commands using PHP to work with compressed > files? I would really appreciate it if someone could send me some links > or examples of how to use them. My goal would be to be able to extract > .zip, .gz, and other types of compressed files using a PHP script. Let > me know if you can help. > > Thanks, > > Matt > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sum a column of values from a MySQL query
Quoting "Ben C." <[EMAIL PROTECTED]>: > I am trying to sum a query of values from a MySQL table. The code I am > using is: > > ---BEGIN CODE #1-- > $sql_2 = "SELECT SUM(partpaidamount) as partpaid > FROM $tb_name > WHERE invoiceid = \"$invoiceid\" > "; > > $result_2 = @mysql_query($sql_2,$connection) or die(mysql_error()); > > while ($row = mysql_fetch_array($result_2)) { > $invoicepartpaid = $row['partpaid']; > } > ---END CODE #2 > > 1) The code returns the sum of a partially paid invoice. The individual > invoice is 'partpaid'. WORKS...NO PROBLEM > 2) The while() then return a list of partially paid invoices which is > $invoicepartpaid. WORKS..NO PROBLEM > 3) I then want to add the list of partially paid invoices ($invoicepartpaid) > together. I AM STUCK HERE ADDING THE INVOICES AMOUNTS TOGETHER. Well, instead of doing $invoicepartpaid = $row['partpaid']; you could do $invoicepartpaid += $row['partpaid']; which will just add $row['partpaid'] to $invoicepartpaid, not replace it. However, why not just SUM all the rows in the table in the query if you just want a total? $sql_2 = "SELECT SUM(partpaidamount) as partpaid FROM $tb_name"; -- Adam Alkins http://www.rasadam.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Simple regexp
Hi Folks, Seeking some guidance here. My regexp knowledge is pathetic. I want to do a simple validation of an ipv6 address. I just want to validate the entire string (not specific blocks) if it has the allowed charachters. I though ereg('[A-Fa-f0-9:]') would work, but it isn't. Anyone can help me with this? IPv6 addresses are just Hex with : characters, so I just need to validate that for the entire string. Thanks for your time. ------ Adam Alkins http://www.rasadam.com --
[PHP] Simple regexp
Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg("[a-zA-Z0-9:]",$string) working? Guidance appreciated. -- Adam Alkins http://www.rasadam.com --
Re: [PHP] T_string error
You may want to try posting it at http://www.phpbb.com/phpBB/viewforum.php?f=1 since it really is something phpBB specific. -- Cheers, Adam Alkins http://www.rasadam.com -- - Original Message - From: "Peter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 11:41 PM Subject: RE: [PHP] T_string error > wot's the few lines before it ? just because it says that line doesn't always mean it is that line ... and have found quite often it's the line above it... > > > -Original Message- > > From: admin [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 10 July 2002 1:32 PM > > To: PHP List > > Subject: [PHP] T_string error > > > > > > Can someone tell me what the following error means, > > and how to fix it...please? > > > > Parse error: > > parse error, unexpected T_STRING in > > c:\program files\apache > > group\apache\htdocs\phpbb\language\lang_english\lang_main.php > > on line 629 > > > > this is the code on that page: > > > > $lang['Avatar_filesize'] = 'The avatar image file size must be > > less than %d > > kB'; // The avatar image file size must be less than 6 kB > > > > (than 6 kB < this part of that line is on the next line down) > > > > <*** http://www.myispnet.net ***> > >Administrator > >My ISP Network > >[EMAIL PROTECTED] > > <*** http://www.myispcentral.net ***> > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I import tables into MySQL from web page ...
And also the "-p" -- Cheers, Adam Alkins http://www.rasadam.com -- - Original Message - From: "Analysis & Solutions" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 11:02 PM Subject: Re: [PHP] How do I import tables into MySQL from web page ... > On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote: > > > > $status = system("mysql -umyuserid -pmypassword mydbname < > > You need a space between "-u" and "myuserid" > > --Dan > > -- >PHP classes that make web design easier > SQL Solution | Layout Solution | Form Solution > sqlsolution.info | layoutsolution.info | formsolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPDiscuss.com
> Wow...a forum. Is that vBulletin your using? Shouldn't you be giving > them credit somewhere?? It looks like YaBB. You'd think when people are using a free BB, they'd atleast have the courtesy of dropping a small plug at the end of the page. I guess not -- Adam Alkins http://www.rasadam.com -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strong Web Hosts in Canada?
> Hi Folks: > > A client of mine has a large series of high traffic, PHP/MySQL intensive > websites. They're looking for dedicated hosting in Canada. Any > recommendations? You might have better luck getting recommendation on http://www.webhostingtalk.com -- Adam Alkins http://www.rasadam.com -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0
Any real programmer should know that almost nothing is bug free, even if you test it beyond your imagination. Something is always going to elude you and be found by someone experimenting down the road. For the widespread use of PHP, I'm rather impressed by the small amount of vunerabilities discovered in PHP so far. Some humans are just never ever satisfied... -- Adam Alkins http://www.rasadam.com -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQ: what does the & sign do
Its a Reference Operator. You can use it to reference variables to one another, like $a = &$b; meaning that anytime you change the value of $a it would change the value of $b Used for functions works in the same way. Its a way of improving the scope of a variable. Instead of passing a value to the function and working with that value only in the function, its a reference to a global function and will change the value outside the function. -Adam - Original Message - From: "Wilbert Enserink" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 8:32 AM Subject: [PHP] SQ: what does the & sign do Hi all, maybe this is a stupid Q, but lately I'm diving into OOP. Below you can see a piece of example code from the manual. my Q: what does the & sign do in functioncb_modify( &$item,$key) ?? I noticed this sign is used more, so it should be handy, but hwat does it do? thx Wilbert - class mod { var $thearray; function mod( $a ) { $this->thearray = $a; } function cb_modify( &$item, $key ) { $item = "pref_".$item; } function modify() { array_walk( $this->thearray, array( $this, 'cb_modify' ) ); } } $m = new mod(array("one","two","three")); $m->modify(); print_r($m); which prints out: mod Object ( [thearray] => Array ( [0] => pref_one [1] => pref_two [2] => pref_three ) ) - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP books
A great book I read is PHP and MySQL Web Development, authors Luke Welling and Laura Thomson. Its an excellent book to read if you are new to PHP and MySQL, and even if you have a good knowledge. I learnt a lot from it, and still am learning. :) Adam - Original Message - From: "Mikhail Avrekh" <[EMAIL PROTECTED]> To: "cyberskydive" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, April 05, 2002 5:21 PM Subject: Re: [PHP] PHP books > "Professional PHP Programming" by Castagnetto et al. (from Wrox) is pretty > good IMHO. So is "Web application development with PHP", by > Ratschiller/Gerken. These are the ones I've used for my purposes, as well > as for a PHP class that I taught a while back. > > On Fri, 5 Apr 2002, cyberskydive wrote: > > > I have 2 PHP books > > > > the first is called PHP fast & easy web development -from primatech > > > > the second is called CORE PHP PROGRAMMING by Leon Atkinson > > > > I like them both, and I was glad I read fast & easy first, i like core php > > alot, havent read the whole thing yet, been kinda referencing around it, but > > still reading the whole thing. > > > > has anyone else used these books? > > > > what are your opinions and what are some other grest books out there? > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] hosting
Go to http://www.webhostingtalk.com and do a search for them. Adam - Original Message - From: "Heidi Belal" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]>; "Egypt Developers" <[EMAIL PROTECTED]>; "Egypt Programmers" <[EMAIL PROTECTED]>; "js-jive mailing list" <[EMAIL PROTECTED]>; "Php" <[EMAIL PROTECTED]> Sent: Sunday, April 07, 2002 12:31 PM Subject: [PHP] hosting > didn't get an replies about web-x.net and i sent them > and email and they never replied - doesn't portray a > good image > so i've looked for another hosting company and have > come up with burst.net...anybody got any reviews? > Thanks, > > = > Heidi Belal > www.code-corner.com > ICQ# 32127109 > > A bus stops at a bus station. > A train stops at a train station. On my desk > I have a work station... > > __ > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax > http://taxes.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php