Re: [PHP] simplexml and serialize error

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 8:30 pm, Anthony Ettinger wrote: > Warning: var_dump() [function.var-dump]: Node no longer exists in > Foo.php on line 78 > object(SimpleXMLElement)#86 (0) { } ["title"]=> > > I turn an xml string into a simplexml object, and then ran serialize() > on it before caching the ou

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 10:36 pm, D. Dante Lorenso wrote: > However...you may need to make a policy in your company. If you use > source control for your software, it may see changes in formatting as > a > distinct major revision. Therefore, if you save code in "your" style > and another developer

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 6:10 pm, Robert Cummings wrote: > On Sat, 2006-04-29 at 10:56, Satyam wrote: >> >> A brace on its own line doesn't make sense to me. > > This begs the question... Where do you place the closing brace? I think no matter which style one uses, the following statement is correct

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Gonzalo Monzón
[EMAIL PROTECTED] escribió: Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dealing with an xml document

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread D. Dante Lorenso
So no matter what was actually typed, *I* would see: function foo ($x) { //body } but some heretic who doesn't know any better would see: function foo($x) { //body } Now *THAT* would be a feature worth paying for in an IDE! :-) Without caring what style you prefer, the correct repl

Re: [PHP] Multi-threaded port listener

2006-04-29 Thread D. Dante Lorenso
René Fournier wrote: Anyone find any good tutorials, code samples, etc. on such a thing? Basically, I want to write server (in PHP) that listeners on a particular port, and spins off a thread/process (essentially, execute a separate script) for each incoming connection. There won't be a lot of

RE: [PHP] Re: php <-> js (was Javascript Navigation)

2006-04-29 Thread Jay Blanchard
[snip] ...interesting conversation... [/snip] Stateless applications, ain't they fun? I did a little experiment before Ajax cam into vogue with a small PHP script that essentially ran a while loop with some sleep cycles built in. This was placed in an iframe and another page was placed in another

[PHP] simplexml and serialize error

2006-04-29 Thread Anthony Ettinger
Warning: var_dump() [function.var-dump]: Node no longer exists in Foo.php on line 78 object(SimpleXMLElement)#86 (0) { } ["title"]=> I turn an xml string into a simplexml object, and then ran serialize() on it before caching the output locally. When I read it back in and run unserialize() to do a

Re: [PHP] New Help with Javascript Navigation

2006-04-29 Thread Gerry D
Yah, and why are people still mindlessly clicking OK to install ActiveX plugins? On 4/27/06, Porpoise <[EMAIL PROTECTED]> wrote: <""Gerry D"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Interesting discussions... :)> I see two issues: 1. if you are exposing php scripts to the

RE: [PHP] [JOB] PHP developered needed in Largo, MD

2006-04-29 Thread Jay Blanchard
[snip] Hey Jay! We run linux here... you could leave your Windows world again! :) [/snip] Thanks, but I have to stay where I am for a while. Sounds like an interesting project though... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] converting REST result to SOAP object

2006-04-29 Thread Anthony Ettinger
is there a easy way of converting an xml REST result to an object returned by a SOAP call? I know I can simply parse the REST and put it in a hash, curious if there's a method of doing this. simplexml_load_string() seems to give me simplexml objects inside my multi-level hash, which isn't really

Re: [PHP] php login

2006-04-29 Thread Schalk
chris smith wrote: On 4/30/06, Schalk <[EMAIL PROTECTED]> wrote: Greetings All, Where can I find a good tutorial on creating a login protected area using php? I did a Google search and found a couple but, I would like to get suggestions from the list. Thanks! Just found a good one.. it's a li

Re: [PHP] php login

2006-04-29 Thread chris smith
On 4/30/06, Schalk <[EMAIL PROTECTED]> wrote: Greetings All, Where can I find a good tutorial on creating a login protected area using php? I did a Google search and found a couple but, I would like to get suggestions from the list. Thanks! Just found a good one.. it's a little more complicate

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Ólafur Waage
Mattias Thorslund wrote: [EMAIL PROTECTED] wrote: Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dea

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Robert Cummings
On Sat, 2006-04-29 at 10:56, Satyam wrote: > > A brace on its own line doesn't make sense to me. This begs the question... Where do you place the closing brace? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn

Re: [PHP] RegExp for preg_split()

2006-04-29 Thread Rafael
LOL It's interesting that you've taked your time and build that 'summation', maybe the only thing is missing is the code itself ;) Now, because you didn't add it, I had to check the different versions, and I agree with John Hicks, his suggestion seems to be the best one. tedd wrote: A summat

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Mattias Thorslund
[EMAIL PROTECTED] wrote: > Hello, 1st msg here so im excited what results i will get :) > > Im a novice with php parsing and have been able to help myself quite well > with what ive needed with xml_parse_into_struct and then echoing the fixed > variable names but now im dealing with an xml docume

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Miles Thompson
At 03:19 AM 4/29/2006, Robert Cummings wrote: On Sat, 2006-04-29 at 02:08, Paul Novitski wrote: > > IMHO, vertical aligned brackets can be messy when nesting > >relatively-small blocks (and seems to me like a lot of wasted space) > > > like a use, not a waste. > > OK, OK, I'll stop. Thi

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 9:56 am, Satyam wrote: > The compiler cannot read > indentations. > So, since the brace is for the benefit of the compiler, not mine, I [pedantic] Actually, a compiler could use indentation, and, in fact, compilers for some languages do just that. [/pedantic] That style of

Re: [PHP] undefined variable

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 5:42 am, Smart Software wrote: > code below shows all records from products table with an textbox and > an > order button for each record > How can i add the content of the textbox? > i tried this: > ?>"> > > but all i get is an error telling me there is a undefined varabl

Re: [PHP] undefined variable

2006-04-29 Thread John Wells
> 2006/4/29, Smart Software <[EMAIL PROTECTED]>: > How can i add the content of the textbox? > i tried this: > ?>"> > > but all i get is an error telling me there is a undefined varable It looks like you're trying to get at $quantity, but have you pulled it from the submitted form yet? If you

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 11:11 am, Jochem Maas wrote: > Dave Goodchild wrote: >> All my variables are correctly delimited. > > strings constants are delimited not variables, semantically speaking. Not to mention that they CANNOT be correctly delimited, or you would NOT be seeing that error message.

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 11:19 am, [EMAIL PROTECTED] wrote: > Im a novice with php parsing and have been able to help myself quite > well with what ive needed with xml_parse_into_struct and then echoing In an ideal world, you would examine other XML parsing options, such as the PEAR library. If, li

Re: [PHP] Help!

2006-04-29 Thread Martin Alterisio
That's ok, but then I can't help you more than I tried to. Just check with what I told you about debug_backtrace(), at least that way you can trace where the function was called with wrong arguments. 2006/4/29, Dave Goodchild <[EMAIL PROTECTED]>: Misleading to who? I own the app and am the only

Re: [PHP] undefined variable

2006-04-29 Thread Martin Alterisio
2006/4/29, Smart Software <[EMAIL PROTECTED]>: code below shows all records from products table with an textbox and an order button for each record "> if someone presses the button, an item will be ordered. How can i add the content of the textbox? i tried this: "> but all

Re: [PHP] we are looking for experienced php programmers full time freelance...

2006-04-29 Thread Dave Goodchild
Hear hear. This is not the place for this kind of poison. Open source - open mind. On 29/04/06, Paul Novitski <[EMAIL PROTECTED]> wrote: At 10:46 AM 4/29/2006, tedd wrote: ... >"I have found" it is simply a waste of my time to try to find >profitable common ground. They are concerned with one t

Re: [PHP] we are looking for experienced php programmers full time freelance...

2006-04-29 Thread Paul Novitski
At 10:46 AM 4/29/2006, tedd wrote: ... "I have found" it is simply a waste of my time to try to find profitable common ground. They are concerned with one thing, and one thing only, and that is how cheap can they get it -- and they seldom have a clue as to what "it" is -- but, contrary to their

