Jump to content

Vorlin

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Vorlin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You can escape spaces in your preg_match with something like this: [code] $string = preg_match("/A-Za-z\ /", $text); [/code]
  2. Make sure that when configuring php, you have to use the '--with-apxs2=/location/of/apache 2/apxs' option. My installation on linux went like this with PHP 5.1 and Apache 2.0.55: 1) unpacked both php and apache into their appropriate directories. 2) went into the apache directory and did the following configure: # ./configure --enable-module=so --prefix=/var/www <stuff here> # make # make install 3) backed out and went into my php directory and did the following configure: # ./configure --with-pgsql=/db [color=red]--with-apxs2=/var/www/bin/apxs[/color] --with-png --with-gd --with-jpeg-dir=/usr # make <stuff here> # make test <stuff here> # make install <more stuff> # cp php.ini-recommended /usr/local/lib/php.ini The php configuration I did enabled png graphics with gd implementation, PostgreSQL support, and integration into Apache 2's config file (httpd.conf). In your httpd.conf file, you need to make sure of a few things. The lines below need to be put somewhere in the file (I put mine right after the Listen statement): [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Modify the line of your DirectoryIndex to include php files. Mine's like this: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] DirectoryIndex index.php index.html And that's it. Start up your webserver and test it out. On my command prompt, I do this: # php -r 'echo phpinfo();' <same info as you would see in a php test file appears here>
  3. Vorlin

    Go me

    Yeah, much like the previous posters, it's a scalable open-source database just like MySQL. I've used it now for the past three years on my linux server and have used it at work when writing database-backed web page programs. I run PHPBB2 and it's been one of the only ones that's actively supported PostgreSQL. There's minor differences between it and MySQL but it really comes down to personal preference.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.