Re: [PHP] Include directive..

2008-12-08 Thread Jochem Maas
dele454 schreef: > Hi, > > I am modifying the apache config file on my domain to include the path to > the Zend Framework on a specified location outside the public folder. > > So in my http.conf file i simply include the path to where the includes file > is to customise the virtual host: > > [C

Re: [PHP] Include directive..

2008-12-08 Thread Jason Pruim
On Dec 8, 2008, at 6:47 AM, dele454 wrote: Hi, I am modifying the apache config file on my domain to include the path to the Zend Framework on a specified location outside the public folder. So in my http.conf file i simply include the path to where the includes file is to customise th

[PHP] Include directive..

2008-12-08 Thread dele454
Hi, I am modifying the apache config file on my domain to include the path to the Zend Framework on a specified location outside the public folder. So in my http.conf file i simply include the path to where the includes file is to customise the virtual host: [CODE] # To customize this VirtualH

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

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

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

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

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

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

[PHP] include methods of one class in another

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

Re: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

Re: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

Re: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

RE: [PHP] Include Problem

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

[PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Hi, Guys: Here is a strange scenario that I am attempting to do. I am trying to extract some information from an external source on a different server, and then include some of the external calculations as I am running scripts on a local machine. Below is my script snippet: // Get

Re: [PHP] Include problems

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

Re: [PHP] Include problems

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

[PHP] Include problems

2008-04-11 Thread GoWtHaM NaRiSiPaLli
Hi PHP Experts, I am writing a wrapper over some existing code and when I hoped that I almost successfully completed it, I ran into the wall. The wrapper file is in /var/www/sites/project/ as xyz.php and the file includes some of the files from various paths. Starting with == // Impor

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Noah Spitzer-Williams
I appreciate the help guys. I don't understand what's going on. Here's what I've tried since posting: Copied over the PHP binaries and php.ini from my old server to my new one. No luck. Copied over the phpMyAdmin from my old server to my new one. No luck. I've double-checked all permission

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Wolf
Lester Caine <[EMAIL PROTECTED]> wrote: > Daniel Brown wrote: > > On Mon, Apr 7, 2008 at 12:24 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> > > wrote: > >> Here's the error I get: > >> > >> Warning: include(.\file.inc.php) [function.include]: failed to open stream: > >> No such file or dir

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 1:05 PM, Lester Caine <[EMAIL PROTECTED]> wrote: > > People seem to be missing the point here. These are PUBLIC applications > that are failing to work for Noah. He should not need to re-write PHPMyAdmin > in order to get it to work? > > Next people will be saying that we s

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Lester Caine
Daniel Brown wrote: On Mon, Apr 7, 2008 at 12:24 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> wrote: Here's the error I get: Warning: include(.\file.inc.php) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\httpdocs\test.php on line 3 Warning: include() [fun

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 12:24 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> wrote: > Here's the error I get: > > Warning: include(.\file.inc.php) [function.include]: failed to open stream: > No such file or directory in C:\Inetpub\httpdocs\test.php on line 3 > > Warning: include() [function.include

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Noah Spitzer-Williams
age you're receiving? > > Also, what happens if you create two simple files in the same > directory like so: > // file1.php > echo "Okay.\n"; > ?> > > // file2.php > include(dirname(__FILE__).'/file1.php'); > ?> > > -- > > Ask me about: > Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo., > and shared hosting starting @ $2.50/mo. > Unmanaged, managed, and fully-managed! >

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Stut
Wolf wrote: Daniel Brown <[EMAIL PROTECTED]> wrote: On Mon, Apr 7, 2008 at 11:52 AM, Wolf <[EMAIL PROTECTED]> wrote: Noah, Looks like you need to be deciding on whether or not you are on windoze or *Nix. If on Windoze, your include path is \ If on *Nix, your include path is / Noti

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Wolf
Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Apr 7, 2008 at 11:52 AM, Wolf <[EMAIL PROTECTED]> wrote: > > > > Noah, > > > > Looks like you need to be deciding on whether or not you are on windoze or > > *Nix. > > > > If on Windoze, your include path is \ > > If on *Nix, your includ

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 11:52 AM, Wolf <[EMAIL PROTECTED]> wrote: > > Noah, > > Looks like you need to be deciding on whether or not you are on windoze or > *Nix. > > If on Windoze, your include path is \ > If on *Nix, your include path is / > > Notice the direction of the slashes and code app

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Dan Joseph
On Mon, Apr 7, 2008 at 11:52 AM, Wolf <[EMAIL PROTECTED]> wrote: > Noah, > > Looks like you need to be deciding on whether or not you are on windoze or > *Nix. > > If on Windoze, your include path is \ > If on *Nix, your include path is / > > Notice the direction of the slashes and code appropriat

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Wolf
c.php"); > > That's pretty vague, Noah. Is it unable to locate the file? > What's the error message you're receiving? > > Also, what happens if you create two simple files in the same > directory like so: > // file1.php > echo "Okay.\n&qu

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 11:24 AM, Stut <[EMAIL PROTECTED]> wrote: > > To the OP: Check that your include_path contains '.', if it doesn't add it > and see if that fixes your problem. He has . in the include path On Sun, Apr 6, 2008 at 2:17 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> wro

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 11:20 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: > > It's Windows. From experience, I know that it provides little to no error > reporting in some instances. For example, if you're missing a semi-colon and > you have error reporting turned on, all you get is a blank page

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Stut
Philip Thompson wrote: On Apr 7, 2008, at 9:36 AM, Daniel Brown wrote: On Sun, Apr 6, 2008 at 5:17 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> wrote: This works: include("file.inc.php"); This doesn't: include("./file.inc.php"); That's pretty vague, Noah. Is it unable to locate the

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Philip Thompson
On Apr 7, 2008, at 9:36 AM, Daniel Brown wrote: On Sun, Apr 6, 2008 at 5:17 PM, Noah Spitzer-Williams <[EMAIL PROTECTED] > wrote: This works: include("file.inc.php"); This doesn't: include("./file.inc.php"); That's pretty vague, Noah. Is it unable to locate the file? What's the error

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Daniel Brown
On Sun, Apr 6, 2008 at 5:17 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> wrote: > This works: >include("file.inc.php"); > > This doesn't: >include("./file.inc.php"); That's pretty vague, Noah. Is it unable to locate the file? What's the error message you're receiving? Also, wha

Re: [PHP] Include fails when "./" is in front of file name

2008-04-06 Thread Noah Spitzer-Williams
Casey -- nope. the include statement is being issues from the parent page. both files are in the same directory. Nitsan -- the problem is apps like phpMyAdmin are littered with include("./file.inc.php"); i'd have to replace all those to use full paths. it's not a good idea from a servicability

Re: [PHP] Include fails when "./" is in front of file name

2008-04-06 Thread Casey
On Sun, Apr 6, 2008 at 2:17 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> wrote: > This works: >include("file.inc.php"); > > This doesn't: >include("./file.inc.php"); > > I can't figure it out! PHPMyAdmin uses "./" so it's obviously not working. > > Here's my environment: >Win2003 S

[PHP] Include fails when "./" is in front of file name

2008-04-06 Thread Noah Spitzer-Williams
This works: include("file.inc.php"); This doesn't: include("./file.inc.php"); I can't figure it out! PHPMyAdmin uses "./" so it's obviously not working. Here's my environment: Win2003 Server w/ IIS 6 PHP 5.2.5 setup as ISAPI All PHP and httpdoc directories have read, write, and

Re: [PHP] include() and current working directory

2008-03-08 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Hi, I'm using include to display a html file from a different directory to the current working directory. This page displays, but is missing all the CSS formating. I'm assuming this is because it can't find the CSS because it's in the different directory to the CWD.

[PHP] include() and current working directory

2008-03-08 Thread php
Hi, I'm using include to display a html file from a different directory to the current working directory. This page displays, but is missing all the CSS formating. I'm assuming this is because it can't find the CSS because it's in the different directory to the CWD. So, the easy way out

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

2007-12-02 Thread Mike Yrabedra
on 12/2/07 2:22 AM, wmac at [EMAIL PROTECTED] wrote: > > Hello, > > I have been working with PHP 5.0 and my "register_globals" has always been > Off since PHP 4.1 > > Today I upgraded to PHP 5.2 and now neither of my include "config.php" work. > > Neither of the variables defined in include fi

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

2007-12-02 Thread Richard Heyes
I never never thought my config.php might have problem. I have used this config.php for almost 6 years and never had problem (the first time I have forgotten to add it 6 years ago because I had migrated from ASP. I have copied this wrong config.php to some other projects. Have you ever migrated

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

2007-12-02 Thread Andrés Robinet
> -Original Message- > From: wmac [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 02, 2007 6:35 AM > To: php-general@lists.php.net > Subject: Re: [PHP] include "config.php" does not work anymore after PHP > 5.2 > > > Thank you People. Someone

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

2007-12-02 Thread wmac
Thank you People. Someone mentioned the problem. It is the starting PHP tag. I never never thought my config.php might have problem. I have used this config.php for almost 6 years and never had problem (the first time I have forgotten to add it 6 years ago because I had migrated from ASP. I have

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

2007-12-02 Thread Casey
Okay... show us config.php. On Dec 1, 2007 11:22 PM, wmac <[EMAIL PROTECTED]> wrote: > > Hello, > > I have been working with PHP 5.0 and my "register_globals" has always been > Off since PHP 4.1 > > Today I upgraded to PHP 5.2 and now neither of my include "config.php" work. > > Neither of the var

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

2007-12-01 Thread wmac
Hello, I have been working with PHP 5.0 and my "register_globals" has always been Off since PHP 4.1 Today I upgraded to PHP 5.2 and now neither of my include "config.php" work. Neither of the variables defined in include files are even included. Anyone knows what has been changed and what can I

Re: [PHP] Include images in php file

2007-07-02 Thread Richard Lynch
On Thu, June 28, 2007 8:39 am, Marek wrote: > It's not really a limitation but a personal goal. > > I develop a small public script that is meant to be very compact and > portable. All of its functionality fits nicely in one php file. But at > the moment it requires a bunch of tiny icons. I would l

Re: [PHP] Include images in php file

2007-06-28 Thread Robert Cummings
On Fri, 2007-06-29 at 00:20 -0400, Robert Cummings wrote: > On Thu, 2007-06-28 at 22:56 -0500, Larry Garfield wrote: > > Skip raster images and just output the images as SVG. OK, only works in > > Firefox 1.5+, but it would get you everything in one file without bloated > > encoding. :-) > > No

Re: [PHP] Include images in php file

2007-06-28 Thread Robert Cummings
On Thu, 2007-06-28 at 22:56 -0500, Larry Garfield wrote: > Skip raster images and just output the images as SVG. OK, only works in > Firefox 1.5+, but it would get you everything in one file without bloated > encoding. :-) No need to have bloated encoding.. just have the file check itself for a

Re: [PHP] Include images in php file

2007-06-28 Thread Larry Garfield
Skip raster images and just output the images as SVG. OK, only works in Firefox 1.5+, but it would get you everything in one file without bloated encoding. :-) On Thursday 28 June 2007, Marek wrote: > It's not really a limitation but a personal goal. > > I develop a small public script that is

Re: [PHP] Include images in php file

2007-06-28 Thread Jochem Maas
Jim Moseby wrote: > >> ...it is more handy to have just one file instead of a >> folder system. > > Thats why $deity gave us gzip. ;-) > whihc makes me think ... maybe the phar extension could be a good option? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] Include images in php file