[PHP] php login

2006-04-29 Thread Schalk
Greetings All, Where can I find a good tutorial on creating a login protected area using php? I did a Google search and found a couple but, I would like to get suggestions from the list. Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solu

Re: [PHP] IPN error

2006-04-29 Thread Stephen Lake
One more thing, make sure you validate ALL data that is being sent from paypal to ensure what you need and expect are therealso validate the transaction ID to ensure it was never used before. ""Stephen Lake"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Use cURL I found it

Re: [PHP] IPN error

2006-04-29 Thread Stephen Lake
Use cURL I found it much easier then using fsockopen http://ca.php.net/cURL ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, April 29, 2006 3:53 am, suresh kumar wrote: >> > value="Subscribe to Additional User Account Yearly"> > >> my page cod

Re: [PHP] we are looking for experienced php programmers full time freelance...

2006-04-29 Thread tedd
At 8:44 PM +0200 4/28/06, Jochem Maas wrote: RANTING SEASON HAS OPENED - lets shoot some wabbits. has anyone else noticed?? all our jobs go to India and now they are starting to hire us back. (because they don't have the skills? and probably at rates that equate to being able to buy 1 cheese san

Re: [PHP] Re: php <-> js (was Javascript Navigation)

2006-04-29 Thread Jochem Maas
hi normally, tedd wrote: At 9:03 AM +0200 4/28/06, Barry wrote: tedd schrieb: At 5:09 PM +0200 4/27/06, Barry wrote: tedd schrieb: Hi gang: Gang? Gang, group, clan, community, organization, hive, pod, assembly, biocenosis -- what do you want to be called? By my name normally.

Re: [PHP] RegExp for preg_split()

2006-04-29 Thread tedd
Hi: A summation of entries. http://xn--ovg.com/a/parse.php neat! tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] RegExp for preg_split()

2006-04-29 Thread Weber Sites LTD
Thanks, But this example seems to be short and does the job : Unless I'm missing something? thanks -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Saturday, April 29, 2006 10:29 AM To: Weber Sites LTD Cc: php-general@lists.php.net Subject: Re: [PHP] RegExp for

[PHP] XML Parsing, starting out.

2006-04-29 Thread sinai
Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dealing with an xml document that is 1st quite large and 2nd

Re: [PHP] Help!

2006-04-29 Thread Jochem Maas
Dave Goodchild wrote: All my variables are correctly delimited. strings constants are delimited not variables, semantically speaking. And don't make assumptions about what my code looks like why not? besides how are you going to stop someone from assuming your code looks like [x]? - I am a

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread tedd
A brace on its own line doesn't make sense to me. Satyam As the old lady said, as she kissed the cow "To each their own." It make perfect sense to me to enclose all blocks of code within braces on their own line AND to indent that entire segment, like so. function, if, while, switch, whatev

RE: [PHP] PHP Standard style of writing your code

2006-04-29 Thread tedd
At 2:12 AM -0500 4/29/06, Richard Lynch wrote: But I'm totally serious here -- I made this decision in college circa 1981, and I wrote the same long program both ways, and hung the two versions up on the wall side-by-side, and I liked the one with { on the same lines better. I even solicited my

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Rafael
Thanks for your reply. Paul Novitski already "talked" with me about it (in private), and my conclusions were... - I guess that has something to do with the way *I* read my mails, since I'm usually aware what people are talking about (since I've wrote the one they're responding, or I've b

Re: [PHP] php <-> js (was Javascript Navigation)

2006-04-29 Thread tedd
At 4:54 AM -0500 4/29/06, Richard Lynch wrote: But trying to force JS <-> PHP communication the way you are describing it is only going to make you very unhappy in the long run. Been to that dance more than once. But, as Dirty Harry once said "A man's got to know his limitations." Thanks fo

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Satyam
On Sat, 2006-04-29 at 03:17, Richard Lynch wrote: I'll also respond to another poster: I personally have no less/more ease in aligning } with a logic statement or with another {, *IF* the code is indented properly. In other words, the vertical alignment is more a function of the indentation, t

Re: [PHP] cgi.fix_pathinfo and iis 5

2006-04-29 Thread Jochem Maas
Mariano Guadagnini wrote: Mariano Guadagnini wrote: Hi people, I have the following issue: I´m using PHP 5 on IIS 5 and Windows XP Pro, and when trying to pass values through the path to my scripts, iis rejects them. After some googling, I found an advice to set AllowPathInfoForScriptMappin

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Robert Cummings
On Sat, 2006-04-29 at 03:17, Richard Lynch wrote: > > I'll also respond to another poster: > > I personally have no less/more ease in aligning } with a logic > statement or with another {, *IF* the code is indented properly. > > In other words, the vertical alignment is more a function of the > i

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Porpoise
"Rafael" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] P.S. What, in your mind, is the advantage of replying after quoting the original message and not before? :) In an NG environment, it allows everyone to follow the logic and see clearly what is being replied to, in the corre

