[PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
; and line numbers too. foreach ($lines2 as $line_num = $line2) { echo pLine #b{$line_num}/b : . htmlspecialchars($line2) . /p; } include ('http://www.mysite.com/calculate.php'); My problem is that when I use a blank file that only has ?php include 'http://www.mysite.com/calculate.php

RE: [PHP] Include Problem

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

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 pLine #b{$line_num}/b : . htmlspecialchars

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 pLine #b{$line_num}/b

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 Blanchard

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 any

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
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.net Subject: Re: [PHP

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:

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

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 From: Daniel Brown [EMAIL

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: [PHP] Include Problem

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 two more questions regarding this issue

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. [mailto:[EMAIL PROTECTED] Sent: Tuesday

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 will (most likely

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. [EMAIL PROTECTED] Sent: Tuesday, June

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

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 pass variables, you could do

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, If you simply need to execute

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 be used by that code to do perform

Re: [PHP] Include problems

2008-04-14 Thread Daniel Brown
if(file_exists(common/config.ini)) { $configData = parse_ini_file(common/config.ini); } else { In your primary file, you could also consider adding: ?php $base_path = dirname(__FILE__); ? And then, all includes from within that file would be included as such: ?php include($base_path

[PHP] Include problems

2008-04-12 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 == //

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); } else

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

2008-04-08 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

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

2008-04-07 Thread Daniel Brown
if you create two simple files in the same directory like so: ?php // file1.php echo Okay.\n; ? ?php // file2.php include(dirname(__FILE__).'/file1.php'); ? -- /Daniel P. Brown Ask me about: Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo., and shared hosting starting @ $2.50/mo

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

2008-04-07 Thread Philip Thompson
an error message. ~Phil Also, what happens if you create two simple files in the same directory like so: ?php // file1.php echo Okay.\n; ? ?php // file2.php include(dirname(__FILE__).'/file1.php'); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

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

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 appropriately in all

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

2008-04-07 Thread Wolf
the error message you're receiving? Also, what happens if you create two simple files in the same directory like so: ?php // file1.php echo Okay.\n; ? ?php // file2.php include(dirname(__FILE__).'/file1.php'); ? Noah, Looks like you need to be deciding on whether or not you

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] wrote:

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 include path is /

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

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

2008-04-07 Thread Noah Spitzer-Williams
.php include(dirname(__FILE__).'/file1.php'); ? -- /Daniel P. Brown 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 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 appropriately

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

2008-04-07 Thread Daniel Brown
]: Failed opening '.\file.inc.php' for inclusion (include_path='.;.\includes;.\pear') in C:\Inetpub\httpdocs\test.php on line 3 If you're going to use Windows-style paths, try escaping your slashes and see what happens. ?php include(.\\file.inc.php); ? -- /Daniel P. Brown Ask me about: Dedicated

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

2008-04-07 Thread Lester Caine
() [function.include]: Failed opening '.\file.inc.php' for inclusion (include_path='.;.\includes;.\pear') in C:\Inetpub\httpdocs\test.php on line 3 If you're going to use Windows-style paths, try escaping your slashes and see what happens. ?php include(.\\file.inc.php); ? People seem to be missing

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 should

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

2008-04-07 Thread Wolf
happens. ?php include(.\\file.inc.php); ? 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 should re-write PHP if it does

[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 fails when ./ is in front of file name

2008-04-06 Thread Casey
fine. Anyone have any ideas? Thanks! Noah Is that include() statement being issued within an included PHP page? a.php ?php include('directory/b.php'); ? directory/b.php ?php include('./c.php'); // Does this refer to c.php or directory/c.php ? -- -Casey -- PHP General Mailing List

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

2008-04-06 Thread Noah Spitzer-Williams
is: include_path = .;.\includes;.\pear (I've also tried include_path = .;./includes;./pear) phpinfo() works fine. Anyone have any ideas? Thanks! Noah Is that include() statement being issued within an included PHP page? a.php ?php include('directory/b.php'); ? directory

[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() 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

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

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

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 mentioned the problem. It is the starting PHP tag

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 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 files are even

[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-03 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 like

[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

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

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 have

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

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
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 Jim Moseby
snip ...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 Jochem Maas
Jim Moseby wrote: snip ...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:

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

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

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. Rich: Read

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. Rich: Read

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 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 Oh, I don't want

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 [EMAIL PROTECTED] wrote: At 1:55 PM -0700 5

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 prefer not to use those

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

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 5/23/07, Kevin Murphy wrote: .inc files have

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

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 write it like

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 variables, no executing code.

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, my included files

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

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 config.php

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 keep it 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-05-25 at 17:07

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. Cheers,

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

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 ?php and ending ? ? Not big issues, but I am curious. Thanks Stephen If you use .inc extension you

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 code

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. ?php echo $_POST['status_code']; Perhaps there is some whitespace before/after the 'C'... echo '$_POST[status_code]'br /\n; You should then see some

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

[PHP] Include???

2007-05-23 Thread Dan Shirah
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. This is my include

Re: [PHP] Include???

2007-05-23 Thread Daniel Brown
On 5/23/07, Greg Donald [EMAIL PROTECTED] wrote: On 5/23/07, Dan Shirah [EMAIL PROTECTED] 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) { == not = -- Greg Donald

Re: [PHP] Include???

2007-05-23 Thread Jim Lucas
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.

Re: [PHP] Include???

2007-05-23 Thread Daniel Brown
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. ?php echo $_POST['status_code']; if ($_POST['status_code'] = C) { include ('complete_save.php'); } ? The echo of my

Re: [PHP] Include???

2007-05-23 Thread Jim Lucas
Daniel Brown 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. ?php echo $_POST['status_code']; if ($_POST['status_code'] = C) { include ('complete_save.php'); } ? The

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. ?php echo $_POST['status_code']; if ($_POST['status_code'] = C) {

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

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

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

[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 ?php and ending ? ? Not big issues, but I am curious. Thanks Stephen

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 way

Re: [PHP] Include files....

2007-05-21 Thread Richard Lynch
An include jumps back into HTML mode so you need: ?php $server = ; $username = ; . . . ? On Fri, May 18, 2007 3:05 pm, Jason Pruim wrote: Okay, Very Newbie-ish question coming! I can't figure out why my include won't work... Here's the text: index.php: ?PHP include 'defaults.php

[PHP] Include files....

2007-05-18 Thread Jason Pruim
Okay, Very Newbie-ish question coming! I can't figure out why my include won't work... Here's the text: index.php: ?PHP include 'defaults.php'; $link = mysql_connect($server, $username, $password) or die('Could not connect: ' . mysql_error()); echo 'Connected successfully BR

Re: [PHP] Include files....

2007-05-18 Thread Tijnema !
On 5/18/07, Jason Pruim [EMAIL PROTECTED] wrote: Okay, Very Newbie-ish question coming! I can't figure out why my include won't work... Here's the text: index.php: ?PHP include 'defaults.php'; $link = mysql_connect($server, $username, $password) or die('Could not connect: ' . mysql_error

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