|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
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
|
|
|
|
Joined: Jun 1999
Posts: 54
Member
|
Member
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[/]
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
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
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
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
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Excellent. Thanks very much. Darren. http://www.bullpen.com.au
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
PHP does process Perl Regular Expressions. You just hafta use the functions and stuff with it.
|
|
|
|
Joined: Mar 2000
Posts: 84
Member
|
Member
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
|
|
|
|
Joined: Oct 2000
Posts: 14
Newbie
|
Newbie
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.
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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.
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
That's what I was refering to!
|
|
|
|
Joined: May 2000
Posts: 125
Member
|
Member
Joined: May 2000
Posts: 125 |
The zend optimizer is not suported on all the platforms, neither by most of ISP!
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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.
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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>
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Never said it did and I know it doesn't.
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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.
|
|
|
|
Joined: May 1999
Posts: 624
Master Hacker
|
Master Hacker
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
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  . Besides, it's more powerful than regexp so I bet you can convince them easily  .
|
|
|
|
Joined: May 1999
Posts: 624
Master Hacker
|
Master Hacker
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
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
|
|
|
|
Joined: May 1999
Posts: 624
Master Hacker
|
Master Hacker
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
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
|
|
|
|
Joined: May 1999
Posts: 624
Master Hacker
|
Master Hacker
Joined: May 1999
Posts: 624 |
|
|
|
|
Joined: Oct 1999
Posts: 44
Journeyman
|
Journeyman
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
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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
|
|
|
|
Joined: Oct 1999
Posts: 44
Journeyman
|
Journeyman
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
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Sounds like you don't have PHP installed at all.... Doug http://www.netherworldrpg.net
|
|
|
|
Joined: Oct 1999
Posts: 44
Journeyman
|
Journeyman
Joined: Oct 1999
Posts: 44 |
Doug,
Php3 is installed and I use PhpMyAdmin. It's probably me doing something wrong.
Tommy
|
|
|
|
Joined: Mar 2000
Posts: 84
Member
|
Member
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
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Sure that would work. <?php php_info(); ?> Doug http://www.netherworldrpg.net
|
|
|
|
Joined: Oct 1999
Posts: 44
Journeyman
|
Journeyman
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
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|