Re: [PHP] running exec() on client

2007-01-16 Thread tg-php
still too big, maybe look at Zip'ing it (you should be able to compress it with PHP.. forget if you need an additional library or not, but that's a viable option as well). But if you really need client side scripting and can't install Apache (or even if you can, but you're o

Re: [PHP] sms through teleflip and php?

2007-01-16 Thread tg-php
d copy and look at the headers. You can start by taking all those headers and putting them into your PHP script then slowly commenting some out until you get just what you need and not a lot of extra garbage (to keep it simple and semi-elegant). That's where I'd start at least. -T

Re: [PHP] sms through teleflip and php?

2007-01-16 Thread tg-php
Maybe phpMailer isn't sending the correct headers either. Sometimes all it takes is one missing header that a system is looking for and it may filter it as spam or something. Again, I encourage you to examine the headers from your Thunderbird "good" email and compare it to

Re: [PHP] md5

2007-01-17 Thread tg-php
A, Blowfish, etc are well known algorithms and are considered at least fairly secure too.. and are reversible. -TG = = = Original message = = = Hi, Does md5 really offer much in terms of protection? The algorithm is really well known. I would like to hear your thoughts and poosible alternative

Re: [PHP] md5

2007-01-17 Thread tg-php
the hashes back to the clear text (for example: http://md5.benramsey.com/) Of course it is nice because it is a common implementation, and can be done on the server side, as well as the client side. ___ Sent by ePrompter, the premier email not

Re: [PHP] most powerful php editor

2007-01-21 Thread tg-php
, it's kind of heavy on the system. And it's made by the people who created the core PHP engine, so they know a few things. http://www.zend.com/products/zend_studio Komodo - Similar to Zend Studio.. but much like Notepad++ and Crimson Editor.. not enough of an 'upgrade' to get

Re: [PHP] OT - Leaving

2007-01-23 Thread tg-php
Best wishes John! We'll hold the fort and keep fighting the good fight in your absence. :) Good luck to ya! -TG = = = Original message = = = Howdy ladies and gents: For the past 9 or so years, with one email account or another, I have been subscribed to the PHP General Mailing

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread tg-php
If there isn't a function to do exactly what you want, you could use dec2bin() to at least get the binary and work from there: http://us3.php.net/manual/en/function.decbin.php -TG = = = Original message = = = Is there a php function I can call to pass in a number and get the values ret

[PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-26 Thread tg-php
FROM and all that into the same line. :-) $query = "SELECT blah1, blah2, blah3, ... blah147 "; $query .= " FROM table1 "; $query .= " LEFT OUTER JOIN table2 "; $query .= "ON blah7 = blah42 "; $query .= " WHERE blah16 "; $query .= " AND blah42 "; $query .= " ORDER BY blah9, blah8 desc, blah6 "; is what I go for. The SELECT line is the only one that ever gets all that long, really... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-26 Thread tg-php
when you understand what it's doing, is just as simple to maintain as how I do it, I do find my method more 'readable'. I tend to build queries in WinSQL first, then insert them into my PHP code. Some of which are fairly complicated and I find if I keep my PHP code similar to my

Re: [PHP] OT - PHP Code Search

2007-02-01 Thread tg-php
Not too many ads on the pages after you find what you're searching for, and mostly just some "ads by google" type stuff. Speaking of Google.. you can also go here for PHP code searching.. I do all my "cod" (sic) searching there! Fresh! http://www.google.com/codesearc

[PHP] Hello list

2007-02-04 Thread PHP Fusebox
I've tried subscribing 3 times now. This is a test. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] _GET('name') truncates

2007-02-05 Thread tg-php
can have in a URL. That seems to be cutting off around 900 characters. That's a lot to put into a URL. If you're really intent on setting up a PHP powered web page to test SQL statements, I might recommend using a web form either using input type=text or textarea form elements and a

RE: [PHP] base64-encoding in cookies?

2007-02-07 Thread tg-php
Exactly what I was going to mention, Brad. Here's some more info. Quoted from PHP manual for urlencode(): "Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) si

Re: [PHP] Sorting issue

2007-02-07 Thread tg-php
I sort it like so. array_multisort($array); $count = 0; while (isset ($array[$count])) *display results in a table* $count++; Thanks, Don ___ Sent by ePrompter, the premier email notification software. Free download at h

Re: [PHP] Text Editor for Windows?

2007-02-08 Thread tg-php
r when you get a chance: http://www.crimsoneditor.com/ At some point, these guys hope to make a new version of Crimson called Emerald: http://www.emeraldeditor.com/ -TG = = = Original message = = = I am finding that notepad is lacking when correcting syntax errors in my php code. No line numb

Re: [PHP] Sorting issue

2007-02-08 Thread tg-php
separate table of positions & sort sequence values, so that all the data can be edited in one mode (e.g., phpMyAdmin). If some of your data is in MySQL and some of it's embedded in a query in a PHP script, it will be a little bit more of a hassle to maintain and a little more cry

Re: [PHP] round to nearest 500?

2007-02-12 Thread tg-php
$num = "749"; $rounded = round($num * 2, -3) / 2; echo $rounded; -TG = = = Original message = = = Is there an easy way in php to round to the nearest 500? So if I have 600, I 500 and if I have 800 I want 1000? Thanks! _

Re: [PHP] print() or echo

2007-02-13 Thread tg-php
| InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJin

Re: [PHP] print() or echo

2007-02-13 Thread tg-php
rint since it is shorter and faster :) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :----: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing syste

