libphp4.so and libphp5.so at the same time?

I tried running both libphp4.so and libphp5.so modules at the same time by putting this in my /etc/httpd/conf.d/php.conf file:

LoadModule php5_module modules/libphp5.so
LoadModule php4_module modules/libphp4.so

AddHandler php5-script .php
AddHandler php-script .php4
AddType text/html .php
AddType text/html .php4

Doesn’t work… apache will restart, but any pages I hit seg fault now. Ug, oh well, it was worth a shot. My collegue told me he read it wasn’t possible, and I’ve seen some forum posts to support this, but I wanted to be sure. Unless there is a magic trick, cannot do it as apache modules.

————-
SOLUTION:

Read morelibphp4.so and libphp5.so at the same time?

Paypal API issues, using PHP5 and nusoap

Posted 1 year, 6 months ago on August 27, 2006 by dave #

Back in Aug 2005, I found something wrong with the http://www.paypal.com/wsdl/PayPalSvc.wsdl file, it’s still a problem!

I have a really interesting situation trying to retrieve order information from Paypal. I compiled PHP 5.0.4 –with-soap thinking that I would just use the built in Soap implemention that comes with PHP5. So, I start with PayPal’s GetTransactionDetails API call. It didn’t work because the service address location defined in the production WSDL has the sandbox URL in it. I complained about this to Paypal, they ignored it, and even released another, version 2.0, of their WSDL with the same mistake in it. I don’t know what they’re doing over there… I can hardly believe that they are allowing this mistake to continue to live in production for weeks (now becoming months).

Read morePaypal API issues, using PHP5 and nusoap

Recompiling PHP on FC4 with Plesk 8.0.1

Original Post: August 27, 2006

I have to admit, this task is not for the faint of heart. This entry goes with my PHP Upload Progress Bar entry. I ported the entry from my old server, FC2 on Go Daddy’s Virtual Dedicated, to my new system, FC4 on Go Daddy’s Virtual Dedicated.

My goal is to recompile PHP with the PHP upload progress bar patch applied, while not breaking anything with Plesk!

All I am going to do is replace the “/etc/httpd/modules/libphp5.so” file on my system, and that’s it! Remember, I don’t want to break anything with my Plesk installation.

Read moreRecompiling PHP on FC4 with Plesk 8.0.1

Getting Started With ColdFusion MX

Something I did at work, felt like sharing it, it may be useful to someone:

Server Requirements: Dedicated or Virtual Dedicated Server running Fedora Core operating system with Plesk and Plesk Pro pack add-on.

Plesk ColdFusion Support — This option, available in the Plesk Pro pack, allows administrators to configure ColdFusion paths and enable/disable ColdFusion support in the Hosting setup. Note that ColdFusion software and license must be installed separately.

Read moreGetting Started With ColdFusion MX

Load javascript with random query param

For now, I am just getting this logged somewhere I can find it later:

Code:
<script>
  var el = document.createElement( “script” );
  el.setAttribute( “type”, “text/javascript” );
  el.setAttribute( “src”, “time.php?rand=”+bigRandomString);
  document.getElementsByTagName( “head” )[ 0 ].appendChild( el );

  function receiveTime(minLeft)
  {
     // Do whatever
  }
</script>

time.php:

<?php

$minleft = “whatever”;
print “receiveTime($minleft);”
exit;

?>

Read moreLoad javascript with random query param

Turn a Text Form Element into a drop down / text box

Imagine you have a text box, like this:

Name: [ ]Email: [ ]

You want them to be text boxes that the user can type in, but you also have some default choices to give. For example, I may have an address book in a database and may want to provide an autocomplete function on these fields.

So, I wrote a generic javascript package to be able to do this. I call it, “dropbox”. It allows you to turn any text input element into a text/dropbox element. You just define an array of choices to be displayed. It will show the whole list, onfocus, if the field is empty, but will reduce it’s selection set as the user types. In other words, it acts as an autocomplete selection drop down.

Read moreTurn a Text Form Element into a drop down / text box

Storing weak passwords stronger

PostPosted: Wed Aug 24, 2005 12:18 am Post subject: Reply with quote
We store our passwords in an md5 style password hash that the PHP crypt function provides. It takes a 13 character salt.

My friend and co-worker brought up a good discussion with me. The discussion was what if the database was to be compromised. Could the passwords be cracked? The answer: yes, a dictionary/brute force cracker, like John the Ripper, could be used to crack as many passwords as possible. In a database with over 1 million passwords, a percentage of them are crackable, probably a large percent.

So, the idea of using a different algorithm to store passwords came up. What if we used:

Read moreStoring weak passwords stronger