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
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
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
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
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
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
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
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
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
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
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)
> .
I did it:
.bash_profile
PATH=/usr/local/php5/bin:$PATH
export PATH
worked well
Thanks
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
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
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
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
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:/
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
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
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",
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
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
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 dont see my photos, my /home
directory on the web server contains
public_ftp and public_html where my web site is store
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(_
> -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
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.
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
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
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
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
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
* 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
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
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
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
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
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/
/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
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
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] 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
> 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
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
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
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
--
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
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
>
>
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
;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
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
>
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
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
52 matches
Mail list logo