2007-06-28 Thread Jim Moseby
>...it is more handy to have just one file instead of a > folder system. Thats why $deity gave us gzip. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include images in php file

2007-06-28 Thread Marek
Jochem Maas wrote: > yes. well done for taking the time to search: And thank you for those links and a lovely sarcastic comment. If i had known to search for "base64", i would not have asked, really. Other keywords like "image in php jpg gif png include embed serialize" in various combinations

Re: [PHP] Include images in php file

2007-06-28 Thread Robert Cummings
On Thu, 2007-06-28 at 16:39 +0300, Marek wrote: > It's not really a limitation but a personal goal. > > I develop a small public script that is meant to be very compact and > portable. All of its functionality fits nicely in one php file. But at > the moment it requires a bunch of tiny icons. I

Re: [PHP] Include images in php file

2007-06-28 Thread Marek
It's not really a limitation but a personal goal. I develop a small public script that is meant to be very compact and portable. All of its functionality fits nicely in one php file. But at the moment it requires a bunch of tiny icons. I would like to eliminate this and just have a single file

Re: [PHP] Include images in php file

2007-06-28 Thread Jochem Maas
Marek wrote: > Hi, > > I want to display images with my php script but i want it to be just ONE > file. I can't have separate image files or folders etc. > > I suppose I could get this result by writing a function that generates > the right image by drawing it from scratch. But that way I can't h

