Re: [PHP] Include/Require limit?

2013-05-30 Thread Julian Wanke
Hi,it outputs a corrupt image (I think the function imagepng)Am 30.05.2013, 11:17 Uhr, schrieb Alex Pojarsky :Hey.Afaik - only in case if your PHP process instance exeeds allowed memory limit.Other then this - explain how does it fail exactly. Any error messages? Errorous behavior? On Thu, May 30,

[PHP] Include/Require limit?

2013-05-30 Thread Julian Wanke
Hi, I use the pretty large Library PHP Image Workshop (http://phpimageworkshop.com/) at my project. It is about 75,5 KB. Everything works fine but if I try to include a 15 KB file with country codes, it fails. With the other files I easily get over 100 KB inclusion size, so my question;

Re: [PHP] include() Error

2013-05-29 Thread Marc Guay
Is the "echo $mySQL_user;" inside of a function? I believe you'll need to say "global $mySQL_user;" to gain access to it if so. On 29 May 2013 12:39, Ron Piggott wrote: > > Good morning all: > > I have recently purchased a computer and am using it as a dedicated server. > A friend helped me i

[PHP] include() Error

2013-05-29 Thread Ron Piggott
Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be the reasoning behind the error I am receiv

Re: [PHP] include selectively or globally?

2012-08-28 Thread David Harkness
On Tue, Aug 28, 2012 at 12:11 PM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 6:55 PM, David Harkness > wrote: > > On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt wrote: > >> > >> First of all, I believe [A] PHP is smart enough to not generate bytecode > >> for functions that are not used in th

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 3:28 PM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 7:18 PM, Adam Richardson wrote: > > Finally, you're the first one that actually has measured something. > You should redo your test with real world files, because in real world > functions aren't that small. In terms

Re: [PHP] include selectively or globally?

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 7:18 PM, Adam Richardson wrote: > On Tue, Aug 28, 2012 at 7:39 AM, Matijn Woudt wrote: >> On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson >> wrote: >>> On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete wrot

Re: [PHP] include selectively or globally?

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 6:55 PM, David Harkness wrote: > On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt wrote: >> >> First of all, I believe [A] PHP is smart enough to not generate bytecode >> for functions that are not used in the current file. Think about the >> fact that you can write a functio

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 7:39 AM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson wrote: >> On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: >>> On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete >>> wrote: > > First of all, I believe PHP is smart enough to not generate

Re: [PHP] include selectively or globally?

2012-08-28 Thread David Harkness
On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt wrote: > First of all, I believe [A] PHP is smart enough to not generate bytecode > for functions that are not used in the current file. Think about the > fact that you can write a function with errors, which will run fine > until you call the functio

Re: [PHP] include selectively or globally?

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson wrote: > On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: >> On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete >> wrote: >>> >>> Now, the question is... should you use a global include that points to >>> this library - across the board - so tha

Re: [PHP] include selectively or globally?

2012-08-27 Thread tamouse mailing lists
What do your performance measurements show so you have actual data comparisons to make a valid decsion? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include selectively or globally?

2012-08-27 Thread Adam Richardson
On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: > On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete > wrote: >> >> Now, the question is... should you use a global include that points to >> this library - across the board - so that ALL the pages ( including >> the 90% that do not need the libr

Re: [PHP] include selectively or globally?

2012-08-27 Thread Matijn Woudt
On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete wrote: > With this question, I aim to understand the inner workings of PHP a > little better. > > Assume that you got a 50K library. The library is loaded with a bunch > of handy functions that you use here and there. Also assume that these > functi

[PHP] include selectively or globally?

2012-08-27 Thread Haluk Karamete
With this question, I aim to understand the inner workings of PHP a little better. Assume that you got a 50K library. The library is loaded with a bunch of handy functions that you use here and there. Also assume that these functions are needed/used by say 10% of the pages of your site. But your h

Re: [PHP] include

2011-11-21 Thread Tamara Temple
Tim Streater wrote: > I'm looking for confirmation that: > > include $fn; > > is an allowed form of the include statement. Yes, it is definitely allowed. The syntactic sugar of using parens around the include subject is optional, as it is in other parts of php as well. That said, it's usually

Re: [PHP] include

2011-11-21 Thread Tim Streater
On 21 Nov 2011 at 11:10, Tommy Pham wrote: > On Mon, Nov 21, 2011 at 2:56 AM, Tim Streater wrote: >> I'm looking for confirmation that: >> >>  include $fn; >> >> is an allowed form of the include statement. >> > > RTFM [1] example #6 ;) > [1] http://php.net/function.include Thanks - I missed

Re: Re: [PHP] include

2011-11-21 Thread Tommy Pham
On Mon, Nov 21, 2011 at 2:56 AM, Tim Streater wrote: > On 20 Nov 2011 at 23:46, Tamara Temple wrote: > >> Tim Streater wrote: >> >>> At the moment I'm using an instance of apache to run PHP scripts, as >>> and when required via AJAX. Having got some understanding of web >>> sockets, I'm minded t

Re: Re: [PHP] include

2011-11-21 Thread Tim Streater
On 20 Nov 2011 at 23:46, Tamara Temple wrote: > Tim Streater wrote: > >> At the moment I'm using an instance of apache to run PHP scripts, as >> and when required via AJAX. Having got some understanding of web >> sockets, I'm minded to look at having a small server to execute these >> functions

Re: Re: [PHP] include

2011-11-20 Thread Tommy Pham
On Sun, Nov 20, 2011 at 4:44 PM, Tommy Pham wrote: > On Sun, Nov 20, 2011 at 1:34 PM, Tim Streater wrote: >> On 20 Nov 2011 at 10:36, Tommy Pham wrote: >> >> And here's another question. Can a child forked by pcntl_fork() use a socket >> that the parent obtained? Reading the socket stuff in the

Re: Re: [PHP] include

2011-11-20 Thread Tommy Pham
On Sun, Nov 20, 2011 at 1:34 PM, Tim Streater wrote: > On 20 Nov 2011 at 10:36, Tommy Pham wrote: > >> I think you're approaching this the wrong way. >> 1) have a clear understanding of PHP - syntax, capabilities, etc. > > That's what I'm doing - gathering information about bits of PHP that I've

Re: [PHP] include

2011-11-20 Thread Tamara Temple
Tim Streater wrote: > At the moment I'm using an instance of apache to run PHP scripts, as > and when required via AJAX. Having got some understanding of web > sockets, I'm minded to look at having a small server to execute these > functions as required. The scripts, some 50 or so, are only about

Re: Re: [PHP] include

2011-11-20 Thread shiplu
On Mon, Nov 21, 2011 at 3:34 AM, Tim Streater wrote: > On 20 Nov 2011 at 10:36, Tommy Pham wrote: > > > I think you're approaching this the wrong way. > > 1) have a clear understanding of PHP - syntax, capabilities, etc. > > That's what I'm doing - gathering information about bits of PHP that I'

Re: Re: [PHP] include

2011-11-20 Thread Tim Streater
On 20 Nov 2011 at 10:36, Tommy Pham wrote: > I think you're approaching this the wrong way. > 1) have a clear understanding of PHP - syntax, capabilities, etc. That's what I'm doing - gathering information about bits of PHP that I've not used (or not used very much) before to see how my new se

Re: [PHP] include

2011-11-20 Thread Tommy Pham
On Sat, Nov 19, 2011 at 2:16 PM, Tim Streater wrote: > At the moment I'm using an instance of apache to run PHP scripts, as and when > required via AJAX. Having got some understanding of web sockets, I'm minded > to look at having a small server to execute these functions as required. The > scr

[PHP] include

2011-11-19 Thread Tim Streater
At the moment I'm using an instance of apache to run PHP scripts, as and when required via AJAX. Having got some understanding of web sockets, I'm minded to look at having a small server to execute these functions as required. The scripts, some 50 or so, are only about 300kbytes of source code,

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi guys, :-) Just FYI, I got this answer from the theme dev: "David, You don't need the include statement. If you create your function in wp-content/themes/suffusion-child/functions.php it will get automatically included. Secondly, using the same function name wouldn't work, because it would req

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Steve Staples
On Thu, 2010-11-04 at 00:00 +0800, David Nelson wrote: > Hi Thijs, :-) > > On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink wrote: > > I re-read your original post. And noticed you include the function inside > > your child action.php > > Is there a special reason for that? You want to overwrite th

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Thijs, :-) On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink wrote: > I re-read your original post. And noticed you include the function inside > your child action.php > Is there a special reason for that? You want to overwrite the original > function in a child theme. > probably to get different

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Thijs Lensselink
On Wed, 3 Nov 2010 19:53:52 +0800, David Nelson wrote: Hi, :-) On Wed, Nov 3, 2010 at 19:29, Peter Lind wrote: That's not going to happen. My point was you could check in the original file if the function is defined and if not then define it. OK, thanks, Thijs and Peter, it looks like I'm

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi, :-) On Wed, Nov 3, 2010 at 19:29, Peter Lind wrote: > That's not going to happen. My point was you could check in the original > file if the function is defined and if not then define it. OK, thanks, Thijs and Peter, it looks like I'm trying to do something that is not currently possible in

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Peter Lind
That's not going to happen. My point was you could check in the original file if the function is defined and if not then define it. On Nov 3, 2010 11:55 AM, "David Nelson" wrote: > Hi Peter, :-) > > On Wed, Nov 3, 2010 at 18:44, Peter Lind wrote: >> You can check with function_exists to see if a

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Peter, :-) On Wed, Nov 3, 2010 at 18:44, Peter Lind wrote: > You can check with function_exists to see if a function is already defined. > If not, create it. The function is definitely already defined, I just need to replace it without touching the file in which it's defined... David Nelson

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Peter Lind
You can check with function_exists to see if a function is already defined. If not, create it. Regards Peter On Nov 3, 2010 11:40 AM, "David Nelson" wrote: > Hi Thijs, :-) > > On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink wrote: >> As far as I know it is not possible to overwrite functions in P

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Thijs, :-) On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink wrote: > As far as I know it is not possible to overwrite functions in PHP (unless > you use runkit, apd). Inside classes this is possible. But that's not the > case here. Why do the functions have to be equally named? If the functions

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Thijs Lensselink
On Wed, 3 Nov 2010 17:59:06 +0800, David Nelson wrote: Hi, :-) I'm making a child theme for WordPress. I need to rewrite one function defined in "../sometheme/functions/actions.php" and put that rewritten function in "wp-content/themes/sometheme-child/functions/actions.php". But I want to

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi, :-) I'm making a child theme for WordPress. I need to rewrite one function defined in "../sometheme/functions/actions.php" and put that rewritten function in "wp-content/themes/sometheme-child/functions/actions.php". But I want to preserve "../sometheme/functions/actions.php" unchanged in any

