[PHP] How to run PHP4 and PHP5 side-by-side

2003-11-02 Thread Adam Plocher
Hello, I'm using Apache 2.0 on a Linux box and I'm trying to figure out how to run PHP5 (beta2) and PHP4 co-existantly. I have compiled both of them with --enable-versioning, but I can't figure out what I need to put in my httpd.conf to make it differentiate the two versions. Ideally I would

[PHP] Running PHP4 and PHP5 together

2003-07-10 Thread Adam Plocher
Is there anyway I can use PHP4 and PHP5 (as modules, not cgi) together in Apache2 (Linux)? I've tried the --enable-versioning configure option with php, but I'm not quite sure what that does. I need PHP4 because Gallery apparently won't work with PHP5. If it's possible to load either php4 or ph

[PHP] Error compiling php

2003-02-13 Thread Adam Plocher
Hello - I am attempting to upgrade one of our older PHP servers (4.0.1pl2) to PHP 4.3.0. We are running a fairly old version of apache (1.3.12) and MySQL (3.22.32). My question is - does PHP 4.3.0 support older versions of MySQL? When I go to configure PHP 4.3.0 it works fine, but during compile

RE: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Adam Plocher
How about something like this.. function runquery($query) { $query = mysql_query($query); if (mysql_error()) { echo "MySQL Error: ". mysql_error() ."\n"; exit(1); } return $query; } -Original Message-

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Adam Plocher
- From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Sat 1/4/2003 6:34 PM To: Adam Plocher; [EMAIL PROTECTED] Cc: Subject: RE: [PHP] Read-only gif support in 4.3.0 when you do a phpinfo() what are the c

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Adam Plocher
Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Sat 1/4/2003 5:58 PM To: Adam Plocher; [EMAIL PROTECTED] Cc: Subject: Re: [PHP] Read-only gif support in 4.3.0 I just installed 4.3 today... configured as

[PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Adam Plocher
I read on PHP.net that PHP 4.3.0 has read-only GIF support in it's version of gdlib. I am using the windows version with apache and tried both php_gd.dll and php_gd2.dll and I could not access any GIF related image functions, however I could use JPG, PNG, etc. Does anyone know if I need to do

[PHP] crypt() function

2002-10-14 Thread Adam Plocher
Hello, I am trying to authenticate a password using the crypt() function. Here's what I got: if (crypt($_SERVER['PHP_AUTH_PW'],$data[1]) == $data[1]) { ... } $data[1] being the salt.. It half-way works... If the users password is 'blah' it will authenticate fine, but if you append anyt

RE: [PHP] Linux PHP editor

2002-08-09 Thread Adam Plocher
I had problems compiling quanta on my redhat 7.1 box, I had to grab some cvs files to fix it (Don't remember which files.. Probably whichever ones had problems compiling - and the makefile). Quanta is a great program, it's basically a homesite clone for Linux. -Adam -Original Message- F

[PHP] POST Arrays with register globals..

2002-06-12 Thread Adam Plocher
  blah1 &nbps; blah2   blah3 I can't seem to access that data correctly when that form gets submitted. I have tried: $groups[] = $_POST['groups[]']; and $groups[] = $_POST['groups']; no luck.. Can somebody please give me a hand, thanks a lot. -Adam

[PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Adam Plocher
So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. The only problem I am having now, is Apache's DirectoryIndex option. Whenever I add index.php to that (like I would do in Apache 1.3), I get a 403 error every time I visit my site. When I look in my errorlog I see this: [S

RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Adam Plocher
CSS Hover example: a:link,a:visited,a:active {color: #213C4D; text-decoration: none;} a:hover {color: #213C4D; text-decoration: underline; } As for the size of a text field, you can set it with SIZE="" but note, netscape and IE both interpret size VERY differently... Not sure about NS6, but NS

RE: [PHP] Update database via email

2002-03-11 Thread Adam Plocher
If you want an html form in an email, that's possible, but the form will probably need to submit to a php script (via http, not email). You would just need to set the content-type of the email to text/html. You wouldn't be able to have an active php script embedded in an email (other than having

[PHP] Informix Redback

2001-10-26 Thread Adam Plocher
Our company is looking into purchasing an application package that requires the use of the Informix (IBM) Redback application. We have been told that Redback objects can be used in php scripts but I was wondering if any of you have had experiece with it and if you have had any problems or difficul

RE: [PHP] How to obtain all the fields' names of a MySQL table?

2001-09-25 Thread Adam Plocher
How about this... $db = "name_of_database"; $query = "DESCRIBE table_name"; $query = mysql_db_query($db,$query); while ($row = mysql_fetch_row($query)) { echo "$row[0]\n"; } -Original Message- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 12:03 PM

RE: [PHP] Variable naming

2001-09-25 Thread Adam Plocher
$id = 1; ${"sql_" . $id} = "hey"; print $sql_1; Try that -Original Message- From: Kyle Moore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Variable naming I want to use the value of a variable in a variable name. For instance

[PHP] php script ownership

2001-09-25 Thread Adam Plocher
Is there anyway I could make a PHP script run as the user that owns the script?

[PHP] Running virtualhosts under different users

2001-09-21 Thread Adam Plocher
I realize this is more of an apache question, not a php question, but I thought you guys of all people, would be able to help me... I have an apache server setup, hosting a number of sites. I need one site to be ran under a different user so it can execute shell commands via system() under that

[PHP] using system() as a different user

2001-09-20 Thread Adam Plocher
I'm trying to use the system() function to execute a shell command, but the shell command that needs to be executed, needs to be executed as a different user (not the default 'nobody' user). Can somebody show me what I need to do, to accomplish this. Thanks -Adam

[PHP] Image manipulation

2001-08-31 Thread Adam Plocher
types (gif, bmp, png, etc) into a jpeg? Any help will be very appreciated, thanks. -Adam Plocher

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Adam Plocher
>From what I heard, the acronym originally stood for Personal Home Page, but it kind of changed (unofficially?) to Hypertext Preprocessor. I could be wrong -Original Message- From: Martín Marqués [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 3:08 PM To: John Meyer; [EMAIL PR

[PHP] Link Checker

2001-08-28 Thread Adam Plocher
Is there any function that will allow me to check to see if a link is valid?

[PHP] explode()

2001-07-16 Thread Adam Plocher
$reqmonth = ${explode("-",$row[5])}[1]; Is there anyway I can get that to work without having to use multiple lines of code?

[PHP] Manipulating Images into JPG

2001-05-09 Thread Adam Plocher
I want to build a personal page that will have functionality to change many types of image formats into a jpg. Ie, convert gif to jpg, png to jpg, even bmp to jpg. Assuming this is possible, does anybody have any sample code I can take a look at? Thanks much. Adam Plocher "If ignoran

RE: [PHP] finding Friday's date

2001-02-27 Thread Adam Plocher
To: Adam Plocher Subject: Re: [PHP] finding Friday's date on 2/27/01 03:39 PM, Adam Plocher at [EMAIL PROTECTED] wrote: > Could somebody show me an example of a script that will find out the date of > each upcoming Friday, thanks. something like: $days=array("Saturday&quo

[PHP] finding Friday's date

2001-02-27 Thread Adam Plocher
Could somebody show me an example of a script that will find out the date of each upcoming Friday, thanks. Adam Plocher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list