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 the

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

2004-01-20 Thread John Nichel
Ryan A wrote: snip Do I have to start and end the included files with ?php ? ? 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 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 ?php ? ? 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

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 ?php ? ? Did you try it? Then you'd have your answer :) Did you read http://www.php.net/include/ ? Because all the

[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.

[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.

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

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

[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 --- ?php include('include.php'); function foo(){ $include_file=file_that_called_foo

RE: [PHP] include files

2003-12-19 Thread Chris W. Parker
Todd mailto:[EMAIL PROTECTED] 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

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 --- ?php include('include.php

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: ?php 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 ???;

[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

Re: [PHP] include-problem

2003-12-01 Thread Sophie Mattoug
Victor Spng 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

Re: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Sophie Mattoug wrote: Victor Spng 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

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) in another

RE: [PHP] include-problem

2003-12-01 Thread Rasmus Lerdorf
On Mon, 1 Dec 2003, Wouter van Vliet wrote: ?php 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 '[Between this

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

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 no

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

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

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

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

2003-11-17 Thread Michael
. 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 PROTECTED] Sent: November 17, 2003 2:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Include an encoder into PHP distribution

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

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 the

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

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

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 really

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

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 Michael
[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 even easier. There is a compiled

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 implying

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

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

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.

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

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

2003-11-15 Thread Nathan Taylor
, 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 php/zend extension. I

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 wouldn't

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

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 had to

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

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

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

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/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

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 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_Password;

[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

[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

[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

[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

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

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:

[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

RE: [PHP] include() problems

2003-10-02 Thread Chris W. Parker
Gustave Bernier mailto:[EMAIL PROTECTED] 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 the

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 -- especially if the

[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

Re: [PHP] change PHP include directory

2003-09-14 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 TT

[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 the

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 near

Re: [PHP] include () problems

2003-08-26 Thread Jim Lucas
: 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: ?php define (fnord_included, true); function fnord ($arg = true) { // 450 lines return $msg; } ? it prints out

[PHP] include () problems

2003-08-25 Thread Mjec
statemetns anywhere... Oh, yeah, FYI, the pattern goes like this: file: index.php ?php include (standard.php); /* rest of page */ ? file: standard.php ?php /* a few defines */ include(fnord.php); /* rest of stuff */ header (Content-type: text/html; encoding=utf-8); ? and it prints it right up

[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

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

[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 ?php require 'files.inc.php'; $page = '$home'; include '$page'; ? FILES.INC.PHP ?php $home = 'home.html'; $forum = 'forum/index.php'; $contact = 'contact.html'; ? I try to load up

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 use includes on my page

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 instead:

Re: [PHP] include help please

2003-07-31 Thread Matt Matijevich
snip INDEX.PHP ?php require 'files.inc.php'; $page = '$home'; include '$page'; ? the problem must be when i am trying to include the $page variable /snip get rid of the ' around the variable. $page = something.php; include $page; -- PHP General Mailing List (http://www.php.net/) To

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

2003-07-29 Thread Oli
); imagedestroy($im); return $newim; } ? and the calling script: ?php include 'image.php'; $image = resize('Capri.jpg',200,'Capri'); imagejpeg($image); imagedestroy($image); ? Any ideas? Oli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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

2003-07-25 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]): When the

Re: [PHP] Include Problems

2003-07-25 Thread sven
PROTECTED] wrote in message news:[EMAIL PROTECTED] Without seeing what you have in your includes, it will be hard to determine where your scope is messed up. ?php $subnav = home; include(incHeader.php); !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php

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 error?

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

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 opening

[PHP] Include Problems

2003-07-24 Thread Eric Fleming
I am having some problems using variables in included files. Can someone please look at my code below and see how I might accomplish what I am trying to do? ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php

Re: [PHP] Include Problems

2003-07-24 Thread Jeff Harris
On Jul 24, 2003, Eric Fleming claimed that: |I am having some problems using variables in included files. Can someone |please look at my code below and see how I might accomplish what I am trying |to do? [snip] |Now, when I try to reference the subnav variable in the inHeader.php or

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php include (incFooter.php); ? Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up blank. I am basically

RE: [PHP] Include Problems

2003-07-24 Thread Jennifer Goodie
Without seeing what you have in your includes, it will be hard to determine where your scope is messed up. ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php include (incFooter.php); ? Now, when I try

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
problems using variables in included files. Can someone please look at my code below and see how I might accomplish what I am trying to do? ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php include

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
-- Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] ?php $subnav = home; include(incHeader.php); ? !--- CONTENT AREA --- The content would go here. !--- END CONTENT AREA --- ?php include (incFooter.php); ? Now, when I try to reference the subnav variable

Re: [PHP] Include Problems

2003-07-24 Thread Jason Giangrande
Eric, If you want to check to see if $subnav is equal to home you want to use == and not =. Perhaps this is your problem. Jason On Thu, 2003-07-24 at 15:35, Eric Fleming wrote: Here is a snippet from the header file. You can see that I am just trying to determine what the value of the subnav

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
Yeah, that is a problem, but I can't even print out the value of the subnav variable. It prints nothing when I try to print the variable. Jason Giangrande [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Eric, If you want to check to see if $subnav is equal to home you want to use ==

Re: [PHP] Include Problems

2003-07-24 Thread Eric Fleming
. !--- END CONTENT AREA --- ?php include (incFooter.php); ? Now, when I try to reference the subnav variable in the inHeader.php or incFooter.php files, it comes up blank. I am basically trying to adjust the navigation on each page depending on the page I am on. I am just learning

RE: [PHP] Include Problems

2003-07-24 Thread Jay Blanchard
[snip] -incHeader.php-- html head title[Site Name]/title /head body table cellpadding=0 cellspacing=0 border=0 align=left tr td ? if($subnav == home){ ?b? }?a href=index.phphome/a? if($subnav == home){ ?b? }? /td /tr /table -incHeader.php--

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-- html head title[Site Name]/title /head body table cellpadding=0 cellspacing=0 border=0

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. ?php instead of ?) since I have short tags disabled. Here's the header as I ran it.

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 ?php instaed of ? Jason Giangrande [EMAIL PROTECTED] 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

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:

RE: [PHP] Include Problems

2003-07-24 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 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

[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

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