Re: [PHP] Include images in php file

2007-06-28 Thread Stut
Marek wrote: I want to display images with my php script but i want it to be just ONE file. I can't have separate image files or folders etc. Why not? This seems like a rather daft limitation. I suppose I could get this result by writing a function that generates the right image by drawing it

[PHP] Include images in php file

2007-06-28 Thread Marek
Hi, I want to display images with my php script but i want it to be just ONE file. I can't have separate image files or folders etc. I suppose I could get this result by writing a function that generates the right image by drawing it from scratch. But that way I can't have any photos. My q

Re: Re[2]: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Richard Davey <[EMAIL PROTECTED]> wrote: Hi Tijnema, Friday, May 25, 2007, 5:58:46 PM, you wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: >> Very. Each directory contains very specific types of code/content. >> Tracking down where any given function, class, custom t

Re[2]: [PHP] Include file questions

2007-05-25 Thread Richard Davey
Hi Tijnema, Friday, May 25, 2007, 5:58:46 PM, you wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: >> Very. Each directory contains very specific types of code/content. >> Tracking down where any given function, class, custom tag, behaviour, >> etc is defined is extremely simple. >

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > > > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2007

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > > > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > > > > > I like to

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > > > I like to keep it simple, just like this: > > > / > > > /data > > > /

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > > > I like to keep it simple, just like this: > > > / > > > /data > > > /http > > > /project1 > > > /includes > > >

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > > -Original Message- > > > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > > > > > It's just the way you write script, m

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > > -Original Message- > > > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > > > > > It's just the way you write script, my included files contain only > > > > > functions & varia

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > It's just the way you write script, my included files contain only > > > functions & variables, no executing code. 99% I have a class around > > > it. > > > If you

