Re: [PHP] Session variables

2009-02-06 Thread German Geek
The session data is stored on the server. In the user's browser, only a session cookie is stored, usually a random session id string. I could never retrieve the session variables with any browser tools, always only with PHP by echoing them out or something. Also, a cookie is simply a text file with

Re: [PHP] Session variables

2009-02-06 Thread Phpster
A Session is stored on the user browser in a session ( in memory cookie) and on the server as a file. The session mgmt tools will read the file as needed. Bastien Sent from my iPod On Feb 7, 2009, at 1:58, Paul M Foster wrote: I'm not too clear on HTTP headers, cookies, and such. So here

[PHP] Session variables

2009-02-06 Thread Paul M Foster
I'm not too clear on HTTP headers, cookies, and such. So here are questions related to that. Let's say I generate a random number that I want the user to enter in a form. When I generate the number, I store it in a session variable ($_SESSION). When the user submits the form, I check the number the

Re: [PHP] Using DLL with PHP

2009-02-06 Thread Phpster
Check out the com [www.php.net/com] functionality Bastien Sent from my iPod On Feb 6, 2009, at 15:58, Dan Shirah wrote: Howdy, I'm looking for a little guidance here. I'm trying to re-write a VB function in PHP. This is the function I'm working with: Private Declare Function DTM_CONVDMS

Re: [PHP] Clarity needed OT

2009-02-06 Thread Phpster
And the pentagon was not hit by a jumbo jet. check the photos and ask yourself 'where are the wings'? Sorry couldn't resist after the conspiracy comment :-P Bastien Sent from my iPod On Feb 6, 2009, at 19:37, Ashley Sheridan wrote: On Fri, 2009-02-06 at 13:13 -0500, tedd wrote: At 1:

Re: [PHP] Email configuration

2009-02-06 Thread Ashley M. Kirchner
Nathan Rixham wrote: Hmmm... So Ashley is a "him"? yeah quot: "Actually I'm a guy, but we can't all be perfect ;)" http://www.mail-archive.com/php-general@lists.php.net/msg235765.html Wouldn't be the first Ashley who's a guy. I happen to be one of those too ... -- PHP General Mailing L

Re: [PHP] Email configuration

2009-02-06 Thread Nathan Rixham
Shawn McKenzie wrote: Nathan Rixham wrote: Shawn McKenzie wrote: Ever heard of RBL or DNSBL? I use it on my email server and so do many lol snap, just sent same message at same time - tis so easy to jump on ash's back cos he's always so sure he's right lolol Hmmm... So Ashley is a "him"?

Re: [PHP] Email configuration

2009-02-06 Thread Shawn McKenzie
Nathan Rixham wrote: > Shawn McKenzie wrote: >> Ever heard of RBL or DNSBL? I use it on my email server and so do many > > lol snap, just sent same message at same time - tis so easy to jump on > ash's back cos he's always so sure he's right lolol Hmmm... So Ashley is a "him"? -- Thanks! -Sha

[PHP] Re: PHP pop-up windows

2009-02-06 Thread Clancy
On Thu, 05 Feb 2009 01:47:28 +, nrix...@gmail.com (Nathan Rixham) wrote: >Clancy wrote: >> I'm working on a website editor, primarily for my own use. Normally it will >> be used on my >> own computer, and much of what I wish to achieve could arguably be better >> done in either C >> or JavaS

Re: [PHP] Clarity needed OT

2009-02-06 Thread Daniel Brown
On Fri, Feb 6, 2009 at 19:36, Shawn McKenzie wrote: >> > What happened to your tin foil hat? Who needs that when your fillings pick up the live and encrypted radio broadcast of the CIA cafeteria lunch schedule? -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || ht

Re: [PHP] Re: DB Comparisons

2009-02-06 Thread Andrew Ballard
On Fri, Feb 6, 2009 at 7:27 PM, Ashley Sheridan wrote: > On Fri, 2009-02-06 at 21:56 +1000, Murray wrote: >> In fact, ASP.NET happily connects with other DBMSes. I have several C# >> ASP.NET web apps happily working with MySQL. >> >> M is for Murray >> >> >> On Fri, Feb 6, 2009 at 7:39 AM, Ashley

Re: [PHP] Email configuration

