Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Casey
On Jan 10, 2008, at 8:00 PM, Arlen Christian Mart Cuss [EMAIL PROTECTED] wrote: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') Thanks, Arlen. I've run into this

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Nathan Nobbe
On Jan 10, 2008 11:00 PM, Arlen Christian Mart Cuss [EMAIL PROTECTED] wrote: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') thats hillarious, i literally brought this

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Jim Lucas
Nathan Nobbe wrote: On Jan 10, 2008 11:00 PM, Arlen Christian Mart Cuss [EMAIL PROTECTED] wrote: Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') thats hillarious, i

Re: [PHP] Why is some_function()[some_index] invalid syntax?

2008-01-10 Thread Nathan Nobbe
On Jan 11, 2008 12:25 AM, Jim Lucas [EMAIL PROTECTED] wrote: So, make all your functions return objects, and have the object have a method called get or index or something like that that returns the index requested. :) Better yet, make everything an object: String, Numeric, Array, etc i

Re: [PHP] why is option '97' selectedJapan/option not highlighted

2007-12-31 Thread Tom Chubb
On 31/12/2007, Mary Anderson [EMAIL PROTECTED] wrote: in my select scrolling list? Here is the offending code (abbreviated) select name=sr_location_id class= size=10 option value='94' Italy/option option value='97' selectedJapan/option option value='252' Jersey/option option value='294'

Re: [PHP] why is option '97' selectedJapan/option not highlighted

2007-12-31 Thread Richard Lynch
FireFox may be remembering whatever you last selected. That's a browser feature you have to live with. Move along, nothing to see here :-) On Sun, December 30, 2007 9:46 pm, Mary Anderson wrote: in my select scrolling list? Here is the offending code (abbreviated) select name=sr_location_id

Re: [PHP] why is option '97' selectedJapan/option not highlighted

2007-12-30 Thread Daniel Brown
On Dec 30, 2007 10:46 PM, Mary Anderson [EMAIL PROTECTED] wrote: in my select scrolling list? Here is the offending code (abbreviated) select name=sr_location_id class= size=10 option value='94' Italy/option option value='97' selectedJapan/option option value='252' Jersey/option option

Re: [PHP] Why I sart getting Fatal error: Allowed memory size... after php upgrade?

2007-12-20 Thread Stephen Johnson
It sounds to me like the allowed memory size went back to the default after they upgraded php. I usually have to update some of my config files after an upgrade. Nothing seems strange to me here... But maybe I am missing something. I'm going to edit php.ini though what if client doesn't have

Re: [PHP] Why I sart getting Fatal error: Allowed memory size... after php upgrade?

2007-12-20 Thread afan pasalic
Richard Lynch wrote: On Thu, December 20, 2007 11:37 am, afan pasalic wrote: The hosting company I have one account (and several Add Domains) upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I start getting the error message: Fatal error: Allowed memory size of 8388608 bytes

Re: [PHP] Why I sart getting Fatal error: Allowed memory size... after php upgrade?

2007-12-20 Thread afan pasalic
Stephen Johnson wrote: It sounds to me like the allowed memory size went back to the default after they upgraded php. I usually have to update some of my config files after an upgrade. Nothing seems strange to me here... But maybe I am missing something. I'm going to edit php.ini

Re: [PHP] Why I sart getting Fatal error: Allowed memory size... after php upgrade?

2007-12-20 Thread Richard Lynch
On Thu, December 20, 2007 11:37 am, afan pasalic wrote: The hosting company I have one account (and several Add Domains) upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I start getting the error message: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to

Re: [PHP] Why $_REQUEST do the same thing as mysql_escape_string()

2007-10-17 Thread Eric Butera
On 10/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I put some thing in an form input filed like this: ' \ then submit to a php script. When use $_GET / $_POST / $_REQUEST to get the value, I always get: \' \ \\ In php expression it should be: $_REQUEST['field'] = \\' \\\ ; Any

Re: [PHP] Why not user...?