Re: [PHP] include html

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 12:50 AM, Karl DeSaulniers wrote: > > On Nov 2, 2010, at 12:37 AM, Nathan Nobbe wrote: > > On Mon, Nov 1, 2010 at 11:22 PM, Karl DeSaulniers >> wrote: >> I need to basically grab the source of the page as text. Then I can do a >> replace() on the tag. Then insert the text

Re: [PHP] include html

2010-11-01 Thread Karl DeSaulniers
On Nov 2, 2010, at 12:37 AM, Nathan Nobbe wrote: On Mon, Nov 1, 2010 at 11:22 PM, Karl DeSaulniers wrote: I need to basically grab the source of the page as text. Then I can do a replace() on the tag. Then insert the text into an Iframe. In theory, this I thought would be handled better

Re: [PHP] include html

2010-11-01 Thread Nathan Nobbe
On Mon, Nov 1, 2010 at 11:22 PM, Karl DeSaulniers wrote: > I need to basically grab the source of the page as text. Then I can do a > replace() on the tag. Then insert the text into an Iframe. In theory, > this I thought would be handled better server side. Is this possible? yes, there are a fe

Re: [PHP] include html

2010-11-01 Thread Karl DeSaulniers
I need to basically grab the source of the page as text. Then I can do a replace() on the tag. Then insert the text into an Iframe. In theory, this I thought would be handled better server side. Is this possible? I think the problem I'm having is that the domain I'm requesting from is not

