Re: [PHP] checking multiple URL parameters

2004-09-16 Thread Greg Donald
['x'] = 1; $_POST['x'] = 1; print_r($_GET); print_r($_POST); ? Array ( ) Array ( ) Array ( [x] = 1 ) Array ( [x] = 1 ) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I have a PHP-CLI script which uses stdin open another PHP-CLI that uses stdin.....

2004-09-16 Thread Greg Donald
echo I am third.php\n; ? ./first.php I am first.php I am second.php I am third.php -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Novice PHP Variable/Link Question

2004-09-16 Thread Greg Donald
echo $url;?/a -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IIS 4 vulnerabilities

2004-09-15 Thread Greg Donald
that I find the Windows OS a very risky venture, especially when it comes to server applications. Microsoft has proven time and time again they are fairly incapable of being secure. That may change in the future but this is now. -- Greg Donald http://gdconsultants.com/ http://destiney.com

Re: [PHP] security issus

2004-09-15 Thread Greg Donald
anyone experienced this before? Did I just misconfigure something? This may be of some help: http://httpd.apache.org/docs/mod/mod_dir.html -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Checking file_exists()

2004-09-15 Thread Greg Donald
= mysql_connect(localhost,usr,pwd); mysql_select_db(imsafm,$db); $date = date(m-d-Y, D, H:i); $trauma = 'imsafm/$PHP_login/$img1_name'; Variables inside single quotes don't get evaluated. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] jpgraph newbie

2004-09-15 Thread Greg Donald
, they will be displayed but this just doesn't seem to do anything. Are you supplying it with fonts? The last time I installed JPGraph it required Arial and Arial Bold at least. Does your PHP install support the GD library? -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Greg Donald
luck. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replace accents

2004-09-14 Thread Greg Donald
On Tue, 14 Sep 2004 17:51:00 +0200, Diana Castillo [EMAIL PROTECTED] wrote: Anyone know of any function to replace letters with accents with just the regular letter, for instance replace á with a, ç with c, ñ with n ? str_replace(), eregi_replace() -- Greg Donald http://destiney.com

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Greg Donald
. If it doesn't then post some error messages and code for what's being tried and failing. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OK ... WHY does this work ?????

2004-09-14 Thread Greg Donald
isn't specified. But is this actually correct Or is there something going on that I don't know about ??? Yes, that is what's happening, a simple test shows this: #!/usr/bin/php ?php $a = array(1, 2, 3); print_r($a); ? output: Array ( [0] = 1 [1] = 2 [2] = 3 ) -- Greg Donald

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
post data with GET method. And then I can't get correctly posted data in my PHP script. How to unescape data with PHP? Can someone help me ? stripslashes() perhaps? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] multi dimension array

2004-09-13 Thread Greg Donald
field. SELECT * FROM dealer LEFT JOIN orders ON dealer.dealerid = order.dealerid WHERE order.status = '10' GROUP BY dealer.dealerid or something like that. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
-byte string functions: http://www.php.net/manual/en/ref.mbstring.php -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multi dimension array

2004-09-13 Thread Greg Donald
. -- Contact. $name $surname at $email or $contactday Order #: $orderid -- EOF; -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] dynamical class variable definition

2004-09-13 Thread Greg Donald
]; } } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
with str_replace() ? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamical class variable definition

2004-09-13 Thread Greg Donald
may want to prefix your key names with some text however. :) -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread Greg Donald
, :) Or InStr(filename, ) Or InStr(filename, ')) Then messages = Bad filename filename = WhichAction = 0 End If I'd use a regular expression so as to match all those symbols with one command. Check out eregi() or maybe strstr(). -- Greg Donald http://destiney.com/ -- PHP General Mailing

Re: [PHP] Problem creating a date before 1970 on Fedora

2004-09-13 Thread Greg Donald
never used Fedora but it's probably the same issue all over again. I know this isn't the answer you were hoping for, but I wanted to share my experience. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php.net code samples grey boxes

2004-09-13 Thread Greg Donald
a couple months back looks fine but the live site seems broken. TIA.. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: whois with php

2004-09-13 Thread Greg Donald
suggest searching freshmeat.net for php whois. Chances are others have already invented a good wheel we can use. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: MSSQL, PHP and Linux

2004-09-13 Thread Greg Donald
-tech enthusiasts using Linux in non-critical computing environments. Sorry, I don't mean to offend.. but I see no reason to help report and fix RedHat bugs for free when they no longer offer us a free public distro that isn't bleeding edge new and broken out of the starting gate. -- Greg Donald

Re: [PHP] php.net code samples grey boxes

2004-09-13 Thread Greg Donald
again. Thanks to all you guys for checking. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] usage stats

