Previous Thread
Next Thread
Print Thread
Rate Thread
#205853 10/26/2000 6:03 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
For those tracking the progress of the PHP port I've got 5 scripts left on the front end. These all deal with adding/modifying posts but everything else on the front end has been ported. So, things are moving along quite nicely, although none of the scripts have been bug tested. That will be the fun part[]/w3timages/icons/wink.gif[/].


UBB.threads Developer
Sponsored Links
Sally #205854 10/26/2000 8:07 PM
Joined: Jun 1999
Posts: 54
Member
Member
Offline
Joined: Jun 1999
Posts: 54
Great news to know.[]/w3timages/icons/cool.gif[/] Maybe we can test the full fontend php version before the weekend. What a nice weekend.[]/w3timages/icons/tongue.gif[/]


Sally #205855 10/28/2000 7:48 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I like the PHP site as it loads very fast.

Scream, how have you found learning PHP from scratch? In your opinion did you find it easier to pick up than Perl?

Darren.
http://www.bullpen.com.au

Anonymous #205856 10/28/2000 7:56 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Because of my experience with PERL it was pretty easy. The logic of the language is pretty much the same. I will say this though I H A T E!!!!! regular expressions in PHP. Althought that could be because I have spent most of the day letting them kick my butt[]/w3timages/icons/laugh.gif[/]. I think I finally got the hang of them now but they are alot different than PERL. Other than that one minor point, I really enjoy working with the language.

---
Scream
Posted from the PHP Port Site (Post might be quirky)


UBB.threads Developer
Sally #205857 10/28/2000 8:04 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Thanks Scream. I learnt more about Perl looking at your code than any book. Keep up the good work with your comment statements.

I meant to ask, even though the PHP version is still in development, is it possible to view one of the files, say newpost or editbasic for example?

Darren.
http://www.bullpen.com.au

Sponsored Links
Anonymous #205858 10/28/2000 10:40 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Thanks Darren.

Actually you can download a current snapshot of the PHP code each day. It get's updated at 5:00 each morning. If you have a 5.1 system going you can setup the PHP code to use the same database. Just go into the registered users area and you will see a link at the bottom for the PHP code.



---
Scream
Posted from the PHP Port Site (Post might be quirky)


UBB.threads Developer
Sally #205859 10/29/2000 12:19 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Excellent. Thanks very much.

Darren.
http://www.bullpen.com.au

Sally #205860 10/29/2000 2:51 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
PHP does process Perl Regular Expressions. You just hafta use the functions and stuff with it.


Anonymous #205861 10/29/2000 12:29 PM
Joined: Mar 2000
Posts: 84
Member
Member
Offline
Joined: Mar 2000
Posts: 84
Great thing about PHP is it has built-in compatibility for PERL-type regexprs. Stuff like preg_match() and preg_replace() are excellent little utilities.

---------
Shalazar
http://www.charisma-carpenter.com

Sally #205862 10/29/2000 7:14 PM
Joined: Oct 2000
Posts: 14
Newbie
Newbie
Offline
Joined: Oct 2000
Posts: 14
LOLOL!!!! Regex is a lot different in PHP vs Perl. They redefined enough to JUST mess you up (example; == or eq)
Have noticed one thing though. If your running a server, and a lot of your code is in PHP, you should install Zend's optimizer. It's not a hard install, and it speeds things up quite a lot.

......
Forgive me Father, for I know not what I do.

Sponsored Links
tetsuo #205863 10/29/2000 9:02 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Well I dunno. I've never used Regex. I'm happy with PHP's.

And I already e-mailed Scream all the info about the Optimizer.


G5 #205864 10/29/2000 9:03 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
That's what I was refering to!


Anonymous #205865 10/30/2000 2:51 AM
Joined: May 2000
Posts: 125
Member
Member
Offline
Joined: May 2000
Posts: 125
The zend optimizer is not suported on all the platforms, neither by most of ISP!


tym #205866 10/30/2000 8:44 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I was just saying that I sent Scream the info on it. I didn't go into any details.


Anonymous #205867 11/01/2000 5:51 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
php code doesnt need to change for the optimizer to be used....

Kaoslord
<a href="http://www.chaos-productions.com">www.chaos-productions.com</a>

Anonymous #205868 11/01/2000 7:20 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Never said it did and I know it doesn't.


G5 #205869 11/06/2000 1:35 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
You might want to be careful when using perl type regexp in PHP. Not all system admins install the PCRE by default, and I remember that some servers running PHP3 do NOT allow PCRE. (ie CI Host did not when I was with them last year).

Without PCRE though, you cannot do non-greedy matches cuz the regexp in PHP do not have that type of functionality.


