[PHP] Re: Any performance experiences to offer?

2005-11-25 Thread Oliver Grätz
Tim Meader schrieb: > Was PHP5 faster than PHP4 for identical code? Thus making PHP5.1 even > faster? Or was it a case of PHP5 being a bit more bulky than PHP4, thus > PHP5.1 bringing it more inline with the old performance. I'm looking to > upgrade of PHP 4.4.1 installs, but I'm holding off on PHP

Re: [PHP] mysqli unclonable object

2005-11-25 Thread Matt Monaco
In outlook express by default the headers are displayed as some icons and then subject, from, sent, size. For some people From is displayed in double quotes, and others not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
Well, I turned them off and it worked as it apparently should. It was just a setting I read I had to make for globals to work the first time I install PHP. I've made that change ever since. I've always wondered why these variables - which I consider really important, need to be turned on. Mat

Re: [PHP] mysqli unclonable object

2005-11-25 Thread Curt Zirzow
On Wed, Nov 23, 2005 at 11:43:56PM -0500, Matt Monaco wrote: > I get string(1) "", should that be taken just the same as 0? In addition > phpinfo() indicates php 5.0.4 - does the upgrade to .5 involve remove .4 > first? I'm not sure how you are getting 'string(1) ""' with php5.0.x you should h

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread John Nichel
Matt Monaco wrote: I apologize, but I've never been able to access $_POST and $_GET in any context whatsoever without first turning on the register globals. If you have a form like this one one page... And this on page2.php... And the output on page2.php is not 'bar' when you submit th

Re[2]: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi Matt, Saturday, November 26, 2005, 12:42:16 AM, you wrote: > I apologize, but I've never been able to access $_POST and $_GET in > any context whatsoever without first turning on the register > globals. You have a seriously foobared installation of PHP then! :) Cheers, Rich -- Zend Certifi

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
I apologize, but I've never been able to access $_POST and $_GET in any context whatsoever without first turning on the register globals. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Monaco wrote: >> Somewhat, but its what you need to do for the post and get

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread John Nichel
Matt Monaco wrote: Somewhat, but its what you need to do for the post and get arrays to work. No. Things like $_POST and $_GET are global arrays and work regardless of the register_globals setting. The information you're handing out above is wrong and dangerous. What you need to do is m

[PHP] Re: http protocols defining what gets sent between web server and browser

2005-11-25 Thread Tim Van Wassenhove
On 2005-11-24, "bruce" <[EMAIL PROTECTED]> wrote: > I'm working on a project, and need to know if there's anyone who's a guru > with Web Server/Client interactions. Basically, I'm trying to get a much > better/deeper understanding of the HTTP protocols defining the information > that is sent/transf

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
I used SQLyog and it's formated corectly though when i release it i will do that Also i have a login script, same same problem i'l see what will work On 11/25/05, Matt Monaco <[EMAIL PROTECTED]> wrote: > > Somewhat, but its what you need to do for the post and get arrays to work. > What you need t

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread adriano ghezzi
could you give us all source lines, just cut and paste ? hy ag. 2005/11/26, Matt Monaco <[EMAIL PROTECTED]>: > Somewhat, but its what you need to do for the post and get arrays to work. > What you need to do is make sure check the values in the global variables > before you use them. For exampl

