UBB.Dev
Posted By: Rick PHP Status - 10/27/2000 1:03 AM
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[/].
Posted By: kimroan Re: PHP Status - 10/27/2000 3:07 AM
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[/]

Posted By: The Team Re: PHP Status - 10/29/2000 2:48 AM
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
Posted By: Rick Re: PHP Status - 10/29/2000 2:56 AM
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)
Posted By: The Team Re: PHP Status - 10/29/2000 3:04 AM
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
Posted By: Rick Re: PHP Status - 10/29/2000 5:40 AM
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)
Posted By: The Team Re: PHP Status - 10/29/2000 7:19 AM
Excellent. Thanks very much.

Darren.
http://www.bullpen.com.au
Posted By: The Team Re: PHP Status - 10/29/2000 9:51 AM
PHP does process Perl Regular Expressions. You just hafta use the functions and stuff with it.

Posted By: Shalazar Re: PHP Status - 10/29/2000 7:29 PM
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
Posted By: RavenServers Re: PHP Status - 10/30/2000 2:14 AM
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.
Posted By: The Team Re: PHP Status - 10/30/2000 4:02 AM
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.

Posted By: The Team Re: PHP Status - 10/30/2000 4:03 AM
That's what I was refering to!

Posted By: Sharif Re: PHP Status - 10/30/2000 9:51 AM
The zend optimizer is not suported on all the platforms, neither by most of ISP!

Posted By: The Team Re: PHP Status - 10/30/2000 3:44 PM
I was just saying that I sent Scream the info on it. I didn't go into any details.

Posted By: The Team Re: PHP Status - 11/02/2000 12:51 AM
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>
Posted By: The Team Re: PHP Status - 11/02/2000 2:20 AM
Never said it did and I know it doesn't.

Posted By: The Team Re: PHP Status - 11/06/2000 8:35 AM
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.

Posted By: Eileen Re: PHP Status - 11/06/2000 8:38 AM
>>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[/]
Posted By: The Team Re: PHP Status - 11/06/2000 8:56 AM
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.

Posted By: Eileen Re: PHP Status - 11/06/2000 9:04 AM
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[/]
Posted By: Rick Re: PHP Status - 11/06/2000 3:33 PM
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)
Posted By: Eileen Re: PHP Status - 11/06/2000 8:35 PM
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[/]
Posted By: rhostager Re: PHP Status - 11/06/2000 9:03 PM
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



Posted By: Eileen Re: PHP Status - 11/06/2000 9:14 PM
Yippee! We've got it:

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

Thank you so much, Rob.

[]http://www.amdragon.com/images/eileensig.gif[/]
Posted By: tgardner Re: PHP Status - 11/10/2000 9:27 PM
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

Posted By: The Team Re: PHP Status - 11/10/2000 10:41 PM
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

Posted By: tgardner Re: PHP Status - 11/11/2000 12:08 AM
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

Posted By: The Team Re: PHP Status - 11/11/2000 1:59 AM
Sounds like you don't have PHP installed at all....

Doug
http://www.netherworldrpg.net
Posted By: tgardner Re: PHP Status - 11/11/2000 2:07 AM
Doug,

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

Tommy

Posted By: Shalazar Re: PHP Status - 11/11/2000 3:57 AM
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
Posted By: The Team Re: PHP Status - 11/11/2000 6:38 AM
Sure that would work.

<?php php_info(); ?>

Doug
http://www.netherworldrpg.net
Posted By: tgardner Re: PHP Status - 11/11/2000 4:07 PM
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

© UBB.Developers