Compile Php Website To A Stand Alone .exe
Not that i'm one to ask silly questions - but can it be done .
View Complete Forum Thread with Replies
Related Forum Messages:
Stand Alone PHP
I want to use PHP as a stand alone scripting language. By that I mean without a web server present and without any HTML in the code. I have done this in a few tests on a Win 2000 platform and, with just PHP.exe and a DLL and the ADOdb stuff in a lone directory, I have successfully run some scripts to talk to a database. All fine and good. But the real goal is to make this into a tiny runtime environment that I can deliver to any machine ... Linux or Windows ... and run some performance tools on the local database engines ... all without any installations on those host machines (i.e. just copy the files ... run the analysis scripts and copy the results for post analysis . without changing the host system). Is there a discussion anywhere about: Keeping the runtime size to a minimum? Cross platform got-ya's ? (I read a couple of messages about this, just now in this group) If this is a topic that has been covered to death .. then I apologize and will continue my search of back news articles. However, if anyone else is interested in this or would care to shed some light on these issues for me, please contact me either here or directly.
View Replies !
What Does %something Stand For?
There is this line in a code I have to modify in order to be able to use: %response = $lperl->curl_process($myorder); And I can't find anywhere what does %response stand for nor what the % operator is used for in this line... It is clear that I'm not an OOP PHP programmer so I can't even begin to understand this line... Anyways it gives me a syntax error and I can't use it like this... I searched the PHP manual for % operator all I get is nothing since it is is somekind of wildcard sign and same situation on these forums... All I know is that % is used as modulo operator but that's clearly not the case here..
View Replies !
Stand Alone Win98?
how would i get php running with mysql on a windows 98 machine with out a server so that i could test my scripts after i create them.?
View Replies !
Stand Alone PHP Parser
I'm wondering if someone could give some direction on a problem I have or share their experiences. I'm wanting to create a little PHP application that will run on a local machine and use ODBC to connect to a Access database on that machine. A series of forms will interact with the database but if I understand correctly, I need some way to parse the PHP code. Is there a stand alone parser that could be used in place of a HTTP server?
View Replies !
PHP GTK Vs Every Other Stand-alone Language
It seems to me PHP-GTK has all those nifty PHP-features packed inside. I must say I am kindof a PHP-freak because te syntax and variant-types I like so much I really want to keep programming in PHP and PHP-GTK more and more. Does somebody have a different view on this? I am progamming this on a windows-machine and haven't seen any other language perform better after slamming programs together.
View Replies !
!= Code What Does It Stand For?
I googled around but couldnt find the meaning for the following code: if ($pass != $pass1) Im not sure if you'd need to see the rest of the code to explain this to me. If so just say so and I can post the entire script I found this on.
View Replies !
Stand Alone Script
Is it possible to have a script run on a client pc that does not have PHP or web server installed? The rationale here is that I am trying to script a page that will manipulate images for sizing and then ftp them to my host, and I want to keep the look and feel of the whole application. I have worked with PHP and Javascript so don’t have the skills to create this in any other languages. I have also searched to see if Javascipt would do this but no luck so far.
View Replies !
Compiling PHP To Stand Alone Executable In 64bit?
I know that there are easy ways to compile PHP into a stand alone executable in 32bit.. but does anybody know of a program that works for doing this in XP 64bit with 64bit PHP so that it will generate a 64bit executable? P.S. Yes I have searched but haven't been able to find any for 64bit it seems that most people who make software hate us 64bit users.
View Replies !
Compile Under AIX 5.1 Or 5.2 With IBM VAC?
I have tried to compile PHP 4.3.10/4.3.8/5.0.3 under AIX 5.1/5.2 with IBM's VisualAge C compiler but failed every time. It seems that I'll have to compile libxml2 to get PHP 5 going, but I can't compile libxml2 either. For PHP 4.3.x, the make always fails with some compiler error. Now, my servers are upgrading to 5.2. So, I'd really like to compile under 5.2, and I really want to compile PHP 5.0.3 with MySQL option. I wonder if anyone has succeeded in doing this? What are the tricks you used to overcome all the problems? Do I have to use gcc to compile? If so, which gcc did you use? Do you use the onr from Bull's site or from IBM?
View Replies !
Re-compile
I would like to be able to use the enable-calendar to convert dates to julian. Unfortunately everything i read says you have to compile php with enable-calendar. http://www.phpbuilder.com/manual/en/ref.calendar.php I have to admit that I am not sure how to do this. If someone knows what that article is talking about, I would love to know how to do this. I also would like to know what happens to my existing php and php.ini file. If I need to redo my changes and such.
View Replies !
Compile Php
possible to take many pages of php code and compile it into an application file wherein if you gave the packaged code to someone, they can run the PHP files but cannot access the code.
View Replies !
PHP 4.3.0 Compile Problems
I'm having trouble getting PHP 4.3.0 to compile on my RedHat 8.0 box. I compiled both MySQL and Apache (1.3.27) without problems, then came to PHP using the following configure statement: ./configure --with-mysql=/usr/local/mysql/ --with-xml --with-apxs=/usr/local/apache/bin/apxs --enable-track-vars --with-java=/usr/local/j2sdk1.4.1_01/ PHP seems to configure just fine. However, when I make, I get several errors and warnings, mostly related to libtool. (these come near the beginning) *** Warning: inter-library dependencies are not known to be supported. *** All declared inter-library dependencies are being dropped. *** Warning: libtool could not satisfy all declared inter-library *** dependencies of module libphp4. Therefore, libtool will create *** a static module, that should work as long as the dlopening *** application is linked with the -dlopen flag. (here's what it says right before it dies) ext/ctype/ctype.lo: file not recognized: File truncated collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 I previously tried to install PHP + Apache from a tutorial here that said to configure Apache first, then configure, make and make install PHP (using different configure options), and then finishing off Apache - apparently to build PHP into the Apache binary itself. I had issues with that and decided to just try and use the shared object way with PHP instead. I'm stumped - ideas, anyone?
View Replies !
Compile New Php With Gmp Problems
I am in the process of creating another apache but adding gmp --with-gmp option. I have downloaded and compiled gmp-4.0.1 (./configure, gnu make gnu make install). I have run the ./configure script for php and then copied the .libs dir into the phpdir/ext/gmp. When I run the make in php, all goes well until the make in gmp comes up and I receive the following errror: Making all in gmp gcc -I. -I/apache/apache/php-4.0.6/ext/gmp -I/apache/apache/php-4.0.6/main -I/apache/apache/php-4.0.6 -I/apache/ap e/apache_1.3.20/src/include -I/apache/apache/apache_1.3.20/src/os/unix -I/apache/apache/php-4.0.6/Zend -I/usr/local/include /apache/apache/php-4.0.6/ext/mysql/libmysql -I/oracle/home/dba/oracle/product/8.1.7/rdbms/public -I/oracle/home/dba/oracle/ duct/8.1.7/rdbms/demo -I/apache/apache/php-4.0.6/ext/xml/expat/xmltok -I/apache/apache/php-4.0.6/ext/xml/expat/xmlparse -I/ che/apache/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c gmp.c && touch gmp.lo gmp.c: In function `zend_if_gmp_setbit': gmp.c:1030: parse error before `.' gmp.c:1035: request for member `sl' in something not a structure or union gmp.c:1047: request for member `sl' in something not a structure or union *** Error exit code 1 Stop. *** Error exit code 1 Stop. Here is some more info on my environment: OS: hpux11 apache version: 1.3.20 php version: 4.0.6 gmp version: 4.0.1 Other modules installed: mod_ssl version: 2.8.4-1.3.20 openssl version: 0.9.6b ./configure options: --with-apache=/dir --with-oci8 --with-oracle --with-ndbm --with-db --with-gmp --enable-ftp .
View Replies !
How To Compile PHP With GD Support?
I am tryin to compile PHP with GD support: # cd php-4.3.11 # ./configure --with-gd=/usr/local/src/gd-2.0.33/ --with-png-dir=/usr/local/src/libpng-1.2.8/ --with-zlib-dir=/usr/local/src/zlib/ --with-jpeg-dir=/usr/local/src/jpeg-6b/ .... checking for GD support... yes checking for the location of libpng... /usr/local/src/libpng-1.2.8/ If configure fails try --with-jpeg-dir=<DIR> configure: error: libpng.(a|so) not found. why libpng.(a|so) not found ? # ls -l /usr/local/src/libpng-1.2.8/libpng.a -rw-r--r-- 1 root wheel 160448 May 31 12:48 /usr/local/src/libpng-1.2.8/libpng.a What is my mistake? Where to read about correct way for installing php + gd + libjpeg + libpng ?
View Replies !
PHP 4.3.3 Compile Error W/GD
Anyone else have this problem compiling PHP 4.3.3 from source under Linux (I'm using Slackware 9.0)? Under PHP 4.3.2 I had no compilation problems at all, but now all of the sudden, compiling with GD support gives me the list of errors below. My ./configure is: ../configure --with-pgsql=/usr/local/pgsql --with-ssl=/usr/local/ssl --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-gd --with-mcrypt=/usr/local/lib --with-java=/usr/local/java --with-apxs2=/usr/local/apache2/bin/apxs (Yes, I am using Apache 2) I have the JPEG, PNG and ZLIB libraries under /usr/lib, but I have not installed my own GD... want to use the one that comes with PHP. Again, this worked before with 4.3.2, why not this one? Errors from running 'make': ext/mysql/libmysql/my_tempnam.lo(.text+0x5b): In function `my_tempnam': : the use of `tempnam' is dangerous, better use `mkstemp' ext/gd/libgd/gd_jpeg.lo(.text+0x47): In function `fatal_jpeg_error': : undefined reference to `jpeg_destroy' ext/gd/libgd/gd_jpeg.lo(.text+0x192): In function `gdImageJpegCtx': : undefined reference to `jpeg_std_error' ext/gd/libgd/gd_jpeg.lo(.text+0x206): In function `gdImageJpegCtx': : undefined reference to `jpeg_CreateCompress' ext/gd/libgd/gd_jpeg.lo(.text+0x244): In function `gdImageJpegCtx': : undefined reference to `jpeg_set_defaults' ext/gd/libgd/gd_jpeg.lo(.text+0x261): In function `gdImageJpegCtx': : undefined reference to `jpeg_set_quality' ext/gd/libgd/gd_jpeg.lo(.text+0x27f): In function `gdImageJpegCtx': : undefined reference to `jpeg_simple_progression' ext/gd/libgd/gd_jpeg.lo(.text+0x2f9): In function `gdImageJpegCtx': : undefined reference to `jpeg_start_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x37e): In function `gdImageJpegCtx': : undefined reference to `jpeg_write_marker' ext/gd/libgd/gd_jpeg.lo(.text+0x495): In function `gdImageJpegCtx': : undefined reference to `jpeg_write_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x5d3): In function `gdImageJpegCtx': : undefined reference to `jpeg_write_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0x61b): In function `gdImageJpegCtx': : undefined reference to `jpeg_finish_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x62d): In function `gdImageJpegCtx': : undefined reference to `jpeg_destroy_compress' ext/gd/libgd/gd_jpeg.lo(.text+0x703): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_std_error' ext/gd/libgd/gd_jpeg.lo(.text+0x799): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_CreateDecompress' ext/gd/libgd/gd_jpeg.lo(.text+0x7c2): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_read_header' ext/gd/libgd/gd_jpeg.lo(.text+0x88e): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_start_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0x982): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_read_scanlines' ext/gd/libgd/gd_jpeg.lo(.text+0xa33): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_finish_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0xa5c): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_destroy_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0xa8e): In function `gdImageCreateFromJpegCtx': : undefined reference to `jpeg_destroy_decompress' ext/gd/libgd/gd_jpeg.lo(.text+0xd26): In function `jpeg_gdIOCtx_src': : undefined reference to `jpeg_resync_to_restart' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1
View Replies !
Trying To Compile With Sablotron
I am trying to compile php with sablotron and I get this error message ================================================== =================== FAILED TEST SUMMARY --------------------------------------------------------------------- xslt_set_object function [ext/xslt/tests/xslt_set_object.phpt] ================================================== =================== make: *** [test] Error 1 ++ find .. -name '*.diff' -type f -print + echo ../ext/xslt/tests/xslt_set_object.diff:: .../ext/xslt/tests/xslt_set_object.diff:: + cat ../ext/xslt/tests/xslt_set_object.diff 001- OK 001+ Warning: Sablotron error on line 1: XML parser error 3: no element found in /usr/src/redhat/BUILD/php-4.3.2/ext/xslt/tests/xslt_set_object.php on line 19 002- OK 002+ 003+ Warning: Sablotron error on line 1: XML parser error 3: no element found in /usr/src/redhat/BUILD/php-4.3.2/ext/xslt/tests/xslt_set_object.php on line 30 004+ OK 005+ OK+ exit 1 error: Bad exit status from /var/tmp/rpm-tmp.99743 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.99743 (%build) ---------------------------------------------------------------------- I googled for parts of this error message and went to this page and it looks like compile output with the same error on different versions, but it appears to be msg after msg with these errors. What is this output? Whose doing the testing? Any ideas on what the error is or is caused by?
View Replies !
Compile Ftp.so Module
Can somebody let me know where to get the ftp.so module for php? I have too much trouble building it. Also if somebody can tell me what's the easiest way to build the ftp.so extension. php version: 4.2.2 Solaris 8
View Replies !
Compile Error
whats wrong with the following code: <?php $myFile = "test.txt"; $fh = fopen($myFile, 'a'); $add="This new stuff /n"; fwrite($myFile,$add); fclose($fh); ?> When i run this it gave me the error:- Warning: fwrite(): supplied argument is not a valid stream resource
View Replies !
No Compile, No Debugger
double-opt in email address verifier and collector: someone comes to a basic form, types in their name and email. This script checks the form information for errors, makes sure it's not already in a mysql database, makes a uniquely cyphered identifier out of their email, and sends that identifier to them in a link back to the script. When they click on that link, this script grabs the relevant info, throws it in the database and welcomes them into Omerta (pretty much). Code:
View Replies !
5 Compile Problem?
I upgraded my system to mysq 5 and PHP v5.2.1 I now have a problem when fetching records in a where query. I have many existing site that where all working on my system pre upgrade Using PHP pages. This type of query comes back with data from the database SELECT * FROM store group by subcat_id having count(subcat_id)>=1 ORDER BY subcat_id ASC"); This type of query comes back with no data and no errors? SELECT * FROM store where cat_id='$cat_id' PHP.ini problem?
View Replies !
How Can I Compile Dynamic PHP Modules?
Maybe I've just missed something in the documentation, but since I can't seem to find it, I thought I'd post my question here. I have RedHat 7.3 and the PHP 4.1.2 RPM package it came with. I used to compile my own versions of Apache/PHP/OpenSSH/SSL/etc, but since it's much easier to keep my machine up to date using RPMs and the "up2date" management tool, I now tend to shy away from compiling my own applications unless I can't find what I need from RedHat. I'm now trying to add some extra functionality to PHP that RedHat didn't include with their PHP RPM. RedHat's PHP does come with a number of dynamic PHP modules, however(mysql.so, imap.so, ldap.so, etc.) I'd like to figure out how to create new ones (e.g. mcrypt). With Apache, I know I can build add webserver modules using the "apxs" tool. Is there a similar tool for PHP that will let me build new modules without having to run through an entire compilation process?
View Replies !
PHP4 = Compile + Execute ?
I heard that PHP4 compiles and then executes scripts instead of just interpreting them. is it true? if it's true, then what gain is it to us, really? every time a script is called it is probably compiled anew. i could see benefit in that, if a script is running for a long time (like a daemon on a server or something). but not otherwise.
View Replies !
Compile Time -vs- Runtime?
Just curious and I haven't really seen anything about this anywhere. Is there an explanation of the stages PHP goes through in compiling -vs- parsing a PHP script? google resulted in lots of pages about how to compile PHP itself, but couldn't find anything about the stages of php "compilation" If I do a require_once("somefile.php"); does somefile.php get loaded and parsed once for each web request? (Guess I'm wondering what PHP's equivelant of perl's 'use' is) Is there some way one could do this (psuedo code): // This would run ONLY once during (or just after) the file is parsed. // it would not run on each web request, but it's variables are usable // across multiple requests. perhaps things like $_SERVER and // $_POST/$_GET wouldn't be available (or usable) // compile_time: { $conf = parse_ini_file(); $doc = parse_xml_document(); $obj = new Expensive_Object(); // Other "expensive" things. require_once,_no_really_this_time("some_library.php"); } Now share $conf, $doc, $obj and other variables with each web request. The big question is the require_once() stuff.
View Replies !
Cannot Compile Php 5.1.6 Under Windows XP Using Cygwin
I'm trying to compile PHP v5.1.6 under Windows XP using cygwin. I get the following error when I run ./configure. Can anyone help please? $ ./configure loading cache ./config.cache checking for Cygwin environment... yes checking for mingw32 environment... no checking for egrep... grep -E checking for a sed that does not truncate output... /usr/bin/sed checking host system type... i686-pc-cygwin checking target system type... i686-pc-cygwin checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking whether ln -s works... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for re2c... no configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for bison... no checking for byacc... no checking for bison version... invalid configure: warning: bison versions supported for regeneration of the Zend/PHP pa rsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none). checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: line 3246: lex: command not found configure: error: cannot find output from lex; giving up /cygdrive/c/php-5.1.6 $
View Replies !
Compile Time Configs
I I forgot to put the php compile time ./config (in our case it's ../config mysql=/usr/local/mysql). Is there a way I can enable or set these configurations?
View Replies !
Php/mysqlclient Compile Problems.
when I try to compile php-5.2.1 it gives an error about not being able to find mysqlclient and that it isn't included with mysql anymore. I've checked on the system and indeed they do not exist. Ok, I understand that it isn't included any longer, but what do I need to install in order to get the header files? I thought I was onto something on the mysql site when i saw mention of mysqlclient and C- header files, but it ultimately took me to the download of what I had already gotten. solaris 9 php 5.2.1 mysql 5.0.33 with: "./configure --prefix=/opt/itools"
View Replies !
Oci8.so Not Found After Compile Php
i have installed oracle9i client tools on RedHat7.3 (x86 machine) and i compiled php4.1.2 & apache1.3 successfully but when i execute php script in browser, error occured: "Fatal error: Call to undefined function: ocilogon()" i found no oci8.so in the whole system. i think this is the reason why the error occured follow are my commands to compile php4 & apach1.3: (in php source path, /tmp/php-4.1.2) # /tmp/php-4.1.2/configure --prefix=/usr/local/php4 --with-oci8=/home/lok/OraHome1/ --with-apache=/tmp/apache_1.3.23/ --enable-track-vars --enable-sigchild # make # make install #cp /tmp/php-4.1.2/libs/libphp4.a /tmp/apache_1.3.23/src/modules/php4/ (in apache sourcepaht, /tmp/apache_1.3.23) #/tmp/apache_1.3.23/configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a --sysconfdir=/usr/local/apache/conf --includedir=/usr/local/apache/include --libexecdir=/usr/local/apache/libexec --htdocsdir=/var/www/html --enable-module=php4 --enable-shared=max # LIBS=-lpthread ./config.status --prefix=/usr/local/apache --enable-module=most --enable-shared=max # make # make install also, i have add these environment varable: # ORACLE_HOME="/home/lok/OraHome1" # export ORACLE_HOME # LD_LIBRARY_PATH="/home/lok/OraHome1/lib" # export LD_LIBRARY_PATH are these command not correct ? or i miss something ?
View Replies !
Attempt To Compile PHP 5.2.0 With Mysql And Gd (2.0.33)
I had an install of php without gd, this seemed to work ok. I decided I would like to use the gd package with php. I have Redhat 3.0AS, and php 5.2.0, and gd-2.0.33. the phpinfo file looks like it has gd (shows up in info page). I get a failure running one of the gd functions: Fatal error: Call to undefined function imagecreatefromjpeg() in usr/local/apache2/htdocs/thumbnail_generator.php on line 42 That function is supposed to be ok in gd. I assume that I must start all over. What directory should I be using for --with-gd=/?????? I have tried the unzipped location (gd-2.0.33) where i do the ../configure, etc - the php config fails, saying it cannot find libgd.(a|so) (which is in .libs) or at times gd.h. I have used /usr/lib as well - seems everything fails in some form. I am using apache 2.0. How can I remove php 5.2, and gd, and start over "correctly". I followed the install and readmes for both php and gd - but no luck.
View Replies !
Soalris And Php Compile Error
bash-2.03# /configure --with-apxs=/usr/local/apache/bin/apxs --with-zlib=/usr /local --with-db3=/opt/sfw --with-openssl=/usr/local/ssl/ --enable-module=so loading cache ./config.cache checking host system type... i386-pc-solaris2.8 checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking if compiler supports -R... yes checking for re2c... exit 0; checking for ranlib... : checking whether ln -s works... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking for bison... no checking for byacc... no configure: warning: You will need bison if you want to regenerate the PHP parser s. checking for flex... flex checking for yywrap in -lfl... no checking lex output file root... lex.yy checking whether yytext is a pointer... no checking for working const... yes checking flex version... 2.5.4 (ok) checking for pthreads_cflags... -pthreads checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs The output of /usr/local/apache/bin/apxs follows ../configure: /usr/local/apache/bin/apxs: not found configure: error: Aborting bash-2.03#
View Replies !
Compile/Linking Problem
So it seems that there still is an incompatibility between GD and libpng-1.2.x... fine So I installed into a dedicated directory an older version, 1.0.15 In my configure line I inserted --with-png-dir=/my/old-libpng/path Everything goes fine, and all once built [patrice@localhost php-5.0.0b1]$ ldd sapi/cli/php|grep png libpng.so.2 => /usr/lib/./libpng.so.2 (0x40350000) The command line php is indeed linked against the "old" libpng and all works like a charm, but... [patrice@localhost php-5.0.0b1]$ ldd libs/libphp5.so |grep png libpng.so.3 => /usr/lib/libpng.so.3 (0x403bc000) The Apache module (--with-apxs) is linked against my system libpng, so any script that calls ImageCreateFromPng() causes apache to SegFault :-((( How do I tell apxs to link according to the configure script ?
View Replies !
[4.4.1] Compile Libphp4.so From Src W/o Apache Src?
I was running php 4.1.2 that came with my Linux distro a while back (RH7.3 RPM, Kernel 2.4.20-20.7) and I wanted a newer version so I download the src tarball from the web and compiled it and it looks like that well, as I have the new one in /usr/local/bin (the old binary is still in /usr/bin until I have the new one working with my apache) : $ php -v PHP 4.4.1 (cgi) (built: Dec 13 2005 20:32:47) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies My question is, how can I compile a libphp4.so for use with my apache. My apache is of a special configuration, so recompiling is not an option (it was made available as an RPM when I obtained it some time ago, so I don't have the source.) Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.1.2 mod_perl/1.26 FrontPage/5.0.2.2510 configured The INSTALL file that came with the tarball wasn't very helpful in this regard. It seems to make sense to me that one should be able to simply compile the libphp4.so separately and add it to the modules for apache.
View Replies !
How To Compile Php With Mysql And Fast-cgi?
I think I have php 4.4, mysql 5 and fast-cgi from curl -O http://fastcgi.com/dist/fcgi-2.4.0.tar.gz tar xvzf fcgi-2.4.0.tar.gz Here are the instructions I am trying to follow. Compile php as a fast-cgi binary The main thing here is the following configure options. You can add whatever else you like to your php binary but these are needed for fast-cgi support. $ ./configure --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect I think I have php from a package, and it is working with mysql. If I compile php, I think I need to compile it with mysql also. I am afraid that if I do a compile, I will mess things up. I don't know if I need to do something in the config file also
View Replies !
Compile PHP4 With SNMP
I tried to compile my php 4.3.9 with snmp support but it won't work. Compiling Net-SNMP always worked good --> I tried the 5.2rc4 and also the older version 5.1.2 successfully so far. I use Fedora Core 2. Here's what I already tried with php (Every configure options version listed below was tried with both of the two snmp versions): ../configure --with-openssl --with-apxs=/usr/local/apache/1.3.31/bin/apxs --w ith-mysql=/usr/local/mysql/4.0.20/ --with-zlib --with-gd --enable-versioning --enable-track-vars=yes --enable-url-includes --enable-sysvshm=yes --enable -sysvsem=Yes --with-config-file-path=/etc --with-ldap --with-snmp && make && make install I also tried without openssl and I tried with: --disable-cli --disable-pear (using these php would compile correctly but trying to restart apache wouldn't work) Here's my error message: ...... Build complete. (It is safe to ignore warnings about tempnam and tmpnam). Installing PHP SAPI module: apache [activating module `php4' in /usr/local/apache/1.3.31/conf/httpd.conf] cp libs/libphp4.so /usr/local/apache/1.3.31/libexec/libphp4.so chmod 755 /usr/local/apache/1.3.31/libexec/libphp4.so cp /usr/local/apache/1.3.31/conf/httpd.conf /usr/local/apache/1.3.31/conf/httpd.conf.bak cp /usr/local/apache/1.3.31/conf/httpd.conf.new /usr/local/apache/1.3.31/conf/httpd.conf rm /usr/local/apache/1.3.31/conf/httpd.conf.new Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PEAR environment: /usr/local/lib/php/ /root/php-4.3.9/sapi/cli/php: error while loading shared libraries: /root/php-4.3.9/sapi/cli/php: undefined symbol: usmAES192PrivProtocol make[1]: *** [install-pear-installer] Error 127 make: *** [install-pear] Error 2 ........
View Replies !
Compile Certain .php Pages So They Cannot Be Modified
I have started building a php mysql internal application which I may like on sell some day. I was wondering if it was possilbe to compile certain .php pages so they cannot be modified, kinda like what you can do with other languages such as java and c when you compile the code.
View Replies !
Compile Time And Runtime
In programs like C, I have to explicity compile the code (by clicking on a button or using a Unix command). Then I have to explicity run the code. So it's a two-steps process. In php, how does that work? When a client (browser) requests a webpage with an extension of .php from a web server. the server passes that page to a php module, which then does the work accordingly and translates the php code into html to display on the client (browser). Does that mean compile time and runtime take place at the same time in the php module? Then when a client (browser) requests that same webpage each time, the php module will recompile and run the code again?
View Replies !
Compile Php With Java Support
Does anybody have experience with compiling php with java support on Mac OS X? I called './configure --with-java' and then 'sudo make install'. Problem is, compiling stops with an error message, because it can't find some files necessary for java. I know that you can call configure with the option --with-java='jdk_install_directory'. Maybe I gave it the wrong directory can anybody tell me, which one to use for Mac OS X? However, it seems to me (I don't have much experience) that the directory structure of the JDK on Mac OS X is different from other platforms (different from how the Makefile expects it to be).
View Replies !
How To Compile PHP For Windows. '--with-openssl' ?
according to this website: http://www.php.net/manual/en/ref.openssl.php "To use PHP's OpenSSL support you must also compile PHP --with-openssl[=DIR]." What does that mean? On Windows how do I compile PHP '--with-openssl[=DIR]' and what goes in where it says '[=DIR]?'
View Replies !
Compile With Https, Ftps, Tls, Ssl
I was wondering how do go about compiling PHP so that I can have the secure PHP streams and Socket Transports as below: Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps, zip Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls Right now, my compiled PHP only has the plain text ones: Registered PHP Streams php, file, http, ftp, compress.zlib Registered Stream Socket Transports tcp, udp, unix, udg Was compiled with these commmands: ./configure --prefix=/wwwroot/php --with-apxs22=/wwwroot/bin/apxs --with-config-file-path=/wwwroot/php --with-mysql --with-mysql-so ck=/var/lib/mysql/mysql.sock --with-dbase --enable-ftp --enable-force-cgi-redire ct --with-freetype-dir=/usr/lib --enable-gd-native-ttf --enable-ge-imgstrttf --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib --with-gd --with-sybas e=/opt/sybase/OCS-12_5 --with-ldap --with-mhash --enable-magic-quotes --enable-i map --with-xml --enable-iconv
View Replies !
Php5 Compile Error
i used this configuration when i installed php-5.0.5 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql but when i compiled with make command the result is: Code:
View Replies !
Compile Pear & SOAP Into Php 4.3.10?
what we need to compile Pear and SOAP with php 4.3.x? We're trying to get a cart working with the Paypal Pro API, and have hit a brick wall... php 5 doesn't work with the cart, but still requires Pear and SOAP to be compiled with a 4.x ver of php...
View Replies !
|