[PHP] List of Directories with in a Directory
I am trying to get a list of all directories within a specified directory. Any ideas how to do this? Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP - CGI Version
I have installed the CGI version of PHP and customized Apache's httpd.conf. (Had to use CGI for this instance). Since I only need (and want) a few php scripts to be available on this server, I added the following line to httpd.conf in order to get my script to work. ScriptAlias /myfile.php /location/myfile.php Then I added the following to "myfile.php" #!/usr/local/bin/php Everything works fine except that I get "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html #!/usr/local/bin/php" at the top of the page. Any Ideas on how to get rid of this stuff in the output? I have looked through the php.ini file, and php.net but couldn't find anything. Thanks in advance Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP - CGI Version
The solution ended up being the need to re-compile php with the "--enable-discard-path" configure option. This removed the "#!/usr/local/bin/php" line from the top of the file. Thanks for the feedback. Tim Tim Livers wrote: > I have installed the CGI version of PHP and customized Apache's > httpd.conf. (Had to use CGI for this instance). > > Since I only need (and want) a few php scripts to be available on this > server, I added the following line to httpd.conf in order to get my > script to work. > > ScriptAlias /myfile.php /location/myfile.php > > Then I added the following to "myfile.php" > > #!/usr/local/bin/php > > phpinfo() > ?> > > Everything works fine except that I get "X-Powered-By: PHP/4.0.4pl1 > Content-type: text/html #!/usr/local/bin/php" at the top of the page. > > Any Ideas on how to get rid of this stuff in the output? I have looked > through the php.ini file, and php.net but couldn't find anything. > > Thanks in advance > > Tim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PDF Functions
Here are the directions I used to configure PHP with pdflib. These worked for me. http://www.phpbuilder.net/columns/perugini20001026.php3?page=2 Tim Mike Tuller wrote: > I finally got everything to install on RedHat 7, but I can't do anything > with pdflib like I had expected. > > I get back Fatal error: Call to undefined function: pdf_new() in > /var/www/html/pdfclock.php on line 7. Line 7 is $pdf = PDF_new(); > > This is rather frustrating that every time I try to install PHP on a machine > it takes me a week to get it going. > > Here is what I have for the config from the srpm after modification as > instructed earlier. > > ./configure \ > --prefix=%{_prefix} \ > --with-config-file-path=%{_sysconfdir} \ > --disable-debug \ > --enable-pic \ > --enable-shared \ > --enable-inline-optimization \ > $* \ > --with-exec-dir=%{_bindir} \ > --with-regex=system \ > --with-gettext \ > --with-gd \ > --with-jpeg-dir=%{_prefix} \ > --with-png \ > --with-zlib \ > --with-gdbm \ > --enable-debugger \ > --enable-magic-quotes \ > --enable-safe-mode \ > --enable-sockets \ > --enable-sysvsem \ > --enable-sysvshm \ > --enable-track-vars \ > --enable-yp \ > --enable-ftp \ > --enable-wddx \ > --with-mysql \ > --with-xml \ > --with-pdflib=/usr/lib/lipdf.so.0 \ > --with-tiff > > Can someone look at this and tell me what else I need to put in to get this > to work? > > Mike > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]