2007-08-28 Thread Gustav Wiberg
General php-general@lists.php.net Sent: Tuesday, August 28, 2007 3:20 AM Subject: Re: [PHP] Why not user...? On Mon, August 27, 2007 8:51 am, Stut wrote: Gustav Wiberg wrote: Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing

RE: [PHP] why?

2007-08-28 Thread Jay Blanchard
[snip] Yes, a single sign-on it is... It doesn't work together with Windows (and PHP) you mean? [/snip] No, not really. You can run PHP on a Linux or a Windows server and it does not have access to the initial login values (press cntl alt del to login) although ASP and .Net (auth_user, etc) do.

Re: [PHP] why?

2007-08-28 Thread mike
On 8/28/07, Jay Blanchard [EMAIL PROTECTED] wrote: Since PHP cannot read registry settings (neither can JavaScript) on the client that is out. Windows is aware of the logged in user, but exactly where that 'session' information is kept is a mystery to most of us. So PHP cannot be aware of a

RE: [PHP] why?

2007-08-28 Thread Jay Blanchard
[snip] i know there is an apache NTLM(1) module for this. i don't believe it requires anything other than a connection to a domain authentication server and the ability to send headers and read the reply (challenge/response) - i don't think the registry is needed at all on the client or the

Re: [PHP] why?

2007-08-28 Thread Stut
Jay Blanchard wrote: [snip] i know there is an apache NTLM(1) module for this. i don't believe it requires anything other than a connection to a domain authentication server and the ability to send headers and read the reply (challenge/response) - i don't think the registry is needed at all on

Re: [PHP] why?

2007-08-28 Thread mike
On 8/28/07, Stut [EMAIL PROTECTED] wrote: In addition the OP is running IIS so this is all kinda less than helpful to him. yeah, i didn't say this would, but it should be able to be ported to a PHP module by someone i would think. i mean if someone can do it in Perl or C (especially C) why

Re: [PHP] why?

2007-08-28 Thread shiplu
On 8/28/07, mike [EMAIL PROTECTED] wrote: On 8/28/07, Stut [EMAIL PROTECTED] wrote: In addition the OP is running IIS so this is all kinda less than helpful to him. yeah, i didn't say this would, but it should be able to be ported to a PHP module by someone i would think. i mean if

Re: [PHP] Why not user...?

2007-08-27 Thread Robert Cummings
On Mon, 2007-08-27 at 09:56 +0200, Gustav Wiberg wrote: Hi! Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing on. Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on line 2 Because on line 2 of

RE: [PHP] Why not user...?

2007-08-27 Thread Jay Blanchard
[snip] Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing on. Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on line 2 [/snip] Hmm, can only take a guess since we do not see what sets PHP_AUTH_USER, but

Re: [PHP] Why not user...?

2007-08-27 Thread Stut
Gustav Wiberg wrote: Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing on. Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on line 2 For some reason it's not getting set. This could be because you've

Re: [PHP] Why not user...?

2007-08-27 Thread Gustav Wiberg
27, 2007 3:51 PM Subject: Re: [PHP] Why not user...? Gustav Wiberg wrote: Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing on. Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on line 2 For some reason

Re: [PHP] why?

2007-08-27 Thread Stut
Gustav Wiberg wrote: I can't figure the thing with Windows Integrated authentication... I have checked a website for doing this. I still have to enter username and password even if I'm on the local computer (through a VPN though) This would be the same as using computer locally on the network,

Re: [PHP] why?

2007-08-27 Thread Gustav Wiberg
, 2007 8:51 PM Subject: Re: [PHP] why? Gustav Wiberg wrote: I can't figure the thing with Windows Integrated authentication... I have checked a website for doing this. I still have to enter username and password even if I'm on the local computer (through a VPN though) This would be the same

Re: [PHP] why?

2007-08-27 Thread Stut
, 2007 8:51 PM Subject: Re: [PHP] why? Gustav Wiberg wrote: I can't figure the thing with Windows Integrated authentication... I have checked a website for doing this. I still have to enter username and password even if I'm on the local computer (through a VPN though) This would be the same