2009-02-06 Thread Nathan Rixham
Shawn McKenzie wrote: Ever heard of RBL or DNSBL? I use it on my email server and so do many lol snap, just sent same message at same time - tis so easy to jump on ash's back cos he's always so sure he's right lolol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Email configuration

2009-02-06 Thread Nathan Rixham
Ashley Sheridan wrote: I've never had an email bounced because of where it came from based on IP. I have had emails bounced based on the email headers that were sent. Always check the headers first. Even MessageLabs won't block an email based on the IP. ash: http://en.wikipedia.org/wiki/DNSBL

Re: [PHP] Clarity needed OT

2009-02-06 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Fri, 2009-02-06 at 13:13 -0500, tedd wrote: >> At 1:55 AM +0100 2/6/09, Jochem Maas wrote: >>> that tedd's unlimited educational resources (tutors/courses) might >>> go someway to undoing all the harm Fox News inflicts on the masses. >> Or to provide clarity to those who

Re: [PHP] Email configuration

2009-02-06 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Fri, 2009-02-06 at 16:30 +0200, Thodoris wrote: >>> 2009/2/6 Thodoris : >>> 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 lar

Re: [PHP] Clarity needed OT

2009-02-06 Thread Ashley Sheridan
On Fri, 2009-02-06 at 13:13 -0500, tedd wrote: > At 1:55 AM +0100 2/6/09, Jochem Maas wrote: > >that tedd's unlimited educational resources (tutors/courses) might > >go someway to undoing all the harm Fox News inflicts on the masses. > > Or to provide clarity to those who think that Fox News is do

Re: [PHP] Email configuration

2009-02-06 Thread Ashley Sheridan
On Fri, 2009-02-06 at 16:30 +0200, Thodoris wrote: > > 2009/2/6 Thodoris : > > > >> 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

Re: [PHP] Re: DB Comparisons

2009-02-06 Thread Ashley Sheridan
On Fri, 2009-02-06 at 21:56 +1000, Murray wrote: > In fact, ASP.NET happily connects with other DBMSes. I have several C# > ASP.NET web apps happily working with MySQL. > > M is for Murray > > > On Fri, Feb 6, 2009 at 7:39 AM, Ashley Sheridan > wrote: > > > although I think ASP can only connec

Re: [PHP] Clarity needed (Really OT)

2009-02-06 Thread Shawn McKenzie
Nathan Rixham wrote: > tedd wrote: >> At 7:35 PM +0100 2/6/09, Jochem Maas wrote: >> >> Socialist Doctrine? > > "the community orm"? > >> >> Here's a group of people under treat of "loss of life" tell their >> government that everyone is created equal and you say that what they >> said is a Socia

Re: [PHP] Clarity needed (Really OT)

2009-02-06 Thread Nathan Rixham
tedd wrote: At 7:35 PM +0100 2/6/09, Jochem Maas wrote: Socialist Doctrine? "the community orm"? Here's a group of people under treat of "loss of life" tell their government that everyone is created equal and you say that what they said is a Socialist Doctrine? A doctrine that came into b

Re: [PHP] long echo statement performance question

2009-02-06 Thread Stephen
I have been reading this thread with interest ... and amusement. FWII for my web sites I have 1) Most PHP code in files outside of the document root 2) Site specific variables (constants, really) in an include.php file 3) All HTML is also in this include file and is the content a variable. 4) Ne

Re: [PHP] long echo statement performance question

2009-02-06 Thread Sancar Saran
On Friday 06 February 2009 19:12:08 Frank Stanovcak wrote: > I'm in the process of seperating logic from display in a section of code, > and wanted to make sure I wasn't treading on a performance landmine here, > so I ask you wizened masters of the dark arts this... > > is there a serious performan

Re: [PHP] Clarity needed OT

2009-02-06 Thread Daniel Brown
On Fri, Feb 6, 2009 at 17:26, Frank Stanovcak wrote: > > since when have the words 'sanity', and 'programmer' ever been used together > outside of the setup for a joke? > > Frank...still faithfully taking his pills. This guy fits in well 'round there here parts. ;-P -- daniel.br...@parasa

Re: [PHP] Clarity needed OT

