Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread Greg Donald
ERLLIB/etc, > python with PYTHONHOME/PYTHONPATH/etc, ruby with > RUBYOPT/RUBYLIB/RUBYPATH/etc). > > PS: I am aware of -c. It would be nice to have something like > PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though... print_r($_ENV); -- Greg Donald Zend Certified Engineer http://gdc

Re: [PHP] Database search logic question

2004-11-15 Thread Greg Donald
t's the querystring. Not sure on that though. $_SERVER['QUERY_STRING'] to be exact. -- 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] Column Totals

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 11:21:45 -0700, Ben Miller <[EMAIL PROTECTED]> wrote: > That did it perfectly. Why don't any of the stupid books tell you that you > need the AS statement? Because they assumed you would access it just like you asked for it. $bar['SUM(Revenue)&#x

Re: [PHP] newbie question

2004-11-15 Thread Greg Donald
ote on most all the $_POST variables. > mysql_query($add_table) or die(mysql_error()); How about: or die(mysql_error() . ' query was: ' . $add_table) so you can see your query as it goes to the database. > > } > ?> > > > Add an Entry > > > > > Also, your code is subject to SQL injection. You might want to investigate PHP's addslashes() function. And maybe read this too: http://shiflett.org/php-security.pdf -- 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 Conversions?

2004-11-15 Thread Greg Donald
in MySQL, you can use date_format() to reformat it in the query and skip the 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] saving blobs to file system

2004-11-15 Thread Greg Donald
proper filename. I'd use fopen(), fwrite(), and fclose, or file_put_contents() if your PHP is new enough. You won't need to output any headers, they only matter when you render the file in an application such as a web client. -- Greg Donald Zend Certified Engineer http://gdconsultants.com

Re: [PHP] Re: PHP file permission

2004-11-15 Thread Greg Donald
er software has anything to do with protecting the end user from a virus or from spyware. The execution of a PHP script begins and ends on the web server. The output is sent to the requester for rendering, not further execution. Can you please explain a bit more? -- Greg Donald Zend Certifie

Re: [PHP] php broken pipe

2004-11-16 Thread Greg Donald
date and i get > the following error > [nativecode=Unable to complete network request to host "127.0.0.1". > Error writing data to the connection. Broken pipe] You might try pcntl_fork() instead. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.c

Re: [PHP] London - One Day Workshop "How to Build a Professional Database-Driven Website"

2004-11-16 Thread Greg Donald
nity > to improve your skills and get ahead of the competition. > > Hope to see you there. So do you plan to send us all plane fare to London and allow us to attend your 'great opportunity' for free? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http

Re: [PHP] copy function?

2004-11-16 Thread Greg Donald
should I construct > the function? That's Javascript, not 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] splitting string

2004-11-16 Thread Greg Donald
o, is there actially better way to do this then adding \n between > strings? You can use whatever works. I use the pipe | character, it's pretty standard and I've never seen it used as anything except a delimiter. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ htt

Re: [PHP] isset opposite

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 15:11:39 -0800, Dustin Krysak <[EMAIL PROTECTED]> wrote: > how can you check if something is not set? !isset() -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] handling tag and quote (' & ")

2004-11-16 Thread Greg Donald
On Wed, 17 Nov 2004 10:28:30 +1100, adwinwijaya <[EMAIL PROTECTED]> wrote: > Hello php-general, > > I have question for you :) > > Is there suggestion about how to remove html tag, javascript and quote > (' & ") from user's input at the same time ? s

[PHP] Re: Array unset

2004-11-17 Thread Greg Beaver
Bruno b b magalhães wrote: So, the question, how resort the numeric values to 1,2,3,4? http://www.php.net/array_values Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: debug_backtrace bug?

2004-11-17 Thread Greg Beaver
not just constructors. Is this a bug, or is this behavior correct for some reason? (Tested in php 5.0.0, 5.0.1, and 5.0.2) This looks like a bug to me, open a report. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 4 to 5 class issues involving static methods and $this

2004-11-17 Thread Greg Beaver
= $rm->invoke(null, $args); } catch (ReflectionException $e) {} } } static_my_class::format_string('a'); $a = new my_class; $a->format_string('a'); ?> Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] debug_backtrace bug?

2004-11-17 Thread Greg Beaver
trace() is reporting that __CLASS__ is foo inside bar::b(). Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What should I name my base class?

2004-11-17 Thread Greg Beaver
sily plug in new base functionality. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP-editor connected to FTP?

