Re: [PHP] Clarity needed

2009-02-05 Thread Thodoris
Hi gang: I need some fog removed. I have a problem where I have an unlimited number of tutors teaching an unlimited number of courses. When I call upon a tutor, I want to see all the courses they teach. In my old days, I would just set up a linked list of courses and attach it to the tuto

Re: [PHP] php rpm

2009-02-05 Thread Thodoris
On Wed, Feb 4, 2009 at 12:59 PM, Daniel Brown wrote: On Wed, Feb 4, 2009 at 09:46, wrote: Okay here is my question. Does anyone know of an RPM of php that is pre-compiled with all the extras like soap, mssql, freetds, etc... Afternoon, Rich, et al; On an RHEL 5.3 sys

Re: [PHP] require() causing strange characters ?

2009-02-05 Thread Paul M Foster
On Fri, Feb 06, 2009 at 06:34:41AM +0100, cr.vege...@gmail.com wrote: > Hi all, > > I have a script called "test.php": > > > and a script called "echo.php": > > > With IE and Firefox it shows: CtestD > but when I view the source, it seems to be: C??testD > > When debugging it, it seems t

Re: [PHP] Pausing PHP scripts

2009-02-05 Thread Sudheer
Ron Piggott wrote: Is there a way to pause a PHP script while it is executing? Ron http://www.php.net/manual/en/function.sleep.php -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailin

[PHP] Pausing PHP scripts

2009-02-05 Thread Ron Piggott
Is there a way to pause a PHP script while it is executing? Ron

[PHP] require() causing strange characters ?

2009-02-05 Thread cr.vegelin
Hi all, I have a script called "test.php": and a script called "echo.php": With IE and Firefox it shows: CtestD but when I view the source, it seems to be: C�testD When debugging it, it seems that: > "CtestD" has length 9 in stead of 6 > pos1has char=C ord=67 > pos2has ch

Re: [PHP] cgi vs php

2009-02-05 Thread Vikas Sharma
Thanx for your reply Thodoris i really new to this. i will follow your suggestions. and i admit tht my query was silly its b'zoz i know less . but wht the hell reply by the "Martin Zvarík". has he done all this in womb. MZ u also need to think before commenting such. On Thu, Feb

Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread Phpster
My two cents, It's not bad, but you need to be aware of collisions. We set it up with a folder for each developer and it contains the main application code. The upside is that we each have our own code base so we don't affect each other when cutting new code. The downside is that we can e

Re: [PHP] Re: Zend Framework and IIS

2009-02-05 Thread steve
See this blog entry: http://2bits.com/articles/high-php-execution-times-drupal-and-tuning-apc-includeonce-performance.html On Fri, Jan 30, 2009 at 12:49 PM, Robert Cummings wrote: > On Fri, 2009-01-30 at 15:42 -0500, Andrew Ballard wrote: >> On Fri, Jan 30, 2009 at 12:46 PM, Andrew Ballard wrot

Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread German Geek
I use GIT and Subversion. Subversion is still a bit hard to use (branching etc) and not distributed but that was before i knew about GIT :-P. You have a central repository that you need to commit to and it's still quite CVS like (which is really confusing and horrible). GIT is nice and fast and al

Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread TG
So, for my purposes.. after trying a handful of solutions.. open source and commercial.. I think I've decided that Reliable Software's "Code Co-op" is what's going to work best for me. My trial is almost up, so as soon as my next paycheck comes, I think I'll be purchasing the full version for

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread Daniel Brown
On Thu, Feb 5, 2009 at 20:10, German Geek wrote: > I've thought about this problem before but couldn't think of a solution > either. How does func_get_args() solve this? You could make a wrapper > function without that. It's all in how it's used. Ironically, I don't remember saying that you

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread Shawn McKenzie
German Geek wrote: > I've thought about this problem before but couldn't think of a solution > either. How does func_get_args() solve this? You could make a wrapper > function without that. > > How would u (php) know which parameter u mean in a particular case? > > I think it would just be useful

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread Jim Lucas
Daevid Vincent wrote: > Is there a way to use the default values of a function without > specifying every single one until the parameter you want to modify in > PHP5 ? > > I don't see it here, but feel this would be very useful indeed. > http://www.php.net/manual/en/functions.arguments.php > > So

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread German Geek
I've thought about this problem before but couldn't think of a solution either. How does func_get_args() solve this? You could make a wrapper function without that. How would u (php) know which parameter u mean in a particular case? I think it would just be useful to have an IDE that can write ou

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Micah Gersten
Philip Thompson wrote: > In my php.ini, I have > > error_reporting = E_ALL & ~E_NOTICE > > When I run a script from the command line, I get a lot of notices > even when I said I don't want them. Also, in my script, I specified > error_reporting(E_ERROR) in attempts to explicitly tell it what I

