[PHP] path

2006-11-10 Thread Alain Roger
Hi, How can i get the path in which a PHP file is running ? for example, user clicking on a link opened page "action.php" file. this php file is located as "C:\webserver\mywebsite\php\test\action.php" how can i get this path (C:\webserver\mywebsite\php\test\)? thx. Al.

[PHP] Path question

2011-03-28 Thread Jack
Hello All, Is there a smarter way to do includes by setting up a path or something where I don't have to include /home/domain.com/includes/include_file.php Apparently my path is as shown above, but I would prefer to just put in /includes/include_file.php Thanks! Jack

[PHP] Path question.

2011-07-28 Thread Paul Halliday
I have a few scripts that use "../location/file" Is this interpreted differently on some systems? Thanks. -- Paul Halliday http://www.squertproject.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] path finder

2007-06-23 Thread elk dolk
Hi all, When I test my photo album in my IIS testing server relative path in the following code works fine : echo " "; but when I upload it to the web server I don’t see my photos, my /home directory on the web server contains public_ftp and public_html where my web site is store

RE: [PHP] path

2006-11-10 Thread Brad Fuller
> -Original Message- > From: Alain Roger [mailto:[EMAIL PROTECTED] > Sent: Friday, November 10, 2006 1:48 PM > To: PHP General List > Subject: [PHP] path > > Hi, > > How can i get the path in which a PHP file is running ? > > for example, user clicking o

Re: [PHP] path

2006-11-10 Thread Stut
Alain Roger wrote: How can i get the path in which a PHP file is running ? for example, user clicking on a link opened page "action.php" file. this php file is located as "C:\webserver\mywebsite\php\test\action.php" how can i get this path (C:\webserver\mywebsite\php\test\)? $dir = dirname(_

[PHP] path problems

2004-01-27 Thread Scott Taylor
I have the following file: http://domain.com/archive/newsletters/Dec03.pdf For some reason this works: filesize('archive/newsletters/Dec03.pdf'); but this does not: filesize('/archive/newsletters/Dec03.pdf'); nor does this filesize('http://domain.com/archive/newsletters/Dec03.pdf'); For some r

[PHP] path to php

2001-08-22 Thread ReDucTor
does anyone know all the possible paths to php...because i can't seem to find it on my current host...i have tried using the following php /path/to/script.php /usr/php /path/to/script.php /usr/local/bin/php /path/to/script.php /usr/bin/php /path/to/script.php but i still can't seem to

Re: [PHP] Path question

2011-03-28 Thread Paul M Foster
On Mon, Mar 28, 2011 at 09:18:39PM -0400, Jack wrote: > Hello All, > > > > Is there a smarter way to do includes by setting up a path or something > where I don't have to include /home/domain.com/includes/include_file.php > > Apparently my path is as shown above, but I would prefer to just p

Re: [PHP] Path question

2011-03-29 Thread D. Dante Lorenso
On 3/28/11 8:18 PM, Jack wrote: Hello All, Is there a smarter way to do includes by setting up a path or something where I don't have to include /home/domain.com/includes/include_file.php Apparently my path is as shown above, but I would prefer to just put in /includes/include_file.php I wrote

Re: [PHP] Path question

2011-03-30 Thread Richard Quadling
On 29 March 2011 19:41, D. Dante Lorenso wrote: > On 3/28/11 8:18 PM, Jack wrote: >> >> Hello All, >> Is there a smarter way to do includes by setting up a path or something >> where I don't have to include /home/domain.com/includes/include_file.php >> Apparently my path is as shown above,  but I

Re: [PHP] Path question

2011-03-31 Thread tedd
At 9:18 PM -0400 3/28/11, Jack wrote: Hello All, Is there a smarter way to do includes by setting up a path or something where I don't have to include /home/domain.com/includes/include_file.php Apparently my path is as shown above, but I would prefer to just put in /includes/include_file.php

Re: [PHP] Path question.

2011-07-28 Thread Nilesh Govindarajan
On 07/28/2011 05:43 PM, Paul Halliday wrote: > I have a few scripts that use "../location/file" > > Is this interpreted differently on some systems? > > Thanks. > I have no idea about it, but I generally use realpath() to avoid any such problems. Windows may have, because it uses backward slash

Re: [PHP] Path question.

2011-07-28 Thread vikash . iitb
On 28 July 2011 18:06, Nilesh Govindarajan wrote: > On 07/28/2011 05:43 PM, Paul Halliday wrote: > > I have a few scripts that use "../location/file" > > > > Is this interpreted differently on some systems? > > > > Thanks. > > > Use __DIR__."../location/file" otherwise files using these script c

RE: [PHP] Path question.

2011-07-28 Thread Dajka Tamas
ion".DS."file"); Cheers, Tamas -Original Message- From: Paul Halliday [mailto:paul.halli...@gmail.com] Sent: Thursday, July 28, 2011 2:14 PM To: PHP-General Subject: [PHP] Path question. I have a few scripts that use "../location/file" I

Re: [PHP] Path question.

2011-07-28 Thread Richard Quadling
On 28 July 2011 13:36, Nilesh Govindarajan wrote: > On 07/28/2011 05:43 PM, Paul Halliday wrote: >> I have a few scripts that use "../location/file" >> >> Is this interpreted differently on some systems? >> >> Thanks. >> > > I have no idea about it, but I generally use realpath() to avoid any > su

Re: [PHP] path finder

2007-06-23 Thread Tijnema
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: Hi all, When I test my photo album in my IIS testing server relative path in the following code works fine : echo " "; but when I upload it to the web server I don't see my photos, my /home directory on the web server contains public_f

Re: [PHP] path finder

2007-06-25 Thread Jim Lucas
elk dolk wrote: Hi all, When I test my photo album in my IIS testing server relative path in the following code works fine : echo " "; but when I upload it to the web server I don’t see my photos, my /home directory on the web server contains public_ftp and public_html where my

Re: [PHP] path problems

2004-01-27 Thread Stuart
Scott Taylor wrote: I have the following file: http://domain.com/archive/newsletters/Dec03.pdf Lovely. For some reason this works: filesize('archive/newsletters/Dec03.pdf'); Relative path from the current directory. Is your script in the web root? but this does not: filesize('/archive/newslette

Re: [PHP] path problems

2004-01-27 Thread Scott Taylor
/archive/newsletters/Dec03.pdf'; readfile($file); /* example 2 */ $file = 'archive/newsletters/Dec03.pdf'; readfile($file); Thanks for the help so far, Best Regards, Scott -Original Message- From: Scott Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004

Re: [PHP] path problems

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 20:22:46 -0500 Scott Taylor <[EMAIL PROTECTED]> wrote: > I understand all of the file size ones. What I really don't > understand is why neither of the following examples work: > > /* example 1 */ > /* where $_SERVER['DOCUMENT_ROOT'] = > /usr/local/psa/home/vhosts/domain.com/

Re: [PHP] path problems

2004-01-28 Thread Scott Taylor
Yes, the error I get is a pop-up box saying "This is not a valid %PDF file" Here is my code: $file_two = 'archive/newsletters/Dec03PostPress.pdf'; //now view the PDF file header("Content-Type: application/pdf"); header("Accept-Ranges: bytes"); header("Content-Length: ".filesi

Re: [PHP] path problems

2004-01-28 Thread Stuart
Scott Taylor wrote: $file_two = 'archive/newsletters/Dec03PostPress.pdf'; Try replacing this line with... $file_two = $_SERVER['DOCUMENT_ROOT'].'/archive/newsletters/Dec03PostPress.pdf'; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] path problems

2004-01-28 Thread Scott Taylor
Stuart wrote: Scott Taylor wrote: $file_two = 'archive/newsletters/Dec03PostPress.pdf'; Try replacing this line with... $file_two = $_SERVER['DOCUMENT_ROOT'].'/archive/newsletters/Dec03PostPress.pdf'; As my first posts states, I've tried that. And no, that doesn't work either. And on

[PHP] Path to ImageMagick??

2004-11-25 Thread Aaron Wolski
Hey all, How can I find out the path ImageMagick on my server the php is running on? Need it for a software and I don't know where to look. Phpinfo() tells me nothing. Thanks! Aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] path to php

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 11:05, ReDucTor wrote: > does anyone know all the possible paths to php...because i can't seem > to find it on my current host...i have tried using the following > > php /path/to/script.php > /usr/php /path/to/script.php > /usr/local/bin/php /path/to/sc

Re: [PHP] path to php

2001-08-24 Thread Chris Hayes
Thu, 23 Aug 2001 11:35:00 +1000 Onderwerp: [PHP] path to php > does anyone know all the possible paths to php...because i can't seem to find > it on my current host...i have tried using the following > > php /path/to/script.php > /usr/php /path/to/script.php >

Re: [PHP] path to php

2001-08-26 Thread ReDucTor
;ReDucTor" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 12:20 PM Subject: Re: [PHP] path to php > On Thu, 23 Aug 2001 11:05, ReDucTor wrote: > > does anyone know all the possible paths to php...because i can't seem > > to find i

Re: [PHP] path to php

2001-08-26 Thread ReDucTor
they don't give shell access without contacting them, and they don't reply to emails - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 12:48 PM Subject: Re: [PHP] pat

Re: [PHP] path to php

2001-08-26 Thread David Robley
ECTED]> > Sent: Thursday, August 23, 2001 12:48 PM > Subject: Re: [PHP] path to php > > > >Have you tried which php or locate php? > > > > what do you mean? > > > > no shell acces, that requires contacting them to get, which they > > don't > >

[PHP] php path and relink

2010-05-10 Thread Augusto Flavio
Hi, I have a shell account with limited access. The php cli version installated is 4.4.6. But the server have also the php 5.2.6. I checked the php version and i got this: $ php -v PHP 4.4.9 (cli) (built: Sep 17 2008 11:04:03) . But i want that the php command be a link to the php5. How c

Re: [PHP] Path to ImageMagick??

2004-11-25 Thread Jon Hill
The two programmes you will probably use are called 'convert' and 'mogrify' Usually found in /usr/bin if you are running Linux. Cyril On Thursday 25 November 2004 13:35, Aaron Wolski wrote: > Hey all, > > How can I find out the path ImageMagick on my server the php is running > on? > > Need it

[PHP] path error while calling files

2001-08-27 Thread Carsten Weber
Hello. I am reading in text files in a php-script and am getting path errors. I have set the php-path in php.ini to /home/web/public_html/cgi-bin/chanet/ and am trying to call a file in /home/web/public_html/cgi-bin/chanet/daten/. I use the path ../../cgi-bin/chanet/daten/ to call the files (the

Re: [PHP] php path and relink

2010-05-10 Thread Ashley Sheridan
On Mon, 2010-05-10 at 21:23 -0300, Augusto Flavio wrote: > Hi, > > > I have a shell account with limited access. The php cli version installated > is 4.4.6. But the server have also the php 5.2.6. I checked the php version > and i got this: > > > $ php -v > PHP 4.4.9 (cli) (built: Sep 17 2008

RE: [PHP] php path and relink

2010-05-10 Thread Spud. Ivan.
do strace php -v and see what's the path for the old version. It'd be better if you uninstall the old version, but it you don't know how was it installed, simply remove the old php binary or overwrite it with newer. I. Lopez. Hi, I have a shell account with limited access. The php c

RE: [PHP] php path and relink

2010-05-10 Thread Spud. Ivan.
then try different paths to locate the version you want: /usr/bin/php /usr/local/bin/php /usr/sbin/php etc etc I don't have root permission to unistall the old version or remove the link or create a link in /usr/loca/bin/php I'm just call the php -v command and get the version 4. T

Re: [PHP] php path and relink

2010-05-10 Thread Augusto Flavio
I did it: .bash_profile PATH=/usr/local/php5/bin:$PATH export PATH worked well Thanks

Re: [PHP] php path and relink

2010-05-11 Thread Piero Steinger
Am 11.05.2010 02:23, schrieb Augusto Flavio: > Hi, > > > I have a shell account with limited access. The php cli version installated > is 4.4.6. But the server have also the php 5.2.6. I checked the php version > and i got this: > > > $ php -v > PHP 4.4.9 (cli) (built: Sep 17 2008 11:04:03) > .

[PHP] path in document root / absolute path

2009-05-20 Thread Felix Siglreithmaier
Hi, is there a way to check if a path is within the document_root? and is there a function to check if a path is absolute or not? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] path in document root / absolute path

2009-05-20 Thread Stuart
2009/5/20 Felix Siglreithmaier : > is there a way to check if a path is within the document_root? Compare it to $_SERVER['DOCUMENT_ROOT']. > and is there a function to check if a path is absolute or not? http://php.net/realpath -Stuart -- http://stut.net/ -- PHP General Mailing List (http:/

[PHP] php path statement appears on my webpages

2003-07-31 Thread Gronquist, Jim M
I include #!/usr/local/bin/php4 at the top of my Php files so that it knows where to find php. Unfortunately the path appears in my web pages. Is there a way for me to turn this off? Is it a setting in Apache or is it something that I change in My php files. #!/usr/local/bin/php4 --

Re: [PHP] path info question. Was delimiter question?

2004-08-24 Thread Steve Buehler
Thank You. I didn't know where to start looking. Anyway, putting the following lines in an .htaccess file in the directory worked like a charm: AcceptPathInfo On Thanks to all who helped. Steve At 02:02 PM 8/24/2004, you wrote: > How can I make the following work on an apache 2.0.46/php 4.3.2

[PHP] path to binary for php on linux

2004-04-07 Thread Andy B
anybody know what the exact path for the php binary on linux is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Path of the class file of an object

2008-09-06 Thread Ali Çevik
Dear all, I need a procedure or an implementation that gives path of the class file of an object which I pass as a parameter. Example; Assume I have a class file located at C:\htdocs\Foo.class.php In code after I include Foo.class.php; I'm looking an implementation for that "some_procedure",

[PHP] Re: php path statement appears on my webpages

2003-07-31 Thread Ivo Fokkema
If you don't run PHP as an CGI but as an module, you don't even need this line. My guess is that you run PHP as a module, so delete the line to fix your problem. HTH, -- Ivo Fokkema PHP & MySQL programmer Leiden University Medical Centre Netherlands "Jim M Gronquist" <[EMAIL PROTECTED]> wrote in

Re: [PHP] path to binary for php on linux

2004-04-07 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): > anybody know what the exact path for the php binary on linux is? Depends on how it was installed, a common place is: /usr/local/bin/php Or you can type: which php and it will tell you where it is. Curt -- "I used to think I was indecisive, but no

