03-06-2001
save instead run
Well, when I run the PHP on my machine at home ir works fine under Windows. When I run it on Solaris it prompts me where do I want to save the *.php file(!?). I want to run the file instead.
Thanks,George
Note: I do have the book
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am not by any means a UNIX guru if you can't already tell by the question I'm about to ask.
How do I launch Apache web server on my SOlaris 8 server without rebooting it?
Any help would be much appreciated!!!
-Thanks (5 Replies)
Discussion started by: jskillet
5 Replies
2. UNIX for Dummies Questions & Answers
HI
I want to use the apache server on my solaris 9
How do I start it??
(/etc/init.d/apache start does not work)
Where do I need to put my html archives???
thanks (2 Replies)
Discussion started by: eldiego
2 Replies
3. Solaris
ii am trying to install apache 2 on solaris 10.it is configured successfully but is giving error while make.i have pasted last lines of that error.
make: Warning: Can't find `/build/ltlib.mk': No such file or directory
Current working directory /apache/httpd-2.0.59/srclib/pcre
make: Fatal... (1 Reply)
Discussion started by: raynu.sharma
1 Replies
4. Solaris
Hello,
I have been searching on unix.com and google in general. I can't find what I am looking for. Maybe too dumb of a question.
I've downloaded and installed the sunfreeware package for PHP 5.3.6 and made sure all dependencies are satisfied.
Apache 2.2.8 is currently installed and... (2 Replies)
Discussion started by: CSLibrary
2 Replies
5. Solaris
Hi ,
I am new to the unix environment.
I need to install apache 2.2.21 on my machine.
I have tried configuring apache from /etc/apache2 directory.
But now I want to install it under a separate user.
Can anybody tell me the step by step procedure to install it under separate user,please ?... (1 Reply)
Discussion started by: bikas89
1 Replies
6. Solaris
I am trying to install apache 2.2.22 on Solaris 10 but getting below error message when starting apache:
/etc/init.d/apache2 start
Server type is set to
running /opt/apache/conf/startup.pl for groups shared mem
Starting Apache HTTPD service with SSL disabled
httpd: Syntax error on line... (2 Replies)
Discussion started by: prash358
2 Replies
7. Solaris
Hi,
I have installed apache 2.2.22 on solaris machine and trying to do some basic testing, but it is failing for one of the scenario.
Seeing below in the error logs
But noy sure why there is a need for AuthUserFile when i mentioned AuthldapURL.
Please advise
Thanks (1 Reply)
Discussion started by: prash358
1 Replies
8. Solaris
Hi all,
This is Solaris 10 OS
I received this error
on Server,
-bash-3.00$ /usr/local/apache2/bin/httpd -v
ld.so.1: httpd: fatal: libaprutil-1.so.0: open failed: No such file or directory
Killed
-bash-3.00$
How to resolve this dependencies which are not resolved?
... (0 Replies)
Discussion started by: manalisharmabe
0 Replies
9. Solaris
Hi,
I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10.
Please any help is wellcome.
Some aditional info:
/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
bash-3.2# g++ -v
Reading specs from... (0 Replies)
Discussion started by: lbslbs
0 Replies
10. Shell Programming and Scripting
Hi,
I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10.
Please any help is wellcome.
Some aditional info:
/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
bash-3.2# g++ -v
Reading specs from... (1 Reply)
Discussion started by: lbslbs
1 Replies
LEARN ABOUT PHP
php_strip_whitespace
PHP_STRIP_WHITESPACE(3) 1 PHP_STRIP_WHITESPACE(3)
php_strip_whitespace - Return source with stripped comments and whitespace
SYNOPSIS
string php_strip_whitespace (string $filename)
DESCRIPTION
Returns the PHP source code in $filename with PHP comments and whitespace removed. This may be useful for determining the amount of actual
code in your scripts compared with the amount of comments. This is similar to using php -w from the commandline.
PARAMETERS
o $filename
- Path to the PHP file.
RETURN VALUES
The stripped source code will be returned on success, or an empty string on failure.
Note
This function works as described as of PHP 5.0.1. Before this it would only return an empty string. For more information on this
bug and its prior behavior, see bug report #29606.
EXAMPLES
Example #1
php_strip_whitespace(3) example
<?php
// PHP comment here
/*
* Another PHP comment
*/
echo php_strip_whitespace(__FILE__);
// Newlines are considered whitespace, and are removed too:
do_nothing();
?>
The above example will output:
<?php
echo php_strip_whitespace(__FILE__); do_nothing(); ?>
Notice the PHP comments are gone, as are the whitespace and newline after the first echo statement.
PHP Documentation Group PHP_STRIP_WHITESPACE(3)