[PHP] Content Management System in php
I have been looking into some of the CMS' that the php community provides. Now I wonder what the common thoughts about these are. Are they fit for deployment into professtional organisations or simply still on a idealistic-website level? I made a trial installation of php-nuke and frankly i'm very impressed on some matters, like its sceduled posting and admin interface. However it lacs some features in the ability to apply a own design, its forum has something left to desire so on. It might work for a site like /., but I doubt it would work very well on a corporate nework. PostNuke might even look a bit better and dynamic. Am I wrong about this? Do anyone got any experiences with eZ publish? What interests me in a CMS, are subjects like: -Ability to use role/group-based access. -Forum options (access/theading/moderation s.o.) -Ability to easily make a design/theme that fits a strict and ready-set design. -Ability to incorporate existing web-modules/pages/sites I would very much like to hear your thoughts of this... Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PhP 4.2.1 (and various)
--- Analysis Solutions [EMAIL PROTECTED] wrote: Olav: Perhaps because you're ignoring what I said. This will generate an error message if there's no player variable in the request string and you have error reporting set high enough. Evaluate for empty($_GET['player']) Why are you testing for playername again? You already know it's there because your'e in the else after the if (!$playername) statement. Hmm... You're sticking playername into the Session array. I haven't used PHP's session handling, but some things seem odd here. Where did you start the session? Also, how is your relocated page going to know about the session? I don't see any code here that performs those tasks. Enjoy, --Dan -- From the manual: With $_SESSION or $HTTP_SESSION_VARS, there is no need to use session_register()/session_unregister()/session_is_registered() functions. Users can access session variable like a normal variable. I'm pretty sure the sessioning works perfectly. And it is not the problem. The problem is Header(), which fails without any error or other output. You can only look at the other mails posted on this subject, that it is a major problem in v 4.2.1. Until it is solved, I'll work on something else... Thanks for your time. = Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PhP 4.2.1 (and various)
Hi! I've recently upgraded to 4.2.1, but i have gotten a lot of problems with it. First of all my pbpBB 2.0 forums stopped working (http://utge.dyndns.org/phpbb2/index.php). When you try to log in i get an error, malfomed header request? (im not on the actual machine now :)). I also have problems with logins to my site (jaggu.org). After messing a lot to get sessions working again, I have tracked down the consisten problem to the Header () function. A comment in the manual says should be put in front of all function calls before header(). I tried that, to no use. So my question is, why has that changed, and what do we do now to authenticate users and redirect them to anothe page? And what the hell is this thingy, i cant see to find anything on it in the manual, and search doesnt work for chars like that. I hope you guys can clarify this for me. Sincerely Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] More 4.2.1 (Note to myself:think before pressing send!)
Sorry about this, but i forgot one thing in my last post. With 4.2.1 (as opposed to 4.2.0), gd2 stopped working. When i run the server I get could not find freetype.dll(? Still not on the actual machine) and then gd2.dll(?) module could not be found. phpinfo at http://jaggu.org/info.php I tried to search both my config files and via google for freetype.dll, but could not find anything of slightest enlightenment. Thanks in advance! Olav Bringedal Jaggu.org = Raistlin M041999031 __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PhP 4.2.1 (and various)
--- Vincent Oostindie [EMAIL PROTECTED] wrote: Not only that: if you are running a production server, you will probably want to log your error messages to a file (or syslog, or whatever), instead of printing them. So 'display_errors' should be off. If that is the case, you don't need to use @ anymore, because there will be no HTML output even in case of problems. The advantage of this is that you can use the exact same code on a development server (with display_errors = on) and a production server. Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php That is all well, but if php 4.2.1 interprets any output (as errors not only screen errors) as something that is sent before a header in a redirect, there is no other way (that i'm aware of) around it. Like this: $user=$Session[user]; if(!$Authorized) { header (Location: http://jaggu.org;); } this will not work, you have to write: @$user=@$Session[user]; @if(@!$Authorized) { header (Location: http://jaggu.org;); } To actually get the redirect. On http://jaggu.org/info.php, you can see that display_errors = off In any case, I think you are onto something. I will try to narrow down logging, to see if that might be the problem. Thanks for helping! Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie - Spot the error
--- Josh Edwards [EMAIL PROTECTED] wrote: if I have $time = 21 then $timespread =array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); if ($time = = 21) $timespread[22]=($timespread[22]+1); echo $timespread[22] ; I get 0 It might be = = which should be ==. If not, try: $timespread =array (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); if ($time == 21) { echo before:.$timespread[22].b ; $timespread[22]=($timespread[22]+1); echo after:.$timespread[22].b ; } else { echo time is not 21 ; } Then you can at least establish where things go wrong. = Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PhP 4.2.1 (and various)
--- Analysis Solutions [EMAIL PROTECTED] wrote: Olav: On Wed, May 15, 2002 at 11:53:06AM +0100, Olav Bringedal wrote: $user=$Session[user]; if(!$Authorized) { header (Location: http://jaggu.org;); } As I was saying before, write your code in a way that doesn't generate error messages. For example, the above passage would be error free if you did this... if( empty($Authorized) ) { header ('Location: http://jaggu.org'); } else { $user = $Session['user']; } Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Thanks for the reply, but it didnt help :) The code is without errors. What I submitted was written on the fly to illustrate what i tried to do. Here is the actual code... $playername=$_GET['player']; if (!$playername) { ..print HTML form code... } else { if ($playername) { $_SESSION['playername']=$playername; header('Location: http://'.$_SERVER['HTTP_HOST'].'/UTGE/index.html'); } else { die (something gone wrong! Do it properly); } } I also tried with ~all in logging and without logging at all. = Olav Bringedal jaggu.org __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php