Re: [PHP] Register Globals

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 11:50:39 -0700 (PDT), Matthew Sims <[EMAIL PROTECTED]> wrote: > I see that register_globals is turned on. Now I always use the $_GET and > $_POST vars but will this still affect me? .htaccess php_flag register_globals off -- Greg Donald Zend Certified E

Re: [PHP] @session_start generates a new session_id

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 15:59:18 -0400, Lizet Peña de Sola <[EMAIL PROTECTED]> wrote: > How can I set session_auto_start On, I have a similar problem and I think > it's because my web hosting has that feature off. .htaccess php_flag session.auto_start on -- Greg Donald Zend C

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Greg Donald
ongest request) Summary for 10K local requests: 11.2 seconds for .html not parsed as PHP vs. 30.5 seconds as .html parsed as PHP. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 5 abstract method and class type hints of extending classes

2004-10-25 Thread Greg Beaver
($options); } } catch (Exception $e) { // handle problems } and rest assured that the code will work under all circumstances. Hope this helps :) Regards, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pure PHP menu tree

2004-10-25 Thread Greg Beaver
s pure php so it will work accross all browsers. http://pear.php.net/package/HTML_Menu Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Good Class/API Design ?

2004-10-25 Thread Greg Beaver
#x27;s excellent site devoted to these subjects. However, most important is to simply try it out, make mistakes and have fun trying to fix them (or get an ulcer, but that's how we look at things, isn't it :) Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Configuration with upload maximum issue...

2004-10-26 Thread Greg Donald
> upload_max_filesize = 5M Did you edit the correct php.ini file? For example on my Debian system I have two: /etc/php4/apache/php.ini /etc/php4/cgi/php.ini -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] how to get bios info

2004-10-26 Thread Greg Donald
On Tue, 26 Oct 2004 18:54:45 +0530, Akshay <[EMAIL PROTECTED]> wrote: > how to get bios info in PHP > Is there any command? Maybe something like: php -r "system('dmesg');" -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ --

Re: [PHP] Add methods to object dinamically

2004-10-26 Thread Greg Donald
and add the new functions there? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Add methods to object dinamically

2004-10-26 Thread Greg Beaver
$this->$var = $value; } } } function test($o) { return $o->val; } $o = new DoesStuff; $o->val = 4; $o->test = 'test'; echo $o->test(); ?> However, you won't have access to private or protected data members. It is always better to rigidly define your met

Re: [PHP] Validation and session variables

2004-10-27 Thread Greg Donald
Like in Pine for example, you _have_ to turn it on before it begins to work. -- Greg Donald Zend Certified Engineer 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] PHP Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Greg Donald
n.. as that might help explain more what's going on. -- Greg Donald Zend Certified Engineer 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] output htmkl file as text

2004-10-27 Thread Greg Donald
print html tags on the screen? You need to send the Content-Type header for text instead of html. php.net/header -- Greg Donald Zend Certified Engineer 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] PHP Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Greg Donald
eeBSD 4.10 system I have. The same test.php script runs fine for me. > cat test.php #!/usr/local/bin/php > ./test.php Content-type: text/html X-Powered-By: PHP/4.3.9 test -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing

Re: [PHP] https://...

2004-10-27 Thread Greg Donald
x27;s what you mean. And I also found: http://marc.theaimsgroup.com/?l=php-general&m=109767486431095&w=2 -- Greg Donald Zend Certified Engineer 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] https://...

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 11:01:53 -0500, Afan Pasalic <[EMAIL PROTECTED]> wrote: > I am not so good in this: you want to say that SSL use 443 port Yup. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php

[PHP] Fwd:

2004-10-28 Thread Greg Donald
[EMAIL PROTECTED]). Can someone unsubscribe this guy? Thanks. -- Greg Donald Zend Certified Engineer 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] About File Paths

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 18:27:34 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > If a script is to be called with cron *outside* of the http directory, > how should file system paths be handled? I always assume cron is dumb and provide it with full paths. -- Greg Donald Zend Certif