Re: [PHP] how do I just escape double quotes within a string?

2007-02-13 Thread tg-php
of course, throws errors: str_replace(""","\"",$code); Thanks! ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] round to nearest 500?

2007-02-13 Thread tg-php
e versa. Supposedly this is an accounting trick that ultimatley works out in the end for proper rounding of money values. Guess our PHP 4.3.4 here doesn't do that though. -TG = = = Original message = = = At 7:57 PM +0100 2/12/07, Marc Weber wrote: >On Mon, 12 Feb 2007 18:02:41 +010

RE: [PHP] round to nearest 500?

2007-02-13 Thread tg-php
orks out for who? Bet it doesn't for the guy paying :P ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] round to nearest 500?

2007-02-13 Thread tg-php
Ok, screw work.. it's snowing out anyway (not that that makes a real difference to doing PHP work inside), curiosity got the better of me. btw.. the "banker" rounding code here was pulled from the round() manual page. It's not what I read before, but it's th

Re: [PHP] round to nearest 500?

2007-02-13 Thread tg-php
ll do it. Now I'm even > more curious. > > -TG > > = = = Original message = = = > > >> Supposedly this is an accounting trick that >> ultimatley works out in the end for proper rounding of money >> values. > > Yeah works out for who? Bet it

Re: [PHP] round to nearest 500?

2007-02-13 Thread tg-php
vantage of that scheme to force rounding errors to remain permanently in the person's favor. I certainly hope that PHP continues to use the standard technique, and not the "accounting trick" above. :-) jon ___ Sent by ePrompter, th

Re: [PHP] WHERE problem

2007-02-20 Thread tg-php
would suggest using either assoc or row this way there is no confusion. Plus it doesn't take as much resources. :) -- Enjoy, Jim Lucas Different eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree. - Rush ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] WHERE problem

2007-02-20 Thread tg-php
http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting Similar rows from db

2007-02-23 Thread tg-php
I don't think there's a way to do it with SQL in MySQL. Jay's talking about a substring search within a field and what you really want is to know if two whole rows (multiple columns) within a database are similar or not. You could pull in all the data and use PHP to figure out

[PHP] DB_DataContainer

2007-03-09 Thread php trainer
Could someone explain what this does and why it's beneficial? Thanks, Ed -- if (version_compare(phpversion(), '5.0.0', 'ge')) { class DB_DataContainer_Overload { function __call($method,$args) { $retval = null; $t

[PHP] Creating an FTP account on the fly from PHP

2007-03-22 Thread PHP Fusebox
] for him to login to my web app, I want my users to be able to use their same login name and password to access their web folder via FTP. I am running on LAMP on a CPanel server with ProFTP as the FTP server software, but I have no clue how to get PHP to be able to create, edit, or delete an FTP

[PHP] Imp

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam

[PHP] Important Design Patterns

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam

[PHP] Important Design Patterns

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam

Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-28 Thread tg-php
y file. I was worried that it was flaking and was actually sending PHP source code, but it didn't. This seems to only happen if the server times out. Like maybe the server is sending the PHP script to the PHP engine and not getting a response back as fast as it would like so it's assumi

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread tg-php
__ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread tg-php
rowser security settings just to send us an email. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 _______ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tg-php
w, I'll like to test it for the sighted. > > It's mixture of a several languages, but there is php in it, so I > guess it's on topic. > > Cheers, > > tedd > > -- > --- > http://sperling.com http://ancientstones.com http://earthsto

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread tg-php
what you think (ease of use, if it works, security, etc.), I would appreciate it. The point is to be able to get to the "Congratulations" page by hearing and entering the key. If you can get there some other way or defeat the process, I sure would like to know about it. I'v

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
he image a CAPTCHA image is loaded into the 'Click > Me' container > > The main problem is how to tell the server that the div has been > clicked, in a way that can't be simulated. I am not an expect with > either JS or PHP, but maybe some of the bigger brains out th

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
script that caught quite a bit of spam once I stopped caring about it. I've been considering putting that back together and using this method just to see if the spam is cut back at all. Anyone have any experiences (good or bad) with this method? _____

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
hah.. I was going to let this discussion die a bit because a lot of it is fairly off-topic. But here and there we've hit on some PHP specific topics. I just had to say Kudos to tedd for providing a fairly interesting and possibly very functional CAPTCHA solution. True, a simple blue dot

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
it's > submitted. If you hid some "trick" fields around your page and then > checked > on submit whether or not they had a value, you could probably get a pretty > decent turing test without the user suspecting anything. > > My old thrown together blog from a few yea

Re: [PHP] mixture of GET and POST

2007-04-03 Thread tg-php
As mentioned, this isn't a PHP issue really, except a little bit on the receiving end. Why not use multiple 'submit' buttons instead of using HREF links? In PHP, you'd just check the value of $_POST['action'] You can also do it with image submit buttons, j

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread tg-php
I think you're probably doing what almost all of us have done. Get an idea, see PHP as a potential solution and decided to just dive right in. I don't think many people start out in a classroom style "Hello World" situation and build slowly onto that. I'm sure

Re: [PHP] "Sense" last record

2007-04-09 Thread tg-php
tems. -TG = = = Original message = = = - Original Message - From: "M~rio Gamito" <[EMAIL PROTECTED]> To: Sent: Monday, April 09, 2007 3:31 PM Subject: [PHP] "Sense" last record > Hi, > > I'm doing this site that has three news in the homepag

Re: [PHP] Array remove function?

2007-04-10 Thread tg-php
> > array_remove(array(1=>2,2=>3),2,true); // array (2=>3) > array_remove(array(1=>2,2=>3),2,false); // array (1=>2) > > Anyone knows if there already exists such function? > > Else should i create future request? > > Tijnema > > -- > PHP Genera

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread tg-php
In addition to the suggestions made, check out opendir() too. It may be a little simpler for what you're doing. Not sure. Remember, the beauty of PHP is that there's almost always a fuction or two already made that do what you want. Even some semi-obscure stuff. So always scan t

[PHP] OT Apologies.. Re: [PHP] Firefox and Crafting Tables

2007-04-10 Thread tg-php
the static # of pages Also, if you don't need IE Tab and TabMix, remove them. I kept TabMix but can live without IE Tab. ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP

Re: [PHP] mysql if empty

2007-04-10 Thread tg-php
Turn on MAGIC QUOTES and REGISTER GLOBALS Once you've done that, install Postgres. Run your MySQL command again, Postgres has much better error reporting and will assist in debugging the situation. You might consider replacing your javascript functions with PHP ones since JS can some

Re: [PHP] mysql if empty

2007-04-10 Thread tg-php
27;; > ~~~ > ~~ > ~ else > ~~echo 'No results found!'; > ~ > > ?> > > Does this satisfy you? > > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/ly

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread tg-php
with actual data increases memory that much? Damn.. maybe I'm just ignorant of how PHP maintains things in memory, but that seems kind of nuts too 3. Do you have to store each newsletter in memory at each loop or can you send them out then move to the next one without storing them in a

Re: [PHP] Download multiple sound files?

2007-04-12 Thread tg-php
download... but that would be slow and not terribly efficient. Another option is to use a non-PHP solution. List all the links to the files they want to download and use a download manager like Download Accelerator Plus (DAP), GetRight, umm.. some "*zilla" program I believe did it, or somet

Re: [PHP] Download multiple sound files?

2007-04-12 Thread tg-php
mail message 'bundler' so you didn't have to download emails one at a time via archaic POP3 too..hah Back to the OT and OP... doing this with PHP would take a little cleverness and probably isn't worth it. But might be a fun challenge and is certainly possible with enough elb

Re: [PHP] CSS vs. Tables OT OT OT OT OT OT OT OT OT OT

2007-04-18 Thread tg-php
jinn.com | :--------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also p

RE: [PHP] PHP excel capability

2007-04-18 Thread tg-php
Excel (assuming they have it installed). This works for a real quick and dirty export-to-excel type thing. Then PHP isn't really creating an Excel file, but presenting the data in a format that Excel on the client PC can read. Or you can use COM as Jay recommended, but that requires Excel to be

[PHP] Change displayed file name to download

2010-03-14 Thread Php Developer
Hi, I'm using the following code: $fp = fopen($filename, 'r+'); $content = fread($fp, filesize($filename)); fclose($fp); header("Content-type: application/msword"); header("Content-Disposition: attachment; filename=$filename"); echo $content; exit; ___

[PHP] array or list of objects of different types

2010-04-02 Thread Php Developer
Hi all, I want to be able to have an array of elements of different types. As an example: the first element is a boolean, the second is an integer, and the thirs is a string. In php there is no typing, i'm just wondering if there is a way to have that, it would be a lot better than havi

[PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
http://ca.promos.yahoo.com/jacko/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi Tommy, The code in the link is traightforward. The problem is you need to install ADOdb. I'm wondering if there is a way to do it from scratch. Thanks - Original Message From: Tommy Pham To: Php Developer ; php-general@lists.php.net Sent: Tue, April 20, 2010 11:37:21 AM Su

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi, somebody knows if it is possible to open excel content in a new window? what i want is basically initialize the headers and instead of echo $content i want it to open in a new window. is that possible? - Original Message From: Tommy Pham To: Php Developer ; php-general

[PHP] Email with attachment

2010-05-15 Thread Php Developer
;.$eol; $headers .= 'Return-Path: cont...@example.com'.$eol; // these two to set reply address $headers .= "Message-ID: <".time()." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol; $headers .= "X-Mailer: PHP v".phpversion().$eol;

[PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread php colos
Hello world! I'm trying to learn PHP ( first programming language that I learn) and I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), 'getting good with PHP' by Andrew Burgees and some tutorials on the internet but can't code something more comp

Re: [PHP] PHP vs JAVA

2013-08-20 Thread PHP List
On 8/20/2013 10:00 AM, Tedd Sperling wrote: > Hi guys: > > A teacher at my college made the statement that JAVA for Web Development is > more popular than PHP. > > Where can I go to prove this right or wrong -- and/or -- what references do > any of you have to support your a

[PHP] Bug #51739 tricky string to float conversion

2011-08-31 Thread magic-php
treated as base and "e839da08e2a7afe6dd12ec58245d" is treated as an exponent. My hint that "e839da08e2a7afe6dd12ec58245d" is not a valid exponent was not answered. What do you think about? cheers Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Bug #51739 tricky string to float conversion

2011-09-01 Thread magic-php
) before the truncation at > the "d", then it returns INF. Makes perfect sense. This is what drives me crazy. If I use a string in PHP I don't want PHP to cut this string. Either it uses this string as it is or it gives me an error/warning/false (what ever...). But silently(

Re: [PHP] Bug #51739 tricky string to float conversion

2011-09-01 Thread magic-php
The cast to float is truncating the invalid characters and since your string contains a float that is INF (8315e839) before the truncation at the "d", then it returns INF. Makes perfect sense. If I use a string in PHP I don't want PHP to cut this string. Either it uses this strin

[PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-02-27 Thread php-list
Hi, I have a MySQL server A, a server B with PHP 5.3.8 and a server C with PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C using an internal network. Server B and C use the same PHP application. There are also same PHP scripts that get data from the database and

Re: [PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-03-05 Thread php-list
> > I have a MySQL server A, a server B with PHP 5.3.8 and a server C with > > PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C > > using an internal network. Server B and C use the same PHP application. > > There are also same PHP scripts that g

[PHP] ENOUGH!! RE: AW: [PHP] Student Suspended Over PHP use.

2005-02-10 Thread tg-php
This thread, as relates to PHP, is pointless. If people have issues with what someone else said, please take it up with them privately and/or notify the list admins if you think it was inappropriate enough to warrant administrative action. The joke was cute but all in all, not that funny. It

Re: [PHP] Uploading products in database using zip file?

2005-02-14 Thread tg-php
need 'unzip' on the server to un-zip it. "man unzip" should find it for you. -- Like Music? http://l-i-e.com/artists.htm ___ Sent by ePrompter, the premier email notification software. Free download at http://www.eProm

Re: [PHP] Windows COM programming.

2005-02-21 Thread tg-php
I might be able to provide a little insight, but all my code that I've done COM work with is at home so I can't send you any samples right this second. I've used PHP and COM to interface with Excel, Outlook and MapPoint. I'm not terribly familiar with using Objects with

RE: [PHP] On Topic - Theoretical Concents of Anti-password trading/sharing solutions

2005-03-01 Thread tg-php
I agree with Mikey on the "live and let live" side of things. This forum is about sharing technical knowlege and helping other users overcome technical challenges relating to PHP. Yeah, a site that's "adult oriented" is most likely a pay site. Doesn't mean they

Re: [PHP] line feed

2005-03-04 Thread tg-php
echo "\n"; single quotes: echo ''; cheers Bruno Santos ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database engine in PHP

2005-03-04 Thread tg-php
implemented in php. That is a database engine written in PHP. I know this is not the most effecient way, but I'm not planning to use it for heavy weight database-driven-application. I just want a way to store simple data and I thought that SQL would be a nice interface. Since it could be eas

[PHP] ezmlm "bounced email" warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread tg-php
EMAIL PROTECTED] Sent: 08 March 2005 19:58 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Kevin; PHP General Mail List Subject: RE: [PHP] suspicious - maybe spam Richard Lynch <mailto:[EMAIL PROTECTED]> on Tuesday, March 08, 2005 9:54 AM said: > Don't feel too bad. > > Every

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread tg-php
my GET and POST requests in a htmlentities() function should keep me saferight? or what else should i/can i do? eg: $page= htmlentities($_GET[page]); Thanks, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.3 - Release Da

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread tg-php
ope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- No virus found in this outgoing

[PHP] phpDocumentor usage (specifically changelog capability?)

2005-03-28 Thread tg-php
pter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Best Server OS

2005-03-28 Thread tg-php
I will! Ok, not completely. I'm an avid windows user, but not a blind Gates disciple.. please don't accuse me of that. I will never say that a Windows server is the 'best' platform for doing PHP script serving because I don't believe that's the case. It DOE

Re: [PHP] rawurldecode

2005-03-28 Thread tg-php
hrough the url. The PHP manual doesnt say much for this function, but it does have quite a bit on the urldecode() function which says using urldecode on a $_GET variable wont produce the desired results. Is there another way to decode a url variable? Or maybe a better way to get a variable fr

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread tg-php
Made one myself that I thought was pretty good at the time (one of my first PHP projects) but as I learned more about PHP, I see that I did things the hard way, so it's in bad need of updating. If you wanted the source to play with as a starting point, I could probably through that tog

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread tg-php
other line. I use this line when looping and determining if the background should be colored or not: Obviously, the first part is the important part. Good luck! ~Philip ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Post shorter code

2005-04-21 Thread tg-php
Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR Packages

2005-04-21 Thread tg-php
pear.org/ in your browser and save the output to a local file go-pear.php. You can then run php go-pear.php ## (http://pear.php.net/manual/en/installation.getting.php) (Go to that address, copy the text you get into a file called "go-pear.php" then run "php go-pea

Re: [PHP] PEAR Packages

2005-04-21 Thread tg-php
For us, the unix instructions worked 100% on Windows as well. Guess since it's all PHP based it didn't make a difference. Probably some minor internal tweaks and checks due to filesystem differences, but the PEAR guys did a great job in making it all very easy. Now for us lazy Wi

Re: [PHP] Re: reverse MD5 ???

2005-04-21 Thread tg-php
Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MSSqlServer table/field information

2005-04-23 Thread tg-php
sobjects good luck! -TG = = = Original message = = = Is there a way to programatically get information about a specific table and/or field? And also any constraints that a field has? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Editing PDF

2005-05-10 Thread tg-php
riginal message = = = Sam Smith wrote: > I have an existing PDF file that I want to add text to or make changes to > text with data from an HTML form via PHP. > > The PDF looks like this: > 20 0 obj<>stream > 8;X-DgMYb:(An746bc%oU,Mo*S -$2%Ipq]A > aoW>]"SN?epNo... >

Re: [PHP] MySql injections....

2005-05-11 Thread tg-php
Don't forget your native database escaping function. PHP has this one for MySQL, for example: mysql_real_escape_string() That should properly escape everything that could be used against MySQL to perform an injection. There should be some equivalent commend in the various database conne

Re: [PHP] str_replace on words?

2005-05-11 Thread tg-php
not work the way I want, because if I want to > replace the word "in" all passages containing the characters "in" are > replaced. For example Singapore. > > Does anybody know how to do this on just words? > > Thank you for any hint, > > Merlin &

Re: [PHP] marking words bold

2005-05-11 Thread tg-php
uot;, " $word ", $text); That should prevent the problem your having and ensure only individual words are bolded. http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: Merlin <[EMAIL PR

Re: [PHP] Re: SQL Date guru in the house?

2005-05-11 Thread tg-php
g you can use the date values directly to delimit the range that you want SELECT * FROM blah WHERE mm BETWEEN '11/04/2005' AND '11/05/2005' -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Revie

Re: [PHP] expand array into function arguments?

2005-05-11 Thread tg-php
There's probably some clever answer to this like "Just do myFunc($myList) and it'll automatically parse out the arguments".. because PHP does clever things like that sometimes. But if anything, you can do something like this: $myList = array(1, "arg", 5); myF

Re: [PHP] WINBINDER! WOOT! Re: PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread tg-php
t's a native Windows API wrapper for PHP.. so you have access to all the familiar Windows. http://www.hypervisual.com/winbinder/index.php = = = Original message = = = [pardon me for my poor english] What you want to do? If you just want to be a desktop applications programmer, i dont thi

Re: [PHP] Basic PHP/HTML code question

2005-05-18 Thread tg-php
Since PHP is server-side, it's probably not the best option for doing what you're describing. It IS possible to use a javascript "onchange" event and use that to trigger a new page load which would change your second select box, but that's kind of slow and sloppy an

[PHP] Freelance PHP Bids

2004-04-19 Thread php-list
freelance programmers and clients come together and bid on projects with different levels of experiences and prices, but I don't remember where that is now. Can anyone direct me to a website such as that? Any help would be appreciated. Thank you. Navid -- PHP General Mailing List (http://w

[PHP] GD2 (bundled) imagerotate

2004-04-22 Thread php chucker
Going crazy! I'm using the imagerotate function against a PNG with transparency, to overlay another image via imagecopy. The problem is the transparent area is showing as black. If I don't use imagerotate and just stick with the imagecopy, the area is transparent. Why am I losing my transpar

RE: [PHP] Re: Graphical calendar

2004-05-08 Thread php-list
2:59 PM To: Manuel Lemos Cc: [EMAIL PROTECTED] Subject: [PHP] Re: Graphical calendar Works like a champ! Question: has anyone extended the class so that when one clicks on a day, the year, month, day is returned? Todd Manuel Lemos wrote: > Hello, > > On 05/07/2004 11:36 PM, Todd Cary

[PHP] Maintaining State Remotely

2004-04-29 Thread php chucker
d to login. I thought perhaps it might be cookies, so I tried setting the cookies to the values previously set on the first attempt, but no luck. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >