Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 1999
Posts: 7
Journeyman
Journeyman
Offline
Joined: Jun 1999
Posts: 7
I figured, for the heck of it, I'd try and give the PHP version a try. Especially since I use PHP for some of my own database manipulation (albeit at a much lower level of intensity).

Anyway, here's the problem. When I use PHP on my site hosted at Pair, I have to use extension of php3, not simply php. If I use just php, it treats it as a text file. Given that, I went through and renamed all the files to php3. Of course I ran into other problems since the code inside references php as well. So, I figured I'd change some of that too, a few functions at least. Got a little further. Then ran into a new problem noted below:

Fatal error: Call to unsupported or undefined function preg_match() in main.inc.php3 on line 205

I don't know if this simply means I must go through each and every one of the scripts and change all references to .php to .php3 or not. I'm hoping someone can shed some light on here, or maybe tell me a way to somehow make it look like .php is really .php3 (or some facisimile thereof). I could contact Pair and ask about PHP, but seeing that I've not had the greatest response of late to other problems, I thought I'd check here since more people see to actually participate and provide this help.

Danbo
http://danbo.com
http://danbo.com/forums/wwwthreads.pl

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
You should talk to Pair. If the file extensions are set correctly in Apache (or your web server settings) it will know to execute it as PHP. It's fairly simple for them (or you) to do. It's worth it to at least ask []/w3timages/icons/smile.gif[/]


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
The extension is a matter of a config option in their server setup. You could ask to see if they will map the .php extension just like .php3. The preg_match issue is a bit of a more serious issue. This means that they don't have the php compiled to support PCRE so it won't support a good portion of the regular expressions used.

I would actually ask them when they plan on offering PHP4.

-------------------
Scream
WWWThreads Developer


UBB.threads Developer
Joined: Dec 1999
Posts: 158
Enthusiast
Enthusiast
Offline
Joined: Dec 1999
Posts: 158
this worked for me:

1. create a blank txt file with the following in it:
ADDTYPE X-MAPP-PHP3 .PHP
2. save it as ".htaccess"
3. put this file into your root directory
done

flint


Joined: Jul 1999
Posts: 118
Enthusiast
Enthusiast
Offline
Joined: Jul 1999
Posts: 118
bash-2.01$ cat .htaccess
AddType application/x-httpd-php3 .php
bash-2.01$

unfortunately I get other error messages running wwwthreads

Also here are pair's instructions on how to install php4, but also did not work

http://www.vttrains.com/phphelp/
http://www.sunwire.com/php/php_install.html


Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)