Re: [PHP] Converting a PERL Date

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 13:06:57 -0400, KWRIGHT <[EMAIL PROTECTED]> wrote: > I have a perl date that is writing to a file. I need to display that date > using PHP to a page.The date looks like this 1077051100 in the file. > > Can anyone help? php.net/date -- Greg Don

[PHP] Re: Require_once(_)...when does it reset?

2004-10-28 Thread Greg Beaver
classes (that I did not execute before updating) work fine. Is there a way to reset PHP if this is the case? What did you upgrade? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File uploads and handling

2004-10-28 Thread Greg Donald
ust an array): > > if (is_uploaded_file(_FILES['userfile'])) > $handle = fopen($_FILES['userfile'], "r"); $_FILES['userfile']['name'] is the file. $_FILES['userfile']['tmp_name'] is the name of the file. $_FILES[&

Re: [PHP] Learning PHP5

2004-10-28 Thread Greg Donald
ior programming knowledge) and get back to me. It's certainly possible, but I wouldn't want to learn Perl again from scratch. -- Greg Donald Zend Certified Engineer 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] Help needed

2004-10-29 Thread Greg Donald
y, but if you post your actual code, people will most likely help you debug it. -- Greg Donald Zend Certified Engineer 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] trying 2 pull data out table and populate a list box

2004-10-29 Thread Greg Donald
ders[laddername] EOF; } } > > And then to populate the list: > >for($x=0;$x<$aantal_ladders;$x++) > { > echo(' echo('>'.$rijladders["$x"]["laddername"].''); Like I wrote above, I tend to use

Re: [PHP] Splitting a webpage

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 11:52:46 +0100, Nunners <[EMAIL PROTECTED]> wrote: > Can someone suggest a way of going through the string to find the relevant > bits - is split the easiest way? I would use preg_match(). -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Greg Donald
an preempt it with javascript. Put the load on the client when possible I say. -- Greg Donald Zend Certified Engineer 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] Gawd I hate those useless error messages...

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 16:28:39 +0200, -{ Rene Brehmer }- <[EMAIL PROTECTED]> wrote: > I do realise that this error means I've forgotten a curly brace or > semi-colon somewhere, but seriously ... I use vim. Shift-5 matches braces and parentheses easy enough. -- Greg Dona

Re: [PHP] Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Greg Donald
that. ADOdb is very good. adodb.sf.net My favorite feature is the md5 bzip'd PHP sessions. -- Greg Donald Zend Certified Engineer 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] Code help on a multi select list

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 10:15:57 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Make mine Communicty New Orleans Blend w/Chicory pleaseintravenously > please... Bah.. Mountain Dew and a couple of Sudafed is where it's at. :) -- Greg Donald Zend Certified Engineer http://

Re: [PHP] Using Google's API with PHP

2004-10-29 Thread Greg Donald
one it with Perl using the SOAP api. Did you register a developer account and get your key and all that? -- Greg Donald Zend Certified Engineer 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] Re: Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Greg Donald
ing to do with each other. -- Greg Donald Zend Certified Engineer 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] Friday afternoon - being thick

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 12:29:29 -0400, Aaron Wolski <[EMAIL PROTECTED]> wrote: > Is this what you are looking for: > > /r/n? You mean \r\n ? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 21:14:27 +0200, Christian Ista <[EMAIL PROTECTED]> wrote: > Someone else told me it's possible to have a php.ini by website. Could you > tell me where put in and what in ? php -c /path/to/php.ini -- Greg Donald Zend Certified Engineer http://gdcons

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Greg Donald
d_php) you can run php a couple of ways: 1) command line: php -c /path/to/php.ini -r "echo 'Hello World';" 2) command line scripts: #!/usr/bin/php -c /path/to/php.ini -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General

Re: [PHP] Re: Matching *exact* string?

2004-10-31 Thread Greg Donald
On Sun, 31 Oct 2004 12:58:04 +0100, Nick Wilson <[EMAIL PROTECTED]> wrote: > I think in_array() sounds like a great solution, wonder if it's faster > than comparing each ooe with == ? thanks! Benchmark it both ways and find out. Then post back and tell us. :) -- Greg Dona

Re: [PHP] mysql_select_db error

