[PHP] SESSIONS & classes

2009-11-30 Thread Allen McCabe
I am trying to implement a relatively complete login system code for my website, but the code is a bit dated ($HTTP_POST_VARS for example). I am not too familiar with classes and I'm having trouble with this one. I have an include which is the login form if the SESSION is not set, and a mini cont

[PHP] PHP+Firebird numeric format problem

2009-11-30 Thread helderfelipe
I have a query who is returning a NUMERIC(18,8) column. In the IBExpert, te resultset is: 30,9127 836,5800 But PHP returns in a strange format: 3.9127 83.65800 Somebody help ? -- View this message in context: http://old.nabble.com/PHP%2BFirebird-numeric-format-problem-tp2657

Re: [PHP] string concatenation with fgets

2009-11-30 Thread Shawn McKenzie
aurfal...@gmail.com wrote: > So here is my final test code, notice the check for ' ' in the if. > > Since I'm on Linux, this has to do with whats between the last LF and > EOF which is nothing but this nothing will get printed out. > > $file = fopen("somefile.txt", "r"); > while (! feof($file)) >

Re: [PHP] PHP+Firebird numeric format problem

2009-11-30 Thread Philip Thompson
On Nov 30, 2009, at 5:37 AM, helderfelipe wrote: > I have a query who is returning a NUMERIC(18,8) column. > > In the IBExpert, te resultset is: > > 30,9127 > 836,5800 > > But PHP returns in a strange format: > > 3.9127 > 83.65800 > > Somebody help ? That "strange format" you

RE: [PHP] How to create a web application like igoogle?

2009-11-30 Thread Bob McConnell
From: Ali Asghar Toraby Parizy > How can i create a web page that include some gadgets? what kind of > technology do i have to use to creating web pages like igoogle and gmail? > How can i create them by php? You probably want to look at a portal, something like LifeRay. If that is too far out, t

RE: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Bob McConnell
From: news > even though the dbf has 10K records > Fox can't spend "minutes" to found a match > by the way, its very strange > to have 35 columns in a table/dbf or whatever > > pay attention to the comment of Ashley > in Fox, you should: > > SELECT directory > INDEX on phone_number to idx_di

RE: [PHP] PHP Equivalent to Java Jar or Python Eggs

2009-11-30 Thread Bob McConnell
From: c4...@comcast.net > Has anyone done any work towards packaging of PHP in > a manner similar to jar or eggs? I was working on a > project the other day with a lot of class files and > thought this would be a cool, simple way to deploy > the app. Nope, too much like work. We just wrap it up

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Hernán
of course, i agree xbase needed indexes to work properly Bob McConnell escribió: From: news even though the dbf has 10K records Fox can't spend "minutes" to found a match by the way, its very strange to have 35 columns in a table/dbf or whatever pay attention to the comment of Ashley

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Rahul S. Johari
On Nov 30, 2009, at 11:07 AM, Bob McConnell wrote: From: news even though the dbf has 10K records Fox can't spend "minutes" to found a match by the way, its very strange to have 35 columns in a table/dbf or whatever pay attention to the comment of Ashley in Fox, you should: SELECT direc

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Rahul S. Johari
On Nov 30, 2009, at 11:41 AM, Bob McConnell wrote: From: Rahul S. Johari On Nov 30, 2009, at 11:07 AM, Bob McConnell wrote: From: news even though the dbf has 10K records Fox can't spend "minutes" to found a match by the way, its very strange to have 35 columns in a table/dbf or whatever.

[PHP] Re: PHP Equivalent to Java Jar or Python Eggs

2009-11-30 Thread Carlos Medina
c4...@comcast.net schrieb: Has anyone done any work towards packaging of PHP in a manner similar to jar or eggs? I was working on a project the other day with a lot of class files and thought this would be a cool, simple way to deploy the app. Hi, you can check the Phar solution from PHP Re

Re: [PHP] string concatenation with fgets