RE: [PHP] Include file questions

2007-05-25 Thread Edward Kay
> -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > It's just the way you write script, my included files contain only > > > functions & variables, no executing code. 99% I have a class around > > > it. > > > If you write it like that, than there's no problem with ex

Re[2]: [PHP] Include???

2007-05-25 Thread tedd
At 2:46 PM +0100 5/25/07, Richard Davey wrote: Hi Tedd, Friday, May 25, 2007, 2:42:34 PM, you wrote: At 3:28 PM +0100 5/23/07, Richard Davey wrote: if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:17 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > Why are your include files in your web root in the first place? Move them > > elsewhere on your filesystem and then it's not even possible to access them > > via the web. > > > > Edward > > > O

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > Sent: 25 May 2007 15:00 > To: tedd > Cc: Kevin Murphy; Stephen; php > Subject: Re: [PHP] Include file questions > > > On 5/25/07, tedd &l

Re: [PHP] Include???

2007-05-25 Thread tedd
At 9:49 AM -0400 5/25/07, Robert Cummings wrote: On Fri, 2007-05-25 at 09:42 -0400, tedd wrote: At 3:28 PM +0100 5/23/07, Richard Davey wrote: > > >if ($_POST['status_code'] == 'C') > ^^ > >Read-up on the if/else structure and comparison operators. You'd never >

RE: [PHP] Include file questions

2007-05-25 Thread Edward Kay
> -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > Sent: 25 May 2007 15:00 > To: tedd > Cc: Kevin Murphy; Stephen; php > Subject: Re: [PHP] Include file questions > > > On 5/25/07, tedd <[EMAIL PROTECTED]> wrote: > > At 1:55 PM -0700

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:00 +0200, Tijnema wrote: > On 5/25/07, tedd <[EMAIL PROTECTED]> wrote: > > At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: > > >.inc files have a disadvantage in that if you view the file: > > > > > >http://www.yoursite.com/file.inc > > > > > >you can see the php code. I pref

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, tedd <[EMAIL PROTECTED]> wrote: At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: >.inc files have a disadvantage in that if you view the file: > >http://www.yoursite.com/file.inc > >you can see the php code. I prefer not to use those just on the off >chance that someone can see my code a

