Re: [PHP] hello everybody

2012-03-21 Thread Michael Save
w3schools is not a good source. http://w3fools.com/ On Thu, Mar 22, 2012 at 5:33 PM, Midhun Girish wrote: > I think this would be an ideal resource for beginners > http://www.w3schools.com/php/php_forms.asp. I used it when i began php. I > would suggest doing the entire course in there. Really h

Re: [PHP] hello everybody

2012-03-21 Thread Midhun Girish
I think this would be an ideal resource for beginners http://www.w3schools.com/php/php_forms.asp. I used it when i began php. I would suggest doing the entire course in there. Really helpful. Regards Midhun Girish On Sun, Mar 18, 2012 at 10:05 PM, Jeremy Wei wrote: > you can read the content a

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Robert Cummings
On 12-03-21 04:42 PM, Jay Blanchard wrote: [snip] Why are you trying to create the JSON structure in parts? When I have nesting like this i build the full nested structure as PHP, then export to JSON. [/snip] As PHP? An array? Yeah sorry... you know what I meant ;) Cheers, Rob. -- E-Mail D

[PHP] Node.PHP

2012-03-21 Thread Joseph Moniz
Hey, So i had my first Hackathon at work last week and my project was to prototype making a node.js clone using PHP instead of V8. So i snatched up libuv and joyent's HTTP parser and set off on a 24 hour coding spree to get something workable. By the time the sun was coming out the next morning th

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Jim Lucas
On 03/21/2012 11:39 AM, Jay Blanchard wrote: If you were me would you just generate the JSON? If not what is he best way to output an array that will nest properly for each subsequent query? Depends on where the data is coming from and how you are retrieving it from. Can you provide examples

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Jay Blanchard
[snip] > Why are you trying to create the JSON structure in parts? When I have nesting > like this i build the full nested structure as PHP, then export to JSON. [/snip] As PHP? An array? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Robert Cummings
On 12-03-21 03:52 PM, Jay Blanchard wrote: [snip] I would, yes, but that's not the point. Is Anna single? I'm ready to trade Debs in for a newer model. [/snip] I'm thinking that Debs would upset your array if you traded her in. Anyhow, I have spent the last hour trying to output valid J

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Jay Blanchard
[snip] >I would, yes, but that's not the point. Is Anna single? I'm > ready to trade Debs in for a newer model. [/snip] I'm thinking that Debs would upset your array if you traded her in. Anyhow, I have spent the last hour trying to output valid JSON but the whole thing is making me barki

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Daniel Brown
On Wed, Mar 21, 2012 at 14:39, Jay Blanchard wrote: [snip!] > I ran it through json_encode() and got the following output > > {"John":{"email":"j...@demo.com","website":"www.john.com","age":"22","password":"pass","description":{"hair":"blonde","eyes":"blue","build":"medium"}},"Anna":{"email":"a...

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Adam Richardson
On Wed, Mar 21, 2012 at 2:39 PM, Jay Blanchard wrote: > ... > I have a project where I have multiple queries and each query uses the > results from the previous query to get it's results. I need to do one of two > things, either out put a multidimensional array that I can use json_encode() > on

[PHP] Thinking out loud - a continuation...

2012-03-21 Thread Jay Blanchard
This is a continuation of the nested query thing I posted to the list a while back. I was finally able to output a nested unordered array that worked out well, but scope-creep has come in the door and I have to change gears. I have a project where I have multiple queries and each query uses the

Re: [PHP] php upload does not work proper, ["tmp_name"] and other are missing in $_FILES

2012-03-21 Thread Matijn Woudt
On Wed, Mar 21, 2012 at 3:32 PM, Meike Stone wrote: >> >> But what is the reason, that the module not work properly? >> Which next step can I do? > > I figured out, that the new mod_php5.so is not linked against > libmm.so.14. Can this be the problem? > > Thanks Meike > > # ldd mod_php5.so.5.3.8 >

[PHP] PEAR_Error reporting

2012-03-21 Thread Karl-Arne Gjersøyen
Hello. I ran into trouble with a PEAR module and got only a blank (empty) page after filling in a loginform with PEAR::Auth I have error reporting in php.ini that create ordinary error message on my CentOS box, but it do not write error message when using PEAR. In a book I have is PEAR_Error mentio

Re: [PHP] php upload does not work proper, ["tmp_name"] and other are missing in $_FILES

2012-03-21 Thread Meike Stone
> > But what is the reason, that the module not work properly? > Which next step can I do? I figured out, that the new mod_php5.so is not linked against libmm.so.14. Can this be the problem? Thanks Meike # ldd mod_php5.so.5.3.8 linux-vdso.so.1 => (0x7fffe051c000) libcrypt.so

Re: [PHP] Pear Auth problem

2012-03-21 Thread Govinda
> Hello. > I am trying to use pear Auth packet but am doing something wrong. > I am currently looking at the simple example in the documentation, but > something is wrong in my source code, because if I write a username > and a password in the fields and hit the submit button, I receive a > blank p

Re: [PHP] php upload does not work proper, ["tmp_name"] and other are missing in $_FILES

2012-03-21 Thread Meike Stone
2012/3/20 Meike Stone : >> >> First of all, check your apache log files for any hints. There's >> probably a warning/error in there that explains why. > > I switched to "LogLevel debug" but in error_log is nothing found, > the access_log showes only: > 192.168.1.89 - - [20/Mar/2012:16:43:53 +0100]

Re: [PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread Jim Giner
Not until you find out if it actually works. Then, maybe "David OBrien" wrote in message news:CAF=yd_3rbr-gkonpjdbtogssiufwzeqteanqneproh6hhyu...@mail.gmail.com... > Damn I'm an idiot... sorry :\ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread David OBrien
Damn I'm an idiot... sorry :\ On Wed, Mar 21, 2012 at 9:34 AM, Jim Giner wrote: > Did you do a search of the php manual? I did one on "hex" and found > function bin2hex. Not sure how you mac address is actually built, but I > would try converting it char by char and see what the function return

[PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread Jim Giner
Did you do a search of the php manual? I did one on "hex" and found function bin2hex. Not sure how you mac address is actually built, but I would try converting it char by char and see what the function returns. Or maybe just pass the whole string to it. Just a guess. -- PHP General Mailin

[PHP] How can I convert these to hex or strings?

2012-03-21 Thread David OBrien
I'm running snmp against a huge list of printers and certain HP models return Model: stdClass Object ( [type] => 4 [value] => ☺§HP LaserJet P3010 Series ) Serial: stdClass Object ( [type] => 4 [value] => ☺§VNBCC1917W ) MacAddress: stdClass Object ( [type] => 4 [value] =>

[PHP] Pear Auth problem

2012-03-21 Thread Karl-Arne Gjersøyen
Hello. I am trying to use pear Auth packet but am doing something wrong. I am currently looking at the simple example in the documentation, but something is wrong in my source code, because if I write a username and a password in the fields and hit the submit button, I receive a blank pages without

Re: [PHP] Bug zlib.output_compression not normal work in IIS7.5

2012-03-21 Thread Simon Schick
2012/3/19 小鱼虾 > > How I do fix it ? > > > https://bugs.php.net/bug.php?id=61434 > Hi, I got a rough overview of the conversation in the bug-tracker ... You were always talking about a tool you used to test the gzip-compression ... but why not test it natively? Using Firefox (with the extension