Re: [PHP] include html

2010-11-01 Thread Nathan Nobbe
On Sunday, October 31, 2010, a...@ashleysheridan.co.uk wrote: > This can only be done with javascript, as the iframe is client-side, which > php knows nothing about. sounds to me like OP is building the page which will have the iframe in it which means this is totally doable server side. in fa

Re: [PHP] include html

2010-10-31 Thread a...@ashleysheridan.co.uk
This can only be done with javascript, as the iframe is client-side, which php knows nothing about. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Karl DeSaulniers" Date: Sun, Oct 31, 2010 03:32 Subject: [PHP] include html To: "php-general"

[PHP] include html

2010-10-30 Thread Karl DeSaulniers
Hello, I am looking for a solution to inject some dynamic html into an iframe and rework the css from the results. Is there a way to do this in PHP? I am not talking about just using the src attribute of the iframe either. Basically, I want to call on a web page, grab the html code, replace

Re: [PHP] include and include_once inheritance

2010-06-11 Thread Richard Quadling
On 11 June 2010 12:45, Richard Quadling wrote: > On 11 June 2010 11:41, Ashley Sheridan wrote: >> On Fri, 2010-06-11 at 06:34 -0400, David Mehler wrote: >> >>> Hello, >>> I've got a page that uses include_once to include a set of functions >>> for use in that page. I later have another include_on

