Php3 On Redhat 6.1
I have never tried to get php3 to work on my home Linux PC until now. I am running Redhat Linux 6.1. Apache and PHP3 are both installed, but I don't think that they are configured by default. I haven't been able to find any information on-line specifically for this setup.
View Complete Forum Thread with Replies
Related Forum Messages:
Redhat 8 + Php 4.2.2
I installed yesterday Redhat 8 and configured php 4.2.2 like I did with Redhat 7.3. However, when I try to run a script which inserts or querys mysql I get a fatal error: Call to undefined function mysql_connect(). The same script worked fine in 7.3 and I am sure the syntax is correct.
View Replies !
PHP Problem For Redhat 9
My php webpages can be ruun normally, However, when they are moved to the other server with Redhat 9, some following problems about php will occur, 1. when the webpage is linked to other page http://www.xxx.com/index.php?item=Aboutus, the "item" variable "Aboutus" is no longer valid, Why? How to tackle such problem them? Does the new version of php no longer support such function,
View Replies !
PHP-GTK In Redhat 9 (installing?)
I am trying to get PHP-GTK (an addon to PHP to allow it to make GUI's) to work in Redhat 9. Has anyone gotten this to work? (If so, can you say how?) PHP-GTK seems a bit immature for Redhat right now (no RPM's seem to exist, and following the make instructions to build from source fails). This is a plain regular Redhat9 install, so I would have expected it to work without so many problems. The 0.5.2 load seems to have a syntax error in the .buildconf script (when running the configure script it makes it dies at: checking for PHP-GTK support... yes, shared checking for gawk... gawk checking for PHP executable in /usr/bin... found ../configure: line 2606: syntax error near unexpected token `debug,' ../configure: line 2606: `PHP_GTK_ARG_ENABLE(debug, whether to include debugging symbols,' 0.5.1 version had a variety of different problems during the make, and wouldnt install either. Is this package supported (and does anyone use?) php-gtk in Redhat Linux (9). If so, could someone tell me how to install it, and what the prereqs for redhat9 might be? The online webguides I have found so far all fail..
View Replies !
RedHat EL4, Php Upgrade
Just had a mission upgrading to v4.4.2. RHEL4 was setup using basic install and was not very easy to do. kept winging about things not being found therefor. /configure kept failing. For all peeps information, since it took me ages to work out. As each error comes up is to search for the package it complans about and install/upgrade it. Dependancies are a killer but after about 2 solid hours of upgrading packages and installing software it started working. RHN is good for the package sources for these kinds of things. I prob could have found the RPM for 4.4.2 but its far to easy and not very fun doing it like that so 442 is now running.
View Replies !
Upgrade 5 On Redhat
I tried to update PHP on my Redhat machine, but now apache does no longer display php pages. When starting apache I see these messages in the error.log : Code:
View Replies !
Using PHP With RedHat 6...recomile Problem
anyone know if I can re-compile apache (or if i need to) with php. My problem is ythe only version of apache I have is 1.3.6 from the redhat cd...(rpm installation) do i need to have a binary installation in order to use php V.x?
View Replies !
Mail() Problem With PHP And REDHAT 7.0
I am trying to write a script that will send automatic mail message with HTML base64 format using PHP 4 on REDHAT 7.0 with sendmail as a smtp. Actually the script works fine, but I wonder why is it too slow when sending mail. Is there any problem with PHP 4.02pl mail() function with HTML base64 header defined.
View Replies !
Problem For Squirrelmail Under Redhat 9
After setting config of squirrelmail under Redhat 9, I enter the login and password on the first webpage of squirrelmail, Then click the button, it turns to the empty webpage without any message, the filename of such page is redirect.php.
View Replies !
Getting Apache 2.0.40 And PHP 4.2.3 To Work On RedHat 7.3
We've been at it for a day now, trying to get PHP 4.2.3 to work correctly with Apache 2.0.40 in our dev environment. We successfully got it working on another server, but now we can't seem to get it to work again. anyone out there get these versions working together on Linux? We're trying to load PHP as a module in apache. what happens is that when we try our test .php file <?php phpinfo():?> apache2 tried to download the file instead of displaying it. we've added the following line to httpd.conf LoadModule php4_module modules/libphp4.so
View Replies !
PHP On Redhat Database On MSSQL Win NT
I am sure you understood a little bit from the topic what I had been working on for at least 2 months.Because the comapny I am currently working for ,sold its soul to satan ( Micro$oft ) long long times ago I am in a condition where I am ready to make any PHP 4 script run on Apache 1.3.12 and Redhat 6.2 but can not change the database option which is MS SQL 7 . Now my web server runs on linux but my database server runs on NT . I have to reach and make queries on the MSSQL 7 . I have tried many alternatives like freetds (thanx goes to John Woolbright from Omega Financial here ), sybase itself , sybase client libraries but all the time what I had was for a single query like insert and select everything runs fine but when you try to do something complex your browser returns you an error "Cannot find server dns error" which is a trivial error since I can display index.html on the same server.I have tried to use sessions and my code sucked but the same code without changing any bit of it runs on IIS server perfectly which I could not understand. Honestly I believe that IIS is not a good webserver and I can not trust it so the pathway is obvious use Apache on the old faithful Redhat URL but connect to the MSSQL to make it up and running. Does anyone on this planet know how to do it the best without using ODBC and having the minimum number of problems while running the code ? If anyone has a runnning model which has a fault ratio of .5% it is also OK for me . I am expecting your running model explanations or any comments who did the same thing and succeded. But please oh please do not tell me how to setup things if you have never tried what I currently have been doing since it was a pain in the b*t for me to try all these three platforms. Note: I did the reverse and runs perfectly URLdatabase on Linux ( Yes u r right MySQL ) and PHP on IIS.
View Replies !
Apche/redhat Linux 9
Bit of general advice but what should I bare in mind when installing PHP4 for apache 1.3x on Redhat Linux 9. This will be installed on a develeopment server environment so hopefully will go as smoothly as possible. ^_^
View Replies !
Problems Compiling Sablotron Into PHP 4.3.2 On RedHat 7.2
I'm trying to install Sablotron on Red Hat Linux release 7.2 (Enigma). I've got Sablotron to compile. I now get the following error when running ./configure on PHP: checking for Sablotron libraries in the default path... found in /usr/local checking for sablot-config... found checking for Sablotron version... configure: error: Sablotron version 0.96 or greater required. [root@redhat1 php-4.3.2]# In config.log: configure:75340: checking for sablot-config configure:75358: checking for Sablotron version configure:75383: gcc -o conftest -g -O2 -I/usr/local/include -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lcrypt -lcurl -lm -lcurl -ldl -lcrypt 1>&5 configure: failed program was: #line 75365 "configure" #include "confdefs.h" #include <stdlib.h> #include <sablot.h> int main () { double version; version = atof(SAB_VERSION); if (version >= 0.96) { exit(0); } exit(255); --1-:---F1 config.log I have found the following URL: http://archive.gingerall.cz/archive...p/msg00263.html which talks about problems coming from having some libraries compiled using g++ version 3. If this might be the problem how can I go about finding which libraries have been compiled in such a way? If this isn't the problem, anyone got any suggestions?
View Replies !
Sessions Resetting Using SSL, Apache 2.0.4x, PHP 4.x.x And RedHat 9.0
I'm running Apache 2.0.47, PHP 4.3.3 on RedHat 9.0 on a new server. I have a series of pages that let's say pages 1 -> 3 are non-ssl and 4-8 are SSL but the URL domain is different (shared SSL). The client clicks through them from one to another in order using forms and URLs with GET vars. The client starts a non-ssl session on pg. 1 using www.mydomain.com. When they get to pg. 3, a hyperlink with an SSL URL and session ID as a GET var, they click on it to get to pg 4 which is now under https://secure ..hostingdomain.com/mydomain.com/pg4.php?PHPSESSIONID=kjsfhljdhfakdjhfladkfh PHP picks up all the session vars just fine. The person proceeds to pg. 5, then 6, then 7 all in order under the SSL URL given above except the session ID attached which was only present on the switch between pg. 3 and 4. When they click on to go to pg. 8, the session is gone as well as all the session vars. Yes I do have a session_start on every page. It seems that the previous session just disappears or resets. Now this series of pages works fine under Apache 1.3.28, PHP 4.3.3, and RH 7.3 on a different server. So there is nothing wrong with the coding since all I did was copy the pages to the new server. On the new server, I have trans_sid turned on. Cookies are also turned on and "cookies_only" is off. The PHP settings on both servers are identical. I was originally running Apache 2.0.40 which is what RH 9.0 came with out of the box. But the sessions disppeared earlier in the sequence using it. The session would disappear by pg. 6 or 7. When I turn off the use of cookies in PHP, the session doesn't seem to carry through at all. But I'm not 100% sure since I can't remember what exactly happened in this scenario. Some people say that Apache 2.0 and PHP 4.x.x run fine, but that is not what I'm seeing. I'm thinking of going to Apache 1.3.28 on the new server.
View Replies !
Beginner Question On PHP (redhat 9) And Variables
I am trying to work through a PHP book that I bought a year or so ago, "Essential PHP" by Christopher Cosentino. In the beginning of the book, after the Hello, World .php file, you get to a two-parter : a form that sends it's results to another .php file, that then displays those results. Nothing I have been able to do has gotten this type of passing to work. Checking the URL string for the second page, it properly shows the values : http://localhost/PHP/form_results.p...it=Submit+Query However, when I refer to $first_name or $address from the second .php file, they always render as empty (NULL). I cannot figure out why this relatively simple case is not working; I can define local variables and output them, however, I cannot pull the variables from the URL string, so I can't work with forms. I'm using a default Redhat 9 install, that came with Apache and PHP preconfigured. I have made a few unrelated changes to Apache (setting up SSL, etc) - is there something that needs to be done to get PHP to work with variables?
View Replies !
Solutions For Can't Use Mail() In Php 4.3.11 In Redhat Fedora 3 When SElinux Is Enabled
Looks like this is a common issue: If you installed linux Fedora 3 with the default configuration and latest patches, you will have Apache/2.0.53 (Fedora) and PHP 4.3.11 in your box. Without any change you can use sendmail, that means you can use mail under Terminal, but probably you can not use mail() in php. The error message in maillog will looks like: "SYSERR(APACHE), Can't write, ... Permission denied." I spent several days to search Google and manual, no result. With the help of ¨˘lvaro G. Vicario in this group, the solution is SELinux. Simply disable SELinux or Check the "Disable SELinux protection for httpd daemon" in SElinux config solves the problem within 1 second. Not sure if this will effect FC4 or not. I remember the php mail() works in my FC4(php5), but I can not remember during the linux install did I disable the SELinux or not. But looks like this is SELinux thing not PHP's so the version of PHP will not effect this. I have deleted the FC4 so I can not try now.
View Replies !
Using SSI CGI In PHP3
I have my site in .php3 and I am getting some CGI files. They are counters, polls and date information. Also stat information for graphs and such. My problem is that every CGI I get it says to put in the SSI code: <!--#exec cgi="/cgi-bin/sigfigdate.cgi"--> Well, it don't work in PHP3. Is there a way to make SSI CGI work in my PHP3 document?
View Replies !
Php3.cgi And Php3.ini
I'm working with a web host that runs PHP3 by php3.cgi and don't have access to php3.ini but I need to modify the setting for upload_max_filesize. The exact version of PHP is 3.0.9. Is there anyway to override the value for just my program? And can someone explain to me what the difference is between the master and local settings displayed by phpinfo()? Does 'master' refer to compile time settings and 'local' the values set by php3.ini?
View Replies !
PHP3 And PHP 4
What is the difference between PHP4 and PHP 3? I tried the codes from a book which is based on PHP 3 on PHP4..but unfortunately it doesn't work? what should i do?
View Replies !
PHP3 And PHP4 Together
I'm a little new to the PHP thing. I want to try to setup my server to handle PHP3 and PHP4 requests easily. e.g. I have some scripts that are PHP3 and want to start learning PHP4. Instead of doing the simple (like anything I do is simple URL ) thing, I am attempting to set up apache to support MySQL, PHP3, PHP4, SSL, ColdFusion, SteelBlue, and maybe even Frontpage. Tell me I'm insane. Now I have read the "Soothingly Seamless" setup from the website, and had it mostly working, until some unforseen circumstances caused me to have to start over. I can set up Apache to use PHP4, MySQL, and SSL, but for those PHP3 scripts, I am a bit lost. Finally, my question. Is there a simple way (using the Sootingly Seamless page as a reference) to add PHP3 into the mix. Any help on this would be great!
View Replies !
PHP3 Or PHP4
I am starting to write some scripts. Now should I wait until PHP4 documentation and tutorials arise and write in PHP4, or should I just do everything in PHP3? I have a book on PHP3 and I want to know if the language has changed enough to make this book invalid. Thanks. Any clear input is appreciated.
View Replies !
Reauthentication In PHP3
I´m trying to reauthenticate users using PHP3 but variables like PHP_AUTH_USER can´t be unset. The only I have achieved is to obligue the user to change his name or his password using the Hidden element. However, if he doesn´t change anything the dialog box pops up until the Cancel button is pressed. Is possible to define variables like PHP_AUTH _USER that last until the session is closed? If not, is possible to reauthenticate?
View Replies !
Filemaker Pro & Php3
Does anybody have experience with filemaker pro and php. I'm currently running a mysql database with php3 but a client of mine wants to use his filemaker pro database. So what problem may I expect?
View Replies !
Netscape And PHP3
when i search for data in MySQL and then create a link of the data returned to another page so users can click on the link and then edit the data associated with their selection, thats were Netscape fails to pass the data to the next page so when users click on the links nothing comes up except if they are using IE 4.0+ which passes the data with no plroblem. i already tried the forms in HTML and PHP but wiht no success.
View Replies !
Uninstall Php3?
I want to install a php4 rpm, but it says I have php3 installed already and to uninstall it. I did a search and the only thing I found was that I should delete all the php stuff I can find. I *think* it was installed binary style, not with an rpm. If I do it this way, should I edit any conf files also? Please help as I can not find anything on how to remove a binary installation!
View Replies !
Users IP On PHP3?
I have a project and PHP 3.0.12 is installed...rediculous I know, but its not my fault. what is the syntax for getting the visiting users IP? Nothing I try seems to work.
View Replies !
PHP3 + MySQL
I'm trying to design a form using PHP3 which will only print results should their be information in the appropriate column in MySQL. I thought the syntax was something like this, but to no avail. if ($row["column"] == [A-Za-z]){ print ("This column is full") } else { print ("This column is empty")} Explanation: If there is text in the column, print "The column is full", otherwise, print "The column is empty".
View Replies !
Changing Php3.ini !!
I need to enable magic_quotes_gpc. I have learned to get to php3.ini through FTP, have changed it's value, and uploaded the file again. However, the value does not seem to change. I am running a dedicated server, and have attempted to reboot the server. Any ideas to why the settings won't change? Could permissions be a factor?
View Replies !
.php Parsed But Not .php3?
can somebody tell me why my web server will parse .php files but not .php3 files? heres all the stuff in my httpd.conf.. Code: AddModule mod_php4.c <IfModule mod_dir.c> DirectoryIndex index.html index.shtml index.php index.php3 </IfModule> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps is there anything i'm missing? .php3 files just show up as plain text my web browser but .php files get parsed and displayed.
View Replies !
.php Or .php3 Or .php4
With the advent of php4, which extension should we use. A lot of php3 pages use the .php3 extension, but by deafault the extension in the apache httpd.conf is .php. Should we just adapt .php4 or use .php to make sure future upgrades don't cause any issues with already existing code. I would welcome any thoughts.
View Replies !
UPLOAD WITH PHP3
I've built a form for uploading a user file, it works for sure, and PHP3 is even telling the name of temporary file in specified directory - BUT there's no such file there! And I can't find it any where in the system. I'm using Apache 1.3 on Linux RH 6.0 Hedwig.
View Replies !
Links In Php3
echo "<a href="link.htm" onMouseOver="window.status='Hie , I am Wallace ' return true ">Home</a><p>"; This script works fine in html page but when I put it in a php3 page an error message appears in the status bar .
View Replies !
Sessions In PHP3
I am trying to avoid recreating the wheel in developing a session object. Essentially, we want a session object that stores all of teh information we are collecting in a session table in the dbase. We want to store only the session ID in a cookie.
View Replies !
Php3-error
ive got php-4.3.9-3 on my fedora3....tried installing phptimesheet-1.2.4.tar.gz on my system..extracted the folder to document root of apache2..all the files of the timesheet have php3 extensions... php is working fine on my sys but php3 is not interpreted...when i go to //localhost/timesheet/timesheet.php3...i can see the source code of the page like... <?............................ ...................................?> ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 120 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 </IfModule> <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> Listen 80 LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so LoadModule auth_anon_module modules/mod_auth_anon.so LoadModule auth_dbm_module modules/mod_auth_dbm.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule ldap_module modules/mod_ldap.so LoadModule auth_ldap_module modules/mod_auth_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule env_module modules/mod_env.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule asis_module modules/mod_asis.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule imap_module modules/mod_imap.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so
View Replies !
PHP3 And Define()
I know this might be an odd question, but does PHP version 3 support the define() function? What little PHP 3 documentation I have doesn't seem to contain the function, but I would think PHP 3 would support constants. I realize that upgrading and using PHP 4 and PHP 5 would give me the define() function, but that's not what I'm looking for, just the answer to this specific question. When the manual says, "PHP 4, PHP 5" and excludes "PHP 3" it's not always accurate, as there are many functions supported by PHP 3 not listed in the current manual.
View Replies !
Php3 Files
When I run localhost/info.html with the code <? phpinfp(); ?> This is running perfect but when I do the same with localhost/info.php or /info.php3 , it says the file is not found. I have checked all the possible mistakes. My apache config file has these lines ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .html Action application/x-httpd-php "/php/php.exe"
View Replies !
.phtml Vs .php3 Vs .html
I'm looking for some advice about the pros and cons of different file name extensions for html/php documents. I'm working from the basic premise that it's not a good idea to keep changing the extension of a file because, for example, those hard-earned search engine references will be compromised if you change the name of a file in any way. It would seem shortsighted to give a php document a .php3 file extension since php4 is just around the corner. So I tend to prefer naming any document containing any version of php with the generic extension of .phtml. However, I could go the whole hog and give all my web page documents an extension of .html - whether or not they include php. But, as I understand it, the price I pay is that non-php code must now go through the php parser regardless, thereby (marginally) slowing down access to those pages. Is that a big overhead?
View Replies !
Multi-dimensional In Php3
Hi, I was using php4 on my test area and setup a 3d array like below.... <input type="text" name="col[<?echo $i1; ?>][<?echo $i; ?>]" value="<? /* if begin is yes then get input value from db */ if (($begin=="yes")| |($new_setnum == $setnum)) { echo $row_payele[$item2]; } /* else print current input box value */ else { echo trim($col[$i1][$i]); }?>" maxlength="8" size="4"> then i reference the value in the same way... $col[$i2][$i] etc.. This all worked fine on my own machine which is using php4. but when I go to the live server which is using php3 the variable is not picked up. Even if I try using $col[1][1] it doesn't work. Does anyone know why and a work around to it in php3??? Thanks in advance.
View Replies !
SSI And Perl Within .php3 Documents
Im new to PHP. I want to know if you can use ssi within .php3 documents and call php3 funtions in a .pl scritp. That is if you want to use the useful perl scripts you find on the web and combine them with php.
View Replies !
PHP3 Or PHP4 Tag Not Working
I am setting up my own Apache web server. I downloaded PHP4 but the only php tag that works is .php and not .php3 or .php4. Is this something in the Apache conf file?
View Replies !
Help!!! Having Trouble With Php3.ini File!
I have win32 shareware version of Mysql. I can't figure out how to get the dl("php3_mysql.dll") module to load automatically through the php3.ini file. I have been to the php3.ini file numerous times trying to get all of the paths and directories correct. I couldn't get any of them to work so I'm back to what the original instructions told me to do. That was to uncomment extension=php3_mysql.dll module under Windows extensions. I did that. And then the next step was to point the extension directory to where the php3.dll modules reside. And I did that. My extension_dir = chp3. I've even tried putting the "chp3" in quotes like so. The only way I can get my php3 scripts connecting mysql to run are by adding dl("php3_mysql.dll"); before my mysql_connect code. Can anybody help me.
View Replies !
|