[PHP] PHP installation with MySQL Support
Where should you point the command --with-mysql to. The binary, header files, what? Currently I have MySQL installed at /usr/lib/mysql/. And this is a RedHat Linux 8.0. Suggestions? ~ Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP or Apache problem?
The detailed answer, I have no idea. The simple answer, currently there compatibility is NOT stable, but will be soon ~ Matthew -Original Message- From: Aaron Gould [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:35 AM To: PHP-GENERAL Subject: [PHP] PHP or Apache problem? I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development server... When I type the IP address of the server into my browser, all I see is PHP code. However, when I type the IP address, with the index.php, it works perfectly! Why would one work and not the other? 192.168.1.1 Doesn't work (displays the code in index.php) 192.168.1.1/index.php Does work! I have these PHP-related entries in my httpd.conf file: LoadModule php4_modulemodules/libphp4.so DirectoryIndex index.php index.html.var AddType application/x-httpd-php .php Am I missing something important here? -- Aaron Gould -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] is php4.2 supported on freebsd-4.2
I'm guessing that pages requiring passing data isn't working correctly right? If so here's what you do. cd php-4.2.2 ./configure (whatever options you want here) make make install make clean (add the appropriate lines to your httpd.conf file, the ones you have from 4.1.2 should be just fine) cp /path/to/php/php-4.2.2/php.ini-dist /usr/local/lib/php.ini Open /usr/local/lib/php.ini in your prefered text editor and search for this register_globals Change the value of 'register_globals' to On from Off ...And then your done. And read this so you understand why this was done: http://www.zend.com/zend/art/art-sweat4.php ~ Matthew -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP] is php4.2 supported on freebsd-4.2 Hi, i am using php.4.1.2. on freebsd 4.2 i want to upgrade from 4.1.2 to 4.2.2... The problem is: 1. Is php 4.2.2 supported on freebsd-4.2 ? 2. Can this happen that after upgrade(of php).some code doesnt work on 4.2.2 which was working on 4.1.2. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] is php-4.2.3 a stable version?
PHP 4.2.3 is mainly fixes to 4.2.2 but yes it is stable and a suggested update. ~ Matthew -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: [PHP] is php-4.2.3 a stable version? Hi, i am using freebsd4.2 I couldnt find if the latest php-versiono 4.2.3 a stable version ?? i mean shall i use 4.2.2 or 4.2.3 ? thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Apache compile
Did you delete the config.cache file in the PHP directory after the first configure, make, make install, and make clean commands? Did you add the appropriate info into apache's httpd.conf file so that is knows what .php files are and what to parse them with? Did you add the appropriate command to the top of your PHP page that will be run through as a CGI ( #!/usr/local/bin/php || that should not be inside of any PHP tags...just at the tip top of your page)? Answering these questions will help us solve your problem. ~ Matthew -Original Message- From: William Allmendinger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 7:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Apache compile Hello, I am currently working on compilling php as both a cgi ands as an apache module on the same server. The cgi compile, which I did first with ./configure --with-ldap={ldap dir} --with-mysql, went jsut fine. However, when I try to compile it as an apache module, both as ./configure --with-ldap={ldap dir} --with-mysql --with-apxs or ./configure --with-ldap={ldap dir} --with-mysql --with-apache={src}, I get errors when trying to load a page. The following is my php file I try to open in a browser called phpinfo.php php? echo hi; ? And this generates the following error: warning: failed opening '/usr/web/phpinfo.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 Any help would be great. William F. Allmendinger Network Manager University of Detroit Mercy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] copy a string
You want to copy a string to do what with it? This answer to this would help all of us help you. ~ Matthew -Original Message- From: Oskar Hermansson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] copy a string Hello! Is there any function to copy a string into the computers memory (just like you do when you press ctrl + c in, for example Internet Explorer). Is there any way to do this, just using PHP or JavaScript? Maybe by using the function system()? Note that i dont want to copy a file, just a string. Anyone got a solution to this problem? Im very grateful for any help i can get! With Regards, Oskar Hermansson, Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Passing variables between servers
http://www.w3.org/TR/SOAP/ ~ Matthew -Original Message- From: Mark McCulligh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 4:14 PM To: Jay Blanchard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Passing variables between servers I have thought about this also, but I need the variables in the ASP session and I don't have the time line to rewrite the ASP pages over in PHP. The current ASP app took a year to develop. I have thought about having PHP on both servers and having the PHP on the 2000 server just save the variables to a XML file or ini file, then have the ASP code read it in, but I thought there is probable some easy solution out there for passing information around. cURL looked like a solution but I can't find information on it using ASP. Maybe I am looking of a easy solutions that doesn't exist and will have to just use the longer one. Thanks for your input, Mark. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Mark McCulligh' [EMAIL PROTECTED]; 'Seairth Jacobs' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 3:34 PM Subject: RE: [PHP] Re: Passing variables between servers [snip] The session variables are need on both server for authorization needs. The two servers host two separate Intranet apps and I am trying to join the two together into one Intranet app. The variable will be used on both sides. The reason I don't what to use cookie is your users keep disabling them. They think a web site can use a cookie to break into their computer. They also disable JavaScript a lot too. [/snip] What about installing PHP on the IIS server and when time comes to pass back the information using the same method? Trying to think outside the box ... Jay *** * Texas PHP Developers Conf Spring 2003 * * T Bar M Resort Conference Center * * New Braunfels, Texas* * San Antonio Area PHP Developers Group * * Interested? Contact [EMAIL PROTECTED] * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] suggestions for a good php+mysql isp?
http://www.futurequest.com Fantastic!! ~ Matthew -Original Message- From: db, or not db [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:01 AM To: [EMAIL PROTECTED] Subject: [PHP] suggestions for a good php+mysql isp? I have searched the archives and the last time this was seriously discussed was september of last year...unless I have a giant gaping hole in my archive! :) I was considering northwesthost.com and would like some opinions on them or anybody you are happy with The list of isp's on php.net doesn't mean much to me without some current comments about their performance. I need php and mysql support for my site - I'm moving the domain name and site from myhosting.com (they're ASP and perl2exe'd scripts only). TIA! -Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FUNCTIONS
In the top of the loop, before you set the variables from the database do this. unset($variable); OR $variable = ; Either will do. ~ Matthew -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 10:30 AM To: [EMAIL PROTECTED] Subject: [PHP] FUNCTIONS i wrote a function do write a file for me on info taken from a db, and wrote a script with a for loop going through every row in the db, and calling the function. so the function is called about 200 times. but i'm getting weird results, the files are corrupted. its grand when i just go one at a time. so i'm assuming variable values must have been left set from the las for loop. so how do i clear ALL variables in the function?? TANX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] variables not behaving as expected
Read this. http://www.php.net/release_4_2_0.php ~ Matthew -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] variables not behaving as expected We've recently upgraded to PHP version 4.2.2 running on SuSE 7.2 with the 2.4.4 kernel and I'm seeing variables behave in a way I didn't expect. With the prior configuration http post variables were freely available on the receiving page, but now, for some reason, they aren't. This code: foreach ($_POST as $key = $post) { echo $key = $postBr; $key = $post; } echo hr; echo do = $do; renders this result: do = addart display_date = date art_time = time art_url = url art_link = link src_link = link src_url = url do = Why is the $do variable null outside of the for loop? Shouldn't it equal addart? Shouldn't it be available anywhere on the page? With the previous configuration the http post variables were available anywhere on the page. Is this a php configuration issue? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Web Based Mail
IMP and SquirrelMail both do the job for me. IMP = http://www.horde.org/imp/ SquirrelMail = http://www.squirrelmail.org/ ~ Matthew -Original Message- From: Chill [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 18, 2002 2:35 PM To: [EMAIL PROTECTED] Subject: [PHP] Web Based Mail Can anyone recommend a good Web-Based Mail System for php? I know that there are a few out there but I was wondering which was the best (and easiest to setup) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] hyperlink parser - a bit new view :)
Look up Regular Expressions. Basically they allow you to search out matches in strings such as a and any variable amount of letters between the open and closed tags. So you'd need to read in the entire file into a string, chop out all the pesky page returns ('\n') and then run your function using regular expressions inside of a loop of some sort. Check out these links: http://www.php.net/manual/en/ref.regex.php http://www.phpbuilder.com/columns/dario19990616.php3 ~ Matthew -Original Message- From: Roman [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 18, 2002 4:20 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] hyperlink parser - a bit new view :) I think there is no message about the same idea. I would need to parse html file and get all within href= or href=''. So I don't want to get all texts which could be links, but only content of href variable within a tag. Is there any easy way ? I have read hundreds of messages in this list today but without any possitive idea found :( Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Extending PHP 4.0
Does anyone know how to build the first_module example shown at Zend (http://www.zend.com/apidoc/) ? I'd like to start coding extensions (preferably not directly into the PHP binary because of my hosting situation) but I just don't understand the explanation of compiling them. Any one know how? ~ Matthew /** Matthew Metnetsky [EMAIL PROTECTED] **/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.2.2 and Apache 2
So how stable are they? I'm not running a production server, but a development server. Everything coming off of this box goes directly to a production server. ~ Matthew /** Matthew Metnetsky [EMAIL PROTECTED] **/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compiling External Modules
Does anyone know how to build the first_module example shown at Zend (http://www.zend.com/apidoc/) ? I'd like to start coding extensions (preferably not directly into the PHP binary because of my hosting situation) but just don't understand the explanation of compiling them. Any one know how? ~ Matthew /** Matthew Metnetsky [EMAIL PROTECTED] **/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php