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,

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

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

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

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

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

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

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" Hello, I am looking fo

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] 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] 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
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 On Fri, Apr 16, 20

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

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 > called > from within the tags, and other exampl

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

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

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) { >

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

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

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

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
dele454 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 includes file > is to customise the virtual host: > > [COD

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

Re: [PHP] Include directive..

2008-12-08 Thread Jochem Maas
dele454 schreef: > 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 includes file > is to customise the virtual host: > > [C

Re: [PHP] Include directive..

2008-12-08 Thread Jason Pruim
On Dec 8, 2008, at 6:47 AM, dele454 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 includes file is to customise th

Re: [PHP] include methods of one class in another

2008-08-21 Thread Pavel
> use a decorator pattern or wait till hell freezes over and the core devs > actually allow the Traits functionality into php. I must read about patterns, thanks :) -- === С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:[EMAIL PROTECTED] === А ещё говорят т

Re: [PHP] include methods of one class in another

2008-08-21 Thread Jochem Maas
Pavel schreef: Hello, firstly, sorry for my English... I have class: //--- class manageClassError{ private $errorsList=array(); private function addError($ex){ $errorsList[]=$ex; } public function isError(){ return (bool)(count($this->errorsList));

Re: [PHP] include methods of one class in another

2008-08-21 Thread Eric Butera
On Thu, Aug 21, 2008 at 6:10 AM, Pavel <[EMAIL PROTECTED]> wrote: > Hello, firstly, sorry for my English... > > I have class: > //--- > class manageClassError{ >private $errorsList=array(); > > >private function addError($ex){ >$errorsList[]=$ex; >} >public function isError(

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 4:07 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem ---8<--- snip > > I think that the variables passed to will b

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
.; php-general@lists.php.net Subject: RE: [PHP] Include Problem > -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 3:51 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > Alice, &

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 3:51 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > Alice, > > If you simply need to execute a remote PHP script and

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Alice, If you simply need to execute a remote PHP script and pass variables, you could do it behind-the-scenes with cURL or AJAX, and pass the variables in the url (i.e., http://www.mysite.com/script.php?param=value). cURL is capable of retrieving the page (read: the results of the executed script

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 3:11 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > > From: Boyd, Todd M.

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:53 PM To: php-general@lists.php.net; Wei, Alice J. Subject: RE: [PHP] Include Problem > > > If you are trying to include() a remote file via HTTP, the remote > > server

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:48 PM > To: Wei, Alice J. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > > -Original Message- > > From: Wei, Alice J. [

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:39 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > Hi, > > Thanks for the clarifcations. > I have

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
: php-general@lists.php.net Subject: RE: [PHP] Include Problem > -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:04 PM > To: Daniel Brown > Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net > Subject: RE: [PH

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:04 PM > To: Daniel Brown > Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > _

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:59 PM To: Wei, Alice J. Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. <[EMAIL PROTECTED]>

Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > Hi, > > This is the error I got: > > Warning: include() [function.include]: URL file-access is disabled in the > server configuration in C:\Inetpub\wwwroot\read.php on line 29 > Warning: include(http://www.mysite.com/calc

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
= Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:51 PM To: Jim Lucas Cc: Wei, Alice J.; Jay Blanchard; php-general@lists.php.n

Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:32 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Make sure you have these enabled > > allow_url_fopen = On > allow_url_include = On In addition to what Jay and Jim already correctly suggested, you may also want to try this at the top of your files to see if there are a

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jim Lucas [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:32 PM To: Wei, Alice J. Cc: Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem Wei, Alice J. wrote: > > From: Jay Bla

Re: [PHP] Include Problem

2008-06-24 Thread Jim Lucas
Wei, Alice J. wrote: From: Jay Blanchard [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: [PHP] Include Problem [snip] foreach ($lines2 as $line_num => $line2) { echo "Line #{$

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jay Blanchard [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: [PHP] Include Problem [snip] foreach ($lines2 as $line_num => $line2) { echo "Line #{$line_num} : " . htm

RE: [PHP] Include Problem

2008-06-24 Thread Jay Blanchard
[snip] foreach ($lines2 as $line_num => $line2) { echo "Line #{$line_num} : " . htmlspecialchars($line2) . ""; } include ('http://www.mysite.com/calculate.php'); My problem is that when I use a blank file that only has http://www.mysite.com/calculate.php'; ?> The code works and displays

Re: [PHP] Include problems

2008-04-14 Thread Daniel Brown
On Sat, Apr 12, 2008 at 11:06 PM, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > > On Apr 12, 2008, at 8:28 AM, GoWtHaM NaRiSiPaLli wrote: > > > > if(file_exists("../common/config.ini")) { > > $configData = parse_ini_file("../common/config.ini"); > > } else { > > > > > Try changing above code so i

Re: [PHP] Include problems

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 8:28 AM, GoWtHaM NaRiSiPaLli wrote: if(file_exists("../common/config.ini")) { $configData = parse_ini_file("../common/config.ini"); } else { Try changing above code so it reads if(file_exists("common/config.ini")) { $configData = parse_ini_file("common/config.ini");

  1   2   3   4   5   6   7   8   >