2004-09-13 Thread Greg Donald
. :) Check out netcraft.com, they seem to be the defacto standard for stuff like this. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [Newbie Guide] For the benefit of new members

2004-09-11 Thread Greg Donald
; and will see the problem immediately. So save yourself a lot of time and get a colorful editor like vim or editplus or something.. :) -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array inside Class

2004-09-10 Thread Greg Donald
, unexpected '(', expecting ',' or ';' in /srv/www/htdocs/stundenplan/stpoo.php on line 4 Did you try var $input2 = array_pad($this-input, 10, 1); -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP modules

2004-09-10 Thread Greg Donald
on building custom functions and calls into PHP it would be helpful. Did you try Google'ng for 'extending PHP'. I found lots of stuff just now. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advanced Query Wizard

2004-09-10 Thread Greg Donald
all the time. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OO Docs for SQLite extension

2004-09-10 Thread Greg Donald
-- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multi dimension array

2004-09-10 Thread Greg Donald
your tables look like? Where's the code you've written already if any? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 OOP

2004-09-10 Thread Greg Donald
of useless chatter in between the information you really want. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stdin buffering

2004-09-09 Thread Greg Donald
however. http://www.php.net/ncurses_getch -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stdin buffering

2004-09-09 Thread Greg Donald
On Thu, 2004-09-09 at 15:25, Jim Grill wrote: exec(stty -icanon min 0 time 0); Nice. I suspect 'phpSnake' will appear on freshmeat in a couple days. :) -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data grids...

2004-09-08 Thread Greg Donald
On Wed, 2004-09-08 at 13:15, blackwater dev wrote: Does anyone have a nice clean way to provide data grids with php short of simply creating a bunch of input boxes or using flash? What is a 'data grid' ? -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] What's faster? MySQL Queries or PHP Loops?

2004-09-08 Thread Greg Donald
MyISAM tables? Maybe I need to do some more research into table types? Yes, more research. Maybe you're confusing relational with transactional. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Users of RDBMS

2004-09-08 Thread Greg Donald
On Wed, 2004-09-08 at 14:01, Pahlevanzadeh Mohsen wrote: Dears, I need to create user for MySQL. Please guide me.. http://dev.mysql.com/doc/mysql/en/Adding_users.html -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Users of RDBMS

2004-09-08 Thread Greg Donald
. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Greg Donald
had to work on a client machine running some kind of windows ftp server a few months ago, and I had very similar issues. Random unexplainable breakages when downloading lots of files. I know this doesn't help your current issue, but I thought I would share my experience. -- Greg Donald -- PHP

Re: [PHP] mail() from addess problems

2004-09-07 Thread Greg Donald
. Add a From: header in the optional last field of your mail() call. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Instant private messenger

2004-09-06 Thread Greg Donald
it in and stuff. I haven't ever seen any private messenger tutorials though, probably a little too specific, I dunno.. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Greg Donald
On Fri, 2004-09-03 at 12:46, BOOT wrote: Does anyone have a script that can be used to call linux's locate command and display the results in a browser? ?php echo `locate locate`; ? -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Sessions and Logins

2004-09-03 Thread Greg Donald
is opened with, and starting a new session? session_destroy(); -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: register global off

2004-09-01 Thread Greg Donald
, you might want to check with your web host that .htaccess is an allowed override filename and that they allow overrides, it looks like it is from you described. Long story short, you appear to be all set. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: register global off

2004-09-01 Thread Greg Donald
, the former is the newer array name and I imagine at some point $HTTP_POST_VARS will go away. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Greg Donald
the 'www.' then substr($_SERVER['HTTP_HOST'], 4) would return 'main.com', is there a better function to use in this instance? str_replace() You can replace the www. with an empty string. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Greg Donald
objects for each. Then populate the select fields based on the previous select field's selection. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Greg Donald
would not reload. In addition, a single select costs less than multiple selects with where clauses. Good luck.. however you decide to code it. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Browser back button

2004-08-27 Thread Greg Donald
. 3) Use a header() call to send the user to a totally new page after the POST. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re:[PHP] imap_search and results

2004-08-26 Thread Greg Donald
$count; $i++){ } -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-26 Thread Greg Donald
even tried copying a known-good php.ini from another server and the same behavior exists. I am running IIS in Windows 2000. Any ideas? Is your error_reporting turned up too high for the quality of the code? http://www.php.net/error_reporting -- Greg Donald -- PHP General Mailing List (http

Re: [PHP] US / Canada Zip Codes List

2004-08-26 Thread Greg Donald
but the US post office releases a new zip code database every year. It's a little flat file you can stick in a database to query against. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Caching Database Information