Re: [PHP] include and include_once inheritance

2010-06-11 Thread Richard Quadling
On 11 June 2010 11:41, Ashley Sheridan wrote: > On Fri, 2010-06-11 at 06:34 -0400, David Mehler wrote: > >> Hello, >> I've got a page that uses include_once to include a set of functions >> for use in that page. I later have another include_once pulling in >> another page, which generates a table.

Re: [PHP] include and include_once inheritance

2010-06-11 Thread Ashley Sheridan
On Fri, 2010-06-11 at 06:34 -0400, David Mehler wrote: > Hello, > I've got a page that uses include_once to include a set of functions > for use in that page. I later have another include_once pulling in > another page, which generates a table. It relies on a function from > the first file, yet an

[PHP] include and include_once inheritance

2010-06-11 Thread David Mehler
Hello, I've got a page that uses include_once to include a set of functions for use in that page. I later have another include_once pulling in another page, which generates a table. It relies on a function from the first file, yet an error is being generated undefined function, I thought that since

Re: [PHP] PHP include security

2010-04-19 Thread Micky Hulse
Hi Michiel! > One thing to keep in mind is that this one doesn't take eval() vs regular > include execution time into account, in case you were still considering > using it. According to this page, it's many times I was still considering it... I mean, I am still exploring all my options for the s

Re: [PHP] PHP include security

2010-04-19 Thread Michiel Sikma
On 18 April 2010 21:43, Micky Hulse wrote: > On Sun, Apr 18, 2010 at 10:23 AM, Michiel Sikma > wrote: > > I would prefer to use include() since it runs the code in the same > context, > > .. > > with your data rather than printing it right away. > > Thanks for the reply Michiel, I really app

Re: [PHP] PHP include security

2010-04-18 Thread Micky Hulse
On Sun, Apr 18, 2010 at 10:23 AM, Michiel Sikma wrote: > I would prefer to use include() since it runs the code in the same context, > .. > with your data rather than printing it right away. Thanks for the reply Michiel, I really appreciate it. :) For some benchmarks on the different types o