2004-10-31 Thread Greg Donald
a query: > mysql_query("create table foo ( bar int, morebar int )", $resource); > if(mysql_errno()) > { > die(mysql_error()); > } > //I get > //No Database Selected $test = mysql_query() || die('bad query: ' . mysql_error()); -- Greg Donald Zend Certified Engineer 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] image files - upload and managment

2004-10-31 Thread Greg Donald
tely a third. It's hard to accept this penalty in light of any meager advantages offered by keeping the files in the databases instead of in a directory. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www

Re: [PHP] str_pad with  

2004-10-31 Thread Greg Donald
characters. It may only appear as one character when viewed as html, but to str_pad() it's 6 characters. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP_EOL on Darwin?

2004-10-31 Thread Greg Beaver
Hi all, What's the standard line ending for Darwin? is it still the same as old Mac, which I think was just \r? Or does it use \n like unix? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploading Images

2004-11-01 Thread Greg Donald
make sure > the image is no larger than 60x60. Is there any way to do this? getimagesize( $_FILES['userfile']['tmp_name'] ) contains the size info. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http

[PHP] Re: An easier way? $_POST[] => $_SESSION[]

2004-11-01 Thread Greg Beaver
t in a single bound, and your whole site would stop working. so, the way you're doing it is a lot better than any other options, but I would add in checks to the values before you save them in $_SESSION. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] text email & new line

2004-11-02 Thread Greg Donald
On Tue, 2 Nov 2004 11:12:49 -0500, Jerry Swanson <[EMAIL PROTECTED]> wrote: > I'm sending text email. How I can make new line. > "\n" seems to be not working. Use \r\n instead of just \n. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

Re: [PHP] Error Code Airhead

2004-11-02 Thread Greg Donald
values at once, this will always evaluate to true. Maybe you meant && instead of ||. -- Greg Donald Zend Certified Engineer 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] authentication question

2004-11-02 Thread Greg Donald
On Tue, 2 Nov 2004 13:48:30 -0500, Kelly Meeks <[EMAIL PROTECTED]> wrote: > I need to require username/password access in two distinct ways. PHP Generic Access Control Lists http://phpgacl.sourceforge.net/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

Re: [PHP] Passing marked rows in a table

2004-11-02 Thread Greg Donald
ould see the answer right away: echo ''; print_r($_POST); echo ''; -- Greg Donald Zend Certified Engineer 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] Form executes differently in IE than in FireFox?

2004-11-03 Thread Greg Donald
he recommended limit. Good point. > Laugh, don't mind me, I'm as much of a hypocrite as the next person. We all are at times. -- Greg Donald Zend Certified Engineer 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] Domain Information

2004-11-03 Thread Greg Donald
you forget to include your PHP question perhaps? -- Greg Donald Zend Certified Engineer 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] PEAR Calendar

2004-11-03 Thread Greg Donald
' > > Please advise. Install it manually. http://pear.php.net/manual/en/installation.manually.php -- Greg Donald Zend Certified Engineer 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] email as link

2004-11-03 Thread Greg Donald
ding html emails and form the link yourself. Some folks detest html emails, while others use plugins to make URLs become links in text emails. You're really at the mercy of the recipient email client. *shrug* -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.

Re: [PHP] Apache 1.3 'lag' with PHP ...

2004-11-03 Thread Greg Donald
> Is there something else that I should be looking at to optimize things? > Or to track down the slowdown? Did you happen to try running the Apache benchmark tool 'ab' on it. It provides quite a bit of info aside from the actual timed requests. -- Greg Donald Zend Certified En

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Greg Donald
ray_map( 'slashes', $_GET ) : array(); $_POST = isset( $_POST ) ? array_map( 'slashes', $_POST ) : array(); $_COOKIE = isset( $_COOKIE ) ? array_map( 'slashes', $_COOKIE ) : array(); } -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

Re: [PHP] Selecting Date Range

2004-11-03 Thread Greg Donald
r as well. Again, where's the PHP code you're asking a question about? -- Greg Donald Zend Certified Engineer 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] "Fatal error" on parsedate.c While Building 4.3.9

2004-11-03 Thread Greg Donald
mpiling PHP may cause problems. http://www.php.net/manual/en/faq.build.php#faq.installation.needgnu -- Greg Donald Zend Certified Engineer 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] 'Code Snippets' you couldn't live without

