Re: [PHP] include result from script in midle of other script

2004-02-14 Thread Adam Bregenzer
On Sat, 2004-02-14 at 15:46, Boneripper wrote: > src="./5_grafico_total.php?aVar=aValue">'; > else include ("./5_grafico_total.php?aVar=aValue");?> Using include literally inserts the contents of the file into your code. One way to achieve what you are looking for is to set the variables you wan

[PHP] include result from script in midle of other script

2004-02-14 Thread Boneripper
hi, im trying to do this: ... '; else include ("./5_grafico_total.php");?> ... and it works perfectly, BUT if i wanna send vars with GET like: ... '; else include ("./5_grafico_total.php?aVar=aValue");?> ... it doesnt work! someone has any ideas? tkx in advance. -- Herberto Graça. _

Re: [PHP] include date

2004-01-25 Thread John Nichel
John Taylor-Johnston wrote: I want to include ("/home/myaccount/calendars/"+nameofmonth+".htm") How can I get the name of the current month? I'm sure this is an easy one, I'm too tired to see it. include ("/home/myaccount/calendars/"+date(f)+".htm") But date(F) is Capitalised. There is no date (

[PHP] include date

2004-01-25 Thread John Taylor-Johnston
I want to include ("/home/myaccount/calendars/"+nameofmonth+".htm") How can I get the name of the current month? I'm sure this is an easy one, I'm too tired to see it. include ("/home/myaccount/calendars/"+date(f)+".htm") But date(F) is Capitalised. There is no date (f) for a lower case? -- Jo

[PHP] include date

2004-01-25 Thread John Taylor-Johnston
I want to include ("/home/myaccount/calendars/"+nameofmonth+".htm") How can I get the name of the current month? I'm sure this is an easy one, I'm too tired to see it. include ("/home/myaccount/calendars/"+date(f)+".htm") But date(F) is Capitalised. There is no date (f) for a lower case? -- Jo

Re: [PHP] "include" working....but confusion

2004-01-20 Thread Robert Cummings
On Tue, 2004-01-20 at 18:07, Justin French wrote: > On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote: > > > Do I have to start and end the included files with? > > Did you try it? Then you'd have your answer :) > > Did you read http://www.php.net/include/ ? Because all the exampl

Re: [PHP] "include" working....but confusion

2004-01-20 Thread Justin French
On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote: Do I have to start and end the included files with? Did you try it? Then you'd have your answer :) Did you read http://www.php.net/include/ ? Because all the examples show what you need to know too. Read the manual, and TRY THING

Re: [PHP] "include" working....but confusion

2004-01-20 Thread John Nichel
Ryan A wrote: Do I have to start and end the included files with? Yes. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "include" working....but confusion

2004-01-20 Thread Ryan A
Hey, > Now, that being said, there was a discussion on here a while ago that you > don't _really_ have to close PHP mode at the end of your file and there were > certain pros and cons to doing so. Adapt to your needs. Sounds like I missed a good discussion because I was awayany idea of what t

Re: [PHP] "include" working....but confusion

2004-01-20 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Thanks for the very informative reply but I did try itproblem is, it > seems to work with and without...thats why the confusion. > > I have one program like the one i outlined and the second one, like this: > > some html code goes here > some output stuff g

Re: [PHP] "include" working....but confusion

2004-01-20 Thread Ryan A
Hey, Thanks for the very informative reply but I did try itproblem is, it seems to work with and without...thats why the confusion. I have one program like the one i outlined and the second one, like this: some html code goes here some output stuff goes here something something something etc

Re: [PHP] "include" working....but confusion

2004-01-20 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Do I have to start and end the included files with? Yes. One day you'll learn to spend the two seconds trying this instead of asking the list. I'll be so proud of you then! ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] "include" working....but confusion

2004-01-20 Thread Ryan A
Hi, A bit confused here... this is my programs logic: if(multipleProducts==1) {include "multiple_products_looping_code.php";} else {include "single_products_code.php";} I am doing the above because some of the code is pretty big and it makes life simlier if I just add the code when I need it. On

Re: [PHP] Include performance questions

