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[/].
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[/]
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
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)
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
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)
Excellent. Thanks very much.
Darren.
http://www.bullpen.com.au
PHP does process Perl Regular Expressions. You just hafta use the functions and stuff with it.
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
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.
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.
That's what I was refering to!
The zend optimizer is not suported on all the platforms, neither by most of ISP!
I was just saying that I sent Scream the info on it. I didn't go into any details.
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>
Never said it did and I know it doesn't.
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.
>>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[/]
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
.
Besides, it's more powerful than regexp so I bet you can convince them easily
.
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[/]
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)
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[/]
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
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
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
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
Sounds like you don't have PHP installed at all....
Doug
http://www.netherworldrpg.net
Doug,
Php3 is installed and I use PhpMyAdmin. It's probably me doing something wrong.
Tommy
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
Sure that would work.
<?php php_info(); ?>
Doug
http://www.netherworldrpg.net
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