Re: [PHP] PHP include security

2010-04-18 Thread Michiel Sikma
On 18 April 2010 02:08, Micky Hulse wrote: > Hi Michiel! Thanks for the help, I really appreciate it. :) > > > It depends. What's exactly do you want to prevent? It doesn't seem like a > > .. > > include, say, additional HTML content, use file_get_contents() instead. > > Very good points. My

[PHP] Re: PHP include security

2010-04-17 Thread Micky Hulse
> What do ya'll think? Any suggestions? Sorry for the duplicate posting... I had some problems signing-up for the list. :( Also, I moved my test code to sniplr: TIA! Cheers M -- PHP General Mailing List (http://www.php.net/

Re: [PHP] PHP include security

2010-04-17 Thread Micky Hulse
Hi Michiel! Thanks for the help, I really appreciate it. :) > It depends. What's exactly do you want to prevent? It doesn't seem like a > .. > include, say, additional HTML content, use file_get_contents() instead. Very good points. My goal was to write a plugin that would allow me to include

Re: [PHP] PHP include security

2010-04-17 Thread Michiel Sikma
On 16 April 2010 06:57, Micky Hulse wrote: > Hi, > > -snip- > > The above code snippet is used in a class which would allow developers > (of a specific CMS) to include files without having to put php include > tags on the template view. > > The include path will be

[PHP] PHP include security

2010-04-16 Thread Micky Hulse
s which would allow developers (of a specific CMS) to include files without having to put php include tags on the template view. The include path will be using the server root path, and the include files will probably be stored above the web root. My question: What would be the best way to "

Re: [PHP] Include security?

2010-04-16 Thread Micky Hulse
> if allow_url_include is turned off, you don't have to worry much about http, > if '.' is a invalide char, you can't include *.php... > the include path probably should be the inc(whatever the name) > folder(not accessible from web) instead of the web root and '..' > should be disallowed Hi Ryan!

Re: [PHP] Include security?

2010-04-16 Thread Ryan Sun
lt: >               @readfile($x); > } > $data = ob_get_contents(); > ob_end_clean(); > > = > > The above code snippet is used in a class which would allow developers > (of a specific CMS) to include files without having to put php include > tags on the template view. > &

[PHP] Include security?

2010-04-16 Thread Micky Hulse
h would allow developers (of a specific CMS) to include files without having to put php include tags on the template view. The include path will be using the server root path, and the include files will probably be stored above the web root. My question: What would be the best way to "cle

Re: [PHP] include path in httpd.conf

2010-04-05 Thread ad
Ash, Nice call. .htaccess was not being processed at all which led me to a cname configuration error for the sub domain. Thanks!. On 4/5/2010 8:27 PM, Ashley Sheridan wrote: On Mon, 2010-04-05 at 19:40 -0400, ad wrote: I have several virtual hosts on a dedicated server. In a IFmodule mod_

Re: [PHP] include path in httpd.conf

2010-04-05 Thread Ashley Sheridan
On Mon, 2010-04-05 at 19:40 -0400, ad wrote: > I have several virtual hosts on a dedicated server. > In a IFmodule mod_php5c container in an httpd.conf include file I have > the following to create a unique include path for each virtual host: > > IfModule mod_php5.c> > php_value include_path

[PHP] include path in httpd.conf

2010-04-05 Thread ad
I have several virtual hosts on a dedicated server. In a IFmodule mod_php5c container in an httpd.conf include file I have the following to create a unique include path for each virtual host: IfModule mod_php5.c> php_value include_path ".:/home/virtual/site#/path/to/include" php_admin_flag saf

Re: [PHP] Include Files in HTML

2009-09-06 Thread Ashley Sheridan
On Fri, 2009-09-04 at 18:21 -0500, phphelp -- kbk wrote: > On Sep 4, 2009, at 5:03 PM, sono...@fannullone.us wrote: > > >> Depends on what you are including. The only tags that can be > >> inside the > >> head are , , ,