2009-02-06 Thread Frank Stanovcak
"Daniel Brown" wrote in message news:ab5568160902061416u10e761dal224ec7177d83e...@mail.gmail.com... > On Fri, Feb 6, 2009 at 13:46, Frank Stanovcak > wrote: >> >> Ok...I'm sure that somewhere in here has to be reference to the original >> topic, and php...right? >> >> Frank...there is isn't th

Re: [PHP] Clarity needed OT

2009-02-06 Thread Daniel Brown
On Fri, Feb 6, 2009 at 13:46, Frank Stanovcak wrote: > > Ok...I'm sure that somewhere in here has to be reference to the original > topic, and php...right? > > Frank...there is isn't there? *sigh* Stick around you'll see this happens frequently. It's considered a Good Thing[tm]. It main

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

2009-02-06 Thread Frank Stanovcak
""Boyd, Todd M."" wrote in message news:33bde0b2c17eef46acbe00537cf2a19003d07...@exchcluster.ccis.edu... > -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Friday, February 06, 2009 2:26 PM > To: php-general@lists.php.net > Subject: Re: [PHP] How can I use a f

Re: [PHP] Clarity needed (Really OT)

2009-02-06 Thread tedd
At 7:35 PM +0100 2/6/09, Jochem Maas wrote: ***RANT WARNING*** oh and here's a bit of Socialist Doctrine: "We hold these truths to be self-evident, that all men are created equal ..." Socialist Doctrine? Here's a group of people under treat of "loss of life" tell their government that everyo

[PHP] Using DLL with PHP

2009-02-06 Thread Dan Shirah
Howdy, I'm looking for a little guidance here. I'm trying to re-write a VB function in PHP. This is the function I'm working with: Private Declare Function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _ (ByVal FullPathFrom As String, ByVal FullPathTo As String) As Integer Naturally

Re: [PHP] long echo statement performance question

2009-02-06 Thread Daevid Vincent
On Fri, 2009-02-06 at 17:32 +, Stuart wrote: > They're called short tags, not fast tags. There is nothing faster > about them beyond the typing effort required. Mostly true. However, the only thing that does is an "echo/print", so aside from saving you all the time, you can't do Person

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

2009-02-06 Thread Boyd, Todd M.
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Friday, February 06, 2009 2:26 PM > To: php-general@lists.php.net > Subject: Re: [PHP] How can I use a function's default arguments but > change one of the end ones in the list? > > On Fri, 2009-02-06 at 14:10 +

Re: [PHP] Clarity needed

2009-02-06 Thread Jochem Maas
Shawn McKenzie schreef: > ***FACT WARNING*** that would be funny if it wasn't so sad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-02-06 Thread Daevid Vincent
On Fri, 2009-02-06 at 14:10 +1300, German Geek wrote: > I've thought about this problem before but couldn't think of a > solution either. Well, I guess I *did* think of a solution, it just happens that PHP doesn't do "the logical thing"(tm) ;-) I would hope the PHP developers would implement