Re: [PHP] Preserving History

2009-02-05 Thread Jochem Maas
Dan Shirah schreef: >> Hi gang: >> >> To further the Garbage Collection thread on to another level (i.e., >> preserving history) please consider this: >> >> Okay, let's say we have a table containing all the instances of tutors >> teaching courses. A record might look like this: >> >> Course-to-Tut

Re: [PHP] Clarity needed

2009-02-05 Thread Shawn McKenzie
Jochem Maas wrote: > Daniel Brown schreef: >> On Thu, Feb 5, 2009 at 07:56, Jochem Maas wrote: >>> and the answer to you Q, like everyone else said: yup :-) >>> >>> PS - given you unlimited resources you might consider doing a >>> charitable donation to FoxNews aficionados :-) >> Or reminding

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread Daniel Brown
On Thu, Feb 5, 2009 at 18:50, Daevid Vincent wrote: > Is there a way to use the default values of a function without > specifying every single one until the parameter you want to modify in > PHP5 ? Daevid, Check out func_get_args(): http://php.net/func_get_args Then you can rename y

Re: [PHP] Clarity needed

2009-02-05 Thread Jochem Maas
Daniel Brown schreef: > On Thu, Feb 5, 2009 at 07:56, Jochem Maas wrote: >> and the answer to you Q, like everyone else said: yup :-) >> >> PS - given you unlimited resources you might consider doing a >> charitable donation to FoxNews aficionados :-) > > Or reminding you how to speak English

Re: [PHP] Email configuration

2009-02-05 Thread It flance
Thanks guys, I'm gonna read all this staff, and let you know if have some issues. Thanks a lot --- On Thu, 2/5/09, Yannick Mortier wrote: > From: Yannick Mortier > Subject: Re: [PHP] Email configuration > To: t...@kinetix.gr > Cc: itmaqu...@yahoo.com, php-general@lists.php.net > Date: Thursd

[PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread Daevid Vincent
Is there a way to use the default values of a function without specifying every single one until the parameter you want to modify in PHP5 ? I don't see it here, but feel this would be very useful indeed. http://www.php.net/manual/en/functions.arguments.php So given a function that takes seven par

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Phpster
Asp(.net) has no real problems connecting to mysql. But it's slower than php. Bastien Sent from my iPod On Feb 5, 2009, at 16:39, Ashley Sheridan wrote: On Thu, 2009-02-05 at 16:19 -0500, Robert Cummings wrote: On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: revDAVE wrote: Hi

Re: [PHP] German characters Ö,Ä etc. show up as ?

2009-02-05 Thread Eric Butera
On Thu, Feb 5, 2009 at 7:37 AM, Merlin Morgenstern wrote: > Hi there, > > I recently upgraded on my prod system from php 4.x to the newest php > version. Now german characters lik "Ö" show up as ?. I have the same setup > running on a test server, where the characters show up OK. After searching >

Re: [PHP] German characters Ö,Ä etc. show up as ?

2009-02-05 Thread Ashley Sheridan
On Fri, 2009-02-06 at 12:23 +1300, German Geek wrote: > Do they show up as ? just in the web page or in the source returned? Did you > check the source of the page? I had this problem before and as far as i > remember, i just needed to encode them like oe (have an american keyboard > ;-) ö etc. If

Re: [PHP] German characters Ö,Ä etc. show up as ?

2009-02-05 Thread German Geek
Do they show up as ? just in the web page or in the source returned? Did you check the source of the page? I had this problem before and as far as i remember, i just needed to encode them like oe (have an american keyboard ;-) ö etc. If it's a literal ? in the source, it's PHP and you might need to

Re: [PHP] function_exists question

2009-02-05 Thread Chris
How about this PHP developers: You could make a global variable (or constant) the user can set like define('PHP_COMPATIBLE_VERSION', '5.0.1'); or something to tell PHP 6 to interpret it like PHP 5.x . That way, at least you are guaranteed that the code will work like on that version. It might

RE: [PHP] function_exists question

2009-02-05 Thread Boyd, Todd M.
> -Original Message- > From: th.he...@gmail.com [mailto:th.he...@gmail.com] On Behalf Of > German Geek > Sent: Thursday, February 05, 2009 5:02 PM > To: t...@kinetix.gr > Cc: Matt Pagel; php-general@lists.php.net > Subject: Re: [PHP] function_exists question > > Why can't you update to Ver

Re: [PHP] function_exists question

2009-02-05 Thread German Geek
Why can't you update to Version 5? I might be a bit anal about trying to always get the newest version of everything, but seriously version 3 has surely more known security issues as well as performance costs. What's the cost of upgrading compared to the cost of writing code that works in every ve

Re: [PHP] Sometime the code works and sometimes doesn't

2009-02-05 Thread German Geek
I would also suggest that you hash the passwords at least (better even with a salt value) and then reset the password to something random before sending it to the user. Email can be sniffed relatively easily and this would expose a possible carefully chosen password by the user and then they have t

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
On Feb 5, 2009, at 4:20 PM, Boyd, Todd M. wrote: -Original Message- From: Philip Thompson [mailto:philthath...@gmail.com] Sent: Thursday, February 05, 2009 3:45 PM To: PHP General list Subject: [PHP] CLI not obeying php.ini In my php.ini, I have error_reporting = E_ALL & ~E_NOTICE Whe

Re: [PHP] Preserving History

2009-02-05 Thread Paul M Foster
On Thu, Feb 05, 2009 at 04:38:25PM -0500, tedd wrote: > Hi gang: > > To further the Garbage Collection thread on to another level (i.e., > preserving history) please consider this: > > Okay, let's say we have a table containing all the instances of > tutors teaching courses. A record might look li

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread revDAVE
On 2/5/2009 1:03 PM, "Nathan Rixham" wrote: Nathan - Thanks so much for your detailed info - much appreciated! On 2/5/2009 1:19 PM, "Robert Cummings" wrote: > Isn't Yahoo using PHP? I thought Facebook too? Doesn't seem like they > moved away from a scripting language. And BTW - it seems as t

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
On Feb 5, 2009, at 4:10 PM, Chris wrote: Philip Thompson wrote: In my php.ini, I have error_reporting = E_ALL & ~E_NOTICE When I run a script from the command line, I get a lot of notices even when I said I don't want them. Also, in my script, I specified error_reporting(E_ERROR) in att

RE: [PHP] CLI not obeying php.ini

2009-02-05 Thread Boyd, Todd M.
> -Original Message- > From: Philip Thompson [mailto:philthath...@gmail.com] > Sent: Thursday, February 05, 2009 3:45 PM > To: PHP General list > Subject: [PHP] CLI not obeying php.ini > > In my php.ini, I have > > error_reporting = E_ALL & ~E_NOTICE > > When I run a script from the comm

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
On Feb 5, 2009, at 4:17 PM, Ashley Sheridan wrote: On Thu, 2009-02-05 at 15:45 -0600, Philip Thompson wrote: In my php.ini, I have error_reporting = E_ALL & ~E_NOTICE When I run a script from the command line, I get a lot of notices even when I said I don't want them. Also, in my script,

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Chris
Philip Thompson wrote: In my php.ini, I have error_reporting = E_ALL & ~E_NOTICE When I run a script from the command line, I get a lot of notices even when I said I don't want them. Also, in my script, I specified error_reporting(E_ERROR) in attempts to explicitly tell it what I want. I

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Ashley Sheridan
On Thu, 2009-02-05 at 15:45 -0600, Philip Thompson wrote: > In my php.ini, I have > > error_reporting = E_ALL & ~E_NOTICE > > When I run a script from the command line, I get a lot of notices > even when I said I don't want them. Also, in my script, I specified > error_reporting(E_ERROR)

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Robert Cummings
On Thu, 2009-02-05 at 21:28 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: > >> revDAVE wrote: > >>> Hi Folks, > >>> > >>> I¹m curious if there are any previous discussions / Articles / URL¹s that > >>> compare the power and scalabil

Re: [PHP] Preserving History

2009-02-05 Thread Stuart
2009/2/5 tedd : > To further the Garbage Collection thread on to another level (i.e., > preserving history) please consider this: > > Okay, let's say we have a table containing all the instances of tutors > teaching courses. A record might look like this: > > Course-to-Tutor table > course_id = 123

Re: [PHP] Preserving History

2009-02-05 Thread Chris
tedd wrote: Hi gang: To further the Garbage Collection thread on to another level (i.e., preserving history) please consider this: Okay, let's say we have a table containing all the instances of tutors teaching courses. A record might look like this: Course-to-Tutor table course_id = 123 t

Re: [PHP] DB Comparisons

2009-02-05 Thread Paul M Foster
On Thu, Feb 05, 2009 at 12:36:02PM -0800, revDAVE wrote: > Hi Folks, > > I¹m curious if there are any previous discussions / Articles / URL¹s that > compare the power and scalability of MySQL (with php) with other > technologies like MS sequel server oracle - coldfusion etc > > I imagine th

Re: [PHP] Preserving History

2009-02-05 Thread Dan Shirah
> > Hi gang: > > To further the Garbage Collection thread on to another level (i.e., > preserving history) please consider this: > > Okay, let's say we have a table containing all the instances of tutors > teaching courses. A record might look like this: > > Course-to-Tutor table > course_id = 123

Re: [PHP] DB Comparisons

2009-02-05 Thread Chris
Larry Garfield wrote: On Thu, 05 Feb 2009 12:36:02 -0800, revDAVE wrote: Hi Folks, I¹m curious if there are any previous discussions / Articles / URL¹s that compare the power and scalability of MySQL (with php) with other technologies like MS sequel server oracle - coldfusion etc I imagi

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Stuart
2009/2/5 Nathan Rixham : > Robert Cummings wrote: >> >> On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: >>> >>> revDAVE wrote: Hi Folks, I¹m curious if there are any previous discussions / Articles / URL¹s that compare the power and scalability of MySQL (with p

[PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
In my php.ini, I have error_reporting = E_ALL & ~E_NOTICE When I run a script from the command line, I get a lot of notices even when I said I don't want them. Also, in my script, I specified error_reporting(E_ERROR) in attempts to explicitly tell it what I want. It doesn't work either

[PHP] Preserving History

2009-02-05 Thread tedd
Hi gang: To further the Garbage Collection thread on to another level (i.e., preserving history) please consider this: Okay, let's say we have a table containing all the instances of tutors teaching courses. A record might look like this: Course-to-Tutor table course_id = 123 tutor_id = 7 d

Re: [PHP] DB Comparisons

2009-02-05 Thread Larry Garfield
On Thu, 05 Feb 2009 12:36:02 -0800, revDAVE wrote: > Hi Folks, > > I¹m curious if there are any previous discussions / Articles / URL¹s > that > compare the power and scalability of MySQL (with php) with other > technologies like MS sequel server oracle - coldfusion etc > > I imagine that

Re: RES: [PHP] Bad words [SQL, database, txt, whatever]

2009-02-05 Thread Ashley Sheridan
On Thu, 2009-02-05 at 15:07 -0600, Shawn McKenzie wrote: > Ashley Sheridan wrote: > > On Wed, 2009-02-04 at 18:34 -0200, Jônatas Zechim wrote: > >> Thank you, but i thought one of you had the .sql or .txt, .xls, etc. > >> I had already find that results. > >> > >> But it's ok now.. > >> > >> zechim

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Ashley Sheridan
On Thu, 2009-02-05 at 16:19 -0500, Robert Cummings wrote: > On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: > > revDAVE wrote: > > > Hi Folks, > > > > > > I¹m curious if there are any previous discussions / Articles / URL¹s that > > > compare the power and scalability of MySQL (with php) w

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: revDAVE wrote: Hi Folks, I¹m curious if there are any previous discussions / Articles / URL¹s that compare the power and scalability of MySQL (with php) with other technologies like MS sequel server oracle - coldfu

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Robert Cummings
On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: > revDAVE wrote: > > Hi Folks, > > > > I¹m curious if there are any previous discussions / Articles / URL¹s that > > compare the power and scalability of MySQL (with php) with other > > technologies like MS sequel server oracle - coldfusion

Re: RES: [PHP] Bad words [SQL, database, txt, whatever]

2009-02-05 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Wed, 2009-02-04 at 18:34 -0200, Jônatas Zechim wrote: >> Thank you, but i thought one of you had the .sql or .txt, .xls, etc. >> I had already find that results. >> >> But it's ok now.. >> >> zechim >> >> -Mensagem original- >> De: Andrew Ballard [mailto:aball...

[PHP] Re: DB Comparisons

2009-02-05 Thread Nathan Rixham
revDAVE wrote: Hi Folks, I¹m curious if there are any previous discussions / Articles / URL¹s that compare the power and scalability of MySQL (with php) with other technologies like MS sequel server oracle - coldfusion etc I imagine that most middleware like php / asp / coldfusion is relat

[PHP] DB Comparisons

2009-02-05 Thread revDAVE
Hi Folks, I¹m curious if there are any previous discussions / Articles / URL¹s that compare the power and scalability of MySQL (with php) with other technologies like MS sequel server oracle - coldfusion etc I imagine that most middleware like php / asp / coldfusion is relatively good & fast

Re: RES: [PHP] Connect local app to a web app

2009-02-05 Thread Jim Lucas
Jônatas Zechim wrote: > Ok, i have a app running on a website writen in php that insert data into a > database(web) every 3s all day long, and I need to get this data(every 3s > too) and save into local database, both are mysql database, but I don't know > the best way to do it, with socks, XML,

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Terion Miller
Just use a session_start() before any output to the server, and the > sessions array will be available to your code. > > > Ash > www.ashleysheridan.co.uk > > Ah ha...and now I know why my O'reilly book Web Database Applications with PHP was so inexpensive... :) it's outdated...oops...

Re: [PHP] Is it possible to send POST vars through aheaderredirect?

2009-02-05 Thread Shawn McKenzie
tedd wrote: > At 1:18 PM -0600 2/5/09, Shawn McKenzie wrote: >> tedd wrote: >>> At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header("Location: http://

RES: [PHP] Connect local app to a web app

2009-02-05 Thread Jônatas Zechim
Ok, i have a app running on a website writen in php that insert data into a database(web) every 3s all day long, and I need to get this data(every 3s too) and save into local database, both are mysql database, but I don't know the best way to do it, with socks, XML, XML-RPC. Thanks Zechim. --

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Jim Lucas
Alpár Török wrote: > 2009/2/5 Alpár Török > >> >> 2009/2/5 Paul M Foster >> >> On Thu, Feb 05, 2009 at 05:24:45PM -0200, Jônatas Zechim wrote: Hi there, i'm here again, but now with another doubt. What's the best way to connect a local app write in php or php-gtk to a >>> web

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Alpár Török
2009/2/5 Alpár Török > > > 2009/2/5 Paul M Foster > > On Thu, Feb 05, 2009 at 05:24:45PM -0200, Jônatas Zechim wrote: >> >> > Hi there, i'm here again, but now with another doubt. >> > >> > What's the best way to connect a local app write in php or php-gtk to a >> web >> > app writen in php. >>

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Alpár Török
2009/2/5 Paul M Foster > On Thu, Feb 05, 2009 at 05:24:45PM -0200, Jônatas Zechim wrote: > > > Hi there, i'm here again, but now with another doubt. > > > > What's the best way to connect a local app write in php or php-gtk to a > web > > app writen in php. > > The database is MySql, and i need t

RE: [PHP] Connect local app to a web app

2009-02-05 Thread bruce
hi... can you describe in psuedocode what you're trying to accomplish? might be able to help if i have a better understanding of where you're trying to go. -Original Message- From: Jônatas Zechim [mailto:zechim@gmail.com] Sent: Thursday, February 05, 2009 11:25 AM To: php-general@l

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Paul M Foster
On Thu, Feb 05, 2009 at 05:24:45PM -0200, Jônatas Zechim wrote: > Hi there, i'm here again, but now with another doubt. > > What's the best way to connect a local app write in php or php-gtk to a web > app writen in php. > The database is MySql, and i need to do this connection every 3s to check

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Jim Lucas
Jônatas Zechim wrote: > Hi there, i'm here again, but now with another doubt. > > What's the best way to connect a local app write in php or php-gtk to a web > app writen in php. > The database is MySql, and i need to do this connection every 3s to check > data, get the data back and save into loc

Re: [PHP] Garbage Collection

2009-02-05 Thread Paul M Foster
On Thu, Feb 05, 2009 at 02:48:14PM -0500, tedd wrote: > At 7:03 PM + 2/5/09, Nathan Rixham wrote: >> IMHO forget the active flag, replace it with a field "deleted" which >> is a timestamp, then you've got an audit trail of when the it was >> removed :) >> >> infact often seen three fields on e

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Bruno Fajardo
Maybe X-Debug (http://www.xdebug.org/) could help you find bugs in your code, and for development environments it's recommended to use the most sensitive level of messages (turn on E_STRICT and E_NOTIVE, for example). 2009/2/5 Ashley Sheridan > > On Thu, 2009-02-05 at 12:22 -0500, Paul M Foster w

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Ashley Sheridan
On Thu, 2009-02-05 at 11:16 -0600, Terion Miller wrote: > On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote: > > > Edmund Hertle wrote: > > > >> 2009/2/1 Terion Miller > >> > >> This is how it was originally written: > > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != > > > >

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread VamVan
On Thu, Feb 5, 2009 at 9:16 AM, Terion Miller wrote: > On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote: > > > Edmund Hertle wrote: > > > >> 2009/2/1 Terion Miller > >> > >> This is how it was originally written: > > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != > > >

Re: [PHP] Garbage Collection

2009-02-05 Thread tedd
At 7:03 PM + 2/5/09, Nathan Rixham wrote: IMHO forget the active flag, replace it with a field "deleted" which is a timestamp, then you've got an audit trail of when the it was removed :) infact often seen three fields on every table, "inserted, updated and deleted" all timestamps and sel

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Ashley Sheridan
On Thu, 2009-02-05 at 12:22 -0500, Paul M Foster wrote: > On Thu, Feb 05, 2009 at 11:11:03AM -0600, Terion Miller wrote: > > > > > Speaking of IDE, which do people on here prefer, I have been using > > Dreamweaver CS3 just because as originally a designer I was/am used to it... > > I did finally

Re: [PHP] German characters Ö,Ä etc. show up as ?

2009-02-05 Thread Ashley Sheridan
On Thu, 2009-02-05 at 13:37 +0100, Merlin Morgenstern wrote: > Hi there, > > I recently upgraded on my prod system from php 4.x to the newest php > version. Now german characters lik "Ö" show up as ?. I have the same > setup running on a test server, where the characters show up OK. After > sea

[PHP] Connect local app to a web app

2009-02-05 Thread Jônatas Zechim
Hi there, i'm here again, but now with another doubt. What's the best way to connect a local app write in php or php-gtk to a web app writen in php. The database is MySql, and i need to do this connection every 3s to check data, get the data back and save into localhost database. -- PHP General

Re: [PHP] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread tedd
At 1:18 PM -0600 2/5/09, Shawn McKenzie wrote: tedd wrote: At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header("Location: http://domain/?somevar=somevalue";) That would, by

Re: [PHP] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread Shawn McKenzie
tedd wrote: > At 2:52 AM -0700 2/5/09, TS wrote: >> I want my script to run and redirect with >> the var to another page without the user seeing it. Currently, I am using >> GET and >> >> header("Location: http://domain/?somevar=somevalue";) > > That would, by definition, allow the user to see it.

Re: [PHP] Garbage Collection

2009-02-05 Thread Nathan Rixham
Dan Shirah wrote: Hi gang: A related question to my last "Clarity needed" post. I have a tutor table (showing all the tutors), a course table (showing all the courses), and a course-to-tutor table (showing all the instances of what tutor teaches what course). Okay, everything works. Whenever I

Re: [PHP] Clarity needed

2009-02-05 Thread Daniel Brown
On Thu, Feb 5, 2009 at 07:56, Jochem Maas wrote: > > and the answer to you Q, like everyone else said: yup :-) > > PS - given you unlimited resources you might consider doing a > charitable donation to FoxNews aficionados :-) Or reminding you how to speak English, Jochem. What the hell are y

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Paul M Foster
On Thu, Feb 05, 2009 at 11:11:03AM -0600, Terion Miller wrote: > > Speaking of IDE, which do people on here prefer, I have been using > Dreamweaver CS3 just because as originally a designer I was/am used to it... > I did finally find the problem but moving an echo("damnit"); from line to > line c

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Terion Miller
On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote: > Edmund Hertle wrote: > >> 2009/2/1 Terion Miller >> >> This is how it was originally written: > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != > true){ >>> header ("Location: LogOut.php"); >$_SESSION[

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Terion Miller
> > > Better yet, use a IDE the does code highlighting. This would point you to > the problem rather quickly. > > -- > Jim Lucas > > "Some men are born to greatness, some achieve greatness, > and some have greatness thrust upon them." > > Twelfth Night, Act II, Scene V >by William Shak

Re: [PHP] Garbage Collection

2009-02-05 Thread Bastien Koert
On Thu, Feb 5, 2009 at 11:10 AM, Eric Butera wrote: > On Thu, Feb 5, 2009 at 11:06 AM, tedd wrote: > > Hi gang: > > > > A related question to my last "Clarity needed" post. > > > > I have a tutor table (showing all the tutors), a course table (showing > all > > the courses), and a course-to-tuto

Re: [PHP] kadm5 Library

2009-02-05 Thread Tim Gustafson
> Did you try to install krb5-devel. Try "yum search krb5" to > see all the available packages that CentOS includes. In > case your yum doesn't find something you may add more > repos like Dag's: I did. The krb5-devel package is the one that installed krb5/krb5.h, but as I mentioned that seems t

Re: [PHP] Garbage Collection

2009-02-05 Thread Dan Shirah
> > Hi gang: > > A related question to my last "Clarity needed" post. > > I have a tutor table (showing all the tutors), a course table (showing all > the courses), and a course-to-tutor table (showing all the instances of what > tutor teaches what course). > > Okay, everything works. Whenever I wa

RE: [PHP] Garbage Collection

2009-02-05 Thread Boyd, Todd M.
> -Original Message- > From: tedd [mailto:t...@sperling.com] > Sent: Thursday, February 05, 2009 10:07 AM > To: php-general@lists.php.net > Subject: [PHP] Garbage Collection > > Hi gang: > > A related question to my last "Clarity needed" post. > > I have a tutor table (showing all the tu

Re: [PHP] Garbage Collection

2009-02-05 Thread Eric Butera
On Thu, Feb 5, 2009 at 11:06 AM, tedd wrote: > Hi gang: > > A related question to my last "Clarity needed" post. > > I have a tutor table (showing all the tutors), a course table (showing all > the courses), and a course-to-tutor table (showing all the instances of what > tutor teaches what course

[PHP] Garbage Collection

2009-02-05 Thread tedd
Hi gang: A related question to my last "Clarity needed" post. I have a tutor table (showing all the tutors), a course table (showing all the courses), and a course-to-tutor table (showing all the instances of what tutor teaches what course). Okay, everything works. Whenever I want to find ou

Re: [PHP] cgi vs php

2009-02-05 Thread Martin Zvarík
Thodoris napsal(a): Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: [snip] can any

Re: [PHP] Email configuration

2009-02-05 Thread Yannick Mortier
2009/2/5 Thodoris : > > I think that the OP mentioned the word fedora somewhere above... > Oh sorry, I'm so stupid... Anyways, if you want to send mail to large providers you'll need to use a relay. I found a nice tutorial about how to set it up with google apps. It was for Ubuntu but you just hav

Re: [PHP] kadm5 Library

2009-02-05 Thread Thodoris
Sorry, I could have been a little clearer: I can't recompile PHP. It's against our general policy to use custom compiled software on the grounds that there are too many sysadmins managing a lot of these machines and if some software is custom compiled and others not, it gets too confusing w

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Eric Butera
On Mon, Feb 2, 2009 at 12:51 PM, Jim Lucas wrote: > Terion Miller wrote: >> Is there a certain thing that should be suspected and looked at first when >> getting the php blank page of hell >> I have errors on and nothing is being output anywhere to lead me in the >> right direction, I have a V

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Thodoris
Is there a certain thing that should be suspected and looked at first when getting the php blank page of hell I have errors on and nothing is being output anywhere to lead me in the right direction, I have a VariableReveal script (one of you provide and THANK YOU IT HAS BEEN A LIFESAVER) But

Re: [PHP] cgi vs php

2009-02-05 Thread Thodoris
Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: [snip] can anybody tell me the benef

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-05 Thread tedd
At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header("Location: http://domain/?somevar=somevalue";) That would, by definition, allow the user to see it. If you want to pass a varia

Re: [PHP] Email configuration

2009-02-05 Thread Thodoris
2009/2/5 It flance : Hi all, I've installed php and mysql in fedora. Now i am able to create php programs. But when I am unable to use email in my programs. I am wondering what is the easiest way to use email in my php programs. Can i send email from my personal computer. I am a regular

Re: [PHP] cgi vs php

2009-02-05 Thread Vikas Sharma
Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: > [snip] > can anybody tell me the benefits

RE: [PHP] cgi vs php

2009-02-05 Thread Jay Blanchard
[snip] can anybody tell me the benefits of php over cgi or vice versa? i need to compare both? [/snip] CGI is a gateway to be used by languages PHP is a language -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cgi vs php

2009-02-05 Thread Vikas Sharma
can anybody tell me the benefits of php over cgi or vice versa? i need to compare both? -- vikas sharma

Re: [PHP] Clarity needed

2009-02-05 Thread Jochem Maas
tedd schreef: > Hi gang: > > I need some fog removed. does HARPP have anything for that? what about this? : http://www.postcard.org/fog.mp3 and the answer to you Q, like everyone else said: yup :-) PS - given you unlimited resources you might consider doing a charitable donation to FoxNews afic

Re: [PHP] Where does the sendmail() function come from?

2009-02-05 Thread Richard Heyes
> think I shouldve stayed > in bed today. I feel like that most days... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 31st) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Email configuration

2009-02-05 Thread Yannick Mortier
2009/2/5 It flance : > Hi all, > > I've installed php and mysql in fedora. Now i am able to create php programs. > But when I am unable to use email in my programs. I am wondering what is the > easiest way to use email in my php programs. Can i send email from my > personal computer. I am a regu

  1   2   >