# php-config(1) [mojave man page]

php-config(1)							Scripting Language						     php-config(1)

NAME
php-config - get information about PHP configuration and compile options

SYNOPSIS
php-config [options]

DESCRIPTION
php-config is a simple shell script for obtaining information about installed PHP configuration.

OPTIONS
--prefix       Directory prefix where PHP is installed, e.g. /usr/local
--includes     List of -I options with all include files
--ldflags      LD Flags which PHP was compiled with
--libs	      Extra libraries which PHP was compiled with
--man-dir      The directory prefix where the manpages is installed
--extension-dir
Directory where extensions are searched by default
--include-dir  Directory prefix where header files are installed by default
--php-binary   Full path to php CLI or CGI binary
--php-sapis    Show all SAPI modules available
--configure-options
Configure options to recreate configuration of current PHP installation
--version      PHP version
--vernum       PHP version as integer

php(1)

VERSION INFORMATION
This manpage describes php, version 7.1.19.

Copyright (C) 1997-2018 The PHP Group

This  source  file  is  subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available
through the world-wide-web at the following url:

If you did not receive a copy of the PHP license and  are  unable  to  obtain  it  through  the	world-wide-web,  please  send  a  note	to
license@php.net so we can mail you a copy immediately.

The PHP Group							       2018							     php-config(1)

## Check Out this Related Man Page

php-config(1)							Scripting Language						     php-config(1)

NAME
php-config - get information about PHP configuration and compile options

SYNOPSIS
php-config [options]

DESCRIPTION
php-config is a simple shell script for obtaining information about installed PHP configuration.

OPTIONS
--prefix       Directory prefix where PHP is installed, e.g. /usr/local
--includes     List of -I options with all include files
--ldflags      LD Flags which PHP was compiled with
--libs	      Extra libraries which PHP was compiled with
--extension-dir
Directory where extensions are searched by default
--include-dir  Directory prefix where header files are installed by default
--php-binary   Full path to php CLI or CGI binary
--php-sapis    Show all SAPI modules available
--configure-options
Configure options to recreate configuration of current PHP installation
--version      PHP version
--vernum       PHP version as integer

php(1)

VERSION INFORMATION
This manpage describes php, version 5.3.6-13ubuntu3.10.

Copyright (C) 1997-2010 The PHP Group

This  source  file  is  subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available
through the world-wide-web at the following url:

If you did not receive a copy of the PHP license and  are  unable  to  obtain  it  through  the	world-wide-web,  please  send  a  note	to
license@php.net so we can mail you a copy immediately.

The PHP Group							       2010							     php-config(1)

## PHP: problem with index.php

iam geting a error with this index script. heres the error Parse error: parse error in c:\phpdev\www\dev\compulearn\in work\index.php on line 39 Whats wrong?? ------------------------ <?php //display header and left bars include ('header.php'); include ('left.php'); //connect...

## apache2 & two php versions, how to use specific version

Hi all, I have my Debian web server, where apache2 and php 5.2.0 are installed from debian package. It worked fine, both in CLI & Browser. Recently i installed the php 5.2.9 from the source. To verify it i executed the "php --version" and it is showing 5.2.9 . But in the browser still it is...

## PHP 5.3 compile on Solaris 10 : make distclean :: fatal error

I'm trying to install PHP 5.3 on Solaris 10 . I'm using etc/apache2 and installed mysql 5.1.39. When I tried to compile PHP 5.3, with the following configure text, ./configure --with-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib-dir=/usr/local \...

## Help with PHP and shell_exec!!!

Hi, I've been working on a PHP script which is "supposed" to find an individuals weather based on their geolocation. This script uses "shell_exec". I have checked my syntax and it is correct, but there is still something missing; for when I call on the script using: <form action='/weather.php'...

## New Member - First Question

Here is my situation... System - HP UNIX (HP-UX hq5 B.11.00 U 9000/800 (td)) I have an HL7 (Health Level Seven) pipe-delimied file that does not have any carriage returns/line feeds. I need to insert a line feed before each segment type (MSH, PID, PV1, OBX, etc.) so that my PROGRESS program...

## Run PHP script when new email received

I have been looking around for a solution to this, i have been developing for a wile though am very new to CGI, PHP and a lot of the web based tech. I have a web site hosted with a cPanel web host. I am looking to have a script(prefer PHP) to run everytime i get a new email to help@xxx.com....

## CRLF to LF PHP

So I have this PHP script that takes info from HTML form and saves the info to a txt file. Here is the code <?php $input =$_POST; $dateposted = date("m-d-Y-His");$fp = fopen("/some/location/public_html/sh/$dateposted.txt", "w"); fwrite($fp, $input.).'&nbsp;'; fclose($fp);...

## Port VPM Decompression Algorithm to PHP and then to Dive Computer

Hello! I'm about to embark on a new project to port the VPM (Variable Permability Model) for decompression diving from some old BASIC code (attached, "VPM.txt") to PHP. Then, I plan to create a plugin for this site where folks can run VPM on the web. Then, I plan to improve VPM based on...

## Migration of website... PHP/Mysql -which path for DB.php

Hi, I have two websites: website1.com and website2.com I didn't write either but have successfully moved all the files from website1.com to website2.com I (thought) I installed all the correct php modules and website2 is mostly up and running. However, my boss found that when we go to a...

## Help with if-then-else bash script

Hi, Following from other thread posted in this forum. I'm trying to make a simple bash script to check for "php" process. If the spesific PHP script process (eg: cleanlog.php) does not run, it will then be executed from bash. #!/bin/bash var1=`ps -ef | grep -v grep | grep cleanlog| awk...

## Want to remove all lines but not latest 50 lines from a file

Hi, I have a huge file which has Lacs of lines. File system got full. I want your guys help to suggest me a solution so that I can remove all lines from that file but not last 50,000 lines. I want solution which can remove lines from existing file so that I can have some space left with.

## Deleting from .php files

Hello, I have infected .php files on my server with some code (example at the bottom,code marked red must be deleted, all .php files were infected with this same code). I was wondering how can i delete the first <?php ?> with that all code inside ?:confused: I already tried with : find . -name...

## Find most recent file and copy to another directory.

Very new to shell scripting. Not sure if my title is correct but I will try and explain. Directory has 100+ files with this format, " ABCD_ABC_Abc_AB0126.abc ". When a new file gets created, the 16-19 characters in the file name gets incremented by 1. Ex...todays most recent file is...

## Notes with Ravinder on Badging System Development Part II

Part II: Current PHP file Beta 73 Not Optimized: <?php $version = 73;$query = "SELECT * FROM " . TABLE_PREFIX . "user WHERE userid='" . $uid . "'";$usertable = $db->query_read_slave($query); $modaluser =$db->fetch_array($usertable);$modaluser = gmdate("d F Y", $modaluser);$modaluser...