Re: [PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
I know the functions don't need to be copied. I would like to easily transport the objects (not the class) between pages using a form. I'm pretty sure the serialize() function can't be avoided (otherwise all that will be passed is a string with a value like "Object ID: #55") but how can I get

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
Somewhat, but its what you need to do for the post and get arrays to work. What you need to do is make sure check the values in the global variables before you use them. For example if on one page you have a form for a user signup and on the next page $_POST['userName'] should be checked for

Re: Re[2]: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
Wow somehow I fixed the error, I don't really know how... oh well

Re[2]: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi, Friday, November 25, 2005, 10:43:20 PM, you wrote: > Doesn't that cause security problems? Yes. Post your *whole* code, not just snippets of it. Cheers, Rich -- Zend Certified Engineer PHP Development Services http://www.corephp.co.uk -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Any performance experiences to offer?

2005-11-25 Thread Unknown Unknown
PHP5 code is faster generally, and OOP is also accelerated a lot On 11/25/05, Tim Meader <[EMAIL PROTECTED]> wrote: > > Are there any benchmarks that people are aware of comparing > PHP4|PHP5|PHP5.1 as far as performance is concerned? I mean, it's easy > to say that performance is improved... but

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
I refer to them as: $Username=$_POST['Username']; $Password=$_POST['Password']; $EMail=$_POST['EMail']; and on the form i have method="post" so I don't know why this is not working On 11/25/05, Stephen Johnson <[EMAIL PROTECTED]> wrote: > > You would access them by declaring them as regular varia

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Stephen Johnson
You would access them by declaring them as regular variables and then using the regular variables in your code. As a side note - please do NOT turn global variables on in your php.ini file. There is a good reason for why it is shut off and "good" php does not need to have it turned on. Hope

Re: [PHP] Passing objects between pages

2005-11-25 Thread Unknown Unknown
Well the functions won't need to be copied, but can't you put the properties into a MySQL or other database? Then on a page that you need the properties you pull them from the table? On 11/25/05, Matt Monaco <[EMAIL PROTECTED]> wrote: > > I mean the object itself, not the class (the file containin

Re[2]: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi Unknown, Friday, November 25, 2005, 10:38:02 PM, you wrote: > Well it returned all values with print_r(); but i can't access > them... this is what the page returns: Post your code, there's an error in it if the $_POST etc arrays are populated, but you can't access them. Cheers, Rich -- Ze

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
Doesn't that cause security problems? On 11/25/05, Matt Monaco <[EMAIL PROTECTED]> wrote: > > In php.ini (most likely located in your windows directory) look for the > globals section and turn register_globals = on > > Matt > > > "Unknown Unknown" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL

Re: [PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
I mean the object itself, not the class (the file containing the class definition is included on all necessary pages with require_once("file.inc.php"); I want to create an object on one page ($obj = new MyClass();) and have it on other pages, all members and functions intact. Matt "Unknown

[PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
In php.ini (most likely located in your windows directory) look for the globals section and turn register_globals = on Matt "Unknown Unknown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET and $_POST arrays do not

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
Well it returned all values with print_r(); but i can't access them... this is what the page returns: Array ( [Username] => SFF [Password] => dSF [EMail] => sfdf ) Array ( ) *Notice*: Undefined index: Username in * D:\Apache\Apache(re)\Apache2\htdocs\RegisterP.php* on line *5* *Notice*: Undefine

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi, Friday, November 25, 2005, 10:22:46 PM, you wrote: > Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET > and $_POST arrays do not seem to be working, I am Sure I am spelling > them right, but i keep getting the errors: > Is this a problem with configuration or is there a bug

Re: [PHP] Passing objects between pages

2005-11-25 Thread Unknown Unknown
Do you mean passing the class statement or the vars? couldn't you format the vars into mysql and pull them? On 11/25/05, Matt Monaco <[EMAIL PROTECTED]> wrote: > > What is the best way to pass an object between pages? Currently I am > first > serializing, then doing a base64_encode, this doesn't

[PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET and $_POST arrays do not seem to be working, I am Sure I am spelling them right, but i keep getting the errors: ** *Notice*: Undefined index: Username in * D:\Apache\Apache(re)\Apache2\htdocs\RegisterP.php* on line *3* *Notice*: Un

[PHP] Re: swaping numerical index for keys

2005-11-25 Thread Matt Monaco
function addAssoc($ary_stat) { $ls_statfields = array(.); while ($assoc = each($ls_statfields)) { $ary_stat[$assoc['key']] = $ary_stat[$assoc['value']]; } return $ary_stat; } This should do what you want. I'm not sure if you want to remove the numeric keys entirely,

[PHP] Re: array woes

2005-11-25 Thread Matt Monaco
Within grabQuotes(); if you do a var_dump($arg); (where $arg is $res[id]) is your vehicle name displayed? If it is, and you're using it correctly, make sure you're returning the value you'd like correctly. It might help to post your grabQuotes function as well as the code that displays $cars[]

[PHP] swaping numerical index for keys

2005-11-25 Thread Pooly
Hi, I've an array : $ls_statfields=array( "rfile" =>0, "file" =>1, "dev" =>2, "ino" =>3, "mode" =>4, "nlink" =>5, "uid" =>6, "gid" =>7, "rdev" =>8, "size" =>9, "atime" =>10, "mtime" =>11, "ctime

[PHP] array woes

2005-11-25 Thread blackwater dev
Hello all, I have some array code driving me nuts. I am pulling from a db: select id, vehicle, has_quotes from cars where active=1 I then loop through these and build an array that contains the id's and cars. while($res){ $cars[$res[id]]=$res[vehicle]; //here is the problem, when has_quotes i

[PHP] Any performance experiences to offer?

2005-11-25 Thread Tim Meader
Are there any benchmarks that people are aware of comparing PHP4|PHP5|PHP5.1 as far as performance is concerned? I mean, it's easy to say that performance is improved... but what's the baseline? Was PHP5 faster than PHP4 for identical code? Thus making PHP5.1 even faster? Or was it a case of PHP5

[PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
What is the best way to pass an object between pages? Currently I am first serializing, then doing a base64_encode, this doesn't seem entirely efficient. (Especially the encode). I am however using the encode because I have the serialized object as the value of a hidden form element. I can only

[PHP] php scripts that communicated with Windows Media Server

2005-11-25 Thread Graham Anderson
Does anyone know if there are any repositories of php scripts that communicate with Windows Media Server... I am looking for stuff like getting the number of connected users, and etc I have seen perl scripts that do this...but not php anyone know ? g -- PHP General Mailing List (http://ww

Re: [PHP] What is

2005-11-25 Thread David Grant
Tells the parser that the XML it is parsing is version 1. Jochem Maas wrote: > Wolf wrote: >> I have some scripts that I downloaded and am trying to make compliant >> with my server. They have > they are and how to fix them at this point. >> >> Stupid question, I know, but... > > not stupid, a

Re: [PHP] What is

2005-11-25 Thread Jochem Maas
Wolf wrote: I have some scripts that I downloaded and am trying to make compliant with my server. They have not stupid, although a 'google' might have helped, regardless you have already had the answer. I find it funny that you say 'fix them' - one of the things [some of] the core developers

Re: [PHP] What is

2005-11-25 Thread Al Hafoudh
Its same as or Wolf wrote: I have some scripts that I downloaded and am trying to make compliant with my server. They have -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is

2005-11-25 Thread David Grant
Robert, I have some scripts that I downloaded and am trying to make compliant > with my server. They have they are and how to fix them at this point. > > Stupid question, I know, but... > > Thanks, > Robert > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] What is

2005-11-25 Thread Wolf
I have some scripts that I downloaded and am trying to make compliant with my server. They have http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't execute external program

2005-11-25 Thread n.g.
or `sample1.new' was created in some other directory, for exampe, the cwd of apache server process. do a search to find it , or use full path in your commandh line. On 11/25/05, n.g. <[EMAIL PROTECTED]> wrote: > sorry , i have made mistake. > > `option +exec' is not required, and there is no such

[PHP] Re: Can't execute external program

2005-11-25 Thread n.g.
sorry , i have made mistake. `option +exec' is not required, and there is no such apache option. maybe you're running php in safe_mode ? On 11/24/05, n.g. <[EMAIL PROTECTED]> wrote: > put the executable into another directory rather than DOC_ROOT, > maybe you have reached apache security settin