2004-11-03 Thread Greg Donald
s asking what code _you_ had that you couldn't live without, code that makes your life easier when reused from project to project. Criticism comes easy when you have nothing to contribute otherwise. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP Gen

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Beaver
Greg Donald wrote: On Wed, 3 Nov 2004 15:41:54 +0800, Roger Thomas <[EMAIL PROTECTED]> wrote: I would like to install PEAR Calendar module and did a [EMAIL PROTECTED] apps]# pear install Calendar but got these: No release with state equal to: 'stable' found for 'Calendar

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Donald
On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver <[EMAIL PROTECTED]> wrote: > > Install it manually. > > > > http://pear.php.net/manual/en/installation.manually.php > > This is terrible advice. > > $ pear install --force Calendar. And you think --for

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Beaver
Greg Donald wrote: On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver <[EMAIL PROTECTED]> wrote: Install it manually. http://pear.php.net/manual/en/installation.manually.php This is terrible advice. $ pear install --force Calendar. And you think --force is better? Pffft. When the PEAR deve

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Donald
On Wed, 03 Nov 2004 17:35:04 -0500, Greg Beaver <[EMAIL PROTECTED]> wrote: > I am sorry I jumped on you Greg, you have given great advice very often > on this list. My country is going to Hell, and I took a bit of > frustration out on you :) No problem. It happens. :) -- G

[PHP] Re: name of the function