Re: [PHP] Include Files in HTML

2009-09-04 Thread phphelp -- kbk
On Sep 4, 2009, at 5:03 PM, sono...@fannullone.us wrote: Depends on what you are including. The only tags that can be inside the head are , , ,

Re: [PHP] Include Files in HTML

2009-09-04 Thread Tommy Pham
- Original Message > From: Tommy Pham > To: php-general@lists.php.net > Sent: Friday, September 4, 2009 4:11:31 PM > Subject: Re: [PHP] Include Files in HTML > > - Original Message > > From: "sono...@fannullone.us" > > To: PHP General L

Re: [PHP] Include Files in HTML

2009-09-04 Thread Tommy Pham
- Original Message > From: "sono...@fannullone.us" > To: PHP General List > Sent: Friday, September 4, 2009 12:57:08 PM > Subject: [PHP] Include Files in HTML > > In my readings, I've run across examples showing include files being > calle

Re: [PHP] Include Files in HTML

2009-09-04 Thread sono-io
On Sep 4, 2009, at 1:05 PM, Bob McConnell wrote: Depends on what you are including. The only tags that can be inside the head are , , ,

RE: [PHP] Include Files in HTML

2009-09-04 Thread Joost
"Bob McConnell" wrote: > From: sono-io at fannullone.us > >> In my readings, I've run across examples showing include files > being >> called from within the tags, and other examples showing > >> them called within . I've always put them in the header > >> section myself, but I was wondering

RE: [PHP] Include Files in HTML

2009-09-04 Thread Bob McConnell
From: sono-io at fannullone.us > In my readings, I've run across examples showing include files being > called from within the tags, and other examples showing > them called within . I've always put them in the header > section myself, but I was wondering if one is better than the othe

[PHP] Include Files in HTML

2009-09-04 Thread sono-io
In my readings, I've run across examples showing include files being called from within the tags, and other examples showing them called within . I've always put them in the header section myself, but I was wondering if one is better than the other, or is it just personal preference? F

Re: [PHP] Include Paths

2009-08-12 Thread Ralph Deffke
a rap song hihi haha best comment I've ever read on a mailing list. reminds me that live is fun thanks for making my day thanks sheridan for ur shakespear like abbilities thanks bastien for ur humor GREAT "Bastien Koert" wrote in message news:d7b6cab70908120909u593cbd6v692f34ae6ddea...@mail.g

Re: [PHP] Include Paths

2009-08-12 Thread Robert Cummings
Have you gone here: http://www.php.net/unsub.php Make sure you input the email address with which you registered: r...@duvals.ca It's really not very hard... my 10 month old baby could do it. Cheers, Rob. Rick Duval wrote: SORRY BUT I CAN'T GET OFF THIS LIST, I CAN'T GET OFF T

Re: [PHP] Include Paths

2009-08-12 Thread Bastien Koert
On Wed, Aug 12, 2009 at 12:06 PM, Ashley Sheridan wrote: > On Wed, 2009-08-12 at 12:03 -0400, Rick Duval wrote: >> SORRY BUT >> I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS >> LIST >> I'VE TRIED. NO RESPONSE. IS THERE AN ADMIN OUT THERE? PLEASE GET ME >> OFF THIS

Re: [PHP] Include Paths

2009-08-12 Thread Ashley Sheridan
On Wed, 2009-08-12 at 12:03 -0400, Rick Duval wrote: > SORRY BUT > I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS > LIST > I'VE TRIED. NO RESPONSE. IS THERE AN ADMIN OUT THERE? PLEASE GET ME > OFF THIS LIST! > >

Re: [PHP] Include Paths

2009-08-12 Thread Rick Duval
SORRY BUT I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS LIST I'VE TRIED. NO RESPONSE. IS THERE AN ADMIN OUT THERE? PLEASE GET ME OFF THIS LIST! This message has been scanned for viruses and dangerous content by A