2004-08-25 Thread Greg Donald
systems. There are also PHP caching tools like TurkeMM Cache and Zend that cache byte code only. I'd bench it both ways and then decide based on the queries, the development environment, and the cache timeout limitations/requirements. -- Greg Donald -- PHP General Mailing List (http://www.php.net

Re: [PHP] mail functions help

2004-08-25 Thread Greg Donald
try it. ?php if(mail(...)) echo 'yay!'; else echo 'boo!'; ? If it doesn't work then your mail setup is not working. Setting up an SMTP server has nothing to do with PHP. Google will probably help you if that's your issue. -- Greg Donald -- PHP General Mailing List (http://www.php.net

RE: [PHP] crypt()

2004-08-25 Thread Greg Donald
. On php.net manual I can find WHAT I have to do and reasons but not HOW. Make an .htaccess file: php_flag register_globals off -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Caching Database Information

2004-08-25 Thread Greg Donald
of the original question. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image Width Error

2004-08-24 Thread Greg Donald
support for the PHP image related functions. Try loading the gd extension in your php.ini. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] readfile()

2004-08-23 Thread Greg Donald
a chroot'd web setup perhaps? Or maybe your provider has some security you don't know about? There are some file related functions you can debug with, like is_readable(), and file_exists(). -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] readfile()

2004-08-23 Thread Greg Donald
specific PHP functions disabled. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting the size of a mysql table using php

2004-08-14 Thread Greg Donald
'table_name'; size = Data_length + Index_length -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] good book on PEAR

2004-08-03 Thread Greg Donald
On Tue, 3 Aug 2004 10:39:42 -0500 (EST), Amanda Hemmerich [EMAIL PROTECTED] wrote: I need a solid foundation on using PEAR. ANy books or websites you would recommend? You might try http://pear.php.net/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Google question

2004-07-14 Thread Greg Donald
://www.google.com/apis/index.html -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google question

2004-07-14 Thread Greg Donald
the file README.txt to get started. on: http://www.google.com/apis/download.html Plus you can search the web for free sample PHP scripts people made for use with the Google API. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Online Users

2004-07-02 Thread Greg Donald
by calling sessionGarbageCollection(). That will make the username listings more realtime. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Handling Code Continuation

2004-06-25 Thread Greg Donald
,$value) { return input type=\$type\ size=\$size\ value=\$value\ name=\$name\; } function input($type,$size,$name,$value) { return EOF input type=$type size=$size value=$value name=$name EOF; } -- Greg Donald http://destiney.com/ -- PHP General Mailing

Re: [PHP] OT? Getting peer reviews for an entire application

2004-06-23 Thread Greg Donald
people that are willing to give general reviews of code? Release it on Freshmeat.net. The reviews (and bug reports) will arrive shortly. You can also do all sorts of developer networking on Sourceforge.net. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] printing out messages while processing a file

2004-06-23 Thread Greg Donald
\n); Why would you want to print br tags in a console? The console isn't HTML aware. You probably just want \r\n as line delimiters. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to add carriage returns??

2004-06-22 Thread Greg Donald
On Wed, 23 Jun 2004 00:47:23 -0500, Brent Clements [EMAIL PROTECTED] wrote: How do I add linefeeds every few words? php.net/wordwrap -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include question

2004-06-21 Thread Greg Donald
the problem. Probably a typo or mispelled function name. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include_path problem in executing program from root folder

2004-06-21 Thread Greg Donald
be the problem with executing the program from the /www folder? Make the include call to db_mysql.inc a full path. Cron isn't aware of much at all as far as system paths. ../ won't work obviously. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Sorting a large text string alphabetically

2004-06-21 Thread Greg Donald
overwritten. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: is there any application ,

2004-06-20 Thread Greg Donald
was distributed with that. People seem to be doing all sorts of things with PHP lately. I've made a couple little php-gtk apps, it's pretty simple and the run really fast too. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Mysql fetch_row()

2004-06-20 Thread Greg Donald
keys of all my tables. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] index.php not loading up

2004-06-16 Thread Greg Donald
are in /var/log/apache for example. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search Sanitization

2004-06-16 Thread Greg Donald
) ? array_map(slashes, $_COOKIE) : array(); } function slashes($var){ if(is_array($var)) return array_map(slashes, $var); else return addslashes($var); } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Just Testing

2004-06-16 Thread Greg Donald
get you practically beheaded on some lists, lkml for example. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search Sanitization

2004-06-16 Thread Greg Donald
form variables as well as arrays. So if your form had an array of checkboxes coming in via $_POST for example, it will handle it. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Just Testing

2004-06-15 Thread Greg Donald
On Tue, 15 Jun 2004 19:21:39 -0400, Michael Lauzon [EMAIL PROTECTED] wrote: I am just testing, so that I can create a filter. Or a label rather? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Self Testing PHP Code... Is it possible or practical??