2004-11-18 Thread Greg Donald
On Thu, 18 Nov 2004 09:41:53 +0100, Peter Lauri <[EMAIL PROTECTED]> wrote: > What editor do you use when working with websites (php) connected directly > to the FTP? Editplus has this ability. http://editplus.com/ -- Greg Donald Zend Certified Engineer http://gdconsultan

Re: [PHP] HTML form online

2004-11-19 Thread Greg Donald
server: php.net/fsockopen -- 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] Class for determining word count, ignoring HTML?

2004-11-20 Thread Greg Donald
he following string is 6 > words long: > > " > > This string is six words long. > > " Use strip_tags() to remove the html, then explode() the string by a space, then count() the exploded array. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ h

Re: [PHP] Re: ending a session

2004-11-20 Thread Greg Donald
d PHP sessions, passing the session id in the url. As long as you connect to the same database, your PHP session will follow you wherever your scripts live. Someone probably has something better, but here's mine: http://destiney.com/pub/php_db_sessions.tar.gz -- Greg Donald Zend Certified E

Re: [PHP] perl to php translation tool?

2004-11-22 Thread Greg Donald
st to this subject, which surprises me. > Does anyone know of any tool that can handle this type of thing? You may find this reference page useful: http://www.cs.wcupa.edu/~rkline/perl2php/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PH

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Greg Donald
On Mon, 22 Nov 2004 21:38:00 +0100, Perry Jönsson <[EMAIL PROTECTED]> wrote: > What is the difference between these two examples? > diff 1.txt 2.txt 1c1 < 1. if ($_POST['submit'] == 'Login') { --- > 2. if (isset($_POST['submit'])

Re: [PHP] submitting two forms on one page

2004-11-23 Thread Greg Donald
onClick=\"document.client_picker.submit()\"> >Select Client >Bank of America >Verizon >Verizon Wireless >AARP > > > \\ The inner form ends here > > > > "; You might check out PHP's heredoc syntax of you plan to

Re: [PHP] Text Parser

2004-11-24 Thread Greg Donald
ss,location". It´s important that the comas must be > inserted after the first word, and before the last one. implode() php.net/implode -- 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: intalling pear:db

2004-11-24 Thread Greg Beaver
Merlin wrote: Hi there, I am trying to get a class running which requires pear:DB. I downloaded the package and executed: # pear install DB-1.6.8.tgz DB already installed pear upgrade DB-1.6.8.tgz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: [firebird-php] auto increment last insert

2004-11-24 Thread Greg Donald
after all that, you still have a question, then this is definitely the place to ask. -- 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: [firebird-php] auto increment last insert

2004-11-24 Thread Greg Donald
se do you plan to learn the language without RTFM? The knowledge isn't going to just jump into your head. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ "RTFM almost daily since 1998.." -- PHP General Mailing List (http://www.php.n

Re: [PHP] RE: [firebird-php] auto increment last insert

2004-11-25 Thread Greg Donald
On Thu, 25 Nov 2004 11:43:56 +0600, Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > hey greg, don't jump on me, i was trying to say the same thing you are > saying perhaps i should have worded it better :-)) Sorry if I offended you. -- Greg Donald Zend Certif

Re: [PHP] Happy Thanksgiving

2004-11-25 Thread Greg Donald
On Thu, 25 Nov 2004 04:25:10 -0500, John Nichel <[EMAIL PROTECTED]> wrote: > Happy Turkey Day ladies and gents. Same to you. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] What else can cause "unexpected T_SL" error other than heredoc?

2004-11-25 Thread Greg Donald
tain any heredoc quoted strings, nor does it > contain anywhere the strings "<<" or ">>". So what could be the cause of > the T_SL error? I dunno if that's just a typo in your post, but heredoc requires 3 <<< or >>>, not two as you wrote. Are you using any sort of PHP cache by chance? -- 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: intalling pear:db

2004-11-25 Thread Greg Beaver
that is being included before pear's DB.php the get_included_files() function can help you lots on this one http://us2.php.net/manual/en/function.get-included-files.php Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Getting static member for a class which name is stored in a variable

2004-11-25 Thread Greg Beaver
x27;; } $a = new ReflectionClass('TestClass'); echo $a->getProperty('Data')->getValue(null); ?> Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] identifying the country of the people who connect to web site / portal

2004-11-28 Thread Greg Donald
their language. > > > > Is that possible? Has anybody ever doen anything like that using php? You can use geoip: http://sourceforge.net/projects/geoip/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www