Re: [PHP] display_errors off and custom error pages

2006-04-29 Thread Jochem Maas
IG wrote: I've spent the last couple of hours trying to work this out to no avail. I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in the php.ini is set to off and error file logging is off. I wou

Re: [PHP] php <-> js (was Javascript Navigation)

2006-04-29 Thread Richard Lynch
On Thu, April 27, 2006 6:39 pm, tedd wrote: > At 1:57 PM -0700 4/27/06, Paul Novitski wrote: > variable to js and will cause js to execute. But, isn't there > anything else? Is that all there is? That's all there is unless you really want to chew up all your HTTP connctions with a hell of a lot o

Re: [PHP] IPN error

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 3:53 am, suresh kumar wrote: > value="Subscribe to Additional User Account Yearly"> > my page code to process paypal > -- > > // read the post from PayPal system and add 'cmd' > $req = 'cmd=_notify-validate'; > > foreach ($_POST as

Re: [PHP] error message

2006-04-29 Thread Richard Lynch
On Thu, April 27, 2006 7:46 am, cybermalandro cybermalandro wrote: > I am running an old version of PHP for winblows 4.3.8. I cannot > upgrade to > 4.4.2 yet. I rebooted the web server and the box. I am not doing any > exception handling. I want the errors to be writtent to a log but > instead >

Re: [PHP] Uploading pic

2006-04-29 Thread Richard Lynch
On Thu, April 27, 2006 8:15 am, Rosen wrote: > I have this problem with uploading images: > I try several PHP classes for upload of files on server ( pictures in > my > case ), but if some user only renames some file as ".jpg" the script > uploads the file even the file format is not .jpg - i.e. -

Re: [PHP] forms and dynamic creation and unique field names

2006-04-29 Thread Richard Lynch
On Thu, April 27, 2006 9:56 am, Jason Gerfen wrote: > I have come upon a problem and am not sure how to go about resolving > it. I have an web form which is generated dynamically from an > imported > file and I am not sure how I can loop over the resulting post > variables > within the global $_PO

[PHP] IPN error