Re: [PHP] why?

2007-08-27 Thread Gustav Wiberg
Hi! Ok. Of course Why didn't I think of that? Thanx! :-) Best regards /Gustav Wiberg - Original Message - From: Stut [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Sent: Monday, August 27, 2007 8:59 PM Subject: Re: [PHP] why

RE: [PHP] why?

2007-08-27 Thread Jay Blanchard
[snip] I can't figure the thing with Windows Integrated authentication... I have checked a website for doing this. I still have to enter username and password even if I'm on the local computer (through a VPN though) This would be the same as using computer locally on the network, but I have to

RE: [PHP] why?

2007-08-27 Thread Jay Blanchard
[snip] ... be the same as using computer locally on the network, but I have to enter username and password. I'm sure I have checked the Windows Integreated authenication - checkbox for the website it's about. When I have entered username and password I can go on and do whatever I want on that

Re: [PHP] why?

2007-08-27 Thread mike
On 8/27/07, Jay Blanchard [EMAIL PROTECTED] wrote: Are you trying to do single sign-on? This would be one of the holy grails of the PHP on Linux, Windows clients operations. This is available with .Net and with legacy ASP/Jscript apps but not with PHPeven on windows there's an apache

Re: [PHP] Why not user...?

2007-08-27 Thread Richard Lynch
On Mon, August 27, 2007 8:51 am, Stut wrote: Gustav Wiberg wrote: Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing on. Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on line 2 For some reason it's

Re: [PHP] why?

2007-08-27 Thread Gustav Wiberg
@lists.php.net Sent: Monday, August 27, 2007 9:26 PM Subject: RE: [PHP] why? [snip] ... be the same as using computer locally on the network, but I have to enter username and password. I'm sure I have checked the Windows Integreated authenication - checkbox for the website it's about. When I have

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Stut
Jason Pruim wrote: Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P Figured since yall have to much time on your hands anyway I'd give you something else to gripe about... :) Now... My question :) ?php $mysqli =

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Daniel Brown
On 8/7/07, Jason Pruim [EMAIL PROTECTED] wrote: Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P Figured since yall have to much time on your hands anyway I'd give you something else to gripe about... :) Now...

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Mark Summers
Hello, I suspect that you need to assign the new instance of mysqli to $mysqli by reference to prevent the on-demand instance that is created by new from being copied (cloned) at the point of assignment. Mark Jason Pruim wrote: Yes I am hijacking a thread just to screw with all the people who

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jason Pruim
On Aug 7, 2007, at 11:46 AM, Daniel Brown wrote: As far as I know, J (and I could be wrong on this), this is actually a problem with PHP5. Some things that you could try, however: In your php.ini file, set: zend.ze1_compatibility_mode = Off Hey Dan, That did the trick on

RE: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jay Blanchard
[snip] Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P [/snip] To answer your question, because hijacking threads is much harder than typing the e-mail address in the To box, Duh. -- PHP General Mailing List

Re: [PHP] Why create_element function always return false?

2007-05-07 Thread Richard Lynch
On Fri, May 4, 2007 9:44 pm, Victor wrote: ?php $doc = domxml_new_doc(1.0); var_dump($doc); $node = $doc-create_element(para); var_dump($node); $newnode = $doc-append_child($node); var_dump($newnode); $newnode-set_attribute(align, left); ? I just run the example that is from php

Re: [PHP] Why create_element function always return false?

2007-05-05 Thread Tijnema !
On 5/5/07, Victor [EMAIL PROTECTED] wrote: ?php $doc = domxml_new_doc(1.0); $node = $doc-create_element(para); $newnode = $doc-append_child($node); $newnode-set_attribute(align, left); ? I just run the example that is from php manual. But there is some error

Re: [PHP] Why does this encoding work in PHP?

2007-05-04 Thread Dave Goodchild
The characters are encoded in octal and the php interpreter converts them into the corresponding ASCII characters and then the sequence is represented as a string which is included?

Re: [PHP] Why does this encoding work in PHP?

2007-05-04 Thread Richard Lynch
On Fri, May 4, 2007 3:24 am, Arno Kuhl wrote: I recently came across a script that was oddly encoded. A bit of digging revealed it was encoded in octal. What puzzles me is why the php interpreter is able to understand the script. An example (not from the original script) require_once

Re: [PHP] Why do i get this error message?

2007-04-24 Thread Richard Lynch
On Sun, April 22, 2007 5:47 pm, H.T wrote: I get this error message when i try to check my site on localhost running IIS and PHP 5.1.2 : Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 24576 bytes) in ... and it points to the line which is pure html code!

Re: [PHP] Why do i get this error message?

2007-04-23 Thread Edward Vermillion
On Apr 22, 2007, at 5:47 PM, H.T wrote: I get this error message when i try to check my site on localhost running IIS and PHP 5.1.2 : Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 24576 bytes) in ... and it points to the line which is pure html code! What

RE: [PHP] Why do i get this error message?

2007-04-22 Thread Buesching, Logan J
Could you also send the code? Maybe 5 lines before and 5 lines after the line it is pointing to? It also means it tried to allocate 2KB of memory, which put you over your 8MB in whatever script you are running. You can set the maximum amount of memory a PHP script can use in your PHP.ini file.

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Jochem Maas
Chris wrote: Richard Lynch wrote: On Tue, April 17, 2007 4:01 pm, Chris wrote: Tijnema ! wrote: On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Brian Dunning
We finally got it resolved by editing php.ini. This was classic: A clueless office assistant did it, talked through step-by-step over a cell phone, while an armed security guard accompanied her into their server room. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Tijnema !
On 4/18/07, Brian Dunning [EMAIL PROTECTED] wrote: We finally got it resolved by editing php.ini. This was classic: A clueless office assistant did it, talked through step-by-step over a cell phone, while an armed security guard accompanied her into their server room. LOL. Never heard of

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Richard Lynch
On Wed, April 18, 2007 10:07 am, Brian Dunning wrote: We finally got it resolved by editing php.ini. This was classic: A clueless office assistant did it, talked through step-by-step over a cell phone, while an armed security guard accompanied her into their server room. I knew a guy one time

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Sebe
Brian Dunning wrote: If I do this: ini_set('upload_max_filesize', 30720); echo ini_get('upload_max_filesize'); it returns 2M. Why is it not accepting the ini_set? The server is Windows, PHP 5.2. probably because upload_max_filesize is PHP_INI_PERDIR not PHP_INI_ALL use:

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Brian Dunning
Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not Apache. On Apr 17, 2007, at 1:40 PM, Daniel Brown wrote: That particular variable is a PHP_INI_SYSTEM variable, which means it can only be

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 3:43 pm, Sebe wrote: Brian Dunning wrote: If I do this: ini_set('upload_max_filesize', 30720); echo ini_get('upload_max_filesize'); it returns 2M. Why is it not accepting the ini_set? The server is Windows, PHP 5.2. probably because upload_max_filesize is

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Tijnema !
On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not Apache. I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR can also be set in .htaccess

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Chris
Tijnema ! wrote: On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not Apache. I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR can also

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
Talk to your webhost. Nobody here can do anything useful for you on this... Other than to recommend abandoning your current host for a better one. :-) On Tue, April 17, 2007 3:46 pm, Brian Dunning wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini -

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 4:01 pm, Chris wrote: Tijnema ! wrote: On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not Apache. I'm not totaly sure about

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Chris
Richard Lynch wrote: On Tue, April 17, 2007 4:01 pm, Chris wrote: Tijnema ! wrote: On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not Apache. I'm not

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
It's PHP_INI_PERDIR, but php takes the MINIMUM(php.ini, .htaccess, FORM:MAX_FILE_UPLOAD_SIZE_THINGIE) So it's no less secure than the webhost/sysadmin chooses to make it. Or, at least, that's how I understood it to work when I tested it ages ago... No promise it hasn't changed. On Tue, April

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Tijnema !
On 4/3/07, Chris W. Parker [EMAIL PROTECTED] wrote: Hello, I have a form page and a processing page. After submitting the form the processing page does whatever it needs to do (insert a record, send back validation errors, etc.) After determing what to do it always redirects somewhere with

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Jake McHenry
I've seen this a lot with IE, it even warns you about it, the warning from IE is: The page cannot be refreshed without resending the information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view. And through all my days, when you click

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 11:44 AM Tijnema ! mailto:[EMAIL PROTECTED] said: This is the only behavior i know of, a refresh action does the same action he did for loading the current page again. If you submit data to that page, it will resubmit the data. If you're using the Location:URL

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris Shiflett
Hi Chris, But sometimes when I'm back at the form page (after the redirect) and I refresh the page it does the previous page's actions again. Can you provide a raw HTTP dump of the complete scenario? Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris Shiflett
Tijnema wrote: If you're using the Location:URL header entry, the browser doesn't saves this action as an action did by the browser itself, and so it will submit the data to the page where you redirect. Either you misunderstood his question, or you misunderstand what header('Location: ...')

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 12:35 PM Chris Shiflett mailto:[EMAIL PROTECTED] said: But sometimes when I'm back at the form page (after the redirect) and I refresh the page it does the previous page's actions again. Can you provide a raw HTTP dump of the complete scenario? Two things: 1. How