Re: [PHP] Weird sessions problem

2004-11-28 Thread Greg Donald
#x27;ve never heard of a 'cgi module'. :) > I hit a problem. At line > 53, $ref_page is an array containing the values I expect. After line 54, > $ref_page is now a scalar containing the value of THIS_PAGE. It's almost as > though line 54 has been executed before line 53... Help! Is the function returning what you think it is? print_r() before the return. -- 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] buffer

2004-11-28 Thread Greg Donald
ded to the user? *turning off > the buffer basicly* You can control PHP's output buffering. http://us2.php.net/manual/en/ref.outcontrol.php#ini.output-buffering You cannot control the web client's display buffering with PHP. -- Greg Donald Zend Certified Engineer http://gdconsulta

Re: [PHP] Getting static member for a class which name is stored

2004-11-28 Thread Greg Beaver
class Perhaps we need a similar function to provide access to our static variables! :) How about: echo Myclass::$myvar; ?> The only problem is if you want to be able to generically access a static variable from any class that has it, like $Myclass::$myvar. Greg -- PHP General Mailing L

[PHP] Re: Overriding static members?

2004-11-28 Thread Greg Beaver
blic), then yes, you can override them. Override is misleading. Since they can only be access by Classname::$var, unless you use Reflection, code designed to work with the parent class can't access the child class's static variables. Greg -- PHP General Mailing List (http://www.php

[PHP] Re: php 4 to 5

2004-11-28 Thread Greg Beaver
ple's code, I would wait a year or two to upgrade. Otherwise, what are you waiting for? :) Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SELECT problem..Need urgent help !!!!

2004-11-29 Thread Greg Donald
ot;SELECT product_id FROM products WHERE product_id <> '$ex_array' " ; $sql = " SELECT product_id FROM products WHERE product_id NOT IN ( " . implode( ', ', $ex_array ) . " ) "; This question would be more appropriate fo

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Greg Donald
4.3.9 with no issues. > My code works fine with PHP 5 (fortunately) under Windows, but it doesn't > work with PHP 4.3.4 under Linux. > > I think I need to upgrade php under Linux also... I would defiantly upgrade. Hundreds of bugs have been fixed from 4.3.4 -> 4.3.9. http:

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 10:28:57 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > I would defiantly upgrade. Definitely too. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] UNDEFINED VARIABLE ON LOCALHOST

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 17:11:47 -, Ross Hulford <[EMAIL PROTECTED]> wrote: > I have a porblem with undefined variables on loacalhost. Any ideas why? I > have turned registed variables on. Where's the code? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ ht

Re: [PHP] Line breaks in form

2004-11-29 Thread Greg Donald
hs inside tags. Is > there a way to do this easily? Any advice would be greatly appreciated. explode() the text by the "\n" character, this will give you an array. Iterate over the array and add your tags there. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ h

Re: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 11:20:21 -0800, Brian Dunning <[EMAIL PROTECTED]> wrote: > It's all about backlinks generated from this free ad network: In other news, scientists discovered wheels are indeed round. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http:

Re: [PHP] [SPAM] RE: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 12:57:43 -0800, Brian Dunning <[EMAIL PROTECTED]> wrote: > Well, you're entitled to your opinion, of course; but (a) I clearly put > [Off] in the subject Next time try the standard [OT] label instead. -- Greg Donald Zend Certified Engineer http://gdcons

Re: [PHP] PHP log 2 Apache log

2004-11-29 Thread Greg Donald
e or syslog, but a > such setup doesn't fit to virtual host scenario... > > Thanks for your advice and excuse me, If i missed something trivial. You can override much of the php.ini with ini_set(). http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log -- Greg Don

Re: [PHP] apache2 & php stability

2004-11-29 Thread Greg Donald
that Apache doesn't have already? Just curious is 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] apache2 & php stability

2004-11-29 Thread Greg Donald
to use NPTL but peeps were having lots of glibc issues at the time. :( I'm using 2.6 in a couple places, desktops and dev servers, but have not tried NPTL yet. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http:/

Re: [PHP] Question: Search from , text fields

2004-11-30 Thread Greg Donald
as $v ) { $array[] = " zip LIKE '" . $v . "%' "; } $OR = implode( ' OR ', $array ); $sql = " SELECT * FROM people WHERE 1 AND ( $OR ) "; All untested of course. > Alright I await the wisdom of PHP-General :) -- 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] imagesx(): supplied argument is not a valid Image resource (CODE)