2004-11-03 Thread Greg Beaver
Gustavo A. Baratto wrote: hello there, is there anyway to know the name of the function that is being executed? In the docs (http://www.php.net/manual/en/ref.funchand.php), we can find out the arguments of the function, but not the name of the function itself. echo __FUNCTION__; Greg -- PHP

Re: [PHP] Sessions and threading

2004-11-04 Thread Greg Donald
x27;yes', things like that add up. Sessions are as efficient as you make them. Also, PHP doesn't have threads. You can use some of the execution functions to simulate them to some extent however: http://www.php.net/manual/en/ref.exec.php -- Greg Donald Zend Certified Engineer http://gdcon

Re: [PHP] ezpublish question -- take 2

2004-11-04 Thread Greg Donald
out all these answers for yourself? It's is dual-licensed and all. :) Did you need some help with installing it perhaps? -- Greg Donald Zend Certified Engineer 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] Downloading Large (100M+) Files

2004-11-04 Thread Greg Donald
On Thu, 04 Nov 2004 08:22:18 -0800, Robin Getz <[EMAIL PROTECTED]> wrote: > and now I don't loose 250 Meg of memory every time I download a 250Meg > file. If someone wants to add this to the readfile() php manual - great. Anyone can post user comments in the manual. Give it a

Re: [PHP] Determining system resources

2004-11-04 Thread Greg Donald
sharedbuffers cached Mem: 249246 2 0 4 86 -/+ buffers/cache:154 94 Swap: 486 12473 The system has to support whatever memory command you use. *nix: free windoze: mem -- Greg Donald Zend Certified Engi

Re: [PHP] Zip Codes

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 08:59:50 -0800, bb9876 <[EMAIL PROTECTED]> wrote: > Is there any way to use PHP to determine the zip code someone is visiting > from, assuming they are all from the US? http://www.usps.com/webtools/ -- Greg Donald Zend Certified Engineer http://gdconsultan

Re: [PHP] Strange query

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 13:02:19 -0700, Vail, Warren <[EMAIL PROTECTED]> wrote: > It is too bad this clause is not supported by some of the other > databases I have had to use I think calling a limit a limit and an offset an offset is a good thing. -- Greg Donald Zend Certified E

Re: [PHP] Is there any 'strict' and 'warnings' like packages inside PHP ?

2004-11-04 Thread Greg Donald
On Fri, 5 Nov 2004 06:20:11 +0800, Exile <[EMAIL PROTECTED]> wrote: > Is there any package like 'strict' or 'warnings' in PHP, like Perl ? error_reporting(E_ALL | E_STRICT); E_STRICT was added in PHP5. -- Greg Donald Zend Certified Engineer http://gdconsult

Re: [PHP] Configure help / advise

2004-11-05 Thread Greg Donald
SD. For example: /usr/ports/databases/mysql41-server > Using FreeBSD 4.7 stable if that help (don't want to use the port) To each his own, but it seems the easiest way to me. cd /usr/ports/databases/mysql41-server make install clean -- Greg Donald Zend Certified Engineer

Re: [PHP] Newbie pattern question

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 20:55:00 +0200, Phpu <[EMAIL PROTECTED]> wrote: > if(ereg("^[a-zA-Z0-9_]{2,30}$", $name)) { if(ereg("^[a-zA-Z0-9_\ ]{2,30}$", $name)) { Need to allow spaces in the regular expression. -- Greg Donald Zend Certified Engineer http://gdconsult

Re: [PHP] PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 13:10:43 -0500, Frantzcy Paisible <[EMAIL PROTECTED]> wrote: > I need to recreate this perl script in php : I'm not sure if you realize it, but you can call the Perl script from PHP using system(). -- Greg Donald Zend Certified Engineer http://gdconsult

Re: [PHP] Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 05 Nov 2004 13:03:31 -0800, Todd Cary <[EMAIL PROTECTED]> wrote: > I have seen instances where the surfer can open a new window to get > email addresses and these addresses appear in the first window. Javascript. -- Greg Donald Zend Certified Engineer http://gdconsultan

Re: [PHP] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 15:30:43 -0600, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Thousands of examples will be yours to behold. 14.8 million from where I sit. I'm tired of all your inaccurate answers Jay. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http:

Re: [PHP] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
ptsearch.com/ -- Greg Donald Zend Certified Engineer 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] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 05 Nov 2004 13:17:29 -0800, Todd Cary <[EMAIL PROTECTED]> wrote: > Is there a place where I can view some examples of using JavaScript? http://google.com/search?q=javascript -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP Genera

Re: [PHP] Recover POST form

2004-11-06 Thread Greg Donald
echo ''; print_r($_POST); echo ''; -- Greg Donald Zend Certified Engineer 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] loking for a item in string?

2004-11-07 Thread Greg Donald
#x27;; preg_match() can do that. php.net/preg_match -- Greg Donald Zend Certified Engineer 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] You know you're a geek when...

2004-11-08 Thread Greg Donald
e to some benchmarks that support this claim? Thanks. -- Greg Donald Zend Certified Engineer 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] Session Handling

2004-11-08 Thread Greg Donald
ttp://www.zend.com/manual/ref.session.php http://www.easysoft.com/tech/php/tut_001/main.phtml http://shiflett.org/talks/phpworks2004/php-session-security -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-08 Thread Greg Donald
ple php wrapper script: http://www.devshed.com/c/a/PHP/Search-This/ http://www.htdig.org/ This setup allows me a great deal of graphical customization in the results display while putting all the real work with search results and search logic on htdig. -- Greg Donald Zend Certified Engineer ht

Re: [PHP] Sub selects vs nested loop was:Re: [PHP] You know you're a geek when...

2004-11-08 Thread Greg Donald
with proper indexing would be slower than looping through the results with PHP scripting. -- Greg Donald Zend Certified Engineer 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] DATE()

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 13:06:41 -0500, Aaron Todd <[EMAIL PROTECTED]> wrote: > Is there any way yo get the date and time using date() from a Internet time > server? php -r "system('ntpdate -q ntp.nasa.gov');" -- Greg Donald Zend Certified Engineer http://gdcons

Re: [PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Greg Donald
etend like I'm posting to vger.kernel.org.. seems to keep most people from yelling at me too much. -- Greg Donald Zend Certified Engineer 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] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9

2004-11-08 Thread Greg Donald
r you installed MySQL from rpms, did you run ldconfig? -- Greg Donald Zend Certified Engineer 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] Drawing polygons from traverse information

2004-11-08 Thread Greg Donald
to the screen. This sort of string parsing could be handled with preg_match_all(). -- Greg Donald Zend Certified Engineer 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] Why cookie is created?