Re: [PHP] Include Paths

2009-08-12 Thread Adam Shannon
On Wed, Aug 12, 2009 at 10:02 AM, Julian Muscat Doublesin < opensourc...@gmail.com> wrote: > I had a problem with the include and require paths when using AJAX. This I > have solved by using the document root. However since doing so I am > experiencing performance issues. Loading 20 records has su

Re: [PHP] Include Paths

2009-08-12 Thread Conor Mac Aoidh
Could you post some of the code that you have used. -- Conor http://conormacaoidh.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Include Paths

2009-08-12 Thread Julian Muscat Doublesin
I had a problem with the include and require paths when using AJAX. This I have solved by using the document root. However since doing so I am experiencing performance issues. Loading 20 records has suddenly turned into something of a matter of a minute rather then seconds. Has anyone ever experie

Re: [PHP] include file in a class with global/parent scope?

2009-06-16 Thread Shawn McKenzie
Shawn McKenzie wrote: > Daniel Kolbo wrote: >> Hello, >> >> I've cleaned up my question a bit. >> >> I want the included file which is called within a method of a class to >> have the same scope as the instantiation of the class's object. That >> is, i want a class to include a file in the calling

Re: [PHP] include file in a class with global/parent scope?

2009-06-16 Thread Shawn McKenzie
Daniel Kolbo wrote: > Hello, > > I've cleaned up my question a bit. > > I want the included file which is called within a method of a class to > have the same scope as the instantiation of the class's object. That > is, i want a class to include a file in the calling object's scope. How > would

Re: [PHP] include file in a class with global/parent scope?

2009-06-16 Thread Daniel Kolbo
Hello, I've cleaned up my question a bit. I want the included file which is called within a method of a class to have the same scope as the instantiation of the class's object. That is, i want a class to include a file in the calling object's scope. How would one do this? 'test.php' cinclude()

Re: [PHP] include file in a class with global/parent scope?

2009-06-16 Thread Daniel Kolbo
Martin Scotta wrote: > Where is $vars? there is no $vars in your code... > > You can extract all the global space in the CScope method, it's quite > simple, but less performant. > > > class CScope { > >public $vars = 'class scope\n'; > >function cinclude($filename) { >

[PHP] include file in a class with global/parent scope?

2009-06-14 Thread Daniel Kolbo
Hello, I understand the why $vars is not in the global scope, but i was wondering if there was a way from within the class file to include a file in the parent's scope? i tried ::include('vars.php'), parent::include('vars.php'), but this breaks syntax... Please consider the following three files

[PHP] include file syntax

2009-05-14 Thread PJ
How does one deal with tag completion from an include file to the main(source)-file? i.e. c should a tag, such as or be closed withing the include file? Or can be started in the include file and closed in the main-file? Crossing the border, so-to-speak, doesn't seem to matter; but how does this

RE: [PHP] Include File Errors with Comments

2009-03-11 Thread Bob McConnell
From: Patrick Moloney > > I have a simple web site with a simple page that all works well, > although I have had a similar problem a couple of times that seems to be > caused by Comment Lines in the included files. I wonder if I have it > entirely right. > All my files are .php files, but almos

Re: [PHP] Include File Errors with Comments

2009-03-10 Thread Chris
Patrick Moloney wrote: I have a simple web site with a simple page that all works well, although I have had a similar problem a couple of times that seems to be caused by Comment Lines in the included files. I wonder if I have it entirely right. All my files are .php files, but almost all the

Re: [PHP] Include File Errors with Comments

2009-03-10 Thread Michael A. Peters
Patrick Moloney wrote: Does PHP preprocess the file but treat the comments as text because I never said it was HTML? I've not had it do that. Would PHP comments have to be inside PHP tags? Yes. If you use a php comment it has to be inside a php tag. One issue I have seen though is xml/x

[PHP] Include File Errors with Comments

