How To Upgrade PHP Via FreeBSD Port?
I'm currently running PHP 4.05 on FreeBSD 4.3. I installed PHP via the ports collection, and now I want to upgrade to 4.06. What would be the best method for accomplishing this? On a test server with the same configuration I deleted the /usr/ports/www/mod_php4/work directory and did a make install. when i ran phpinfo() it said that it was version 4.06, but I don't know if that was really the right way to do it.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Php + Gd In Freebsd
I install php4.0.6 + gd1.8.4 in freebsd 4.4 during php compilation, there is an error This is some message: checking for the location og libjpeg...yes checking for jpeg_read_header in -ljpeg...no configure: error: libjpeg not found!! I was install libjpeg library in the system What's wrong ? here is my configure statement ./configure --with-mysql --with-xml --with-apache=../apache-1.3.22 --with-zlib --enable-track-vars --with-gd --with-jpeg-dir=/usr/local
PHP 5.2.0 On FreeBSD
I'm running FreeBSD 6.1....Apache 2.2 and im working on upgrading to php5.2.0....with ports... my issue is the extensions like JSON and PDO which were supposed be wrapped up in 5.2....i've finally got a clean slate to work w/ the sys admin has wiped any thing PHP5 off the box im ready to retry my portinstall... is there something i need to do prior to runnking make config and make install...is there some where i add additional flags for the portinstall ..lang/php5 ?
PHP On FreeBSD, Can I Use ODBC Or What?
Is there anyplace that documents exactly what steps I need to take to be able to talk to an ODBC server through PHP3 on FreeBSD? I've installed the iODBC driver manager, phpinfo() reports Unified is active -- but now what? What the heck is the next step?
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.
Mcrypt Problem On PHP 4.3.1 / FreeBSD 5.3
I'm getting some strange errors that I cannot pin down: Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 7, needed: 8 in...... This is strange because the data is encrypted, inserted into the databse, then later retrieved and decrypted with the necessary hash and ivector keys. The data itself is decrypted OK. But the error comes up. The error does not occur when I run the same code on another machine running on Mac OS X. Is this a known bug on this FreeBSD build ? As this is for a production site, I'm just tempted to set the error_reporting directive in php.ini to off, as this looks bad when the error flashes up, but is actually not causing any errors. I did change alter the initialisation function to: @mcrypt_generic_init() but it still displays the error regardless. This may be a bit obscure, but has anybody else encountered a similar problem ?
Problem With Zend Optimizer Of FreeBSD 6
I'm trying to load the latest version of the optimizer. I know that I'm specifying the correct php.ini location. After installing the optimizer, if I go back to servercheck.php it's just white. nothing shows up. Other php scripts also show as a white page, phpinfo() will however display all the correct php variables. I'm trying to install a script called smart thumbs, midway through install it goes to a blank white page.
Linux + PHP + PAM Auth Vs. FreeBSD Password List
The systems: A= Red Hat Linux 7.1, PHP 4.06, PAM 0.74-22 B= FreeBSD 4.0 Is it possible to authorize a user via PHP/PAM against a FreeBSD password list on a 'remote' machine? If so, where might I find further information on doing so?
SSL Vs Port 80
I have a page that can be pulled up either on SSL port 443 or on regular HTTP port 80. Can I use PHP to determine through which port the page is being requested?
Specify Non-standard DB Port!
I need to modify the function call below to specify port # 5434. Now I don't know PHP and I have tried the obvious (adding port=5434 before the dbname=%s in the sprintf portion of the call, but that didn't work, where / how to I specify the non-standard port #? Code:
Port Ping?
I want to check with a php script if a port / serverservice is down. It would be great if I can check the ping time, too. But how I can realize that?
Using PHP To Subvert Port Blockages
I have a question that I'd like to run by you. I subscribe to cable Internet that doesn't allow web servers to be run on port 80, so I'm using another port to run my web content. However, there are some business and government facilities that block all web ports except for port 80. That makes my web content unusable from those sites. What I've done is use PHP to catch each request to a publicly access subdomain to my main web hosting account (NOT my home web server). That page then takes whatever page the user asked for and queries my home system on the web port that I setup. Thus, the request to my home server is all done behind the scenes. I'm using the include() function to perform the call to my home web server. It's all working perfectly. But, is there a more efficient way to do this? Essentially, I'm making my own proxy server.
Unix Crypt Port
I'm trying to port the unix crypt into PHP because I'm on WinNT (not my fault). I found in Java at http://208.223.9.21/jfd/crypt.html and this is what I currently have as the PHP source, but it always gives me the salt + 0 (e.g. Ts0). Code:
How Do I Read From A Serial Port?
I've got a digital scale attached to the first serial port of my Linux OS computer: /dev/ttyS0 How would I set up the serial port for reading data and then how would I turn that data into a variable that I could use in a PHP program?
Ping An Ip Address And A Port
I have an application server running my game server. Now, I want to know is there anyway to write some php code so i can ping an ip address and a port?
How To Use PHP To POST To Listening IP/port
i can post XML data to a website via cURL can i use cURL to post XML to a local TCP IP/port? when i simply switch the server from server website.com port 443 to server 127.0.0.1 port 2000, the script times out (port 80 works, of course) all programs are installed on same PC. i have two programs that currently post XML data via java socket classes, so i know the ip/port is open does anyone have any suggestions?
Reading Data From COM Port (by Using External DLL)
If I have DLL file that give me ability to read data from COM port… Can I link PHP server to it, and then use the classes from that DLL to read data from COM port through web interface? (Something like extended system(); )
Why Php Web Progam Will Generate Port 113 Services ?
why php web progam will generate port 113 services? http://www.dslreports.com/faq/225 in 0600, I browsed the company's web pages that I designed from home, I noticed the linksys router generated incoming 113 port with the company ip address of the remote web server. I understand these web pages caused "hold-up" in normal business hours. Other pages are ok. All the "hold-up" web pages are written in php and they are editing ( modify) data program. should I open 113 in the application firewall script. and why php will generate 113 port services in the redhat 7.3 box. In "setup" the "ident" services does not checked ( not in service), why it still request "113 port services"??
Send Message To A Server Port
I would like to find out how i can send, with php, a string message to a remote server:port I want to make my server to respond via messages from a php page. Sever is made in .NET, is listening for incoming connections, analyzes the data, strings in my case, and responds accordingly.
Using CUrl To POST To Listening IP/port
i need to handle CSV requests/responses for two FedEx products FedEx Web Integrated Solutions - requests are posted to a remote FedEx hostFedEx Ship Manager Server - requests are posted to a local listening IP/port i have successfully posted to WIS using the cUrl method as shown: $ch = curl_init(); curl_setopt($ch, CURLOPT_PORT, $port); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_URL, $server); $reply = curl_exec($ch); curl_close($ch); echo $reply; i used the following as my vars. as you can see, i send the request to a URL: $server = "https://gatewaybeta.fedex.com/GatewayDC"; $port = "443"; $data = "csv,'data',goes,'here'"; finally, this is what i'm trying to accomplish. i would like to post a CSV transaction to a local IP/port that is running the FedEx Ship Manager like this: $server = "127.0.0.1"; $port = "2000"; $data = "csv,'data',goes,'here'"; when i use the vars above, the script times out. i have several programs that access FSMS with Java socket classes, so i know that the port is open. all of the software is hosted on the same PC, so there aren't any network issues to worry about... i would like to know if this is the proper way to submit data to a listening port via PHP. i'm not sure if i should even be using cUrl; according to the PHP manual, cUrl accepts HTTP, HTTPS, FTP, GOPHER, TELNET, DICT, FILE, and LDAP protocols. FSMS is built on Java, and there isn't very much documentation on the software (only 900 or so customers use it).
Pinging Port Returns False
This is actually a branch on someone else's question but I figured it deserved its own topic. I have a code that pings a server and returns whether it is open on that port or not. Here is the code:
Warning: Ftp_put() [function.ftp-put]: Invalid PORT Address
I'm trying to upload files to a ftp client using an SSL explicit connection on port 990. I can connect to the ftp server with cuteFTP and can upload and do all the basic ftp type things. The script I wrote connects to the ftp server and when I try to upload a file via 'ftp_put' it gives me the following warning message: Warning: ftp_put() [function.ftp-put]: Invalid PORT address in /home/usr/www/ConTest.php on line 42 There was a problem while uploading (debug msg) I added some code to add a directory to make sure the connection was working fine, and the script properly added the directory to the ftp server. So my connection is establish and seems to work for certain functions, but throws me this weird port error during ftp_put. Below is my code, I've looked all over the internet for a similiar case and haven't seen any. Code:
Open A Https Url On A Special Port ? (asp/ajax Inside)
I'm trying to translate an asp application in a php way, i'm using Php 4.3.x. I'm going to try an asp newsgroup too, but as it mainly deals with Php, I would like to submit you my probem : I have to retrieve some XML datas from a server whose URL is built like that : https://myserver:4012/code/myapp?param1=3; I tried fopen, fsockopen with no result. So it's https, there is a port (4012 for example). Perhaps I forgot some particular https parameters with my fopen and fsockopen tries ? The original asp code is : --- Set myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0") ' Opens the connection to the remote server : xml.Open "GET", url, False --- Php methods didn't work so I tried the ajax way : if(window.XMLHttpRequest){ // Firefox, Safari, Opera... req = new XMLHttpRequest(); } else if(window.ActiveXObject) { // Internet Explorer 5+ req = new ActiveXObject("Microsoft.XMLHTTP"); } else { alert('Problem creating the XMLHttpRequest object'); return false; } return req; .... But i'm not sure the ActiveXObject is identical to the original : Set myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
Can I Read/write To The Serial Port, Comm1 Or Comm2 Using PHP?
I don't know if this can be done. Can PHP be used to read/write to the serial port on a PC? Any replies related to Linux or Windows are welcome. Ultimately, I would like to be able to send a character string to the serial port when a button is clicked on a PHP driven website.
Warning: Mail(): Failed To Connect To Mailserver At Localhost Port
I have windows xp pc and i have installed apache as a web server and php also working fine, but when i am sending mail, its giving me following error when upload same to linux live server its working, please help me what do i have to do for this Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:SafrasWebHosting....
Upgrade To Php 4.3.2
I am currently running php 4.2.1 on FreeBSD. How would I go about upgrading this to version 4.3.2.
How To Upgrade From 4.1.0 To 4.2.2
Can anyone help by giving dead simple step by step instructions for me to upgrade from 4.1.0 to 4.2.2? I am running on Windows ME and using Apache and MySQL.
Should I Upgrade To PHP 4.3.1 ?
I am currently running PHP 4.2.3. I want to install the gdLib and I want to do this as quickly and painless as possible. Should I upgrade to 4.3.1 (i.e. does this have the gdlib included in it) or should I try and install the gdLib with 4.2.3 (from which i can tell is a difficult process)?
Upgrade Help Please
Which is the correct newsgroup to post questions on upgrading RedHat 9.0 to the latest PHP?
PHP & MySQL Upgrade
I am looking to upgrade my versions of PHP & MySQL on my server. I am wondering what websites you would recommend that are easy to fallow and with step by step instructions on how to upgrade both of these. Also how to keep all of the extions or even install more extions for PHP.
MySQL Upgrade
While I know that this forum isnt the primary place for this, I cant seem to get any answers from the people in the MySQL forum (not enough expertise or time I suppose), so since many PHP people use MySQL maybe you guys have tackled this one already. Basically I want to move from MySQL 3.23.56 to 4.0. I can find the various routines to run to fix the data in the databases. But my question is more fundamental. Once I get the 4.0 release, do I just install it via the setup, or do I need to UNinstall 3.23.56 first? Current environment: WinXP Pro, IIS, PHP 4.3.1.
Php5 Upgrade
I've been asked to upgrade an existing older linux/apache/mysql/php installation to php5. I'd rather not mess with the other components if I don't have to - just php5. Can I do that? I can get around the command line ok, but haven't done alot of configuration. The install instructions at http://www.php.net/manual/en/install.unix.php include steps on compiling apache -- do I really need to do that?
Upgrade PHP With GD Support
My current php version is 4.3.3My current GD version is 2.0.15I want to upgrade GD to 2.0.28. How to upgrade it.
Upgrade To 4.3.10 Issues?
I got an email from my web host stating that they are going to upgrade their PHP on the server from 4.3.8 to 4.3.10. Are there any known problems with this upgrade that need to be addressed in the PHP scripts I use? I'm sure there will always be some small glitches in an upgrade like this but I'm looking for any info on the scale of any "register globals = off" type changes.
Upgrade Php Version On Red Hat 7.1
I've got a server running Red Hat 7.1 with the default installation of php/apache. This version of php doesn't have a lot of the default functions I need like mysql and odbc support. The php rpms for Red Hat 7.3 have the options I need. Can I just install these rpms on Red Hat 7.1? I tried doing this and it told me some libraries I need are not present. Would installing these libraries cause any problems? If anyone knows of the best way for me to add these options for php that I need, please let me know.
How Do You Upgrade Php On Linux?
I need to upgrade php 4.3.7 to version 5.0.0 on slackware linux. Do I need to uninstall 4.3.7 first or will installing 5.0.0 just overwrite the 4.3.7 version? I'm running Apache with php.
Division By Zero After PHP-Upgrade
I have following problem after my hoster updated to PHP 5.2.1. I'm not really sure from what Version the update was done, but it was definetly something like 5.x.x. Locally I run XAMPP w/ PHP 4.4.4 and my script runs just fine. These are the two lines which generate the error. $return = $sbox0[$b0] + $sbox1[$b1] % pow(2,32) ; $return = ($return ^ $sbox2[$b2]) + $sbox3[$b3] % pow(2,32); It doesn't matter what is stored in the sboxes since the error has to be from the modulo. I tested if pow(2,32) would generate a zero, but it doesn't. So that can't be the problem.
Upgrade From PHP Version 4.2.2 To 4.3.10
I am currently running PHP Version 4.2.2 on Red Hat Linux release 9 (Shrike) with Apache/2.0.40 (Red Hat Linux) I would like to upgrade to the latest version of PHP (4.3.10 ?). PHP was pre-installed as RPM version, I would like to know where i can find an RPM upgrade... What are the steps to take, will original php.ini be overwritten, do i need to change Apache confg files.
Does Upgrade Cause Slowdown?
I am a webmaster of a website and the server maintianers upgraded from php 4 to php 5.At around the same time my site slowed down.Does a php upgrade cause a site to slow down? Is there any way in which I can find out why my site slowed down?...
PHP 4.3.4 Upgrade ... Need Help With Drop Downs
I upgraded from PHP 4.1.2 to 4.3.4 (Mac OS X 10.2.8), and then had to adjust all of my form scripts to retrieve the POST variables explicitly (because 4.3.4 requires this). I did this like the following: <input type=text name=myinputbox> <input type=submit name=submit value=submit> ------- $myinputbox = $_POST[''myinputbox]; $submit = $_POST['submit']; That works just fine, and the variable data is available for use elsewhere in the script. Radio buttons and textareas also work in this way. However, my problem is that <SELECT> drop down menus apparently DO NOT work in this way. This renders my form useless without this ability. If you can post a reply code for retrieving the <SELECT> POST variable to the following code, I would appreciate it. <SELECT name="MENU"> <option>option1</option> <option>option2</option> <option>option3</option> </SELECT> I assumed it would be this (but didn't work): $MENU = $_POST['MENU']; Hope I am clear with my explanation.
Upgrade To PHP 4.2.2 From 4.2.0 Mysql Error
I'm running PHP 4.2.0 on Suse Linux. I compiled PHP with : ./configure --with-mysql --enable-trans-sid --with-sybase=/usr/local/freetds --with-apxs=/usr/local/apache/bin/apxs When I compiled 4.2.2 it compiles and installs fine, and I checked this with phpinfo(). However my scripts using MySQL can no longer connect.
Script Problem With Upgrade To PHP 4.3.1
I have tried this script on PHP 4.2.3 and it works. then I upgraded to 4.3.1 and it doesn't work. I believe its because the variable use the null function and that was removed in 4.3.1 Can anybody tell me how I cn get this working? Also the variable declration might hve changed. PHP Code:
|