Re: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris Shiflett
Can you provide a raw HTTP dump of the complete scenario? Two things: 1. How do I do that? Probably the easiest thing to do these days is use a Firefox extension like Firebug or LiveHTTPHeaders. Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List

Re: [PHP] Why won't this query go through?

2007-03-12 Thread Stephen Johnson
From: Richard Lynch [EMAIL PROTECTED] On Sun, March 11, 2007 11:24 am, Mike Shanley wrote: I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing

Re: [PHP] why did it stop working?

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 4:57 am, Ross wrote: Can someone explain to me why this used to work but then stopped header(Content-length: $size); header(Content-type: $type); header(Content-Disposition: attachment; filename=$name); and this now works header(Content-length: .$size);

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Tijnema !
On 3/11/07, Mike Shanley [EMAIL PROTECTED] wrote: Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing anything? Thanks! $q = INSERT INTO

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Jochem Maas
Tijnema ! wrote: On 3/11/07, Mike Shanley [EMAIL PROTECTED] wrote: Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing anything? Thanks! $q

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Myron Turner
Jochem Maas wrote: Tijnema ! wrote: On 3/11/07, Mike Shanley [EMAIL PROTECTED] wrote: Hi, I am just not understanding what I could have possibly done wrong with this query. All of the variables are good, without special characters in any sense of the word... So why isn't it importing

Re: [PHP] why did it stop working?

2007-03-08 Thread Richard Davey
Ross wrote: Can someone explain to me why this used to work but then stopped header(Content-length: $size); header(Content-type: $type); header(Content-Disposition: attachment; filename=$name); and this now works header(Content-length: .$size); header(Content-type: .$type);

Re: [PHP] why did it stop working?

2007-03-08 Thread Jake McHenry
concatenation changes?? I've noticed this too, you can either do what you did, or put {} around variable within quotes.. - Original Message - From: Ross [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, March 08, 2007 4:57 AM Subject: [PHP] why did it stop working?

Re: [PHP] why did it stop working?

2007-03-08 Thread Tijnema !
On 3/8/07, Ross [EMAIL PROTECTED] wrote: Can someone explain to me why this used to work but then stopped header(Content-length: $size); header(Content-type: $type); header(Content-Disposition: attachment; filename=$name); and this now works header(Content-length: .$size);

Re: [PHP] Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

2006-11-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-03 15:15:55 -0600: On Fri, November 3, 2006 12:45 am, John.H wrote: My php program whose owner is root: That has absolutely no influence on what user the process *runs* as. ? mkdir('test',0777); ? and the folder 'test' 's owner is 'nobody'? You're