Re: [PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
"Stuart" wrote in message news:a5f019de0902060932k1ccf2948ua42f3cfa33694...@mail.gmail.com... > 2009/2/6 Frank Stanovcak : >> >> "Richard Heyes" wrote in message >> news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com... Wouldn't have thought so. But for readability, you may fin

Re: [PHP] long echo statement performance question

2009-02-06 Thread Paul M Foster
On Fri, Feb 06, 2009 at 01:09:13PM -0500, Eric Butera wrote: > On Fri, Feb 6, 2009 at 12:15 PM, Bruno Fajardo wrote: > > In my opinion, you would achieve better results using a template > > engine, like Smarty (http://www.smarty.net/). In addition, your code > > would be entirely separated from p

Re: [PHP] long echo statement performance question

2009-02-06 Thread Eric Butera
On Fri, Feb 6, 2009 at 2:10 PM, Bruno Fajardo wrote: > I am so stick to Smarty that I never tried other solutions, like > Savant. Thanks for the tip, I'll try it right away. > > Cheers. > > 2009/2/6 Eric Butera : >> On Fri, Feb 6, 2009 at 1:43 PM, Bruno Fajardo wrote: >>> Well, Smarty's caching l

Re: [PHP] long echo statement performance question

2009-02-06 Thread Bruno Fajardo
I am so stick to Smarty that I never tried other solutions, like Savant. Thanks for the tip, I'll try it right away. Cheers. 2009/2/6 Eric Butera : > On Fri, Feb 6, 2009 at 1:43 PM, Bruno Fajardo wrote: >> Well, Smarty's caching layer is very fast. Maybe not as fast as an >> echo statement, but

Re: [PHP] Clarity needed OT

2009-02-06 Thread Shawn McKenzie
Frank Stanovcak wrote: > "Eric Butera" wrote in message > news:6a8639eb0902061020v793d22b9x1430872c2170b...@mail.gmail.com... >> On Fri, Feb 6, 2009 at 1:13 PM, tedd wrote: >>> At 1:55 AM +0100 2/6/09, Jochem Maas wrote: that tedd's unlimited educational resources (tutors/courses) might >>>

Re: [PHP] Clarity needed

2009-02-06 Thread Shawn McKenzie
***FACT WARNING*** Jochem Maas wrote: > ***RANT WARNING*** > > Shawn McKenzie schreef: >> 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 re

Re: [PHP] long echo statement performance question

2009-02-06 Thread Eric Butera
On Fri, Feb 6, 2009 at 1:43 PM, Bruno Fajardo wrote: > Well, Smarty's caching layer is very fast. Maybe not as fast as an > echo statement, but apparentely Frank was also interested in separate > logic from presentation, and a series of echo's is not the best > solution in my opinion. :-) > But th

Re: [PHP] Clarity needed OT

2009-02-06 Thread Eric Butera
On Fri, Feb 6, 2009 at 1:46 PM, Frank Stanovcak wrote: > > "Eric Butera" wrote in message > news:6a8639eb0902061020v793d22b9x1430872c2170b...@mail.gmail.com... >> On Fri, Feb 6, 2009 at 1:13 PM, tedd wrote: >>> At 1:55 AM +0100 2/6/09, Jochem Maas wrote: that tedd's unlimited education

Re: [PHP] long echo statement performance question

2009-02-06 Thread Bruno Fajardo
Well, Smarty's caching layer is very fast. Maybe not as fast as an echo statement, but apparentely Frank was also interested in separate logic from presentation, and a series of echo's is not the best solution in my opinion. :-) But the best solution depends of the context of the application, i agr

Re: [PHP] Clarity needed OT

2009-02-06 Thread Frank Stanovcak
"Eric Butera" wrote in message news:6a8639eb0902061020v793d22b9x1430872c2170b...@mail.gmail.com... > On Fri, Feb 6, 2009 at 1:13 PM, tedd wrote: >> At 1:55 AM +0100 2/6/09, Jochem Maas wrote: >>> >>> that tedd's unlimited educational resources (tutors/courses) might >>> go someway to undoing al

Re: [PHP] Clarity needed

2009-02-06 Thread Bastien Koert
On Fri, Feb 6, 2009 at 1:35 PM, Jochem Maas wrote: > ***RANT WARNING*** > > Shawn McKenzie schreef: > > 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

[PHP] Re: going blind for looking...need eyes