2009-11-30 Thread aurfalien
Hi Shawn, Your code looks cleaner then mine so i tried it and got the last entry in the txt file printed twice. On Nov 30, 2009, at 7:07 AM, Shawn McKenzie wrote: aurfal...@gmail.com wrote: So here is my final test code, notice the check for ' ' in the if. Since I'm on Linux, this has to

Re: [PHP] string concatenation with fgets

2009-11-30 Thread Ashley Sheridan
On Mon, 2009-11-30 at 09:04 -0800, aurfal...@gmail.com wrote: > Hi Shawn, > > Your code looks cleaner then mine so i tried it and got the last entry > in the txt file printed twice. > > > On Nov 30, 2009, at 7:07 AM, Shawn McKenzie wrote: > > > aurfal...@gmail.com wrote: > >> So here is my f

Re: [PHP] string concatenation with fgets

2009-11-30 Thread aurfalien
Hi Ash, Actually I need the if because the code will print out an empty line and add "sometext" to it. So without the if check for an empty line, at the end of the loop I'll get sometext. For example, if the file I am processing called somename.txt has a b c in it. I'll have; asomet

Re: [PHP] string concatenation with fgets

2009-11-30 Thread Ashley Sheridan
On Mon, 2009-11-30 at 09:40 -0800, aurfal...@gmail.com wrote: > Hi Ash, > > Actually I need the if because the code will print out an empty line > and add "sometext" to it. > > So without the if check for an empty line, at the end of the loop I'll > get sometext. For example, if the file I

[PHP] Weird compile error

2009-11-30 Thread The Doctor
Has anyone seen this? Script started on Mon Nov 30 11:30:16 2009 doctor.nl2k.ab.ca//usr/source/php-5.3.1$ make libs/libphp5.bundle gcc -I/usr/include -g -g -O0 -Wall -avoid-version -module -L/usr/contrib/lib -L/usr/contrib//lib -L/usr/X11R6/lib -L/usr/contrib/lib/mysql -L/usr/contrib/pgsql/

[PHP] Storing (html and php) Content in MySQL - help

2009-11-30 Thread Allen McCabe
I have been trying to wrap my mind around how to accomplish this for a few days, and done estensive searching on Google. I know there are free CMS systems available for download, but I want to write my own code so I can maintain it and extend it, I need it to be customizable. So far what I have w

Re: [PHP] Storing (html and php) Content in MySQL - help

2009-11-30 Thread John List
Allen McCabe wrote: I have been trying to wrap my mind around how to accomplish this for a few days, and done estensive searching on Google. I know there are free CMS systems available for download, but I want to write my own code so I can maintain it and extend it, I need it to be customizable.

Re: [PHP] Storing (html and php) Content in MySQL - help

2009-11-30 Thread LinuxManMikeC
On Mon, Nov 30, 2009 at 5:52 PM, Allen McCabe wrote: > I have been trying to wrap my mind around how to accomplish this for a few > days, and done estensive searching on Google. > > I know there are free CMS systems available for download, but I want to > write my own code so I can maintain it and

[PHP] Object of class stdClass could not be converted to string

2009-11-30 Thread John Taylor-Johnston
Good grief. It doesn't like printing an INT field like as if it were a string?? I looked at: http://php.ca/manual-lookup.php?pattern=stringtoint like I might of in Delphi :)p echo " $mydata->2010\n"; echo " $mydata->2009\n"; Is this something new in PHP? Geez. John -- PHP General Ma

Re: [PHP] Object of class stdClass could not be converted to string

2009-11-30 Thread LinuxManMikeC
On Mon, Nov 30, 2009 at 10:27 PM, John Taylor-Johnston wrote: > Good grief. It doesn't like printing an INT field like as if it were a > string?? > > I looked at: http://php.ca/manual-lookup.php?pattern=stringtoint like I > might of in Delphi :)p > >    echo " $mydata->2010\n"; >    echo " $mydata