2004-11-08 Thread Greg Donald
er's computer. That's what a cookie is, a file on the user's computer, created by the web client. -- Greg Donald Zend Certified Engineer 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] Why cookie is created?

2004-11-08 Thread Greg Donald
s', 0); will override the php.ini setting. -- Greg Donald Zend Certified Engineer 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] Arrays

2004-11-08 Thread Greg Donald
s (and > fairly new to PHP for that matter), so please don't get too technical in > replies. Thanks so much for help. Where is you (broken) PHP code that you have written so far? What is it not doing that you are expecting it to do? -- Greg Donald Zend Certified Engineer http

Re: [PHP] Error logging problem

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 10:49:29 -0500, Al <[EMAIL PROTECTED]> wrote: > > ini_set("error_log", "/AutoSch/error.log"); Looks like this might be a path relative to your domain or your vhost definition? I'd go with a full system path if that's the case. --

Re: [PHP] php mail() error

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 23:14:43 +, Jason Wong <[EMAIL PROTECTED]> wrote: > Or you can wait for Manuel Lemos' reply :) Good one. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Multiple session_start()s / Is it a problem??

2004-11-10 Thread Greg Donald
( !isset ($_SESSION) ) if you don't like using the @ error suppression. I usually have a single common file like config.php or something that I do session_start() in, so I've never actually ran across this issue. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

Re: [PHP] Question on functions

2004-11-10 Thread Greg Donald
$user, $pass, $db ); > } > > I understand parts but googling for the proper use of functions in php > hasn't gotten me anywhere... Looks like you understand already. Did you have some broken code you wanted help with? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ ht

Re: [PHP] Load testing for PHP Applications

2004-11-10 Thread Greg Donald
le(true); do wget -m -np http://yahoo.com/; done -- Greg Donald Zend Certified Engineer 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] should basic data validation go outside a function or inside?

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 11:00:12 -0800, Chris W. Parker <[EMAIL PROTECTED]> wrote: > should basic data validation come before a function call or be performed > within the function? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General

Re: [PHP] displaying repetitive results

2004-11-10 Thread Greg Donald
You would have an entry for each subject a book is in. As far as the sql, I'd suggest something but you didn't say what db you're using. Looks like MySQL output but I could be wrong. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ --

Re: [PHP] LINUX: Problem with php installation

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 20:34:46 + (GMT), abhilash kumar <[EMAIL PROTECTED]> wrote: > The error log file is showing "Segmentation fault". Did you happen to try display_startup_errors = On in your php.ini.. I'm not sure but it might provide a more informative error message

Re: [PHP] passing resources from one script to another

2004-11-11 Thread Greg Donald
you would need to accept more than a single connection at once. You can simulate thread functionality to a degree using the PHP execution functions here: http://www.php.net/manual/en/ref.exec.php -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP G

Re: [PHP] calling function from function?

2004-11-11 Thread Greg Donald
on't want to pre-define any however. > global $defined; > > db( $defined[9], $defined[1], $defined[2], $defined[3] ); > ... do some processing ... What does print_r( $defined ) show you? Is that what you expect to be in the array? -- Greg Donald Zend Certified Engineer h

Re: [PHP] calling function from function?

2004-11-11 Thread Greg Donald
On Thu, 11 Nov 2004 12:42:44 -0700, Jason <[EMAIL PROTECTED]> wrote: > There isnt an error at all. How could there be an error? You're using @ to suppress nearly every mysql function call. Makes it kind of hard to debug that way. -- Greg Donald Zend Certified

[PHP] Re: adding a space every 4 chars

2004-11-11 Thread Greg Beaver
Justin French wrote: Hi, What's the quickest way to add a space every four characters? Eg 123456789 becomes 1234 5678 9 Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Syslog Parser

2004-11-12 Thread Greg Donald
, and you might also try freshmeat. http://cpan.perl.org/ http://freshmeat.net/ For graphing in PHP I use JPGraph: http://www.aditus.nu/jpgraph/index.php -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re: Globally accessible objects without using 'global $obj;'

2004-11-12 Thread Greg Beaver
rite everything - not exactly a timesaver, unless you simply give up on making your code better :) Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    6   7   8   9   10   11   12   13   14   15   >