[PHP] mysql connections

2009-06-01 Thread Grega Leskovsek
how do I make a permanent connection to mysql database and what is difference between mysql_connect() and permanent one? If I make connections in one file and redirect it to another file do I keep connection (permanent / standard)? Do I lose connection only when I type mysql_close (permanent/ st

Re: [PHP] spawning a process that uses pipes - doesn't terminatewhen webpage download is canceled

2009-06-01 Thread flint
- Original Message - From: "Robert Cummings" To: "flint" Cc: "PHP-General List" Sent: Sunday, May 31, 2009 10:15 PM Subject: Re: [PHP] spawning a process that uses pipes - doesn't terminatewhen webpage download is canceled I'm already doing something like that... here's what I hav

[PHP] Anyone know whats the best way to learn PHP

2009-06-01 Thread Muhammad Hassan Samee
Hi Anyone know whats the best way to learn PHP? Every time I open an php book or look the codes online, my mind goes "oh man, So many stuffs to learn and gets frustrated before i even start" but on the other hand, I don't know why some how the brain keep on nagging me to learn PHP. I guess what's

Re: [PHP] Anyone know whats the best way to learn PHP

2009-06-01 Thread Patrick
I don't think there are any substitutes for good books but www.phpvideotutorials.com has screencasts. I have really enjoyed them. There are free ones and paid ones. If funds permit I would recommend the paid ones, there are hours and hours of them. It does not work out to be much at all per hour. T

Re: [PHP] Anyone know whats the best way to learn PHP

2009-06-01 Thread Michael A. Peters
Muhammad Hassan Samee wrote: Hi Anyone know whats the best way to learn PHP? Every time I open an php book or look the codes online, my mind goes "oh man, So many stuffs to learn and gets frustrated before i even start" but on the other hand, I don't know why some how the brain keep on nagging m

[PHP] Re: Anyone know whats the best way to learn PHP

2009-06-01 Thread Nathan Rixham
Muhammad Hassan Samee wrote: Hi Anyone know whats the best way to learn PHP? Every time I open an php book or look the codes online, my mind goes "oh man, So many stuffs to learn and gets frustrated before i even start" but on the other hand, I don't know why some how the brain keep on nagging m

[PHP] Instantiate SOAP Request Objects

2009-06-01 Thread Samuel Vogel
Hey, I would like to know how I can instantiate the types that I get via the __getTypes() function or know if this is even possible. I am asking because I have a webservice in which all functions expect an specific object to be passed to them, rather than a list of arguments. And I am hoping t

Re: [PHP] Anyone know whats the best way to learn PHP

2009-06-01 Thread Peter van der Does
On Mon, 1 Jun 2009 15:43:21 +0500 Muhammad Hassan Samee wrote: > Hi > > Anyone know whats the best way to learn PHP? Every time I open an php > book or look the codes online, my mind goes "oh man, So many stuffs > to learn and gets frustrated before i even start" but on the other > hand, I don't

RE: [PHP] spawning a process that uses pipes - doesn't terminatewhen webpage download is canceled

2009-06-01 Thread Robert Cummings
On Sun, 2009-05-31 at 21:23 -0700, bruce wrote: > hi robert.,, > > now you've got me curious.. > > you state... > > -Use something else to pass the data back to the user... popen() comes to > -mind or proc_open(). Then disable auto abort on user disconnect via > -ignore_user_abort(). Then after

Re: [PHP] Anyone know whats the best way to learn PHP

2009-06-01 Thread Tom Worster
On 6/1/09 6:43 AM, "Muhammad Hassan Samee" wrote: > Anyone know whats the best way to learn PHP? Every time I open an php book > or look the codes online, my mind goes "oh man, So many stuffs to learn and > gets frustrated before i even start" but on the other hand, I don't know why > some how th

Re: [PHP] spawning a process that uses pipes - doesn't terminatewhen webpage download is canceled

2009-06-01 Thread Robert Cummings
On Mon, 2009-06-01 at 05:15 -0500, flint wrote: > - Original Message - > From: "Robert Cummings" > To: "flint" > Cc: "PHP-General List" > Sent: Sunday, May 31, 2009 10:15 PM > Subject: Re: [PHP] spawning a process that uses pipes - doesn't > terminatewhen webpage download is canceled >

Re: [PHP] Jacob's Calendar

2009-06-01 Thread Daniel Brown
On Mon, Jun 1, 2009 at 00:55, Jacob Kutty wrote: > Hi > > I am creating a birthday calendar of all my friends and family.  Can you > please click on the link below to enter your birthday for me? > > http://www.birthdayalarm.com/bd2/85206071a420999425b1469532889c603775600d905 Please do not se

[PHP] Comparing data - big file

2009-06-01 Thread דניאל דנון
As continuation to my last question, I got another one. a brief summary: I had to process a file that contains 700,000 lines, each line contained some data (lets assume each line was like: name|age|work|lastaccessed ) age contains the person's age in time() format, how many seconds has past since

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
On Mon, Jun 1, 2009 at 12:30 AM, Manuel Lemos wrote: > Hello, > > on 05/28/2009 10:20 AM Olexandr Heneralov said the following: >> Hi! >> Guys, you of course, know that  ASP.NET becomes more and more popular in the >> world. >> I have a question for everyone: >> Can it happen so that PHP will be r

Re: [PHP] Autoloading with namespaces in 5.3.0

2009-06-01 Thread Nathan Nobbe
On Sat, May 30, 2009 at 1:51 PM, Eddie Drapkin wrote: > Hey, I'm looking to start playing with 5.3.0, and thus by extension, > namespaces. One of the things that I definitely need support for is > autoloading, and the docs aren't exactly explicit in some (obvious to me) > cases. > > I have an au

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Dee Ayy
> ASP.NET is not a language. It is more like a framework that can run > multiple languages. It can run VB.NET, C# and even PHP (although it is > not usual). I'm going to shoot from a (90's?) hip on this one. Isn't ".NET" the framework, and ".NET" the language? ASP.NET uses ASP to access the .NET

RE: [PHP] spawning a process that uses pipes - doesn'tterminatewhen webpage download is canceled

2009-06-01 Thread bruce
hi robert... i got the popen/php process but i don't see how one can stop a browser/apache process, and somehow reattach to the browser process.. unless he's talking about stopping a process within the app's context.. and then contniuing.. -Original Message- From: Robert Cummings [mail

RE: [PHP] spawning a process that uses pipes - doesn'tterminatewhen webpage download is canceled

2009-06-01 Thread Robert Cummings
On Mon, 2009-06-01 at 07:52 -0700, bruce wrote: > hi robert... > > i got the popen/php process but i don't see how one can stop a > browser/apache process, and somehow reattach to the browser process.. unless > he's talking about stopping a process within the app's context.. and then > contniuing.

Re: [PHP] PHP vs ASP.NET

2009-06-01 Thread Dee Ayy
>    "Will Assembly be replaced by LOLCODE?"  Nonsense - they're > separate entities. KTHXBYE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Autoloading with namespaces in 5.3.0

2009-06-01 Thread Eddie Drapkin
I did some further research and think I can manage to load \foo\bar\class.php fine, but if I use foo\bar\ as bar and load bar\class.php, does the autoloader have access to the scope of use or does it get translated to the FQ path? On Mon, Jun 1, 2009 at 10:44 AM, Nathan Nobbe wrote: > On Sat, May

[PHP] Re: Instantiate SOAP Request Objects

2009-06-01 Thread Shawn McKenzie
Samuel Vogel wrote: > Hey, > > I would like to know how I can instantiate the types that I get via the > __getTypes() function or know if this is even possible. > I am asking because I have a webservice in which all functions expect an > specific object to be passed to them, rather than a list of

Re: [PHP] spawning a process that uses pipes -doesn'tterminatewhen webpage download is canceled

2009-06-01 Thread Flint Million
Rob: Perfect explanation of my problem. do you have any sample code I could look at for proc_open? It looks like it might do what I need but it's a lot more complex than popen. fm -- From: "Robert Cummings" Sent: Monday, June 01, 2009 10:01 AM T

[PHP] Re: Zebra Striped Table Example

2009-06-01 Thread Jonesy
On Mon, 1 Jun 2009 08:10:04 -0700 (PDT), Raymond Irving wrote: > > Hello, >=A0=A0=A0=20 > There are many different ways and techniques that we can use to add alterna= > te colors to table rows. Here's another solution that's very simple and str= > aight forward. For example: > > $page['table tr:eve

Re: [PHP] templating engine options

2009-06-01 Thread Andrew Ballard
On Mon, May 25, 2009 at 6:44 PM, Nathan Rixham wrote: > Stuart wrote: >> >> 2009/5/25 Robert Cummings : >>> >>> I continued the discussion with Nathan. >> >> I too have had an off-list discussion with Nathan on this topic, and a >> productive one at that. >> > > which would probably be a good time

Re: [PHP] templating engine options

2009-06-01 Thread Robert Cummings
On Mon, 2009-06-01 at 12:38 -0400, Andrew Ballard wrote: > On Mon, May 25, 2009 at 6:44 PM, Nathan Rixham wrote: > > Stuart wrote: > >> > >> 2009/5/25 Robert Cummings : > >>> > >>> I continued the discussion with Nathan. > >> > >> I too have had an off-list discussion with Nathan on this topic, an

Re: [PHP] spawning a process that uses pipes -doesn'tterminatewhen webpage download is canceled

2009-06-01 Thread Robert Cummings
I've pasted a section of PHP script to pastebin that uses proc_open() to control mplayer. Glean from it what you will :) http://pastebin.com/m4dfd2012 Cheers, Rob. On Mon, 2009-06-01 at 11:14 -0500, Flint Million wrote: > Rob: Perfect explanation of my problem. do you have any sample code I

[PHP] Re: Instantiate SOAP Request Objects

2009-06-01 Thread Shawn McKenzie
Shawn McKenzie wrote: > Samuel Vogel wrote: >> Hey, >> >> I would like to know how I can instantiate the types that I get via the >> __getTypes() function or know if this is even possible. >> I am asking because I have a webservice in which all functions expect an >> specific object to be passed to

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
On Mon, Jun 1, 2009 at 10:50 AM, Dee Ayy wrote: >> ASP.NET is not a language. It is more like a framework that can run >> multiple languages. It can run VB.NET, C# and even PHP (although it is >> not usual). > > I'm going to shoot from a (90's?) hip on this one. > > Isn't ".NET" the framework, and

RE: [PHP] spawning a process that uses pipes -doesn'tterminatewhen webpage download is canceled

2009-06-01 Thread bruce
aha... got it.. i was thinking that he somehow wanted to use a completely separate process, to then somehow reconnect to the closed browser session... which is why i was wondering wtf!!! thanks! -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Monday, June

Re: [PHP] Comparing data - big file

2009-06-01 Thread Per Jessen
דניאל דנון wrote: > As continuation to my last question, I got another one. > > a brief summary: > I had to process a file that contains 700,000 lines, > each line contained some data (lets assume each line was like: > name|age|work|lastaccessed) > age contains the person's age in time() format,

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Lists
ASP (Classic) and ASP.NET = two different things. en.wikipedia.org/wiki/Active_Server_Pages Personally, I don't see a reason for putting anyone, or any company through the torture of building web apps with .NET. ...VBSCRIPT for the web just doesn't make sense to me with the other solutions that

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Jason Pruim
On May 31, 2009, at 10:53 PM, Angus Mann wrote: Hi all. I realize this is more an HTML question than PHP but I'm sure someone here can help. I have several forms with lots (dozens) of text inputs. If the user presses the "Update" button I want the form handled by "update.php" but if they

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Shawn McKenzie
Jason Pruim wrote: > > On May 31, 2009, at 10:53 PM, Angus Mann wrote: > >> Hi all. I realize this is more an HTML question than PHP but I'm sure >> someone here can help. >> >> I have several forms with lots (dozens) of text inputs. If the user >> presses the "Update" button I want the form hand

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
On Mon, Jun 1, 2009 at 3:18 PM, Lists wrote: > ASP (Classic) and ASP.NET = two different things. > > en.wikipedia.org/wiki/Active_Server_Pages Agreed. And neither one of them is a language. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Matthew McKay
It would be much simpler and cleaner to use Javascript to modify the form's action attribute onClick. On Mon, Jun 1, 2009 at 2:28 PM, Shawn McKenzie wrote: > Jason Pruim wrote: > > > > On May 31, 2009, at 10:53 PM, Angus Mann wrote: > > > >> Hi all. I realize this is more an HTML question than P

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Tom Worster
assuming one had suitable hardware, what does it cost to start developing for asp? i guess you'd need to buy a copy of some windows server for dev test. what else? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Robert Cummings
On Mon, 2009-06-01 at 14:32 -0500, Matthew McKay wrote: > It would be much simpler and cleaner to use Javascript to modify the form's > action attribute onClick. No it wouldn't. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread James Ausmus
On Mon, Jun 1, 2009 at 12:32 PM, Matthew McKay wrote: > It would be much simpler and cleaner to use Javascript to modify the form's > action attribute onClick. > Not really. What about clients who don't have Javascript installed? What about users who want to either do something nefarious or just

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
On Mon, Jun 1, 2009 at 3:35 PM, Tom Worster wrote: > assuming one had suitable hardware, what does it cost to start developing > for asp? i guess you'd need to buy a copy of some windows server for dev > test. what else? That's about it. ASP/ASP.NET both come with Windows if you install IIS. Wher

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread haliphax
On Mon, Jun 1, 2009 at 2:18 PM, Lists wrote: > ASP (Classic) and ASP.NET = two different things. > > en.wikipedia.org/wiki/Active_Server_Pages > > Personally, I don't see a reason for putting anyone, or any > company through the torture of building web apps with > .NET. ...VBSCRIPT for the web jus

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Matthew McKay
On Mon, Jun 1, 2009 at 2:43 PM, James Ausmus wrote: > On Mon, Jun 1, 2009 at 12:32 PM, Matthew McKay wrote: > > It would be much simpler and cleaner to use Javascript to modify the > form's > > action attribute onClick. > > > > Not really. What about clients who don't have Javascript installed? >

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread haliphax
On Mon, Jun 1, 2009 at 2:59 PM, Matthew McKay wrote: > On Mon, Jun 1, 2009 at 2:43 PM, James Ausmus > wrote: > >> On Mon, Jun 1, 2009 at 12:32 PM, Matthew McKay wrote: >> > It would be much simpler and cleaner to use Javascript to modify the >> form's >> > action attribute onClick. >> > >> >> Not

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Shawn McKenzie
Matthew McKay wrote: > On Mon, Jun 1, 2009 at 2:43 PM, James Ausmus > wrote: > >> On Mon, Jun 1, 2009 at 12:32 PM, Matthew McKay wrote: >>> It would be much simpler and cleaner to use Javascript to modify the >> form's >>> action attribute onClick. >>> >> Not really. What about clients who don't

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Jason Pruim
On Jun 1, 2009, at 3:32 PM, Matthew McKay wrote: It would be much simpler and cleaner to use Javascript to modify the form's action attribute onClick. Not for me... I don't know a lick of javascript :) But I am curious, what do you mean by cleaner? Simpler to me varies depending on the p

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Phpster
That would be about it, unless you need a fancy GUI with all the bells and whistles Bastien Sent from my iPod On Jun 1, 2009, at 15:35, Tom Worster wrote: assuming one had suitable hardware, what does it cost to start developing for asp? i guess you'd need to buy a copy of some windows se

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Lists
haliphax wrote: On Mon, Jun 1, 2009 at 2:18 PM, Lists wrote: ASP (Classic) and ASP.NET = two different things. en.wikipedia.org/wiki/Active_Server_Pages Personally, I don't see a reason for putting anyone, or any company through the torture of building web apps with .NET. ...VBSCRIPT for the

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Daniel Brown
On Mon, Jun 1, 2009 at 17:08, Lists wrote: > > I usually prefer a language called WebDNA [...] [snip!] > > -- >  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o >  D. BROOKE                       EUCA Design Center >                               WebDNA Software Corp. I could be way off-b

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Lists
Daniel Brown wrote: On Mon, Jun 1, 2009 at 17:08, Lists wrote: I usually prefer a language called WebDNA [...] [snip!] -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o D. BROOKE EUCA Design Center WebDNA Software Corp. I could

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Eddie Drapkin
> > > daniel.br...@parasane.net || danbr...@php.net > http://www.parasane.net/ || http://www.pilotpig.net/ > 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 > > Completely off topic, but www.pilotpig.net is down or buggered or something! Looks like a squatter to me >.>

[PHP] rotate an image

2009-06-01 Thread PJ
Not replace images. R o t a t e... like 15 degrees clockwise??? I chacked the manual and what is suggested doesn't seem to want to work. I have GD enabled, but all I get is a garbled output on the page. Her's what was offered: | | I want to display an image rotated (canted, if you prefer) to the ri

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Daniel Brown
On Mon, Jun 1, 2009 at 17:44, Eddie Drapkin wrote: > > Completely off topic, but www.pilotpig.net is down or buggered or > something!  Looks like a squatter to me >.> Looks fine to me, but you may have caught it while I was swapping over some junk with GoDaddy. They're not as seamless as the

Re: Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread oorza2k5
oh, yep, it's back! :] On Jun 1, 2009 7:50pm, Daniel Brown wrote: On Mon, Jun 1, 2009 at 17:44, Eddie Drapkin oorza...@gmail.com> wrote: > > Completely off topic, but www.pilotpig.net is down or buggered or > something! Looks like a squatter to me >.> Looks fine to me, but you may

[PHP] Re: Directing form to different handlers?

2009-06-01 Thread Clancy
On Mon, 1 Jun 2009 12:53:31 +1000, angusm...@pobox.com ("Angus Mann") wrote: >Hi all. I realize this is more an HTML question than PHP but I'm sure someone >here can help. > >I have several forms with lots (dozens) of text inputs. If the user presses >the "Update" button I want the form handled

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Daniel Brown
On Mon, Jun 1, 2009 at 17:25, Lists wrote: > > Most definitely, as I stated (or alluded to) in a previous post. Absolutely. There was nothing malicious intended by my comment with your particular post. With some folks who come around trolling threads to tout their sites and services, yes, b

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread Angus Mann
Thanks to all posters for their input. For what it's worth, I'm writing a PHP application for a very specific purpose of running my office billing etc so I have total control over the JavaScript settings for users. The entire application would break without JS so if they turn JS off, all they

Re: [PHP] Re: Instantiate SOAP Request Objects

2009-06-01 Thread Samuel Vogel
Am 01.06.2009 20:05 Uhr, schrieb Shawn McKenzie: Shawn McKenzie wrote: Samuel Vogel wrote: Hey, I would like to know how I can instantiate the types that I get via the __getTypes() function or know if this is even possible. I am asking because I have a webservice in which all functio

RE: [PHP] -less layouts; Ideas welcome

2009-06-01 Thread Daevid Vincent
Um. why. This type of tabular data is exactly what tables are for. http://giveupandusetables.com/ All you've done is substitute a whacky DIV layout for a TABLE one: {$row['first_name']} {$row['last_name']} {$row['address']} {$row['phone_number']} isn't much different tha

Re: [PHP] Re: Instantiate SOAP Request Objects

2009-06-01 Thread Shawn McKenzie
Samuel Vogel wrote: > Am 01.06.2009 20:05 Uhr, schrieb Shawn McKenzie: >> Shawn McKenzie wrote: >> >>> Samuel Vogel wrote: >>> Hey, I would like to know how I can instantiate the types that I get via the __getTypes() function or know if this is even possible. I am a

RE: [PHP] Re: PHP scalability problem -- APC vs EAccelerator

2009-06-01 Thread Daevid Vincent
Eddie can you explain the differences between APC (which is now built into PHP) and EAccelerator. You seem to give mixed signals here as you endorse both it seems, but I would think they would collide and as the Highlander says, "There can be only one!" http://us.php.net/apc http://eaccelerator.ne

Re: [PHP] Re: Zebra Striped Table Example

2009-06-01 Thread Raymond Irving
That's what I like about the web and the open source community. We point out errors so that they can be fixed. __ Raymond Irving --- On Mon, 6/1/09, Jonesy wrote: > From: Jonesy > Subject: [PHP] Re: Zebra Striped Table Example > To: php-general@lists.php.net > Date: Monday, June 1, 2009, 1

[PHP] PHP problem

2009-06-01 Thread tRace DOliveira
I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is some  other alternative other than APC of improving PHP performance ? The problem

[PHP] PHP Help

2009-06-01 Thread tRace DOliveira
I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is some  other alternative other than APC of improving PHP performance ? The problem

[PHP] Web application design considerations - a good reference ?

2009-06-01 Thread Angus Mann
Hi all. I'm working on a PHP project for my own personal business use. It will handle billing and invoices as well as payments and time management, bookings, appointments and a few more. I may add things like personal messaging between the various users and a customer login to check on the pr

Re: [PHP] Web application design considerations - a good reference ?

2009-06-01 Thread Larry Garfield
Do not under any circumstances try to do this from scratch. :-) Use an existing framework like Zend Framework or CakePHP or a CMS/framework hybrid like Drupal or a dedicated app for billing and processing. It will save you months of work, and countless security holes. Even if you don't use