[PHP] Re: Include/Require limit?

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

[PHP] Re: include() Error

2013-05-29 Thread Jim Giner
On 5/29/2013 1:39 PM, Ron Piggott wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
You are most probable getting a fatal error, and the way PHP is configured now, doesn't show you that publicly. Enable that setting via php.ini or directly in the script (not recommended) or check out the webserver's error_log (assuming apache and a RedHat based distro this will be on

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
On Wed, May 29, 2013 at 8:09 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 5/29/2013 1:39 PM, Ron Piggott wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I

[PHP] Re: include file syntax

2009-05-14 Thread Shawn McKenzie
PJ wrote: How does one deal with tag completion from an include file to the main(source)-file? i.e. c should a tag, such as head or div be closed withing the include file? Or can body be started in the include file and closed in the main-file? It doesn't really matter, however it may be

Re: [PHP] Re: Include File Errors with Comments

2009-03-12 Thread Andrew Ballard
On Wed, Mar 11, 2009 at 7:51 PM, Patrick Moloney webpa...@gmail.com wrote: OK, I think I've got the problem. I had to go back further than where the problem appeared to be. The 1st error was the comment code on the div line before the menu is Included. It had the -- in the comment. Oddly, it

Re: [PHP] Re: Include File Errors with Comments

2009-03-12 Thread Patrick Moloney
Andrew Ballard wrote: I do use PHP comments (probably not as much as I should), but I don't usually use HTML comments. This is partly (largely?) because HTML comments get passed on to the client which wastes (albeit usually a small amount of) extra space and bandwidth for each request, and they

[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Patrick Moloney
Thanks for all the replies. As I said in my original post the comments are on the first lines of the included file and are HTML comments. I'll have to look closer at comment syntax - I see there are empty comments and issues with pairs of double hyphens. My overall code worked well with 2

[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Shawn McKenzie
Patrick Moloney wrote: Thanks for all the replies. As I said in my original post the comments are on the first lines of the included file and are HTML comments. I'll have to look closer at comment syntax - I see there are empty comments and issues with pairs of double hyphens. My overall

[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Patrick Moloney
OK, I think I've got the problem. I had to go back further than where the problem appeared to be. The 1st error was the comment code on the div line before the menu is Included. It had the -- in the comment. Oddly, it interacts with the same error in the comment in the mainmenu file. I saw some

[PHP] Re: Include Problem

2008-06-24 Thread Shawn McKenzie
Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No

[PHP] Re: include config.php does not work anymore after PHP 5.2

2007-12-02 Thread Siamak Sarmady
Hello This is the same thing I always use. ? $host=localhost; $user=root; $password=123; $db=stud; $activation=1; $MAXATTACHSIZE = 100; $ATTACHDIRPATH=e:/www/stud/lattach/; ? By the way, I installed php 4.4.7 and everything is fine with this version though register_globals is

[PHP] Re: Include???

2007-05-24 Thread Jared Farrish
Perhaps there is some whitespace before/after the 'C'... echo '$_POST[status_code]'br /\n; You should then see some whitespace inside the '' so you'll know it's there. This is a VERY good debugging technique to adopt. :-) My own methodology is to use one of the following to peer into an

[PHP] Re: Include???

2007-05-23 Thread Darren Whitlen
Dan Shirah wrote: Okay, I think I'm doing everything right, but for whatever reason my include isn't working. ?php echo $_POST['status_code']; if ($_POST['status_code'] = C) { include ('complete_save.php'); } ? The echo of my status_code retruns the correct value so the if should trigger.

[PHP] Re: Include file questions

2007-05-23 Thread itoctopus
1- No 2- Yes -- itoctopus - http://www.itoctopus.com Stephen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 1) Does the filename extension matter? I prefer *.inc? It seems to work fine, but I only see others using *.php 2) Does the include file need an opening ?php and ending ? ?

Re: [PHP] Re: Include files....

2007-05-21 Thread Jason Pruim
Hi Everyone, Thanks for the info, putting the opening and closing tags in the include file worked like a charm! Now I just need to get the SQL injection protection junk to work... Back to the web to read more! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave

[PHP] Re: Include files....

2007-05-19 Thread Haydar TUNA
Hello, Short tags (? ?) are only available when they are enabled via the short_open_tag php.ini configuration file directive, or if php was configured with the --enable-short-tags option. Did you configure your php.ini file? -- Republic Of Turkey - Ministry of National Education Education

[PHP] Re: Include file error, common one I think

2007-01-13 Thread Jo�o C�ndido de Souza Neto
Is it the whole code of your file, or is there any other html code? Chris Carter [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi, Here is code that I got from the internet for random image. This file works perfect if I try it independently but not on any existing file. I

[PHP] Re: Include and require

2006-08-14 Thread Adam Zey
Dave Goodchild wrote: Hi all - I have several require_once statements in my web app to load in small function libraries. A common one bundles a variety of functions to handle date math and map month numbers to month names. I originally defined an array in that file plus a bunch of functions but

[PHP] Re: Include and require

2006-08-14 Thread Adam Zey
Dave Goodchild wrote: I use a config file too. That was a sanity check. The file extract looked like this: $months = array(1 = 'January', 2 = 'February', 3 = 'March', 4 = 'April', 5 = 'May', 6= 'June', 7 = 'July', 8 = 'August', 9 = 'September', 10 = 'October', 11 =

Re: [PHP] Re: Include and require

2006-08-14 Thread Chris
Adam Zey wrote: Dave Goodchild wrote: I use a config file too. That was a sanity check. The file extract looked like this: $months = array(1 = 'January', 2 = 'February', 3 = 'March', 4 = 'April', 5 = 'May', 6= 'June', 7 = 'July', 8 = 'August', 9 = 'September', 10 =

[PHP] Re: Include Problem

2006-04-15 Thread Al
Check the file's permissions with your ftp utility Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning:

[PHP] Re: include file to global scope

2005-10-14 Thread Oliver Grätz
Claudio schrieb: I'm using PHP 5. I have a class operation that includes php files. Is there a way to include this files to global scope? So that difined vars and functions are global accesseble? I know this problem from my early PHP days. If your problem is that you want to include some

Re: [PHP] Re: include file to global scope

2005-10-13 Thread Jochem Maas
cc wrote: yes, its possible, consider this: /** * @param $file_to_include path to php file you want to get its content * @return included contents */ function get_output($file_to_include){ ob_start(); include $file_to_include; return ob_get_clean(); } this will break if the included

[PHP] Re: include file to global scope

2005-10-13 Thread cc
the answer cc wrote: yes, its possible, consider this: /** * @param $file_to_include path to php file you want to get its content * @return included contents */ function get_output($file_to_include){ ob_start(); include $file_to_include; return ob_get_clean(); } is to the

[PHP] Re: include file to global scope

2005-10-12 Thread cc
yes, its possible, consider this: /** * @param $file_to_include path to php file you want to get its content * @return included contents */ function get_output($file_to_include){ ob_start(); include $file_to_include; return ob_get_clean(); } of course, you may extend this function to

Re: [PHP] Re: Include path quirks

2005-07-18 Thread Edward Vermillion
Ethilien wrote: Actually, I think I might have found a solution, although its not a very good one. include realpath(dirname(__FILE__) . / . ../include/global.php); Ethilien wrote: I've been attempting to write an application with a bit more ordered directory structure than I normally use,

Re: [PHP] Re: Include path quirks

2005-07-18 Thread Jochem Maas
Ethilien wrote: Actually, I think I might have found a solution, although its not a very good one. include realpath(dirname(__FILE__) . / . ../include/global.php); alot of people do something _like_: define('GLOBAL_BASE_DIR', dirname(__FILE__)); somewhere near the beginning of their

[PHP] Re: Include path quirks

2005-07-18 Thread Ethilien
Actually, I think I might have found a solution, although its not a very good one. include realpath(dirname(__FILE__) . / . ../include/global.php); Ethilien wrote: I've been attempting to write an application with a bit more ordered directory structure than I normally use, and I ran into the

[PHP] Re: Include and extending classes

2005-06-16 Thread Jason Barnett
Mike Smith wrote: I'm trying to consolidate code in a new project. My dirs are: / /inc core.class.php /mods /mods/system system.class.php //extends core.class.php user.class.php //extends system.class.php In core.class.php I have my generic special html methods and my db connection.

[PHP] Re: include()

2005-06-13 Thread Matthew Weier O'Phinney
* I. Gray [EMAIL PROTECTED]: Is there a big difference between me including a file by putting the url in the include() such as include(http://www.examplesite.com/examplefile.php) and putting the server path such as include(number/www.examplesite.com/public_html/examplefile.php) ? I want

[PHP] Re: Include (evaluate) PHP/HTML code stored in a variable

2005-06-08 Thread GamblerZG
eval('? '.$code.' ?php'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Include Remote Content as REMOTE_ADDR of Browser

2005-05-27 Thread Gary C. New
Ryan Grange wrote: Gary C. New wrote: Is there a quick and dirty way to include, file, or fsockopen content from a remote server and make it appear as though the request was straight from the browser's remote address? Thank you for your assistance. Respectfully, Gary I believe you

[PHP] Re: include literal

2005-03-28 Thread Jason Barnett
Jeremy Reynolds wrote: What if I want to include some literal test into a PHP document that I don't want it to interpret as it loads. In particular, I am working with XML but for the example's sake I will say PHP. Example: FYI, when you have -- on a line by itself most newsreaders think that

[PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
One correction. The include('lib/test2.php') is actually a require_once('lib/test2.php'). That's why it quits and I don't get the third include. -- Rob Rob Adams [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From the manual on 'include': Files for including are first

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jochem Maas
Rob Adams wrote: One correction. The include('lib/test2.php') is actually a require_once('lib/test2.php'). That's why it quits and I don't get the third include. you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem?

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
The scenario I gave is very simplified. I'm actually trying to get tikiwiki working on a server, and the reason it won't run the install is because of this problem I've mentioned. It works as expected on my development server (WinXP), but on my production (FreeBSD) it fails. I don't have a

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jason Barnett
Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the problem go away by setting include_path to '.:/www/include' or '.:/www/lib' This still

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
Jason Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My guess is the file *is* in the include path, but the current working directory when require_once() executes is not what the OP thinks it is... I was hoping this was the case, but just checked it with: echo `pwd`; and it

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Jochem Maas
Jason Barnett wrote: Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the problem go away by setting include_path to '.:/www/include' or '.:/www/lib' This

Re: [PHP] Re: Include wierdness.

2005-03-04 Thread Rob Adams
Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jason Barnett wrote: Jochem Maas wrote: Rob Adams wrote: ... you 100% sure your include_path is '.' ? just asking. also you mention a /www/lib and a /www/include dir - maybe thats the problem? maybe you can make the

[PHP] Re: Include Issues

2004-06-16 Thread Justin Patrin
Stephen Craton wrote: I have a script that calls a function called conbox. This function creates the HTML to a content box and you also pass a file to be included into the content area of the box. The function echos out some of the HTML, then does a simple include(), and then echos out the rest

RE: [PHP] Re: Include Issues

2004-06-16 Thread Stephen Craton
] Sent: Wednesday, June 16, 2004 5:53 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Include Issues Stephen Craton wrote: I have a script that calls a function called conbox. This function creates the HTML to a content box and you also pass a file to be included into the content area of the box

[PHP] Re: include $var

2004-05-21 Thread Aidan Lister
Try it? (Yes, it works) Bob Lockie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Should 'include $var;' work? I need go to an HTML page after the form has been submitted. page A - program B (no output) - page A -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: include (or require) doesn't seem to work

2004-05-12 Thread Daniel Barbar
Thanks Torsten! Using the file-system relative path made it work (I had tried only with the absolute path, which ddidn't work). However, I checked again and I did have 'allow_url_fopen = On' in /etc/php.ini. I'll take a closer look later and report the problem if I find it. Thanks again, Daniel

[PHP] Re: include from another URL

2004-05-12 Thread AcZ
Nik wrote: Hi there, I'm new to these groups so forgive me if I'm asking at the wrong place (tell me where then :) Ok, I'm not PHP guru but I need to create a simple script that would do this: Include a content from another URL into the current output. I have done something like this: -- code

[PHP] Re: include (or require) doesn't seem to work

2004-05-12 Thread Torsten Roehr
Daniel Barbar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Torsten! Using the file-system relative path made it work (I had tried only with the absolute path, which ddidn't work). However, I checked again and I did have 'allow_url_fopen = On' in /etc/php.ini. I'll take a

[PHP] Re: include (or require) doesn't seem to work

2004-05-11 Thread Torsten Roehr
Daniel Barbar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm almost ashamed to ask this question as surely enough the problem is something very basic but, nonetheless, I can't put my finger on it. I'm trying to implement the concept of a library (library.php)

[PHP] Re: include (or require) doesn't seem to work

2004-05-11 Thread Torsten Roehr
Try including it as a local file: require_once library.php'; // if it is in the same directory as the file you Forgot a quote here, sorry: require_once 'library.php'; Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Include from another URL?

2004-05-06 Thread Kim Steinhaug
You could always use this : $text = ; $fd=fopen($url,r); while ($line=fgets($fd,1000)) { $text.=$line; } fclose ($fd); echo $text; -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: those

[PHP] Re: Include all functions and performance

2003-10-15 Thread Gabriel Peugnet
PHP will load the entire file and consume memory. It will also check the sintax of the entire file. If your file grows to much it would affect the speed of showing your pages and if it is very big, you could find the limit of memory of PHP (8Mb by default). The Zend engine makes an on the fly

[PHP] Re: include() problems

2003-10-02 Thread Dennis Sterzenbach
Gustave Bernier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Re: [PHP] Re: include() problems

2003-10-02 Thread Gustave Bernier
/forums/ssi.php?a=active So how can I possibly include that page (ssi.php?a=active) on any of my pages??? From: Dennis Sterzenbach [EMAIL PROTECTED] Reply-To: Dennis Sterzenbach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: include() problems Date: Thu, 2 Oct 2003 15:34:26 +0200

[PHP] Re: include() problems

2003-10-02 Thread Dennis Sterzenbach
I'm trying to include that file because in my index page because it has many functions I need to use in other pages... I'm on ADDR.com servers and I can't set allow_url_fopen to 1 (it sucks!). In ssi.php functions are called by accessing this address:

Re: [PHP] Re: include help please

2003-08-01 Thread LoonySalmon
nope, it doesn't work. it'll only call up the variables that were specified in my files.inc.php...well so far at least Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote LoonySalmon ([EMAIL PROTECTED]): i want to call up my contact page, but how do i do

RE: [PHP] Re: include help please

2003-08-01 Thread Ford, Mike [LSS]
-Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: 31 July 2003 22:42 if (isset($page)) { include $$_GET['page']; } else { $page = $home; include $page; } would that be right? or should i use if (isset($page)) { include $$_GET['page']; }

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

2003-07-31 Thread DougD
My apologies - I just double posted this question ... Dougd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

[PHP] Re: include help please

2003-07-31 Thread LoonySalmon
thanks everybody now it works Loonysalmon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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'; ?

[PHP] Re: include help please

2003-07-31 Thread Matt Matijevich
I think you want ?php $home = 'home.html'; $forum = 'forum/index.php'; $contact = 'contact.html'; include $contact; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: include help please

2003-07-31 Thread LoonySalmon
lol, yet again i need some more help as you guys can see from the scripts before, i am including a file into a page. now my only problem is trying to include a different file. what i have INDEX.PHP ?php require 'files.inc.php'; $page = $home; include $page; ? FILES.INC.PHP ?php $home =

Re: [PHP] Re: include help please

2003-07-31 Thread Chris Shiflett
--- LoonySalmon [EMAIL PROTECTED] wrote: 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'; ? http://localhost/index.php?page=$contact

Re: [PHP] Re: include help please

2003-07-31 Thread Chris Shiflett
http://localhost/index.php?page=contact.html And get rid of your hard-coded set for $contact, and use $_GET['contact'] instead. My apologies. I meant $_GET['page']. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
that isn't really what i want i want to have a seperate file where i declare the variables. what i'm getting at here is this, well, take a look at this page: http://l33trus.servebeer.com/site/index.php i just want to include a page into the table where it says that it's included what i'm going

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
LoonySalmon wrote: that isn't really what i want i want to have a seperate file where i declare the variables. what i'm getting at here is this, well, take a look at this page: http://l33trus.servebeer.com/site/index.php i just want to include a page into the table where it says that it's included

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
ok i have that done, but now i can't just have index.php because i get an error is there anyway where i can check if page is defined in the url? if so, could somebody make me a simple script? this is my first time with php i'm guessing that it would be something like this, but summed up if

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
LoonySalmon wrote: if page is defined in url, include page defined else include home You are on the right track. Take a look at the manual. http://us4.php.net/manual/en/index.php http://us4.php.net/isset - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
if (isset($page)) { include $$_GET['page']; } else { $page = $home; include $page; } would that be right? or should i use if (isset($page)) { include $$_GET['page']; } else { include $home; } hopefully that's right. if so, pretty good for a n00b -- PHP General Mailing List

Re: [PHP] Re: include help please

2003-07-31 Thread Matt Matijevich
snip is there anyway where i can check if page is defined in the url? /snip not sure I know exactly what you mean but I think you could use something like this $foo = @include(index.php); if ($foo) { //index.php was valid } else { //index.php was not valid } there also might be a better way

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
for some odd reason, $home wasn't working, so i changed home to main and now it works thanks for all the good support guys/gals? L00NY54LM0N - 16 year old coder in the makin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: include help please

2003-07-31 Thread Jennifer Goodie
if (isset($page)) { include $$_GET['page']; } else { $page = $home; include $page; } would that be right? or should i use if (isset($page)) { include $$_GET['page']; } else { include $home; } hopefully that's right. if so, pretty good for a n00b I don't think I'd let someone

Re: [PHP] Re: include help please

2003-07-31 Thread Brad Pauly
Jennifer Goodie wrote: I don't think I'd let someone pass any page they wanted via a get and just include that page. If you have URL fopen wrappers on I can create a page on my server and include it to your page and pretty much execute any code I want on your server. example:

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
well crap, it turns out that i'm back to step 1, but with more code it won't load up the other files now when defined through the url. i guess that there is something wrong, but what could it be? Loonysalmon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] if (isset($page)) {

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
and btw, this is my code now: ?php require 'files.inc.php'; if (isset($page)) { include $$_GET['page']; } else { $page = $main; include $page; } ? Loonysalmon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] well crap, it turns out that i'm back to step 1, but with more code it

Re: [PHP] Re: include help please

2003-07-31 Thread Jeff Harris
On Aug 1, 2003, LoonySalmon claimed that: |and btw, this is my code now: | |?php |require 'files.inc.php'; | |if (isset($page)) { |include $$_GET['page']; |} else { |$page = $main; |include $page; |} |? -- Is $main being set inside a function? http://www.php.net/language.variables.scope Also,

Re: [PHP] Re: include help please

2003-07-31 Thread LoonySalmon
thanks jeff harris, that is exactly what my problem was, now it works good night all thank a million Jeff Harris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Aug 1, 2003, LoonySalmon claimed that: |and btw, this is my code now: | |?php |require 'files.inc.php'; | |if

Re: [PHP] Re: include help please

2003-07-31 Thread Curt Zirzow
* Thus wrote LoonySalmon ([EMAIL PROTECTED]): i want to call up my contact page, but how do i do it? http://localhost/index.php?page=$contact I hope you cant use something like: http://localhost/index.php?page=%2Fetc%2Fpasswd Curt -- I used to think I was indecisive, but now I'm not so

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

2003-07-30 Thread Oli
Nobe, the image.php script starts with ? as the absolute first characters. Also if I comment out the header function I don't get the header error but I get the gobbledygook (the picture data I guess). Combine the code in one script and all is fine, with or without the header function. Oli Rob

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

2003-07-30 Thread Rob Adams
I copied and pasted your code into two different files, changed the image name (of course) and it worked just fine on the first try for me. You must have something being output before your header() call. If you can't find it, send me your two files and I'll try running them on my server. --

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

2003-07-29 Thread Rob Adams
Oli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Re: [PHP] Re: include statement giving me hives! - help

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 06:25, DougD wrote: when you call your script, is $point defined somewhere ? if $point is empty, you'll get an empty string for $links_include and include $links_include will not work. yes, I should have mentioned: $point is defined in the URL string

[PHP] Re: include statement giving me hives! - help

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi, when you call your script, is $point defined somewhere ? if $point is empty, you'll get an empty string for $links_include and include $links_include will not work. Regards, P.E. Baroiller Dougd [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] I am new to all this, but

[PHP] Re: include statement giving me hives! - help

2003-07-16 Thread DougD
yes, I should have mentioned: $point is defined in the URL string http://something.com/index.html?point=12 Baroiller Pierre-Emmanuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, when you call your script, is $point defined somewhere ? if $point is empty, you'll get an

[PHP] Re: Include Question

2003-03-28 Thread Tim Burden
You could try this instead: Checklogin.php if (!$name || !password) { $message = $enter_info; } if ($message){ include (login.php); echo $message; exit; } But the way you had it should work, you might just need to global $message; right before the echo in login.php in case it is

Re: [PHP] Re: Include Question

2003-03-28 Thread Kevin Stone
than include() at the end of the script. Just my opinion. - Kevin - Original Message - From: Tim Burden [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 1:36 PM Subject: [PHP] Re: Include Question You could try this instead

[PHP] Re: Include directoive on PHP.

2003-02-06 Thread Justin Garrett
Edit php.ini and add the pear directory to your include_path or use ini_set to set your include_path in your script: http://www.php.net/manual/en/function.ini-set.php Justin Garrett Harring Figueiredo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I would

[PHP] Re: include/require vs performance

2003-01-03 Thread Leon Mergen
Radek Zajkowski [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED]... Is there, was there ever issue around including a lot files via include(). I am running things on a local server so it's hard to gauge. I think that the only source that could cause any problems with too many files

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Stephan Seidt
I guess that PHP will close file 1 before it opens file 2 and so on.. For example : include 'foo'; include 'bar'; When bar is being opened foo is already closed. Leon Mergen wrote: Radek Zajkowski [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED]... Is there, was there ever issue

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Leon Mergen
Stephan Seidt [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I guess that PHP will close file 1 before it opens file 2 and so on.. For example : include 'foo'; include 'bar'; When bar is being opened foo is already closed. Hmmm, i think the parser is

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Stephan Seidt
well ok, if it's : main.php : include 'foo'; foo : include 'bar'; bar : include 'whatever'; ... there will be lots of used file descriptors at once Leon Mergen wrote: Stephan Seidt [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I guess that PHP will

[PHP] Re: Include

2002-10-03 Thread Philip Hallstrom
To my knowledge you can include as many files as you want. If by commenting out the clean() function, I'd say you have a syntax error in that function and you're just not seeing the error message. Turn on full error reporting and see what happens. -philip On Thu, 3 Oct 2002, Matias Silva

Re: [PHP] RE : include interpreted php file

2002-09-05 Thread you
hi, thanks for your help again. i've noticed that file function have two different behaviors. i tested file function with the url and it seems that the file is interpreted. But i tried the code u give me and without the http://myurl.com/; at the beginning, a warning is raised : Warning:

Re: [PHP] RE : include interpreted php file

2002-09-03 Thread timo stamm
all: I just noticed that I was not replying to the list, but to the posting email adresses. I just switched to another email client and was not aware of this. My apologies :-( --- You, could it be that you want to do the following?: ?php // primary php $foo = $_REQUEST[foo] //

[PHP] RE : [PHP] RE : include interpreted php file

2002-09-01 Thread you
nope sorry... -Message d'origine- De : Chris Knipe [mailto:[EMAIL PROTECTED]] Envoyé : samedi 31 août 2002 20:10 À : you; 'Richard Lynch' Cc : [EMAIL PROTECTED] Objet : Re: [PHP] RE : include interpreted php file fopen() Regards, Chris Knipe Cell: (072) 434-7582 MegaLAN Corporate

[PHP] RE : include interpreted php file

2002-08-31 Thread you
Hi, Thanks for u help. But i just wanna include a php file in an other. But the included file must be interpreted before including it. Thx kciop -Message d'origine- De : Richard Lynch [mailto:[EMAIL PROTECTED]] Envoyé : samedi 31 août 2002 02:12 À : you Cc : [EMAIL PROTECTED] Objet :

Re: [PHP] RE : include interpreted php file

2002-08-31 Thread Chris Knipe
received this email in error, | please notify us immediately by return email and delete the document. \--- - Original Message - From: you [EMAIL PROTECTED] To: 'Richard Lynch' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 31, 2002 7:44 PM Subject: [PHP] RE : include

[PHP] Re: include interpreted php file

2002-08-30 Thread Richard Lynch
pb : include a php file in an other php file contraints : the php file must be interpreted before being included solution known : fsock then get the html code from the server and include it... Is there an other solution (easier) to include that file? Not real sure if you *want* the PHP file

[PHP] Re: Include php code as variable

2002-08-03 Thread CC Zona
In article 00d501c23ada$87050590$3404a8c0@alawi, [EMAIL PROTECTED] (Alawi) wrote: How can I Include my php code code as variable and excute it ? include() can return a value, assignable to a variable. Some other ways to get the content of a file (I assume that's why you're saying include)

[PHP] Re: Include problems

2002-08-03 Thread Peter
try using the absolute path to the file e.g. include(C:/windows/webserver/httproot/inc/test.inc); Scott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have PHP4 on both a windows IIS server and a windows apache server. The include function only works in the

[PHP] Re: include()

2002-08-02 Thread Lord Loh.
How ever can ant of the apache restrictions stop any one from including the script by giving the whole path. ie /home/htdocs/include.inc or /home/abc/include.inc Yes or No ? I use win 2000 so it is not possible for me to experiment! but I have hostings on servers like www.f2s.net and a project

[PHP] Re: include files and global variables

2002-07-21 Thread Chris Earle
Hmm. Here's how you can make it load EVERYtime the file is included, plain and simply. In the include file, create the function.and the call it after you've made it. To get the other function to work, you might want to try placing the function ABOVE checkMaster(); (you should probably simply

  1   2   >