Re: [PHP] why so slow?

2006-11-03 Thread Richard Lynch
On Thu, November 2, 2006 3:01 pm, Alan Milnes wrote: Robin Vickery wrote: include(http://www.squareinch.net/include/misc.inc;); Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display

Re: [PHP] why so slow?

2006-11-03 Thread Jon Anderson
Richard Lynch wrote: On Thu, November 2, 2006 3:01 pm, Alan Milnes wrote: Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display your details to the world if accessed directly.

Re: [PHP] Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 12:45 am, John.H wrote: My php program whose owner is root: ? mkdir('test',0777); ? and the folder 'test' 's owner is 'nobody'? why?should the folder belong to 'root' too? By the way,the safe mode is turned on. I believe that the umask and other OS settings

Re: [PHP] why so slow?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 1:12 pm, Jon Anderson wrote: Or you can .htaccess Deny From All them out... That's my preferred solution. It keeps the include tree near the code that accompanies it without risking anything even if they're called *.php. Until you upgrade Apache and forget to enable

Re: [PHP] why so slow?

2006-11-03 Thread Jon Anderson
Richard Lynch wrote: On Fri, November 3, 2006 1:12 pm, Jon Anderson wrote: Or you can .htaccess Deny From All them out... That's my preferred solution. It keeps the include tree near the code that accompanies it without risking anything even if they're called *.php. Until you upgrade

Re: [PHP] why so slow?

2006-11-02 Thread John Nichel
Mel wrote: Your advice is well taken and thank you. I do have a book with the help of which I made this site and I have been working on it for many many weeks. (ashamed to say exactly how many!) Remember your first ever php site? Yep, it was for a Fortune 500 company, but that's not the

Re: [PHP] why so slow?

2006-11-02 Thread tedd
At 4:00 PM -0800 11/1/06, Mel wrote: I am sure there are things even you don't know or understand Hey, that's not the first time I've heard that -- who's spreading that rumor? The subject line is not directed at me, is it? :-) As I think Will Rogers once said We're all ignorant, only in

Re: [PHP] why so slow?

2006-11-02 Thread Alan Milnes
Robin Vickery wrote: include(http://www.squareinch.net/include/misc.inc;); Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display your details to the world if accessed directly. Alan

Re: [PHP] why so slow?

2006-11-02 Thread Dave Goodchild
Better still, keep them outside the docroot. If you do insist on having them inside and insist on calling them *.inc, create an .htaccess file that stops download of *.inc files.

Re: [PHP] why so slow?

2006-11-02 Thread Mel
Thank you both so much. I did change the name. I was chocked to see all my passwords displayed in the browser! On Nov 2, 2006, at 1:15 PM, Dave Goodchild wrote: Better still, keep them outside the docroot. If you do insist on having them inside and insist on calling them *.inc, create an

Re: [PHP] Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

2006-11-02 Thread Chris
John.H wrote: My php program whose owner is root: ? mkdir('test',0777); ? and the folder 'test' 's owner is 'nobody'? why?should the folder belong to 'root' too? By the way,the safe mode is turned on. If you're running this through your webserver, then the webserver is actually

Re: [PHP] why so slow?

2006-11-02 Thread clive
Mel wrote: I do have a book with the help of which I made this site and I have been working on it for many many weeks. (ashamed to say exactly how many!) Remember your first ever php site? No I am sure there are things even you don't know or understand and that you can use help from other

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Bad day? /frank 1 nov 2006 kl. 09.55 skrev Mel: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why so slow?

2006-11-01 Thread Robert Cummings
On Wed, 2006-11-01 at 00:55 -0800, Mel wrote: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php That's a bit like asking us to read your mind. We'd only be guessing since we can't see your code and you haven't told us what your site does. What I can say is

Re: [PHP] why so slow?

2006-11-01 Thread Mel
So do you mean that's it is ok and not slow? On Nov 1, 2006, at 1:09 AM, Robert Cummings wrote: On Wed, 2006-11-01 at 00:55 -0800, Mel wrote: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php That's a bit like asking us to read your mind. We'd only be

Re: [PHP] why so slow?

2006-11-01 Thread Mel
This is my first php site and I have no idea where to look for a reason! On Nov 1, 2006, at 1:07 AM, Frank Arensmeier wrote: Bad day? /frank 1 nov 2006 kl. 09.55 skrev Mel: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php -- PHP General Mailing List

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Maybe it's the 18 k of JavaScript from Google that slows your page down? Why not load this script locally from your server? /frank 1 nov 2006 kl. 10.26 skrev Mel: So do you mean that's it is ok and not slow? On Nov 1, 2006, at 1:09 AM, Robert Cummings wrote: On Wed, 2006-11-01 at 00:55

Re: [PHP] why so slow?

2006-11-01 Thread Robert Cummings
On Wed, 2006-11-01 at 01:26 -0800, Mel wrote: So do you mean that's it is ok and not slow? I'm saying we can't ascertain why it's so slow since we don't have enough information. Cheers, Rob. -- .. | InterJinn Application Framework -

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
My suggestion: stripp out the JS from Google. Test you page again. Should the page load as slowly as before, it might have to do with PHP. Then, give us more details about your script) /frank 1 nov 2006 kl. 10.53 skrev Robert Cummings: On Wed, 2006-11-01 at 01:26 -0800, Mel wrote: So do