2004-05-27 Thread Greg Donald
there. Thanks for any pointers, ideas, advice or help you may have. You can use assert() for simple debugging. http://php.net/assert There's also PHPUnit2 for bigger stuff. http://pear.php.net/package/PHPUnit2 -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Greg Donald
your CONSTANTS, but eval() doesn't. I made this little function so I could use defined CONSTANTS in HTML templates that get eval()'d. function makeConstants() { foreach(get_defined_constants() as $k=$v) $GLOBALS[$k] = $v; } -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] eval() with CONSTANTS

2004-05-20 Thread Greg Donald
border=0 cellspacing=0 cellpadding=0 Any ideas? I've google'd, and read lots of docs today trying to figure it out but I don't know what else to try. TIA. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web Hosting

2004-04-20 Thread Greg Donald
, not bogging up everyone's mailbox with uninteresting bits. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Greg Donald
that time. Without causing too many if statements what is the best way to do this ? Get another server, setup replication, and do backups off the slave, virtually no downtime then. Otherwise make a site-down page and cron it's swap out schedule with your backups schedule. -- Greg Donald [EMAIL

Re: [PHP] PHP Web Hosting

2004-04-19 Thread Greg Donald
still be someone out there using 900baud. ;) You missed the point. But that's ok, I fixed the issue on my end. :0 * ^From:.*kegworks.com.* /dev/null -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why are Session Variables carried over into a brand new browser window?

2004-04-17 Thread Greg Donald
of mine created a secure sessions tutorial that protects against this exact issue. He has a fantasy stocks site and needed to protect against session hijacking. http://tutorials.dotgeek.org/tutorial.php?action=viewid=58 -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
whitespace from the final HTML, then all this doesn't matter. function cleanFinalOutput($html){ $return = eregi_replace(\n, , $html); $return = eregi_replace(\r, , $return); return eregi_replace(\t, , $return); } -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
. Your example seems to be the dangerous one. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
additional processing and replacements seems to be resources consuming sometimes... Works for me. Feel free to not use it. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
to a single line function: function cleanFinalOutput($html){ return eregi_replace(\n, , eregi_replace(\r, , eregi_replace(\t, , $html ))); Well, if you like long wrapping lines of code.. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 12:21 pm, Jorge Oliveira wrote: I use spaces for php code and tabs for html. And the point of doing that is? -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
. View my efficient single line of html source code: http://destiney.com/. All the styles and javascript work fine. HTML parsers don't give a rats ass about newlines, tabs, and carriage returns so why have them.. Makes the output easier to compress as well. -- Greg Donald [EMAIL PROTECTED

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
it :) There is no right or wrong, it's down to personal preferences. Well at my shop more efficient = right and less efficient = wrong. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
On Thursday 15 April 2004 01:38 pm, John W. Holmes wrote: Certainly don't need to fire up the regex engine. return str_replace(array(\r,\n,\t),'',$html); Sweet, didn't know you pass it an array. Thx! -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP editor

2004-04-15 Thread Greg Donald
Richard Davey wrote: Passing a potentially huge string through a replacement function for every single page doesn't really = efficient in my shop. YMMV. We use Turke MMCache so it's not every single page. Besides that CPUs are way cheaper than bandwidth. -- Greg Donald [EMAIL PROTECTED] -- PHP

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Greg Donald
to it if possible... Why reinvent the wheel? http://pear.php.net/packages.php?catpid=7catname=Database -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odd error with if !(cond){}

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Gutsche wrote: | Hello im hoping someone might have an insight into this one im getting an | odd error when I use a not condition in an if statement | | The code is as follows: | if !(isset($_REQUEST[license])) | { | $license = off; | } | |

Re: [PHP] dreaded sessions

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Horner wrote: | Simply here is my problem: | | After logging into the system, I set a session with information for | the Username and Password for verifiying | the user's login into the system, that way I don't have to | continually

Re: [PHP] Generating an Excel file?

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Ramsey wrote: | I'm pretty sure I know how to use header() create a CSV file for a | client to download data from a database, but I think it would really | impress this client if I could generate a Microsoft Excel file instead | of a CSV file.

Re: [PHP] dreaded sessions

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian V Bonini wrote: | Kind of funny... Back before PHP had sessions this was how everyone did | it and everyone wished for session support in PHP, now that it's had it | for a while :) I hear ya. I recall a job interview in like 1999 or

Re: [PHP] distinct values from a mulit-dimensional array

2003-12-23 Thread Greg Donald
array_unique perhaps? http://php.net/array_unique -- Greg Donald http://destiney.com/ - Original Message - From: Chakravarthy Cuddapah [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 22, 2003 11:22 PM Subject: [PHP] distinct values from a mulit

<    4   5   6   7   8   9   10   >