2006-04-29 Thread suresh kumar
Hi, I am new to this IPN (instant payment notification.I am working for past 6 hours.I am using this IPN to store payment details in our database. when user clicks the paypal button in my page.it will take to paypal.com website.after user completes the payments.It will send the payment deta

Re: [PHP] Includes and paths confusion

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 3:09 am, Nick Wilson wrote: > [EMAIL PROTECTED] > ls > ads/ config.inc db.inc funcs.inc init.inc > > where ads/ is a whole huge set of scripts from an existing setup. ads/ > was originally placed on its own domain as it's a version of phpadsnew > and runs as a server all

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
Wrong - both versions run on the same server (virtual hosts but same php.ini). I will check the values however, thanks! On 29/04/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, April 28, 2006 8:57 am, T.Lensselink wrote: >> In the demo version the script accesses the $_GET array - an examp

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 9:19 am, Dave Goodchild wrote: > I would do but there are 5000+ lines and no indication of where the > error is > occurring. I have just copied the demo version into the same dir and > it > works fine - and that version calls the same classes (includes). Go ahead and let he

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 9:01 am, Dave Goodchild wrote: > Thanks - now the parameters reach the function intact but the mailer > still > does not work. Basically, the form is a self-reloader. If the form has > been > submitted and the data validated (including emails sent) it displays a > thank > you

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 8:57 am, T.Lensselink wrote: >> In the demo version the script accesses the $_GET array - an example >> value: >> >> $data[email] >> >> ..which works fine in the demo app. If I quote all the values thus >> in the >> new version: >> >> $data['email'] >> >> ..the arguments appe

Re: [PHP] Help!

2006-04-29 Thread chris smith
On 4/29/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: All my variables are correctly delimited. And don't make assumptions about what my code looks like - I am asking for help, not judgements, and my question was valid (unlike many you see here). I am not a spammer either, this is an application

Re: [PHP] RegExp for preg_split()

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 11:16 am, Weber Sites LTD wrote: > I'm looking for the RegExp that will split a search string into search > keywords. > while taking " " into account. > > From what I managed to find I can get all of the words into an array > but I > would > like all of the words inside " " t

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
All my variables are correctly delimited. And don't make assumptions about what my code looks like - I am asking for help, not judgements, and my question was valid (unlike many you see here). I am not a spammer either, this is an application for the marketing department of a charity. On 29/04/06

Re: [PHP] getting current page url

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 6:21 am, Schalk wrote: > Possibly a very simple question but here goes. How would I code the > following in PHP? > > if(window.location == (("http://www.epda.cc/index.php";) || The closest moral equivalent to window.location in PHP is probably $_SERVER['PHP_SELF']... Actual

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 8:11 am, Dave Goodchild wrote: > I am working on a viral marketing application that uses multipart > emails to > notify entrants of their progress in the 'game'. I have a demo version > which > works fine, and the current rebranded version was also fine until the > client > a

Re: [PHP] Beginner's php/mysql connection probs

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 10:26 am, sathyashrayan wrote: > I am a self thought php beginner. I wrote my first toy > code for database connection in php/mysql. The connection > is successful but iam getting a warning and my rows/columns > are not showing. I am getting a warning: > > Warning: mysqli_

Re: [PHP] display_errors off and custom error pages

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 11:55 am, IG wrote: > I have recently moved over to a managed dedi server and no can ask my > host to change my php.ini. > > I have found out that the 'display_errors' in the php.ini is set to > off > and error file logging is off. Do they have .htaccess turned on? Because

Re: [PHP] Multi-threaded port listener

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 3:23 pm, René Fournier wrote: > Anyone find any good tutorials, code samples, etc. on such a thing? > Basically, I want to write server (in PHP) that listeners on a > particular port, and spins off a thread/process (essentially, execute > a separate script) for each incoming

Re: [PHP] GD text proc via php OK for local strings, but NOT for SESSION-passed strings. why?

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 4:54 pm, OpenMacNews wrote: > -BEGIN PGP SIGNED MESSAGE- > in a given php file, this returns an image as expected: > > ... > $word="blah"; > imagefttext($im, ... other params ... , $word); > ... > header ("Content-type: image/png"); >

Re: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 1:08 am, Paul Novitski wrote: >> IMHO, vertical aligned brackets can be messy when nesting >>relatively-small blocks (and seems to me like a lot of wasted space) > > I'm struggling to get my head around this concept of 'wasted space' > with regard to software code. W

RE: [PHP] PHP Standard style of writing your code

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 5:18 pm, Chris W. Parker wrote: > Richard Lynch > on Monday, April 24, 2006 11:50 PM said: > >> So no matter what was actually typed, *I* would see: >> >> function foo ($x) { >> //body >> } >> >> but some heretic who doesn't know any better wo