2004-11-30 Thread Greg Donald
On Tue, 30 Nov 2004 14:43:51 -0500, Robert Sossomon <[EMAIL PROTECTED]> wrote: > Fatal error: Call to undefined function: imagesx() in c:\fourh\spotlight3.php > on > line 31 Do print_r( gd_info() ); to see if your PHP has support for working with images. -- Greg Donald Zend Cer

Re: [PHP] My session.c doesnt work!

2004-11-30 Thread Greg Donald
tion support for database driven PHP sessions. You may want to see how they do it in PHP. adodb.sf.net -- 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] Using PHP to change Linux IP address

2004-11-30 Thread Greg Donald
On Tue, 30 Nov 2004 16:50:27 -0500, John Nichel <[EMAIL PROTECTED]> wrote: > PHP (the webserver) would have to have permission to edit the ifcfg-eth0 > (eth1, eth2, etc) file, and have permission to restart the network. sudo would probably help with the permissions requirements. --

Re: [PHP] Spawning new pages

2004-11-30 Thread Greg Donald
ng_ client side. PHP's execution begins and ends server side. -- 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] regex issue

2004-11-30 Thread Greg Donald
egi_replace("($term)", "\\1", $source); -- 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] Exec() command on UNIX

2004-12-01 Thread Greg Donald
be like below > $su root > Password:'password' > > but when I tried running exec() command on PHP, I couldn't do that > exec("su root"); > > I can't sent a password thru the exec() command, any way to do that? You might want to look at sudo, you

Re: [PHP] Referencing Multi Dimensional Arrays

2004-12-01 Thread Greg Donald
On Wed, 1 Dec 2004 17:14:56 -, Robinson, Matthew <[EMAIL PROTECTED]> wrote: > I've kind of solved this question already using recursion but I > recon (in the grand tradition) that someone has a better solution! Recursion and is_array() is the way I'd parse

Re: [PHP] Errors

2004-12-01 Thread Greg Donald
looked in > my book I have searched on the php site and have had no luck. > WHAT IN THE HECK IS A "T_" error. I get "T_Else", T_Variable, T_what ever. > What does it mean > Very frustrated old man. Where's the code? -- Greg Donald Zend Certified En

Re: [PHP] Errors

2004-12-01 Thread Greg Donald
On Wed, 1 Dec 2004 11:51:33 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > That's Geek for "you typed something so wrong, I don't even know what > you're trying to do" Man.. they let just about anyone post to php-general lately. :) How you

Re: [PHP] uploading 'large' files (e.g. 6MB) -> tmp_name is empty?..

2004-12-01 Thread Greg Donald
$uploadError = 'The uploaded file was only partially uploaded'; case 4: $submitError = true; $uploadError = 'No file was uploaded'; } -- 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] Custom Open Tags

2004-12-01 Thread Greg Donald
On Wed, 1 Dec 2004 22:16:25 +0100, Sven Schwyn <[EMAIL PROTECTED]> wrote: > Does anybody know whether there's a way to tell PHP to accept an > alternative open tag like for instance normal http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Custom Open Tags

2004-12-01 Thread Greg Donald
You could always patch zend_language_scanner.c and add your own custom tags. Isn't open source great? :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Sessions

2004-12-01 Thread Greg Donald
a finite > life span and I would like to be able to control it. ini_set( 'session.gc_maxlifetime', 3600 ); http://us2.php.net/manual/en/ref.session.php#ini.session.gc-maxlifetime -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PH

Re: [PHP] Go Back Problem

2004-12-01 Thread Greg Donald
to previous page and > correct it, > I have used the javascript : OnClick='history.go(-1)' and > OnClick='history.back()' in php , but it can not workspls help me. The only way I've ever found was to change the form method to GET instead of POST,

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-01 Thread Greg Donald
On Wed, 1 Dec 2004 17:57:28 -0700, news.php.net <[EMAIL PROTECTED]> wrote: > Anyone else doing or done something like this? I use sudo when my web server needs temporary elevated permissions. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PH

Re: [PHP] Organisation of classes

2004-12-01 Thread Greg Donald
On Wed, 01 Dec 2004 21:59:25 -0500, Robert Cummings <[EMAIL PROTECTED]> wrote: > PHP is plenty well developed, but PHP != Java and nor would most want it > to be. Java *ACK PTHEEWY*. I see alot of Java influence in PHP5 myself. -- Greg Donald Zend Certified Engineer http://gdcon

Re: [PHP] Organisation of classes