2009-03-10 Thread Patrick Moloney
I have a simple web site with a simple page that all works well, although I have had a similar problem a couple of times that seems to be caused by Comment Lines in the included files. I wonder if I have it entirely right. All my files are .php files, but almost all the code is HTML. The file f

Re: [PHP] include question

2009-03-07 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart wrote: 1.) We use regular open tags to be compatible with all stock PHP configurations. 2.) We echo out the response from dirname() so that it's output to the HTML source. 3.) We use dirname() twice, so it gives the d

Re: [PHP] include question

2009-03-06 Thread PJ
Daniel Brown wrote: > On Fri, Mar 6, 2009 at 08:53, Stuart wrote: > >>>1.) We use regular open tags to be compatible with all stock >>> PHP configurations. >>>2.) We echo out the response from dirname() so that it's >>> output to the HTML source. >>>3.) We use dirname()

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:53, Stuart wrote: >> >>        1.) We use regular open tags to be compatible with all stock >> PHP configurations. >>        2.) We echo out the response from dirname() so that it's >> output to the HTML source. >>        3.) We use dirname() twice, so it gives the dirnam

Re: [PHP] include question

2009-03-06 Thread Stuart
2009/3/6 Daniel Brown > On Fri, Mar 6, 2009 at 08:37, PJ wrote: > > good morning all, > > > > How can I include src and href in include files that will refer the > > right paths from files in different hierarchies(directory tree levels)? > > Example: > > include dirname(_FILE_)."/../lib/header1.

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:37, PJ wrote: > good morning all, > > How can I include src and href in include files that will refer the > right paths from files in different hierarchies(directory tree levels)? > Example: > include dirname(_FILE_)."/../lib/header1.php"; ? > > This does not work: > snip

[PHP] include question

2009-03-06 Thread PJ
good morning all, How can I include src and href in include files that will refer the right paths from files in different hierarchies(directory tree levels)? Example: include dirname(_FILE_)."/../lib/header1.php"; ? This does not work: snippetysnip... Nor does this: (NOTE THE DIFFERENCES " AND

Re: [PHP] Include PHP library file in the .htaccess

2009-01-30 Thread Andrew Ballard
On Fri, Jan 30, 2009 at 12:41 PM, R B wrote: > Hello. > > Supose that i have this script: > > > require_once("lib.php"); > > > lib_function(); > ?> > > I want to know if there is a way to call the lib.php library from the > .htaccess instead of the PHP script? > Thanks. > .htaccess won't call it

[PHP] Include PHP library file in the .htaccess

2009-01-30 Thread R B
Hello. Supose that i have this script: I want to know if there is a way to call the lib.php library from the .htaccess instead of the PHP script? Thanks.

Re: [PHP] Include directive..

2008-12-10 Thread dele454
Am having this error in the apache log files WHat does it imply really. I have no idea. Am trying to run Zf but my pages are all blank so i was wondering if this has anything to do with it. Thanks will appreciate any help: [Wed Dec 10 11:15:03 2008] [warn] [client 190.30.20.221] mod_include: Opti

Re: [PHP] Include directive..

2008-12-09 Thread Jim Lucas
s strictly prohibited. > > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 09, 2008 8:19 PM > To: dele454 > Cc: php-general@lists.php.net > Subject: Re: [PHP] Include directive.. > > dele454 wrote: >> Hi, >> >

Re: [PHP] Include directive..

2008-12-09 Thread Jim Lucas
has already pointed out, I would like to add that their is a php configuration option that will do something along the line of what you are trying to do. It is called the 'auto_prepend_file' option. You could do something like this in your httpd.conf file instead of what you are trying to do.

Re: [PHP] Include directive..

2008-12-08 Thread German Geek
On Tue, Dec 9, 2008 at 12:47 AM, dele454 <[EMAIL PROTECTED]> wrote: > > Hi, > > I am modifying the apache config file on my domain to include the path to > the Zend Framework on a specified location outside the public folder. > > So in my http.conf file i simply include the path to where the inclu

  1   2   3   4   5   6   7   8   9   10   >