2009-02-06 Thread Frank Stanovcak
"Terion Miller" wrote in message news:37405f850902060944y74a7a5e8ndce0c3456a32d...@mail.gmail.com... > Need eyes on this query, it is not inserting, I am going to highlight > what/where I thought the problem is (there is no " )but when I add the " > it > then changes the syntax coloring on the

Re: [PHP] Clarity needed

2009-02-06 Thread Jochem Maas
***RANT WARNING*** Shawn McKenzie schreef: > 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 dona

Re: [PHP] Clarity needed OT

2009-02-06 Thread Luke Slater
On Friday 06 Feb 2009 18:13:02 tedd wrote: > At 1:55 AM +0100 2/6/09, Jochem Maas wrote: > >that tedd's unlimited educational resources (tutors/courses) might > >go someway to undoing all the harm Fox News inflicts on the masses. > > Or to provide clarity to those who think that Fox News is doing h

Re: [PHP] Clarity needed OT

2009-02-06 Thread Eric Butera
On Fri, Feb 6, 2009 at 1:13 PM, tedd wrote: > At 1:55 AM +0100 2/6/09, Jochem Maas wrote: >> >> that tedd's unlimited educational resources (tutors/courses) might >> go someway to undoing all the harm Fox News inflicts on the masses. > > Or to provide clarity to those who think that Fox News is do

Re: [PHP] Clarity needed OT

2009-02-06 Thread tedd
At 1:55 AM +0100 2/6/09, Jochem Maas wrote: that tedd's unlimited educational resources (tutors/courses) might go someway to undoing all the harm Fox News inflicts on the masses. Or to provide clarity to those who think that Fox News is doing harm. Alter all, the main-stream news doesn't like

Re: [PHP] long echo statement performance question

2009-02-06 Thread Eric Butera
On Fri, Feb 6, 2009 at 12:15 PM, Bruno Fajardo wrote: > In my opinion, you would achieve better results using a template > engine, like Smarty (http://www.smarty.net/). In addition, your code > would be entirely separated from presentation in a elegant way. > > 2009/2/6 Frank Stanovcak : >> I'm in

Re: [PHP] going blind for looking...need eyes

2009-02-06 Thread Daniel Brown
On Fri, Feb 6, 2009 at 13:03, Jochem Maas wrote: > > there are a zillion variations on this theme (e.g. using HEREDOC syntax > and/or putting each field & value That's right, when reading the OP's email, there was meant to be a #4 as well. 4.) Use HEREDOC syntax: -- daniel.br...@pa

Re: [PHP] going blind for looking...need eyes

2009-02-06 Thread Jochem Maas
Daniel Brown schreef: > On Fri, Feb 6, 2009 at 12:44, Terion Miller wrote: >> - >> $sql = "INSERT INTO admin (UserName, Password, Name, Email, Property, >> Department, AddWorkOrder, "; >>$sql .= "ViewAllWorkOrders, ViewNewOrders, ViewNewArt, >> ViewPendingWorkOrders, Vi

Re: [PHP] going blind for looking...need eyes

2009-02-06 Thread Daniel Brown
On Fri, Feb 6, 2009 at 12:44, Terion Miller wrote: > > - > $sql = "INSERT INTO admin (UserName, Password, Name, Email, Property, > Department, AddWorkOrder, "; >$sql .= "ViewAllWorkOrders, ViewNewOrders, ViewNewArt, > ViewPendingWorkOrders, ViewPendingArtwork, ViewCompl

[PHP] going blind for looking...need eyes

2009-02-06 Thread Terion Miller
Need eyes on this query, it is not inserting, I am going to highlight what/where I thought the problem is (there is no " )but when I add the " it then changes the syntax coloring on the rest of the code in my editor which makes me wonder if I'm wrong... argh. and either way it's not inserting ...

Re: [PHP] long echo statement performance question

2009-02-06 Thread Stuart
2009/2/6 Frank Stanovcak : > > "Richard Heyes" wrote in message > news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com... >>> Wouldn't have thought so. But for readability, you may find this a >>> little easier instead: >> >> Slight correction: >> >> ?> >> blah >> > >> -- >> Richar

Re: [PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
"Bruno Fajardo" wrote in message news:eeb6980b0902060915k2b34ec31nc6ad166e2c544...@mail.gmail.com... In my opinion, you would achieve better results using a template engine, like Smarty (http://www.smarty.net/). In addition, your code would be entirely separated from presentation in a elegant wa

RES: [PHP] Read a XML (not a file)

2009-02-06 Thread Jônatas Zechim
But the 'server.php' is on another Server, i did this and is ok now. function ctalk_fopen($u){ $b=parse_url($u); $h=$b['host']; $p=(isset($b['query']))?$b['path']."?".$b['query']:$b['path']; $s=socket_create(AF_INET,SOCK_STREAM,0); socket_set_block($s); $r=socket_connect($s,gethostbyname($h),getse

Re: [PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
"Richard Heyes" wrote in message news:af8726440902060918v6d2f1ee1ia3f839189874...@mail.gmail.com... >> Wouldn't have thought so. But for readability, you may find this a >> little easier instead: > > Slight correction: > > ?> > blah > > -- > Richard Heyes > > HTML5 Canvas graphing for Fir

Re: [PHP] long echo statement performance question

2009-02-06 Thread Richard Heyes
> Wouldn't have thought so. But for readability, you may find this a > little easier instead: Slight correction: ?> blah http://www.rgraph.org (Updated January 31st) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] long echo statement performance question

2009-02-06 Thread Bruno Fajardo
In my opinion, you would achieve better results using a template engine, like Smarty (http://www.smarty.net/). In addition, your code would be entirely separated from presentation in a elegant way. 2009/2/6 Frank Stanovcak : > I'm in the process of seperating logic from display in a section of cod

Re: [PHP] long echo statement performance question

2009-02-06 Thread Richard Heyes
> ... Wouldn't have thought so. But for readability, you may find this a little easier instead: ?> {$var1} Blah {$var2} ... http://www.rgraph.org (Updated January 31st) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] long echo statement performance question

2009-02-06 Thread Frank Stanovcak
I'm in the process of seperating logic from display in a section of code, and wanted to make sure I wasn't treading on a performance landmine here, so I ask you wizened masters of the dark arts this... is there a serious performance hit, or reason not to use long, ie more than 30 - 40 lines, co

Re: [PHP] Clarity needed

2009-02-06 Thread tedd
At 9:48 AM +0200 2/6/09, Thodoris wrote: There is a very good schema for doing thing like that in this pdf. Its main purpose is to explain join temporary, tables and transactions but you will find it useful because I think it is relevant with your case. http://dev.mysql.com/tech-resources/art

Re: [PHP] preg_match question...

2009-02-06 Thread Jim Lucas
bruce wrote: > hi... > > trying to figure out the best approach to using preg_match to extract the > number from the follwing type of line... > > " 131646 sometext follows.." > > basically, i want to extract the number, without the text, but i have to be > able to match on the "text" > > i've b

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Jim Lucas
Jônatas Zechim wrote: > Hi there, i want do read a XML like this: > > Server.php > > header ("content-type: text/xml"); > > echo " > 1 >teste >/images/teste.jpg > > "; > ?> > > How can do this? > > zechim > > test.php mind you that the header() call within the include is

Re: [PHP] Re: preg_match question...

2009-02-06 Thread Frank Stanovcak
"Shawn McKenzie" wrote in message news:e1.67.59347.e494c...@pb1.pair.com... > bruce wrote: >> hmmm... >> >> tried your preg__match/regex... >> >> i get: >> 0 - 1145 total >> 1 - 1145 >> 2 - l >> >> i would have thought that the 2nd array item should have had "total"... >> > > Probably want this:

Re: [PHP] Re: preg_match question...

2009-02-06 Thread Alpár Török
2009/2/6 Shawn McKenzie > bruce wrote: > > hmmm... > > > > tried your preg__match/regex... > > > > i get: > > 0 - 1145 total > > 1 - 1145 > > 2 - l > > > > i would have thought that the 2nd array item should have had "total"... > > > > Probably want this: '#(\d+)(.+)#' That's it sorry. Take a lo

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Carlos Medina
Phpster schrieb: On Feb 6, 2009, at 9:12, Jônatas Zechim wrote: Hi there, i want do read a XML like this: Server.php 1 teste /images/teste.jpg "; ?> How can do this? zechim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email configuration

2009-02-06 Thread Thodoris
2009/2/6 Thodoris : 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 fo

Re: [PHP] Re: preg_match question...

2009-02-06 Thread Shawn McKenzie
bruce wrote: > hmmm... > > tried your preg__match/regex... > > i get: > 0 - 1145 total > 1 - 1145 > 2 - l > > i would have thought that the 2nd array item should have had "total"... > Probably want this: '#(\d+)(.+)#' -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (ht

RE: [PHP] Re: preg_match question...

2009-02-06 Thread bruce
hmmm... tried your preg__match/regex... i get: 0 - 1145 total 1 - 1145 2 - l i would have thought that the 2nd array item should have had "total"... -Original Message- From: Frank Stanovcak [mailto:blindspot...@comcast.net] Sent: Friday, February 06, 2009 6:15 AM To: php-general@lists

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Phpster
On Feb 6, 2009, at 9:12, Jônatas Zechim wrote: Hi there, i want do read a XML like this: Server.php 1 teste /images/teste.jpg "; ?> How can do this? zechim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Remove the php

Re: [PHP] Email configuration

2009-02-06 Thread Yannick Mortier
2009/2/6 Thodoris : > > 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.

[PHP] Read a XML (not a file)

2009-02-06 Thread Jônatas Zechim
Hi there, i want do read a XML like this: Server.php 1 teste /images/teste.jpg "; ?> How can do this? zechim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Garbage Collection

2009-02-06 Thread Shawn McKenzie
Frank Stanovcak wrote: > ""Boyd, Todd M."" wrote in message > news:33bde0b2c17eef46acbe00537cf2a19003cb4...@exchcluster.ccis.edu... >> -Original Message- >> From: tedd [mailto:t...@sperling.com] >> Sent: Thursday, February 05, 2009 10:07 AM >> To: php-general@lists.php.net >> Subject: [PH

[PHP] Re: preg_match question...

2009-02-06 Thread Frank Stanovcak
""bruce"" wrote in message news:234801c98863$88f27260$0301a...@tmesa.com... > hi... > > trying to figure out the best approach to using preg_match to extract the > number from the follwing type of line... > > " 131646 sometext follows.." > > basically, i want to extract the number, without the t

Re: [PHP] preg_match question...

2009-02-06 Thread Alpár Török
preg_match('/^([0-9]+) (.)+/',$sString,$aMatches); Matches will be 1 => the number ; 2 => the text. The expression only matches if there is any character after the space. Not necessarily text, it might be another number or special characters 2009/2/6 bruce > hi... > > trying to figure out the

[PHP] preg_match question...

2009-02-06 Thread bruce
hi... trying to figure out the best approach to using preg_match to extract the number from the follwing type of line... " 131646 sometext follows.." basically, i want to extract the number, without the text, but i have to be able to match on the "text" i've been playing with different preg_mat

Re: [PHP] Garbage Collection

2009-02-06 Thread Frank Stanovcak
""Boyd, Todd M."" wrote in message news:33bde0b2c17eef46acbe00537cf2a19003cb4...@exchcluster.ccis.edu... > -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 ga

Re: [PHP] Boolean Assignment Operator

2009-02-06 Thread Thodoris
2009/2/2 Gavin Hodge Hi, I'm fairly new to PHP, having migrated from the Java / C# world. I wrote some code similar to the following: $success = true; $success &= operation1(); $success &= operation2(); if ($success === true) { operation3(); // depends on 1 and 2 being successful }

[PHP] php COM example usage

2009-02-06 Thread Alpár Török
Hi, I have some cli scripts that previously ran on Linux, now i have to make available on Linux. I use semaphores for synchronization. I also have to develop some new scripts for windows that interact other custom programs. I need to create and signale events. Basically what i need is acces to the

Re: [PHP] Pausing PHP scripts

2009-02-06 Thread Phpster
Sleep(20); will pause it for 20 secs Bastien Sent from my iPod On Feb 6, 2009, at 0:37, Ron Piggott wrote: Is there a way to pause a PHP script while it is executing? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: DB Comparisons

2009-02-06 Thread Murray
In fact, ASP.NET happily connects with other DBMSes. I have several C# ASP.NET web apps happily working with MySQL. M is for Murray On Fri, Feb 6, 2009 at 7:39 AM, Ashley Sheridan wrote: > although I think ASP can only connect to MSSQL and > ASP.Net connects only to MSSQL and Oracle (but I'm n

Re: [PHP] cgi vs php

2009-02-06 Thread Thodoris
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 a

Re: [PHP] Email configuration

2009-02-06 Thread Thodoris
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

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

2009-02-06 Thread Michael Kubler
I'll put in a +1 for Subversion. I use it and love it. I have the actual repository sitting on a linux box and usually use TortiseSVN to update, and commit to the repository. It's pretty easy to use, and was much easier to setup than I expected. I simply apt-get install svn, and then edited some

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

2009-02-06 Thread cr.vegelin
Thanks Paul & Nisse, I saved both scripts with ANSI in stead of UTF-8 and the problem is gone. So the utf-8 BOM character (Byte Order Mark) caused it. Unfortunately my editor has no option to store BOM-free scripts. Is it standard that PHP scripts should be saved without a BOM character ? Test

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

2009-02-06 Thread Alpár Török
2009/2/6 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 > >

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

2009-02-06 Thread Nisse Engström
On Fri, 6 Feb 2009 06:34:41 +0100, cr.vege...@gmail.com wrote: > 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