Re: [PHP] why so slow?

2006-11-01 Thread Mel
I took the Google stuff out. I can't tell if it's faster now. I don't think it's very consistent. Sometimes it loads pretty fast and sometimes it gets stuck in the right corner! I don't think I have seen this happen with any other site! On Nov 1, 2006, at 2:12 AM, Frank Arensmeier wrote: My

Re: [PHP] why so slow?

2006-11-01 Thread Mel
as well... /frank Vidarebefordrat brev: Från: Toby Osbourn [EMAIL PROTECTED] Datum: onsdag 1 nov 2006 10.57.17 GMT+01:00 Till: Frank Arensmeier [EMAIL PROTECTED] Ämne: Re: [PHP] why so slow? Yeah it will be that hit counter or whatever it is you are trying to load - I had one myself that used

Re: [PHP] why so slow?

2006-11-01 Thread Jürgen Wind
Frank Arensmeier wrote: My suggestion: stripp out the JS from Google. Test you page again. Should the page load as slowly as before, it might have to do with PHP. Then, give us more details about your script) /frank 1 nov 2006 kl. 10.53 skrev Robert Cummings: On Wed,

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Why do you have html tags before your doctype declaration? Anyway, I am not sure if your problem has to do with PHP after all. Again, if you think that it is related to PHP, show us some code. There are still other things to consider (server, external files, CSS - neither of those things

Re: [PHP] why so slow?

2006-11-01 Thread Robin Vickery
On 01/11/06, Mel [EMAIL PROTECTED] wrote: Here is the code for a testing page: http://www.squareinch.net/ client_testing.php?art=btw_logo.jpg I am sure it is a mess since it is my first!!! [] include(http://www.squareinch.net/include/misc.inc;); Don't do that - publishing your

Re: [PHP] why so slow?

2006-11-01 Thread Robin Vickery
On 01/11/06, Mel [EMAIL PROTECTED] wrote: Thank you so much. Yes, I was afraid of putting my passwords... I can move the include file outside the directory, but what do you mean by include the file directly Please respond to the list What I meant was to do this:

Re: [PHP] why so slow?

2006-11-01 Thread Mel
ok I have fixed my html and include http://www.squareinch.net/client_testing_html401.php could you please help me figure out how to change the query in box 4 so that it shows the url only when the link is active? On Nov 1, 2006, at 5:11 AM, Robin Vickery wrote: On 01/11/06, Mel [EMAIL

Re: [PHP] why so slow?

2006-11-01 Thread Dave Goodchild
Take out the comment before the DOCTYPE. There should be nothing before it.

<    1   2   3   4   5   6   7   8   9   >