Re: [PHP] path to binary for php on linux

2004-04-07 Thread Andy B
it was installed with get and which php doesnt do anything just returns to the prompt with no output - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 8:11 PM Subject: Re: [PHP] path to binary for p

Re: [PHP] path to binary for php on linux

2004-04-08 Thread jdavis
gt; Sent: Wednesday, April 07, 2004 8:11 PM > Subject: Re: [PHP] path to binary for php on linux > > > > * Thus wrote Andy B ([EMAIL PROTECTED]): > > > anybody know what the exact path for the php binary on linux is? > > locate finds all files containing the search string

Re: [PHP] Path of the class file of an object

2008-09-06 Thread Stut
On 6 Sep 2008, at 20:08, Ali Çevik wrote: I need a procedure or an implementation that gives path of the class file of an object which I pass as a parameter. Example; Assume I have a class file located at C:\htdocs\Foo.class.php In code after I include Foo.class.php; I'm looking an implem

RE: [PHP] Re: php path statement appears on my webpages

2003-07-31 Thread Gronquist, Jim M
Ivo, Thanks, but if I leave off this line then I get an error when I try and view my pages. Jim -Original Message- From: Ivo Fokkema [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: php path statement appears on my webpages If

Re: [PHP] Re: php path statement appears on my webpages

2003-07-31 Thread CPT John W. Holmes
> Thanks, but if I leave off this line then I get an error when I try and > view my pages. What kind of error, exactly? You need to determine if you're running PHP as a module or CGI. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: php path statement appears on my webpages

2003-07-31 Thread John Manko
: [PHP] Re: php path statement appears on my webpages If you don't run PHP as an CGI but as an module, you don't even need this line. My guess is that you run PHP as a module, so delete the line to fix your problem. HTH, -- Ivo Fokkema PHP & MySQL programmer Leiden University