2004-12-01 Thread Greg Donald
s of classes. And if you really miss Java, check out Mojavi.org. -- 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] Organisation of classes

2004-12-01 Thread Greg Donald
On Wed, 01 Dec 2004 22:41:14 -0500, Robert Cummings <[EMAIL PROTECTED]> wrote: > I thought it was Smalltalk. But then I prefer PHP for it's similarities > to C even if I do write 99% of my code into classes. Could be.. I never wrote any Smalltalk so I wouldn't know.

Re: [PHP] Remember me function

2004-12-03 Thread Greg Donald
a cookie, then check for it later. If it exists, bypass the login and grant a session or whatever you're doing now for logged-in users. You might also want to set a session variable that the cookie has been 'looked for' so it doesn't relog them in on each page request. php.net/se

Re: [PHP] SQL sums

2004-12-03 Thread Greg Donald
sent Why reinvent the wheel? Use MRTG. http://people.ee.ethz.ch/~oetiker/webtools/mrtg/ -- 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] Any one have idea about plankton/

2004-12-03 Thread Greg Donald
l me is it usefull or not? I've never tried that particular framework, but I have used Mojavi for several months now and can say it's very useful: mojavi.org I tried Binarycloud for a couple weeks but didn't like it much, I didn't really need a 'build system

Re: [PHP] database query problem

2004-12-03 Thread Greg Donald
On Fri, 3 Dec 2004 19:47:27 +0200, Ahmed Abdel-Aliem <[EMAIL PROTECTED]> wrote: > when there is no records in the dataabse i get mysql error. So wrap your while( mysql_fetch_array() ) with if( mysql_num_rows() ). -- Greg Donald Zend Certified Engineer http://gdconsultants.

Re: [PHP] Remember me function

2004-12-03 Thread Greg Donald
and Cookies? You can use encrypted and compressed PHP sessions, and store them in the database instead of on the filesystem. I use ADOdb which provides all of that. adodb.sf.net -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailin

Re: [PHP] Custom Open Tags

2004-12-03 Thread Greg Donald
nfigure ends with no errors, but when I compile it it dies with: sapi/cgi/cgi_main.o(.text+0x1499): In function `main': /home/greg/php-5.0.2/sapi/cgi/cgi_main.c:1580: undefined reference to `open_file_for_scanning' sapi/cgi/cgi_main.o(.text+0x150b):/home/greg/php-5.0.2/sapi/cgi/cgi_main.

Re: [PHP] PHP upgrade

2004-12-03 Thread Greg Donald
On Fri, 3 Dec 2004 15:56:26 -0500, Jerry Swanson <[EMAIL PROTECTED]> wrote: > How to upgrade PHP 4.3.2 to new version? OS is Linux(Fedora Core 2). http://www.php.net/manual/en/install.unix.php -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/

Re: [PHP] Plz help me

2004-12-03 Thread Greg Donald
ossible using PHP. Or how should I approach to > achieve this one. I'd use HTML. http://w3c.org/MarkUp/ -- 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] Stupid question

2004-12-04 Thread Greg Donald
d to support more connections, you should restart mysqld with a larger value for this variable. You can increase this value in the MySQL server config file (mine is in /etc/mysql/my.cnf) using this syntax: [mysqld] set-variable = max_connections=200 -- Greg Donald Zend Certified E

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Greg Beaver
the second &"); } ?> Here's your PHP5 version prop = $this; } } $ob = new Ob; $test = new Test; $test->setMe($ob); if ($ob->prop) { error_log("PHP5 is *way* more than OK"); } else { error_log("This can't happen"); } ?> Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Greg Beaver
Ben wrote: Thanks a lot for your responses guys. Unfortunately it still isn't working for me. I've tried both : $ob->prop = &$this and$ob->prop &= $this (just in case) Neither produce a "PHP is OK". I'm using version 4.2.2 btw. (If ONLY I was on

[PHP] Re: Please save me from insanity - PHP4 / OO

2004-12-05 Thread Greg Beaver
Ben wrote: class Ob { var $prop; } class Test { function setMe(&$ob) { $ob->prop = $this; } } $ob = new Ob(); $test = new Test(); $test->setMe($ob); if ($ob->prop) error_log("PHP is OK"); You should use "if (is_a($ob->prop, 'test')

Re: [PHP] Trouble with do..while

2004-12-06 Thread Greg Donald
basic pagination. I'd use PEAR. http://pear.php.net/package-search.php?pkg_name=page -- 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] Problem with code