Anonymous #205870 11/06/2000 1:38 AM
Joined: May 1999
Posts: 624
Master Hacker
Master Hacker
Offline
Joined: May 1999
Posts: 624
>>some servers running PHP3 do NOT allow PCRE. (ie CI Host did not when I was with them last year).

Aargh! That's shot me, then.

[]http://www.amdragon.com/images/eileensig.gif[/]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
it's no biggie. I think that the admins would be willing to do PCRE even if they don'tdo PHP4 cuz PCRE doesn't break anything tipsy.

Besides, it's more powerful than regexp so I bet you can convince them easily tipsy.


Anonymous #205872 11/06/2000 2:04 AM
Joined: May 1999
Posts: 624
Master Hacker
Master Hacker
Offline
Joined: May 1999
Posts: 624
If Scream decides to use it I'll *have* to try and persuade them. []/w3timages/icons/smile.gif[/]

[]http://www.amdragon.com/images/eileensig.gif[/]

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
I had to use it because I use alot of non-greedy and funky regexs, which I couldn't use with the PHP's ereg.

--- <test>
Scream
Posted from the PHP Port Site (Post might be quirky)


UBB.threads Developer
Sally #205874 11/06/2000 1:35 PM
Joined: May 1999
Posts: 624
Master Hacker
Master Hacker
Offline
Joined: May 1999
Posts: 624
Have you got a bit of code we could run to check if it's on the server? And if we find it isn't, what exactly should we be asking for?

[]http://www.amdragon.com/images/eileensig.gif[/]

Joined: Feb 2000
Posts: 2
Newbie
Newbie
Offline
Joined: Feb 2000
Posts: 2
This is probably the easiest way to find out everything you wanted to know and a lot you don't about the PHP configuration on your server:

Create a very simple page called test.php, containing only one line:

<?php phpinfo(); ?>

Accessing the file with your web browser should output a long page describing PHP and Apache facilities and parameters.

Hope this helps,

- Rob




TripLe #205876 11/06/2000 2:14 PM
Joined: May 1999
Posts: 624
Master Hacker
Master Hacker
Offline
Joined: May 1999
Posts: 624
Yippee! We've got it:

[]http://amdragon.com/images/pcre.gif[/]

Thank you so much, Rob.

[]http://www.amdragon.com/images/eileensig.gif[/]

Joined: Oct 1999
Posts: 44
Journeyman
Journeyman
Offline
Joined: Oct 1999
Posts: 44
Eileen,

Where did you put the test.php file on the server. I put the command in a text file and uploaded to my public directory. When I executed it through the browser, all I got was the command itself.

Thanks for your help.
Tommy


red_xiii #205878 11/10/2000 3:41 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Any PHP accessable directory, it's possible that you're host is not setup to handle .php files that it might handle only .php3 files. But... just type
<? phpinfo(); ?>

That's the only thing that can be in the file.

Doug
http://www.netherworldrpg.net


Anonymous #205879 11/10/2000 5:08 PM
Joined: Oct 1999
Posts: 44
Journeyman
Journeyman
Offline
Joined: Oct 1999
Posts: 44
Thanks Doug,

I tried it in my cgi-bin and my public directory and it still didn't work ... probably a virtual server quirk!

Thanks,
Tommy


red_xiii #205880 11/10/2000 6:59 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Sounds like you don't have PHP installed at all....

Doug
http://www.netherworldrpg.net

Anonymous #205881 11/10/2000 7:07 PM
Joined: Oct 1999
Posts: 44
Journeyman
Journeyman
Offline
Joined: Oct 1999
Posts: 44
Doug,

Php3 is installed and I use PhpMyAdmin. It's probably me doing something wrong.

Tommy


red_xiii #205882 11/10/2000 8:57 PM
Joined: Mar 2000
Posts: 84
Member
Member
Offline
Joined: Mar 2000
Posts: 84
Perhaps the short_open_tags is not configured to 'on' in his php.ini file. And since this is usually not user configurable, perhaps he should use the standard open tags:

<?php

statements here

?>

---------
Shalazar
http://www.charisma-carpenter.com

G5 #205883 11/10/2000 11:38 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Sure that would work.

<?php php_info(); ?>

Doug
http://www.netherworldrpg.net

Anonymous #205884 11/11/2000 9:07 AM
Joined: Oct 1999
Posts: 44
Journeyman
Journeyman
Offline
Joined: Oct 1999
Posts: 44
Doug,

I can't believe it... my conf file did not have the php extension in it, only php3. I added the extension and it worked fine. Sorry for the trouble.

Thanks for your help and have a great weekend!
Tommy



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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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)