Re: [PHP] Include???

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 09:42 -0400, tedd wrote: > At 3:28 PM +0100 5/23/07, Richard Davey wrote: > > > > > >if ($_POST['status_code'] == 'C') > > ^^ > > > >Read-up on the if/else structure and comparison operators. You'd never > >use a single equals sign in this example. >

Re[2]: [PHP] Include???

2007-05-25 Thread Richard Davey
Hi Tedd, Friday, May 25, 2007, 2:42:34 PM, you wrote: > At 3:28 PM +0100 5/23/07, Richard Davey wrote: >> >> >>if ($_POST['status_code'] == 'C') >> ^^ >> >>Read-up on the if/else structure and comparison operators. You'd never >>use a single equals sign in this example.

Re: [PHP] Include???

2007-05-25 Thread tedd
At 3:28 PM +0100 5/23/07, Richard Davey wrote: if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a single equals sign in this example. Rich: Read up on different font sizes that people use and you'll nev

Re: [PHP] Include file questions

2007-05-25 Thread tedd
At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a way

Re: [PHP] Include???

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 10:53 am, Daniel Brown wrote: > don't need a space in your include command. Just type it out as if it > were > a function: include('complete_save.php'); You don't need the parens either -- It's NOT a function at all. It's a language construct. The space should probably be l

Re: [PHP] Include???

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 9:24 am, Dan Shirah wrote: > Okay, I think I'm doing everything right, but for whatever reason my > include > isn't working. > > echo $_POST['status_code']; Perhaps there is some whitespace before/after the 'C'... echo "'$_POST[status_code]'\n"; You should then see some whi

Re: [PHP] Include file questions

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 3:48 pm, Stephen wrote: > 1) Does the filename extension matter? I prefer *.inc? It seems to > work fine, but I only see others using *.php >From a strictly "will it work" stand-point, the extension can be anything you want or none at all. HOWEVER, there are various security

Re: [PHP] Include file questions

2007-05-24 Thread Miguel J. Jiménez
Stephen escribió: 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 ? Not big issues, but I am curious. Thanks Stephen If you use .inc extension you will have to modi

Re: [PHP] Include file questions

2007-05-23 Thread Stephen
Kevin Murphy <[EMAIL PROTECTED]> wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a wa

Re: [PHP] Include file questions

2007-05-23 Thread Kevin Murphy
.inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a way to exploit it (especially true of password fi

[PHP] Include file questions

2007-05-23 Thread Stephen
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 ? Not big issues, but I am curious. Thanks Stephen

Re: [PHP] Include???

2007-05-23 Thread Dan Shirah
Thank you for all of the quick responses. I guess jumping between ColdFusion, PHP and Informix all day long got the better of me. Thanks again! Dan On 5/23/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 5/23/07, Greg Donald <[EMAIL PROTECTED]> wrote: > > On 5/23/07, Tijnema <[EMAIL PROTECTE

Re: [PHP] Include???

2007-05-23 Thread Daniel Brown
On 5/23/07, Greg Donald <[EMAIL PROTECTED]> wrote: On 5/23/07, Tijnema <[EMAIL PROTECTED]> wrote: > include is a control structure, I believe it isn't required, but > preferred to use the include without (), like this: > include "complete_save.php"; What variable or escape sequence are you inte

Re: [PHP] Include???

2007-05-23 Thread Greg Donald
On 5/23/07, Tijnema <[EMAIL PROTECTED]> wrote: include is a control structure, I believe it isn't required, but preferred to use the include without (), like this: include "complete_save.php"; What variable or escape sequence are you interpolating in that double quoted string? include 'complet

Re: [PHP] Include???

2007-05-23 Thread Tijnema
On 5/23/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 5/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Dan Shirah wrote: > > Okay, I think I'm doing everything right, but for whatever reason my > > include > > isn't working. > > > > > echo $_POST['status_code']; > > if ($_POST['status_code'] =

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