2004-12-06 Thread Greg Donald
n classes from PEAR: http://pear.php.net/package-search.php?pkg_name=page -- 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] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Greg Donald
> > $0405distoffice= $_POST['04_05_dist_office']; //line29 Variables can contain numbers, but the first character after the $ must not be one. -- 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 question

2004-12-07 Thread Greg Donald
://adodb.sf.net/ The db driven, encrypted and bzip'd sessions are pretty nice too. -- 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 Security

2004-12-07 Thread Greg Donald
uot; a jpeg for exploit code? Seems the only winning move is to not play. -- 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: PHP Security

2004-12-08 Thread Greg Donald
On Wed, 8 Dec 2004 08:42:50 -0500, Joshua Beall <[EMAIL PROTECTED]> wrote: > Can you also provide a link to the relevant message in the mailing list > archive? I would like to read this myself. http://seclists.org/lists/security-basics/2004/Dec/0080.html -- Greg Donald Zend Certif

Re: [PHP] Installing Apache and PHP from scratch

2004-12-08 Thread Greg Donald
guration to use. Is there a > command similar to the phpinfo() command that can tell me how an already > installed Apache in configured? For apache 1.x, I'd use: ./configure --with-layout=RedHat --enable-module=so -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http:/

Re: [PHP] Removing a return character

2004-12-10 Thread Greg Donald
the mysql query. > > Does anyone know how I can remove such chracters? You can use one of the string replacement functions, eregi_replace() for example. If you're sure it's a return character then \r is what you want to replace, or it might possibly be \r\n. -- Greg Dona

Re: [PHP] Launch windows application and fle

2004-12-10 Thread Greg Donald
ect control on which I have installed the > application. I would detect and send over the correct file type header(), then pass the file with readfile(). -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Donald
l execution lifetime is less than a second or two. The overhead just isn't worth it. http://www.geocities.com/tablizer/oopbad.htm [1] ma·lar·key also ma·lar·ky Audio pronunciation of "malarkey" ( P ) Pronunciation Key (m-lärk) n. Slang Exaggerated or foolish talk, usually inte

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Donald
's at this time.", as your promotion > for completing the project goes down the drain. If your boss switches databases at the end of the project then he's an idiot and it should be his problem, not yours. There are a number of database abstration layers out there btw :)

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Donald
but we don't have to since they already made it. No OO in the kernel was the verdict many times over: http://marc.theaimsgroup.com/?l=linux-kernel -- 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] allow_url_fopen ini directive not enough

2004-12-10 Thread Greg Donald
rry to hear that, I'd recommend you stop using phpMyFantasticGuestbook immediately. And anything else you don't feel paranoid about to audit. I'm no web app cracker but I'm paranoid as they get when it comes to security. Find yourself some security conscious friends. Hang out.

[PHP] Re: Data Access Object (DAO) with PHP

2004-12-11 Thread Greg Beaver
Adwin Wijaya wrote: Hi, Is there any mature DAO class for PHP (free) ? http://pear.php.net/DB_DataObject Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: getimagesize() for image resources

2004-12-13 Thread Greg Donald
On Mon, 13 Dec 2004 23:17:22 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > imagesx() and imagesy() I knew there had to be a way. Thanks so much. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php

Re: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Greg Donald
large number of users doing this. Apache 2 is pretty good with multiple threads from what I hear. I use it but not in a production environment. -- 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 newbyness...

2004-12-13 Thread Greg Donald
contents of $_SESSION[]). When subsequent HTTP requests have this > cookie attached, the correct set of $_SESSION[] variables is loaded... > Everything right? Yup. There are ways to encrypt you PHP sessions if you need such functionality. -- Greg Donald Zend Certified Engineer http:/

Re: [PHP] CGI vs Apache module

2004-12-14 Thread Greg Donald
s) first? > It compiled the CGI > version, which seems to run, but Apache (2.0) doesn't recognize it. > phpinfo() still reports 4.3.2. Did you restart Apache? > Any ideas accepted on making 4.3.9 the default version! What was your ./configure command? -- Greg Don

Re: [PHP] PHP cross platform IDE

2004-12-14 Thread Greg Donald
On Tue, 14 Dec 2004 22:17:57 +0100, Daniel Schierbeck <[EMAIL PROTECTED]> wrote: > And hey, Eclipse is free! So is vim. PHP explodes right on the screen for me, an IDE is so not required. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PH

<    7   8   9   10   11   12   13   14   15   >