2004-01-04 Thread Justin French
On Monday, January 5, 2004, at 07:05 AM, Carey Baird wrote: (sorry if this message is repeated, I got an email saying it wasn't delivered) Hey, I am creating a complete PHP driven site for the first time and I am finding my files growing bigger and bigger. Each page of my site includes the mai

[PHP] Include performance questions

2004-01-04 Thread Carey Baird
(sorry if this message is repeated, I got an email saying it wasn't delivered) Hey, I am creating a complete PHP driven site for the first time and I am finding my files growing bigger and bigger. Each page of my site includes the main function library, which itself includes an html library.

[PHP] Include performance questions

2004-01-04 Thread Carey Baird
Hey, I am creating a complete PHP driven site for the first time and I am finding my files growing bigger and bigger. Each page of my site includes the main function library, which itself includes an html library. The file for the page itself contains functions that only that page requires. M

Re: [PHP] include files

2003-12-20 Thread Todd
This looks like it should do exactly what I need. Thanks for pointing that out. Marek Kilimajer wrote: > See function debug_backtrace(), it's available since 4.3.3 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include files

2003-12-19 Thread Marek Kilimajer
See function debug_backtrace(), it's available since 4.3.3 Todd wrote: Hi, Is it possible under PHP4 to get the name of the file that a function was called from? To clarify, here's an example of what I'd like to do: --- main.php --- include('include.php'); f

RE: [PHP] include files

2003-12-19 Thread Chris W. Parker
Todd on Thursday, December 18, 2003 9:57 AM said: > Is it possible under PHP4 to get the name of the file that a function > was called from? To clarify, here's an example of what I'd like to do: [snip] > Does anyone know of a way to do this? I've tried several diff

[PHP] include files

2003-12-19 Thread Todd
Hi, Is it possible under PHP4 to get the name of the file that a function was called from? To clarify, here's an example of what I'd like to do: --- main.php --- --- include.php --- Does anyone know of a way to do this? I've tried several different things, i

RE: [PHP] include-problem

2003-12-02 Thread Wouter van Vliet
On maandag 1 december 2003 15:23 Rasmus Lerdorf told the butterflies: > On Mon, 1 Dec 2003, Wouter van Vliet wrote: > > > print "!!!"; > > ob_start(); > > include 'http://server.com/test/echo.php'; > > $XML = ob_get_clean(); // or use ob_get_contents(); and > > ob_end_clean() for PHP < 4.3 print "

RE: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Wouter van Vliet wrote: > print "!!!"; > ob_start(); > include 'http://server.com/test/echo.php'; > $XML = ob_get_clean(); // or use ob_get_contents(); and ob_end_clean() for > PHP < 4.3 > print "???"; > > print '[Between this you'll get your XYZ]'; > print $XML; > print '[Bet

RE: [PHP] include-problem

2003-12-01 Thread Wouter van Vliet
Rasmus Lerdorf wrote: > On Mon, 1 Dec 2003, Sophie Mattoug wrote: >> Victor Spång Arthursson wrote: >> >>> Hi! >>> >>> I'm having a problem with including files. What I want to achieve is >>> to execute a PHP-script on another server, and then to include the >>> result (which will be XML-output)

Re: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Sophie Mattoug wrote: > Victor Spång Arthursson wrote: > > > Hi! > > > > I'm having a problem with including files. What I want to achieve is > > to execute a PHP-script on another server, and then to include the > > result (which will be XML-output) in another PHP-script (cu

Re: [PHP] include-problem

2003-12-01 Thread Sophie Mattoug
Victor Spång Arthursson wrote: Hi! I'm having a problem with including files. What I want to achieve is to execute a PHP-script on another server, and then to include the result (which will be XML-output) in another PHP-script (currently on my local computer). On the server I have the file ht

[PHP] include-problem

2003-12-01 Thread Victor Spång Arthursson
Hi! I'm having a problem with including files. What I want to achieve is to execute a PHP-script on another server, and then to include the result (which will be XML-output) in another PHP-script (currently on my local computer). On the server I have the file http://server.com/test/echo.php wi

RE: [PHP] Include an encoder into PHP distribution?

2003-11-24 Thread I T
This statement demonstrates a lack of understanding on your part. PHP is free. Completely free. It costs nothing. Nada, zilch, zero. It is not owned by any company or induhvidual. There are acknowledged leaders in the community. Did a worker from Zend just say that if there is going to be an encode

RE: [PHP] Include an encoder into PHP distribution?

2003-11-18 Thread Jay Blanchard
[snip] Yes, I think it would be a good idea to make *PHP free*. IMHO, one company has now too much control in it, it's not good for the language in general. Unless, of course, you are willing to put the encoding feature into PHP core by default. [/snip] This statement demonstrates a lack of unders

Re: [PHP] Include an encoder into PHP distribution?

2003-11-18 Thread John Smith
> Not at all. If enough decide to include some other encoding engine > in PHP then Zend can happily withdraw all of their support from PHP, > perhaps making a new product called zPHP or such, and the PHP camp is > not controlled in any way. It seems a bit extreme and probably not > worth it, but

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
-- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: November 17, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Include an encoder into PHP distribution? * Thus wrote Michael ([EMAIL PROTECTED]): > I've tried installing it but I need MS Visual Studio C++ so they have to > make it ev

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread David T-G
Michael, et al -- ...and then Michael said... % % David T-G says % > I hate to sound like a curmudgeon, but if you want this then you should % > build it, just like John anyone else who wants it should. No, I haven't ... % % 1. An obsfuscator scrambles all the variable, function and class names

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Curt Zirzow
* Thus wrote Michael ([EMAIL PROTECTED]): > I've tried installing it but I need MS Visual Studio C++ so they have to > make it even easier. There is a compiled version on the website for windows. Go to the download section and you'll see that they have it available for multiple version of php the

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
David T-G says > I hate to sound like a curmudgeon, but if you want this then you should > build it, just like John anyone else who wants it should. No, I haven't > looked at either (I don't even know what an encoder does; I *think* that > it could be a precompiler or an obfuscator but don't reall

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Jay Blanchard
[snip] In practice it seems that Zend has the final say on PHP, and I think it's bad for the language. [/snip] That is just plain incorrect. If there were a final arbiter PHP would cease to be truly open source, and I think the folks on the PHP-DEV list would be quick to correct you. -- PHP Gene

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Manuel Lemos
Hello, On 11/17/2003 06:57 AM, Michael wrote: I've tried installing it but I need MS Visual Studio C++ so they have to make it even easier. Yes, you are right for those that want to build it from source on Windows, having to buy MSVC++ may be a drag. I think I saw somewhere that there is a build

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread John W. Holmes
David T-G wrote: ...and then Michael said... > > I've tried installing it but I need MS Visual Studio C++ so they have to > make it even easier. > I hate to sound like a curmudgeon, but if you want this then you should build it, just like John anyone else who wants it should. That's not really t

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread David T-G
Michael -- ...and then Michael said... % % I've tried installing it but I need MS Visual Studio C++ so they have to % make it even easier. It's easier already: abandon Windows for some *NIX system ;-) I hate to sound like a curmudgeon, but if you want this then you should build it, just like Jo

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
l". Step 2. Installing Turck MMCache Copy "mmcache.dll" into your PHP extension folder. Step 3. Configuring Turck MMCache Add the following lines into your "php.ini" file (usually "c:\winnt\php.ini") -Original Message- From: Manuel Lemos [mailto:[EMAIL PR

Re: [PHP] include/require not allowed in classes?

2003-11-17 Thread Pavel Jartsev
Boyan Nedkov wrote: Initializing data members ("var"-s) of a class with non-constant values is completely legal operation in PHP, so I don't think this could be a reason for the problem. hmmm... PHP manual says something else... http://www.php.net/manual/en/language.oop.php "In PHP 4, only con

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Manuel Lemos
Hello, On 11/17/2003 05:17 AM, Michael wrote: Zend will never include a free encoder/accelerator into php by default. What I am waiting for is Turck MMCache to offer a download of a file like php-4.3.4.tar.gz with Turck included. So when I need to upgrade php, I would go download a new version o

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
want to know is ... Turck MMCache is open source and php is open source so how hard is it to create that? -Original Message- From: David T-G [mailto:[EMAIL PROTECTED] Sent: November 16, 2003 7:23 PM To: PHP General list Cc: John Smith Subject: Re: [PHP] Include an encoder into PHP

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread Manuel Lemos
On 11/16/2003 09:50 PM, John Smith wrote: However, I think that an encoder should not be part of the default php distribution, because it would *force* people to use the encoder supplied and Also, it would seem that PHP was endorsing one product over another, and such things are never good. Y

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread Manuel Lemos
Hello, On 11/16/2003 08:44 PM, Burhan Khalid wrote: IMHO, if you really want to start some political debate or push your warped ideas on everyone, you can do it on another list. I am not pushing anything. I am just explaining why GPL extensions and libraries will not be accepted by the PHP grou

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread David T-G
John, et al -- ...and then John Smith said... % % > I was not saying or implying that Zend controls PHP alone. In practice % > they have the "knife and the cheese" in their hands, meaning currently % > PHP programs depend on Zend Engine to run. Maybe when somebody develops % > real PHP compilers

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread John Smith
> However, I think that an encoder > should not be part of the default php distribution, because it would > *force* people to use the encoder supplied and > Also, it would seem that PHP was endorsing one product over another, and > such things are never good. Yes. The problem that you are descr

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread Burhan Khalid
Manuel Lemos wrote, in reply to Chris Shiflett: IMHO, if you really want to start some political debate or push your warped ideas on everyone, you can do it on another list. I am not pushing anything. I am just explaining why GPL extensions and libraries will not be accepted by the PHP group.

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread John Smith
> I was not saying or implying that Zend controls PHP alone. In practice > they have the "knife and the cheese" in their hands, meaning currently > PHP programs depend on Zend Engine to run. Maybe when somebody develops > real PHP compilers things will be different. I know that you were not implyi

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Manuel Lemos
Hello, On 11/15/2003 07:31 PM, John Smith wrote: Anyway, I don't think Zend people will allow a competing extension be included in the core PHP distribution precisely because it compromises their business. This is exactly the reason I started this thread by asking "Who controls PHP?" ... Thanks

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Manuel Lemos
Hello, On 11/15/2003 07:46 PM, Chris Shiflett wrote: Anyway, I don't think Zend people will allow a competing extension be included in the core PHP distribution precisely because it compromises their business. [snip] IMHO, if you really want to make software free without confusion, forget GP

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Chris Shiflett
--- Manuel Lemos <[EMAIL PROTECTED]> wrote: > Anyway, I don't think Zend people will allow a competing extension be > included in the core PHP distribution precisely because it compromises > their business. [snip] > IMHO, if you really want to make software free without confusion, forget > GPL.

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
> Anyway, I don't think Zend people will allow a competing extension be > included in the core PHP distribution precisely because it compromises > their business. This is exactly the reason I started this thread by asking "Who controls PHP?" ... Thanks for clearing this out. > Either way, another

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Manuel Lemos
Hello, On 11/15/2003 03:24 PM, John Smith wrote: Ok then, that's nice to hear. How about then the idea of including a reasonably good compiler/encoder into standard PHP distribution? For example Turck MMcache is one, gpl'd and comes as a php/zend extension. I don't think there are other free enco

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Ryan A
Hey, Or CodeSecure from http://securecents.com Cheers, -Ryan P.S - biased opinion as i work with them. > Ok then, that's nice to hear. > > How about then the idea of including a reasonably good compiler/encoder into > standard PHP distribution? For example Turck MMcache is one, gpl'd and comes

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread zhuravlev alexander
On Sat, Nov 15, 2003 at 11:58:18AM -0600, Eugene Lee wrote: > On Sat, Nov 15, 2003 at 07:52:28PM +0200, John Smith wrote: > : > : I have no connection to Turck MMcache in any way than just a user who needs > : it. But distributing software encoded with it is difficult while it is not > : so easily

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
Yes, it's still quite a new piece of software, at least so I have understood. But anyway, as an idea for the future. Just about any encoder would be great. If it's really built-in, always-on, that would be even better. Besides encoding, I think code profiling features should be (almost) built in

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Eugene Lee
On Sat, Nov 15, 2003 at 07:52:28PM +0200, John Smith wrote: : : I have no connection to Turck MMcache in any way than just a user who needs : it. But distributing software encoded with it is difficult while it is not : so easily available (have to be separately downloaded and installed). I'm stil

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
> > I don't think there are other free encoders as this, so there wouldn't > > even be a dispute over which to choose? > > Which one should be chosen? Doesn't it seem a bit ridiculous for the PHP > development team to be picking a winner? Open source is all about choice, > in my opinion. > > If I h

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
I think Zend even has their business model partly in the encoder software, there must be some need for it. Don't you think so? Granted, this would increase the size of the download by a hundred kilobytes. I have no connection to Turck MMcache in any way than just a user who needs it. But distribu

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Chris Shiflett
--- John Smith <[EMAIL PROTECTED]> wrote: > How about then the idea of including a reasonably good > compiler/encoder into standard PHP distribution? For example Turck > MMcache is one, gpl'd and comes as a php/zend extension. > > I don't think there are other free encoders as this, so there would

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Nathan Taylor
ay, November 15, 2003 12:24 PM Subject: Re: [PHP] Include an encoder into PHP distribution? Ok then, that's nice to hear. How about then the idea of including a reasonably good compiler/encoder into standard PHP distribution? For example Turck MMcache is one, gpl'd and comes as a

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread John Smith
Ok then, that's nice to hear. How about then the idea of including a reasonably good compiler/encoder into standard PHP distribution? For example Turck MMcache is one, gpl'd and comes as a php/zend extension. I don't think there are other free encoders as this, so there wouldn't even be a dispute

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Ryan A
Hey guys, Thanks for replying. This is the solution that actually works. class ads_DB extends DB_Sql { var $Host = ""; var $Database = ""; var $User = ""; var $Password = ""; /* public: constructor */ function ads_DB($query = "") { global $MR_Host,$MR_Database,$MR_User,$MR_

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Boyan Nedkov
Ryan, Pavel, Pavel Jartsev wrote: Ryan A wrote: ... > class ads_DB extends DB_Sql { var $Host = $MR_Host; var $Database = $MR_Database; var $User = $MR_User; var $Password = $MR_Password; } > I think, Your problem is here. If i remember correctly, then PHP4 doesn't allow to

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Pavel Jartsev
Ryan A wrote: ... > class ads_DB extends DB_Sql { var $Host = $MR_Host; var $Database = $MR_Database; var $User = $MR_User; var $Password = $MR_Password; } > I think, Your problem is here. If i remember correctly, then PHP4 doesn't allow to initialize "var"-s with non-constant val

[PHP] include/requires allowed in classes?

2003-11-13 Thread Ryan A
Hi, I have a database class that is working perfectly by itself, the only problem is it works fine when the login details to the database are in that file...but since i have other apps using that login info I want to have the login info in a seperate file an include it in this class...but when i do

[PHP] include/requires allowed in classes?

2003-11-13 Thread Ryan A
Hi, I have a database class that is working perfectly by itself, the only problem is it works fine when the login details to the database are in that file...but since i have other apps using that login info I want to have the login info in a seperate file an include it in this class...but when i do

[PHP] include/require not allowed in classes?

2003-11-13 Thread Ryan A
Hi, I have a database class that is working perfectly by itself, the only problem is it works fine when the login details to the database are in that file...but since i have other apps using that login info I want to have the login info in a seperate file an include it in this class...but when i do

Re: [PHP] include problem

2003-10-29 Thread Allex
Few days ago I asked the same question and got several excellent answers that helped me to solve the same problem - check the mailing list for 'including files from different sub directories' on 24-10-2003. Nevertheless all those suggestions helped me to solve the problem from a normal browser

[PHP] include problem

2003-10-29 Thread Pablo S. Torralba
Hi, I have a weird problem which must be stupid for sure. I'm trying to do an include in my code run as a cgi. The include works fine in the form: include ("directory/file"); even it works as: include ("directory/../directory/file"); but it doesn't work as: include ("./directory/file"); nor

[PHP] Include all functions and performance

2003-10-15 Thread Terence
Dear List, I have a library of functions which I was thinking of including all from one file, in a kind of heirarchy. That way I can just include the one file in each php page and have all the functions available to me. (a kind of lazy approach I know) What I was wondering, if using the apache se

Re: [PHP] include() problems

2003-10-06 Thread Burhan Khalid
Gustave Bernier wrote: I'm new to PHP and I'm trying to use the include function but with no success... My server's ini file is set as (allow_url_fopen, 0) so I'm having some trouble to pass different values for the php file I'm calling. The address is: http://mydomain.com/forums/ssi.php?a=act

Re: [PHP] include() problems

2003-10-02 Thread Chris Sherwood
<-- snip --> From: "Chris W. Parker" <[EMAIL PROTECTED]> > The address is: http://mydomain.com/forums/ssi.php?a=active > > The code I'm trying now is: > $_GET['a'] = 'active'; > include('forums/ssi.php'); You're including the parent file in itself. This could be the problem. <--SNIP --> espec

RE: [PHP] include() problems

2003-10-02 Thread Chris W. Parker
Gustave Bernier on Thursday, October 02, 2003 6:20 AM said: > The address is: http://mydomain.com/forums/ssi.php?a=active > > The code I'm trying now is: > $_GET['a'] = 'active'; > include('forums/ssi.php'); You're including the parent file in itself. This could be

[PHP] include() problems

2003-10-02 Thread Gustave Bernier
Hi everyone, I'm new to PHP and I'm trying to use the include function but with no success... My server's ini file is set as (allow_url_fopen, 0) so I'm having some trouble to pass different values for the php file I'm calling. The address is: http://mydomain.com/forums/ssi.php?a=active The c

[PHP] include not returning true under zend debugger - possible bug?

2003-09-19 Thread Tom H
Hi, if I have a statement like this; $success = @include "somefile.inc"; under normally runnning in win2000 php 4.3.3 $success is true if the file somefile.inc exists, but when run under the server debugger, $success is false, unless somefile.inc has a return statement such as; return 1; in i

Re: [PHP] change PHP include directory

2003-09-13 Thread Tom Rogers
Hi, Sunday, September 14, 2003, 3:25:57 PM, you wrote: TT> Hi, TT> Normally to change a sites include directory for PHP I'd use a .htaccess TT> file and the following command: TT> php_value include_path ".:/path/to/web/" TT> Again normally, I would get the path to the site by doing a simple T

Re: [PHP] change PHP include directory

2003-09-13 Thread John W. Holmes
Tim Thorburn wrote: Normally to change a sites include directory for PHP I'd use a .htaccess file and the following command: php_value include_path ".:/path/to/web/" Again normally, I would get the path to the site by doing a simple phpinfo(); command and find the _ENV["DOCUMENT_ROOT"] line n

[PHP] change PHP include directory

2003-09-13 Thread Tim Thorburn
Hi, Normally to change a sites include directory for PHP I'd use a .htaccess file and the following command: php_value include_path ".:/path/to/web/" Again normally, I would get the path to the site by doing a simple phpinfo(); command and find the _ENV["DOCUMENT_ROOT"] line near the end of

Re: [PHP] include () problems

2003-08-25 Thread Jim Lucas
[EMAIL PROTECTED]> Sent: Monday, August 25, 2003 12:56 AM Subject: [PHP] include () problems > Hi, > > When I run the line: > > include ("fnord.php"); > > with the file looking like: > > define ("fnord_included", true); > function fnord ($a

[PHP] include () problems

2003-08-25 Thread Mjec
Hi, When I run the line: include ("fnord.php"); with the file looking like: it prints out the return of fnord() (i.e. $msg). I've checked, and there's no echo or print statemetns anywhere... Oh, yeah, FYI, the pattern goes like this: file: index.php file: standard.php and it prints it r

Re: [PHP] include help please

2003-07-31 Thread Matt Matijevich
INDEX.PHP the problem must be when i am trying to include the $page variable get rid of the ' around the variable. $page = "something.php"; include $page; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include help please

2003-07-31 Thread Chris Shiflett
--- LoonySalmon <[EMAIL PROTECTED]> wrote: > $page = '$home'; ... > Warning: main($page) [function.main]: failed to create stream: > No such file or directory in C:\swamp\www\site\index.php on line > 109 You're trying to include a file named $home, and it doesn't exist. I think you mean this inste

RE: [PHP] include help please

2003-07-31 Thread Dan Joseph
Hi, Take the quotes off around the $page variable. -Dan Joseph > -Original Message- > From: LoonySalmon [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 4:07 PM > To: [EMAIL PROTECTED] > Subject: [PHP] include help please > > > i am looking to

[PHP] include help please

2003-07-31 Thread LoonySalmon
i am looking to use includes on my page, this is the code that i want to use to call my files with: INDEX.PHP FILES.INC.PHP I try to load up index.php and this is what i get Warning: main($page) [function.main]: failed to create stream: No such file or directory in C:\swamp\www\site\index.p

RE: [PHP] include() as last thing to execute on page

2003-07-31 Thread Jay Blanchard
[snip] I have a PHP included page that takes quite a time to load. I would like to have the entire main page loaded and displayed and then the final include page executed. Is this possible? Thanks for your help - appreciate it. [/snip] Why do people insist on sending two e-mails to the list with

[PHP] include() as last thing to execute on page

2003-07-31 Thread DougD
I have a PHP included page that takes quite a time to load. I would like to have the entire main page loaded and displayed and then the final include page executed. Is this possible? Thanks for your help - appreciate it. -Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] include and imagejpg() weird behavior - maybe header?

2003-07-29 Thread Oli
I have a function that resizes images. If I put it in the same php file that calles it it workes fine. Gives a nice thumbnail or whatever size I choose to display. If I however put it in a seperate file and include it and call it I get garbage and the following error: Warning: Cannot modify header

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-25 Thread Rob Adams
"Police Trainee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Warning: main(http://143.43.222.103/sga) > [function.main]: failed to create stream: Invalid > argument in > /hsphere/local/home/domain/mydomain.com/includesite.php > on line 2 > > Warning: main() [function.main]: Failed

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-25 Thread Police Trainee
Warning: main(http://143.43.222.103/sga) [function.main]: failed to create stream: Invalid argument in /hsphere/local/home/domain/mydomain.com/includesite.php on line 2 Warning: main() [function.main]: Failed opening 'http://143.43.222.103/sga' for inclusion (include_path='.:/usr/local/lib/php') i

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Police Trainee: > my phpinfo output does not have that particular init > value "disable-url-fopen-wrapper". "allow_url_fopen" > is enabled, safemode is off, and include_path is set > to .:/usr/local/lib/php. further ideas? What happens when you try to include it? Is there an e

Re: [PHP] Include Problems

2003-07-25 Thread sven
hi eric, as far as i can see, there is no definition for your '$subnav' in your 'incHeader.php'. if you call your main script like this: 'http://example.com/index.php?subnav="home";', this should work with your inclusion. ciao SVEN Eric Fleming wrote: > Here is a snippet from the header file.

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-24 Thread Police Trainee
my phpinfo output does not have that particular init value "disable-url-fopen-wrapper". "allow_url_fopen" is enabled, safemode is off, and include_path is set to .:/usr/local/lib/php. further ideas? --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Police Trainee > ([EMAIL PROTECTED]): > >

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-24 Thread Curt Zirzow
* Thus wrote Police Trainee ([EMAIL PROTECTED]): > When the server upgraded to php 4.3.1 from 4.2.x, I > was no longer able to include remote html files. > allow_url_fopen is still enabled and no other settings > have changed. Running Apache 1.3.27 on Linux. > > > This is one line that I use to

[PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-24 Thread Police Trainee
When the server upgraded to php 4.3.1 from 4.2.x, I was no longer able to include remote html files. allow_url_fopen is still enabled and no other settings have changed. Running Apache 1.3.27 on Linux. This is one line that I use to call the remote html file. It also has not changed since the up

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
I figured out what was wrong with it, thanks for all your help. I hate syntax errors. I needed to echo the variable when trying to display it and the double "=" helped resolve the other problem. Thanks everyone. "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Jay

RE: [PHP] Include Problems

2003-07-24 Thread Chris W. Parker
Jay Blanchard on Thursday, July 24, 2003 1:12 PM said: > I just cleaned it up some, used non deprecated formatting tags and sis > it all in one shot. Yeah but Jay, you didn't allow for an else. Your code should have an else in there so that even if he's not at home

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] What is different about the code that you wrote except that you have the html being output by php? [/snip] I just cleaned it up some, used non deprecated formatting tags and sis it all in one shot. HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
I have ran it on my local machine and at my hosting company and it doesn't work for me. I even tried using wrote in message news:[EMAIL PROTECTED] > Eric, I tried your code on my machine and it seems to print the name of > the variable just fine. The only change I had to make to your code was >

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, I tried your code on my machine and it seems to print the name of the variable just fine. The only change I had to make to your code was add the long PHP tags (i.e. [Site Name] home It printed home twice once

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
What is different about the code that you wrote except that you have the html being output by php? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] <-incHeader.php--> [Site Name] home <-incHeader.php

<    1   2   3   4   5   6   7   8   9   10   >