Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
php version 5.4.6
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

Unknown User
2012-09-23 15:20:01
Hello

Here I just made a test version of torrentrader all confused with php version 5.4.6 and the site no longer entitled to my full error as unassigned variable $ CURUSER etc etc..

So my question is going to solve coment all this because I think it's time to think about it for the day or this version of php will provide updates in the server will be much in trouble

/*==French===*/

Bonjour

Voila je viens de faire un test de torrentrader toutes version confondu avec la version de php 5.4.6 et le site ne passe plus j'ai droit a plein d'erreur comme la variable $CURUSER non assigné etc etc.

Donc ma question est coment allez vous resoudre tout cela car je pense qu'il est temps d'y penser car le jour ou cette version de php sera proposer dans les updates de serveur beaucoup seront dans la panade
Unknown User
2012-09-23 15:24:37
what does your_server/check.php show?

- suhosin extension (Optional) Available

Add to your php.ini (otherwise you may have issues):

suhosin.get.disallow_nul = Off

suhosin.request.disallow_nul = Off
Unknown User
2012-09-23 16:27:09
i think you need to suppress E_NOTICE errors... TorrentTrader doesn't make use of using isset etc so without blocking e notice errors and doing say:



<?php

echo $_GET['test'];

Will give you an error about the index test not being filled and if u add ?test=1 to your url it will echo 1.



I have compiled php5.4.6 on someones server from here and it works fine if im missing the point let me know, the command use i used was...






./configure --with-mysql --with-zlib --with-gd --enable-mbstring --enable-bcmath --with-curl --with-curlwrappers --with-gmp






That compiles php for the main requirements needed by torrenttrader if your going to be using phpmyadmin you may also be better of adding --with-mysqli so it doesn't show the error in phpmyadmin but on my dev server i just also use these and if u keep the php5.4.6 folder on your server and say at somestage u need to install sockets do:







cd phpfolder/ext/sockets



phpize



./configure



make



make install




then u will need to add extension=sockets.so to your php.ini
Unknown User
2012-09-24 08:26:21
@ ArcticWolf I already put in my php.ini

@ mostvotedplaya weird thing at the beginning I can not install on my server ttv2.08 there was plenty of error and I download and installed v2.08 and it works well. I did not have to do what you said.

By cons v2.06 does not work for me so everything is in order. For against what would be good is to use a class template to separate the html code

/*===French=====*/

@ArcticWolf je l'ai deja mis dans mon php.ini

@mostvotedplaya chose bizarre au debut je ne pouvez pas installer ttv2.08 sur mon server il y avait plein d'erreur et la j'ai retelecharger v2.08 et installé et il fonctionne bien. je n'ai pas eu besoin de faire ce que as dit.

Par contre v2.06 ne fonctionne pas donc pour moi tout rentre dans l'ordre. Par contre ce qui serais bien c'est d'utiliser une classe template afin de separer le code du html
Unknown User
2012-09-24 09:15:19
If you paste the errors here maybe i can help...

Quote:
For against what would be good is to use a class template to separate the html code

Thats the plan for v3 but im not sure which is the best way to implement it, i personally hate using stdhead, stdfoot all time my first thought was making header / footer a combined template and use output buffering to fetch the middle contents then simple have the wrapper to echo the output buffering to the middle of the wrapper.
Unknown User
2012-09-24 17:48:55
Yes it is true that it is a hassle to use stdhead, stdfoot I had looked at the structure of DataLife Engine and template engine is not bad. I try smarty but too complicated to use.

The pure error I have more I use your version 2.08 which works perfectly
Unknown User
2012-09-27 20:26:45
I proposed something which should be ok which makes themes a single php template and the body it loaded via output buffering a quick sample is attached, it needs to be extended so that non template views can be loaded for example custom login screens, rss etc and view overloading. It will have other things maybe to sanitize data before its output this will make the application cleaner as u won't have to repeat your self by calling say htmlspecialchars all the time, as u can see theres no bullshit tags like most template engines it will still use php in the templates but restricted.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6101"]Template.rar[/url]
Template.rar
Download
Unknown User
2012-09-29 15:49:28
this is pretty simplistic. have you looked at the system template datalife engine? I had to redo comencé TorrentTrader with their template engine that have been successful. But I stopped because of the time I had no
Unknown User
2012-09-29 17:10:33
Show me what they use if its simple i will use it
Unknown User
2012-10-05 23:33:03
Are you using *BSD?
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728