Building PHP 4.2.x
I was able to build php 4.0.*, (apache 1.3.26, solaris 8) and now want to install the newest version. Here's my issue, i'm runing confgure with:
configure --with-apxs=/opt/apache/bin/apxs
it seems to make it through this part fine, then i run make and my output is below. I don't want mysql support or anything. The same steps work when i do it with php 4.0.* though, so i'm confused. Code:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Building PHP 4.3.3 With GD 2.0.11
All libraries were installed (precompiled) This is FreeBSD 5.1 installed zlib, installed jpeg and png libraries (in default directories) GD 2.0.11 source is in /usr/gd-2.0.11 (compiled and installed flawlesly) I configured PHP with the following: ../configure --with-gd=/usr/gd-2.0.11 --with-freetype-dir=/usr --enable-g d-native-ttf --enable-gd-imgstrttf --with-jpeg-dir=/usr --enable-png- dir=/usr -- with-zlib --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs When configure came to reading jpeg header, it gave me an error about libjpeg.a I need GD, because I want to use coppermine (picture gallery) on my "future" web site. Contents of config.log file (from here to end of message): This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:1618: checking host system type configure:1706: checking for gcc configure:1819: checking whether the C compiler (gcc ) works configure:1835: gcc -o conftest conftest.c 1>&5 configure:1861: checking whether the C compiler (gcc ) is a cross-compiler configure:1866: checking whether we are using GNU C configure:1875: gcc -E conftest.c configure:1894: checking whether gcc accepts -g configure:1927: checking whether gcc and cc understand -c and -o together configure:1942: gcc -c conftest.c -o conftest.o 1>&5 configure:1943: gcc -c conftest.c -o conftest.o 1>&5 configure:1948: cc -c conftest.c 1>&5 configure:1950: cc -c conftest.c -o conftest.o 1>&5 configure:1951: cc -c conftest.c -o conftest.o 1>&5 configure:1978: checking how to run the C preprocessor configure:1999: gcc -E conftest.c >/dev/null 2>conftest.out configure:2059: checking for AIX configure:2086: checking if compiler supports -R configure:2101: gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5 configure:2159: checking for ranlib configure:2187: checking whether ln -s works configure:2212: checking for gawk configure:2212: checking for mawk configure:2212: checking for nawk configure:2246: checking for bison configure:2246: checking for byacc configure:2290: checking for flex configure:2324: checking for yywrap in -lfl configure:2343: gcc -o conftest -g -O2 conftest.c -lfl 1>&5 configure:2367: checking lex output file root configure:2388: checking whether yytext is a pointer configure:2407: gcc -o conftest -g -O2 conftest.c -lfl 1>&5 configure:2431: checking for working const configure:2485: gcc -c -g -O2 conftest.c 1>&5 configure:2510: checking flex version configure:2650: gcc -o conftest -g -O2 conftest.c 1>&5 /var/tmp//ccQc5UBs.o: In function `main': /usr/php-4.3.3/configure:2646: undefined reference to `pthread_create' configure: failed program was: #line 2632 "configure"...
Building Url From Variable
I am trying to do the following: I want to assign a string to a variable then use that variable in an HREF as follows: <html> <head> <title>Test Doc</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php $var = "123.htm"; ?> The variable $var has a value of:...
Building Diary
I am building a month view of a diary and am enlisting the help of some previously created script. Although I understand how the calendar1.class creates the table, I am not being clever today and stuck on how to get the data into each day with an event/appointment. The diary entrys need to be identified by thier cal_id in a SQL table and there is a start and end time to each entry. In each day I need to show the summary of the event and the start time and end time. Can you point me in the right direction? Here is the calendar class: PHP Code:
Building XML From MySQL
I'm getting 'Call to undefined function: new_xmldoc()' when I try the following script. Does this mean that new_xmldoc is not a valid function. I could not find it in the manual. Here is the script: PHP Code:
Building A Class
i'm building a class for a upload form and i want to know whats the best way to handle error in a class, like if someone enters a bad email or a bad password whats the best way to stop the class from keep going. Code:
Creating A Building Map
I am looking to impliment a digital maping system similar to google maps where I can take floorplans of my company and map assets to certain locations and search for them after. like google-maps meets an office people-finder so that when you are looking for printer 23-541-a you can just put it in the interface and it will bring up the map of where the asset is in the company.
Building An 'if' Condition On The Fly.
I would like to create the condition of the 'if' function on the fly, meaning : $condition="$a > $b"; // this variable is a string that contain the 'if' condition .... $a=1; $b=1; if ($condition) { ... } I hope you see what I mean here... In fact, I try to build the condition of the 'if' function so at the end it 'virtually' looks like this: if ($a > $b){ ... } Of course, here that does not work because $a=$b. Code:
Building A Dynamic If Statement
I am trying to build a dymanic "if" statement for the purpose of building a dynamic evaluation criteria to run agains a set of text data. If I were working with MySQL, it would look like: $q ="Select * From table"; $q .= " WHERE id > 0"; $query = mysql_query($q); However, since I am buiding something that looks like: $q = "($X >= $min) && ($X <= $max)"; if ($y != ''){ $q .= " ($Z == $y"; } $q .= ")"; if ($q){ do stuff } Problem is that I know that the "if" is only evaluating whether or not $q is true. I need an alternative to building the dynamic if based of the search criteria the user enters (there are 7 options).
Building A Multi-pages RTF Doc
I'm retrieving datas from the DB (i.e. name, first name and address) and I want to generate standard pages using a RTF document I'v made. To be more simple, I'm trying to make a mailmerge in PHP. I have a template called template.rtf. I open it, store the content into a variable, make the replacements and generate a RTF file that the user can download. This is OK if I have only one recipient. But as I have 10 recipients in my DB, I'd like to generate a 10 pages RTF file, and then force the download of the generated file (the user would be able to save or print the new file). How to generate a 10 pages rtf using a single page rtf template?
CLI Doesn't Install When Building From Source
I compiled 5.2 from source using the usual procedure and noticed that only the cgi binary was copied to the /usr/bin directory. The CLI binary was compiled but not copied over as I had expected. I manually copied it to the /usr/bin directory as "php-cli" and everything worked great.
Building GET Query Strings
I am currently building a sports web application and have run into a design question. In order to create a new coach record, there are two pieces of information that are needed: 1) username 2) team_id It seems to me that the best way to do this is to break the problem into two parts. First, search for the username and append that to the URL: http://www.mysite.com?username=john Next, I would present the user with another search box to search for a team and then add '&team_id=1' to the GET url. The final URL should look something like http://www.mysite.com?username=john...action=addcoach Does anyone know of a good example out there for doing this in a methodical and elegant fashion?
Building An Array Of Files
I'm working on a function to map a php project that's gotten a little unwieldly. I'd like to have a reference of all files like the output of the unix tree command, like this: .. |-- index.php | |-- menu.php | |-- content.php | |-- admin_page.php | | |-- admin_function1.php.inc | | |-- admin_function2.php.inc | | |-- admin_function3.php.inc | | `-- admin_subpage.php | | |-- admin_subfunction1.php.inc | | |-- admin_subfunction1.php.inc | | `-- admin_subfunction1.php.inc | `-- user_page.php | |-- user_function1.php.inc | |-- user_function2.php.inc | |-- user_function3.php.inc | `-- user_subpage.php | |-- user_subfunction1.php.inc | |-- user_subfunction1.php.inc | `-- user_subfunction1.php.inc | |-- orphan_page.php `-- deprecated_page.php I have a function that can create such text output ( or close enough ) from an array structure like this: Array ( [0] =./index.php [1] =Array ( [0] =./clients.php [1] =Array ( [0] =./login_function.inc [1] =./client.php [2] =./client_new.php [3] =./client_edit.php ) [2] =./inventory.php [3] =Array ( [0] =./login_function.inc [1] =./inventory_item_add.php [2] =./inventory_item_remove.php ) [4] =./daily_report.php [5] =./weekly_report.php [6] =./monthly_report.php [7] =./catalog.php [8] =Array ( [0] =./login_function.inc [1] =./catalog_item_add.php [2] =./catalog_item_remove.php ) [9] =./orders.php [10] =Array ( [0] =./login_function.inc [1] =./view_order.php [2] =./order_new.php [3] =./order_edit.php ) [11] =./invoices.php [12] =Array ( [0] =./login_function.inc [1] =./view_invoice.php [2] =./invoice_new.php [3] =./invoice_edit.php [4] =./invoice_print.php [5] =./invoice_email.php ) ) [2] =./clients_old.php [3] =./old_inventory.php.....
Building A PHP Site Test Bot
I run quite a large website, and we are going to need to migrate to a new server soon. I have a few hundred PHP pages. The problem is testing them, after i have moved the files to the new server. I can try my best to set up the server in the same way. But the server was first configured a long time ago. Is there a way for me, using cURL and Regex to maybe get php to follow all links on my site, and Detect 404 errors and PHP errors. Im not too good with cURL yet, though learning. And regular expressions im not great with either.
Building Dynamic Forms
I am trying to build a form that allows the user to choose the options from a large zipcode database that we have. What we would like to do is for the user to enter in the State, City, and Zip code based on data going to and coming back from the database. Here is the scenario: 1. User selects the State from which they are in from a form dropdown menu. (A query from the zip code database gets done and brings up the cities and fills in the next dropdown menu dynamically) 2. Then the user selects a City (A query from the zip code database gets done and brings up the zip codes from the city entered above for the next dropdown menu dynamically) 3. The user select which Zip Code they live in. PROBLEM: I want the form dropdown menus to be generated automatically when the user selects the option from the previous menu. I know how to do the above if the users go from form to form filling out information. But in this case, it would be much simplier to just have the choices be generated dynamically. I know that I will need to do an OnChange command for the menu, but alas my Javascript Programming isn't up to par.
Building Libpdf_php.so For FreeBSD
I wanted to use the pdflib library for creating pdf on the fly. My web server is running onto freebsd4.2+apache1.13.12+php 4.0.4pl1. I copied the binary library [libpdf-php.so] supplied by pdflib for freebsd and "installed" into php.ini using the extension directive. I create a simple script and it works fine. As stated by pdflib this is a demo version. So I decided to compile myself the pdflib library. This kind of operation has no support by pdflib staff, so this is why i ask to you. I see that inside /usr/local/lib I have a file libpdf.so, it's size is about 1.3 MB. So i replaced the old .so demo with the new one compiled but now the script tell me that pdf_new function is not supported. This is mean of course that i'm using a bad file. i do not want to compile pdflib into php because my web provider gives to me php as a module for apache,but i simply (hope easily) want to build the pdflib_php.so for freebsd from sources.
Building A Function For Ereg_replacements
for our upcoming zine we are naturally filtering our writers' submissions so that their input doesnt meddle with the coding. i've done all the ereg_replace calls for what we want to substitute certain formatting options with. such as bold, urls and Code:
Building An Online Poll
how I should go about starting a web poll script. The purpose of the web poll is sort of like a "Class Poll" for my school. Which pretty much means that there will be a number of categories such as "Shyest" "Friendliest" "Most Athletic" and so on. Then each category will have a drop box with the names of the students in each class 80 or so names. A student will come to the poll browse the categories then vote for a person by selecting their name from the drop down box, once they are completed the click the submit button. The results will be based on has the most votes for that category will be the winner. Now I am unsure how to go about the infrastucture of the script do need to use a database or can this be acomplished with arrays.
Building Php Extensions With Cygwin
Has anybody managed to build a Php Extension (Loadable Module) under Cygwin. I tried to build the example first_module found on http://www.zend.com/zendapi. It compiles and works well under linux. Under windows with Apache 2.0.48 or 1.3.29, I managed to compile it using cygwin compiler but I have the following message : Warning: dl(): Unable to load dynamic library 'c:phpextensionsfirst_module.dll (of course, the file is located in the good path) I only found tutorials using Visual Studio so any experience feedback about a similar problem would prove to be very usefull.
Building A Dynamic Query
I'm having a problem with this script. I want the user to be able to define some options before submintting a form and displaying the results. This is the script that render the form: PHP Code:
Building PHP With Mysql And Mysqli
I am trying to build PHP 5.0.4 with both Mysql and mysqli and I'm not having any luck. It keeps barfing on the libraries. How do I build it such that I can enable both. I know it can be done, but am not sure how.
Building An Array From A Database
Just a quick questions. I'm retrieving two fields from a database one being "id" and the other "name". I am currently using this to load the results $i=0; while($row = $db->fetchArray($results)) { nameArray[$i] = $row; $i++; Which fetches the results by Association and gives me these results: Array ( [0] => Array ( [id] => id1 [name] => FirstName ) [1] => Array ( [id] => id2 [name] => SecondName ) ) is there some way to modify the code so I get this result: Array ( [id1] => FirstName [id2] => SecondName ) It seeem like it should be possible but I just can't seem to work it out.
Building Php Extensions With Cygwin
Has anybody managed to build a Php Extension (Loadable Module) under Cygwin. I tried to build the example first_module found on http://www.zend.com/zendapi. It compiles and works well under linux. Under windows with Apache 2.0.48, I managed to compile it using cygwin compiler but I have the following message : Warning: dl(): Unable to load dynamic library 'c:phpextensionsfirst_module.dll (of course, the file is located in the good path) I only found tutorials using Visual Studio so any experience feedback about a similar problem would prove to be very usefull.
Building Table By Column Rather Than By Row
I'm currently looking for a way to populate some html tables of varying lenghts and widths, pulling the data from arrays. I want to achieve this with a function in order to make this as dynamic as possible. example: function build_table($data){ ... } $data would be an array containing a varying number of sub-arrays, the first array would populate the first row (column headings) and each subsequent array would be the data for each column rather than each row. Code:
Building A String In A For Loop
When adding strings together I have read that the code is: $msg = " blarb"; $msg .= "blarb"; // with a dot OK, so can someone help me in understanding how this can be achieved with a for loop. So far I have: for($cnt=0;$cnt<$max;$cnt++) { $invoice_msg = "$orderline[$cnt] "; } obviously, the loop keeps replacing the contents of the variable.
Building Thumbnail Page (mysql)
I need some help (php rookie) to build a thumbnail page using php. I'v a mysql database containing links to the original image files. No thumbnails created so far. It would be nice when the thumbnail contains a link to the original file.
Errors Building PHP4.3.8 With MySql
I'm having a problem compiling PHP 4.3.8 with MySQL standard 4.0.20. There errors are: ext/mysql/php_mysql.o: In function `zif_mysql_create_db': /download/php-4.3.8/ext/mysql/php_mysql.c:1160: undefined reference to `mysql_create_db' ext/mysql/php_mysql.o: In function `zif_mysql_drop_db': /download/php-4.3.8/ext/mysql/php_mysql.c:1202: undefined reference to `mysql_drop_db' I've looked through usenet and found some other similar problems, but none of the solutions (i.e. duplicate mysql.h files) seems to be my problem. The config paramater is --with-mysql=/usr/local/mysql which is a symlink to the mysql 4.0.20 build directory. Does anyone have an idea about this?
Building Queries With Session Variables
I'm quite new to PHP so apologies if this is a really simple problem. I'm using a session variable to store a userID after login and trying to build a query using this variable. I have session_start() at the top of each page and have registered the variable like so ($username is an e-mail address taken from some user input)... $user=$username; session_register("user"); By echoing it on each page I can see that the $user session variable is correctly passed through several pages (where it doesn't get used), but when I come to actually use it to build a query using the following line of code... $getmovlist="SELECT movTitle, movYear FROM movie WHERE movID=(SELECT movID FROM fMovie WHERE uID='" .$user ."')"; .... the query which is constructed is... SELECT movTitle, movYear FROM movie WHERE movID=(SELECT movID FROM fMovie WHERE uID='cxi03u') which returns nothing as the end of the email address (@cs.nott.ac.uk) has been cut off. If I echo the variable before inserting it into the query it outputs the variable correctly (cxi03u@cs.nott.ac.uk) alongside the incorrect query, but then if I refresh the page the value of the variable has changed to cxi03u.
Building Variable Names Automatically.
I have written a script that will go through a directory and find certain files that are sorted in categories. The name field in the form will be generated with a while loop where the name will look like: name11 name12 name13 name21 name22. and so on. Now I want to retrieve these values and store them into the database in the script where they are passed to. How do I put this into a while loop when I only know the $name part. The maximum value of the other two are passed along, but I do not know how to put it together as one variable. If I try $name$num1$num2 it won't work aswell as putting into quotations. I can see why it doesn't work, but I can't come up with a solution for it. basically I want to build $name11 , $name12 , $name21 out of what I have and then I can retrieve it. Let me know if you don't understand what I tried to explain and I will clarify it for you. The directory can contain up to 500 files.
Building & Object Oriented Bible.
Here is the algorithm I am planning. 1) Sort all of the words in the old testament alphabetically. 2) Sort all of the words in the new testament alphabetically backwards. 3)Use the two new books as consistent keys to unlock the third book, which is complete but inconsistent. 4) We create a fourth book that references the first 3, and looks at the first 2 ordered, alphabetic sets, as being mathematically consistent, and looks at the third book as being a complete set of the other two books. So because the fourth book keeps everything together in an object oriented set by itself, it can be complete and consistent without letting the objects it contains contradict themselves.
Building Portable Server Addresses
I'd like to build – with PHP – a background-image url on a server (Apache) (url itself or a full directory name). I'd like to use a portable mechanism, I mean a PHP script should work in Windows, Unix and Linux. In Windows I use: ... <style type="text/css"> ..a_class { <?php $S_1 = getcwd()."/images/image_1.jpg"; //BACKGROUND PICTURE echo "background-image: url($S_1);"; ?> ....
Building A BODY Report From A FORM
I have the script and majority of script put. I have few last touch ups to do. I created this form, where it gets the input email and content from the user..and then tries to send that info to the company and then another email to the user confirming that the email was sent to company. I'm stuck on creating a body for the email that will be sent to the company with the problem and body for the user as confirmation. Here is my coding. Any suggestions would be helpful. PHP Code:
Building PHP 5 Beta 3 -- Missing Libphp5.so
I am trying to build PHP 5, beta 3 on RedHat 9. It does not create the libphp5.so module that I want apache to load. I tried it with a configure line derived from the phpinfo() on the stock php that comes with RH 9. Then I tried a number of variations on that, and a simple ./configure. Then I got the apache source and configured and compiled that, and used the new apxs instead of the one that came with RedHat. It still doesn't make a libphp5.so file. Has anyone else successfully compiled PHP 5 beta 3 on RedHat 9 ?
Building Multi Dimensional Array
I am trying to build a multi dimensional array from an unsorted array. I have an array made up of the lines in a text file, each line is a comma seperated set of fields. The first two fields are the lines id and it's parents id; eg Line ID, Parent ID, Data 1, 1 , one 2, 2, two 3, 3, three 4, 1, four 5, 4, five 6, 1, six 7, 2, seven I am trying to build a multi dimensional array so that the final array would look like; -- one ---- four ------ five ---- six -- two ---- seven
Problem Building Php 4.4.6 And Apache 1.3.37 On RHEL 4
Trying to build php 4.4.6 and apache 1.3.37 on RHEL 4. Each of them builds and installs okay, but when we start apache we get: Syntax error on line 238 of /usr/local/etc/httpd/conf/httpd.conf: API module structure `php4_module' in file /usr/local/etc/httpd/libexec/libphp4.so is garbled - perhaps this is not an Apache module DSO? I've checked this out, got some hint that we need to use the apxs that came with RedHat, not the one built in the Apache distribution? RedHat does have an http-devel package which includes apxs but that is for Apache 2.x Last time we did this on RHEL 4 is was Apache 1.3.34 and php 4.4.1 and it went fine, we are using the same procedures. Not sure if some RHEL 4 libraries changed? Has anyone been able to build that combination? Below are some excerpts on what we are using for configure. For apache: ../configure --with-layout=Apache --prefix=/usr/local/etc/httpd --enable-suexec .... some deleted... --disable-module=asis --enable-shared=max --enable-rule=SHARED_CORE --enable-module=so For php: CPPFLAGS="-DLINUX=22 -DEAPI" ../configure --enable-static --disable-shared --with-config-file-path=/usr/local/etc/httpd/conf --with-apxs=/usr/local/etc/httpd/bin/apxs .... some deleted. --enable-mbstring=all --with-mhash=/export/tools/apache/php/ext/mhash
Php Syntax In Building A List Of Numbers
i'm trying to build output that will get used to build a file, containing groups of numbers seperated by commas, with each group seperated by a space. Confused ? It should look like this. 0,30 9,12,17 1,2,3,4,5 * * that's right, it's going to be a cron file eventually. it's going pretty well except for.... this is the segment that will build one clump of numbers - the 'hours' group of the line in the file. this code is the submitted to by a form containing a number of fields called 'cbHour[]' PHP Code:
Building Required Field Sets.
I have been writing Perl for quite a long time, and am new to PHP, most of my questions are going to be about functionals while I transition between the languages. I am curious about building required field check routines, Naturally I can swing in the ereg_ functions of PHP. Anyone have pointers on how they approach making sure the user actually fills in the blanks for fields that are "NOT NULL" in the mysql database? And lastly, what's the best approach of returning the user back to their form with the "un-submitted" data still in the fields?
Building PHP With Mysql Support On CentOS
php with mysql support on CentOS. Have installed MySql and that works okay. I have downloaded the latest version of php and tried to build it but I keep getting errors about missing function mysql_connect(). This appears to be caused by not having extensions=mysql in the php.ini file. However when I build php it does not make a mysql.so file, where does this come from? I have tried using the configure --with-mysql but it still does not generate it. I have managed to get it from another distribution but it does not work correctly due to incorrect versions of shared libraries. How do you build the mysql.so file?
Extracting Database And Building A Table
I have a mySql database with tblDiary DateEmployeeClient 1/1/04SmithBloggs 2/1/04JonesUnited 2/1/04SmithCentral .....etc tblEmployee NumberName 1Smith 2Jones ....etc Thing is I need to get it to display HTML in a date table like this: MondayTuesdayWednesday...etc 1/1/042/1/043/1/04 SmithBloggsCentral_____ Jones______United_____ ....etc and if the user clicks on say Bloggs it takes them to the booking so it can be amended or if they click on _____ it sets up a new entry in tblDiary. I will be using tblDiary.Data and tblDiary.Employee as a compound primary key.
Issue With Building PHP 5.2.2 From Source On Windows XP
I need to build PHP from source with the pdo_ibm extension and I am having an issue with it. Firstly, I am using Visual Studio .NET 2003 and I am building PHP from source through the Visual Studio Command Prompt. When I get to the nmake step, it gets through everything until it hits the zend_language_scanner.l file. Then I get these errors: zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro redefinition c:workphp-5.2.2endzend_language_scanner.c(12) : see previous defini tion of 'yyleng' zend_language_scanner.l(25) : warning C4005: 'yytext' : macro redefinition c:workphp-5.2.2endzend_language_scanner.c(16) : see previous defini tion of 'yytext' zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro redefinition zend_language_scanner.c(289) : see previous definition of 'yytext_ptr' zend_language_scanner.l(27) : warning C4005: 'yyin' : macro redefinition c:workphp-5.2.2endzend_language_scanner.c(11) : see previous defini tion of 'yyin' zend_language_scanner.l(28) : warning C4005: 'yyout' : macro redefinition c:workphp-5.2.2endzend_language_scanner.c(14) : see previous defini tion of 'yyout' zend_language_scanner.c(3607) : warning C4133: '=' : incompatible types - from ' FILE *' to 'zend_file_handle *' zend_language_scanner.c(3610) : warning C4133: '=' : incompatible types - from ' FILE *' to 'zend_file_handle *' zend_language_scanner.c(5309) : warning C4133: '=' : incompatible types - from ' zend_file_handle *' to 'FILE *' zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared identifier zend_language_scanner.c(5522) : warning C4133: 'function' : incompatible types - from 'zend_file_handle *' to 'FILE *' zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member of '_zend _file_handle' c:workphp-5.2.2endzend_stream.h(40) : see declaration of '_zend_fil e_handle' zend_language_scanner.c(5522) : warning C4133: 'function' : incompatible types - from 'zend_file_handle *' to 'FILE *' zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member of '_zend _file_handle' c:workphp-5.2.2endzend_stream.h(40) : see declaration of '_zend_fil e_handle' zend_language_scanner.c(5794) : warning C4133: '=' : incompatible types - from ' FILE *' to 'zend_file_handle *' NMAKE : fatal error U1077: '"cl.exe"' : return code Ɔx2' Stop. If you have any suggestions, I would very much appreciate it. The only option for me right now is to build it from source. If anyone knows that it cannot be done using the Visual Studio .NET 2003 Command Prompt, please let me know. It is my understanding that it can be built using this environment but you never know. Thanks in advance for any help you all can provide. For reference, I am going by the instructions listed here: http://us2.php.net/manual/en/instal....build ing.new and I am using this command to configure the configure.js file: cscript configure.js --with-extra-includes=c:win32buildinclude; -- with-extra-libs=c:win32buildlib; --enable-debug --disable-cgi -- enable-cli --with-pdo-ibm="C:SQLLIB",shared
Building Php From Source, Pear Doesn't Install Even When Told To
usinng php-4.3.4 using this for my configure script; ../configure --with-pear=/usr/local/lib/pear --with-mysql --with-apxs=/usr/sb in/apxs --enable-track-vars --with-mysql-sock=/tmp/mysql.sock then make; make install output says it installed pear: [root @ silence ] : make install Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PHP SAPI module: apache [activating module `php4' in /var/www/conf/httpd.conf] cp libs/libphp4.so /usr/lib/apache/modules/libphp4.so chmod 755 /usr/lib/apache/modules/libphp4.so cp /var/www/conf/httpd.conf /var/www/conf/httpd.conf.bak cp /var/www/conf/httpd.conf.new /var/www/conf/httpd.conf rm /var/www/conf/httpd.conf.new Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ Installing PEAR environment: /usr/local/lib/pear/ Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/ program: phpize program: php-config program: phpextdist but all it does is create the directory /usr/local/lib/pear. nothing get's put there.
Building Array Of Difft Results For Return
I have 2 functions that I want to call from a subroutine, and then return their results; one result is an array, the other will be an array of arrays. The first will be the information about a product, $product, with values like $product['title'], product['id'], etc. The second will be an array of arrays, each line of which contains information about an element of the product. I.e., $item[0]['title'], $item[2]['value'], etc. How would I best combine these so I can RETURN the total thing from the function, and then how would I refer to the parts in the calling code? For example, if I said Code:
Text Relocation Remains - Error Building PHP 5.1.2
I'm having the exact same problem as reported in Bug ID #'s 33476, 36305, 36020, and 34516. PHP 5.1.1 and 5.1.2 won't link against libmysqlclient.a. Environment details: Sun V440 Solaris 9 GCC 3.4.2 libtool 1.5.22 ld 2.14 Apache 2.2.0 MySQL 5.0.18 The error shown is: Text relocation remains referenced against symbol offset in file <unknown> 0x598 /mydir/usr/local/mysql-5.0.18/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x59c /mydir/usr/local/mysql-5.0.18/lib/mysql/libmysqlclient.a(libmysql.o) <unknown> 0x5a0 /mydir/usr/local/mysql-5.0.18/lib/mysql/libmysqlclient.a(libmysql.o) .... MySQL is 5.0.18 and built on same host. Configure parameters for building MySQL are: CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer -fPIC" CXX=gcc CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -fPIC" ../configure --prefix=/mydir/usr/local/mysql-5.0.18 --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-assembler --with-named-curses-libs=-lcurses --enable-assembler --with-gnu-ld --with-openssl=/mydir/usr/local/openssl-0.9.8a --disable-shared MySQL has been installed, and is working properly. PHP 5.0.3 has been built and installed successfully using the mysql libs. The problem is in trying to build PHP 5.1.1 or 5.1.12. Both give the text relocation error. The configure parameters for PHP are: CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer -fPIC" CXX=gcc CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -fPIC" ../configure --prefix=/mydir/usr/local/php-5.1.2 --enable-libgcc --enable-soap --with-pear --with-zlib --with-zlib-dir=/mydir/usr/local/zlib-1.2.3 --with-bz2 --with-libxml-dir=/mydir/usr/local --with-apxs2=/mydir/usr/local/apache-2.2.0/bin/apxs --with-openssl=/mydir/usr/local/openssl-0.9.8a --with-openssl-dir=/mydir/usr/local/openssl-0.9.8a --with-pic --with-mysqli=/mydir/usr/local/bin/mysql_config --with-mysql=/mydir/usr/local --with-mysql-sock=/tmp/mysql.sock --with-gnu-ld --disable-shared I've played with the pic, gnu-ld, and shared configure parameters but they still give the same error. The only way I've successfully built PHP 5.1.12 is by removing the MySQL entries. Can anyone tell me what I need to do to build PHP 5.1.12 with MySQL? I don't know why the reported bugs were all marked as bogus. Seems to me that it's a common issue, and I don't believe it's a MySQL bug, since PHP 5.0.3 builds fine with the very same MySQL libs.
PHP Tutorial For Building User-login Sites
I'm looking for a PHP tutorial that specializes in how to build sites that are based around user logins. i.e. the user logs in on the front page, and are taken to a main login page where fields on the page are populated with values from some server-side database. Ideally, there would be a server-side "user" database table, with fields such as "age", so that you could insert a short tag in the PHP source like: Your age is: <?php [something goes here] ?> and the "age" value from the user table would be interpolated, such that the "[something goes here]" in the example above would be something short like "user.age", and not something clunky like an entire SQL query statement. (Preferably the database lookup of the user's record would be done just once per page load, or even once per user login, so that it wouldn't require a separate database query to populate every value on the page.) Also, ideally, a way to do queries against other tables in the server-side database, so you could have something in the page source like: Your ordered items are: <?php [whatever goes here] ?> which would query against another MySQL table like "orders" for orders whose user_id field matched the "ID" field of the user in your "user" table, and display the results in a table format according to some specified template. Again, it would be elegant if the stuff in "[whatever goes here]" could be brief (the bare minimum you'd need to specify would be the "orders" table and the name of the template that controls the formatting of the results), instead of having to be an entire SQL query. Can PHP do this? The first few sites that I found when searching for "PHP tutorial": http://www.php.net/tut.php http://hotwired.lycos.com/webmonkey.../tutorial4.html http://www.gimpster.com/wiki/PhpTutorial didn't talk much about building a user-login site like the one I'm describing. Is there a tutorial which specializes in how to build that kind of site with PHP?
Building A Web-based Ajax POP3 Client
Once again, DevArticles is back with a new project that I've seen many people ask for as a way to keep on top of their email no matter where they are - an Ajax-enabled POP3 client. This article is the first of a three part series to create a simple app that can grab the messages from your mail server. As you may have guessed, in this article I'll make my contribution to the developing AJAX universe, by creating a simple web-based POP 3 client, which will utilize "XMLHttpRequest" objects for retrieving messages from a given mail server. The application I plan to develop will use a simple front-end for connecting to the mail host, displaying the messages and navigating back and forth across them. On the server-side terrain, I'll use PHP for accessing the mail server, pushing POP3 commands and reading messages from the inbox, which implies having the possibility of switching over to your preferred language and using it to create the application. ...
Building An Array And Passing The Variables Through Pages
I have a form that inserts a variable and then shows the variable where needed. simple... i think. I have it working, but I can't seem to add elements to the array. Also anytime I go to another section I lose the information. from the variable. here is the basic bit of code used. Code:
|