webdevRefinery Forum: Hydrogen Overview - webdevRefinery Forum

Jump to content

Hydrogen what, now?

Hydrogen is an open-source PHP toolkit that focuses on speed, with the goal of making your webapps faster if they're built on Hydrogen then they would be if written from scratch. It was created to be portable: applications written on Hydrogen should be able to be installed on many different types of servers with different database types or cache engines without changing any code or doing any extra programming work.

This forum contains the official tutorials for Hydrogen, until Hydrogen reaches version 1.0 and they move to HydrogenPHP.com. Please feel free to comment on them if you need help understanding them, or contribute your own tutorials that might later be published on the official site!
  • 45 Pages +
  • « First
  • 43
  • 44
  • 45
  • You cannot start a new topic
  • You cannot reply to this topic

User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 02 January 2013 - 05:35 PM (#881)

probably a stupid question, but is this still in development Kyek? Or is it dead?
0


User is offline callumacrae 

  • {{ post.author }}
  • Group: Members
  • Posts: 2862
  • Joined: 20-January 11
  • LocationWarwickshire, England
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 02 January 2013 - 05:43 PM (#882)

View PostderTechniker, on 02 January 2013 - 05:35 PM, said:

probably a stupid question, but is this still in development Kyek? Or is it dead?

Long time no sleep!
Front-end developer and writer
Twitter | GitHub | phpBB Contributor and Website Team Member | lynxphp
0


User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 02 January 2013 - 05:54 PM (#883)

View Postcallumacrae, on 02 January 2013 - 05:43 PM, said:

Long time no sleep!



Exactly! Doesn't answer my question :D
0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 02 January 2013 - 10:03 PM (#884)

Hahaha-- I'm still building new projects on it, so not dead. I'm just spending the entirety of my dev time recently on my job, but that will change as things settle down. Hell, with the Christmas season I barely had a few spare minutes to post here :). Thankfully things aren't quite as hectic now.
0


User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 03 January 2013 - 02:08 AM (#885)

So its safe to use it? :-)
0


User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 03 January 2013 - 07:27 AM (#886)

Goddamnit already, I re-read a lot of this thread and back then i mastered hydrogen quite well. Now i did not do any php coding for a few month and didn't touch hydrogen for even longer and i HAVE NO FUCKING IDEA WHAT I AM DOING. God that is fucking frustrating.
0


User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 03 January 2013 - 09:30 AM (#887)

Soooooo Kyek,


Why is in the hydrogen-mvc-starter on github a Router.php in hydrogen/controllers but in the hydrogen package from hydrogenphp there is the Dispatcher.php instead of the Router.php ? Also which of them to use? I can't even get Hydrogen to work.
0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 03 January 2013 - 09:45 AM (#888)

View PostderTechniker, on 03 January 2013 - 09:30 AM, said:

Soooooo Kyek,


Why is in the hydrogen-mvc-starter on github a Router.php in hydrogen/controllers but in the hydrogen package from hydrogenphp there is the Dispatcher.php instead of the Router.php ? Also which of them to use? I can't even get Hydrogen to work.

Use what's on Github -- I haven't packaged a release for the main site yet. If you get the MVC starter and get the submodules, then follow all the instructions in index.php, you should be good to go :)
0


User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 03 January 2013 - 09:48 AM (#889)

View PostKyek, on 03 January 2013 - 09:45 AM, said:

Use what's on Github -- I haven't packaged a release for the main site yet. If you get the MVC starter and get the submodules, then follow all the instructions in index.php, you should be good to go :)



KK, you should probably update your guide... because like, i really got frustrated trying to get this stuff to work :D
0


User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 03 January 2013 - 06:25 PM (#890)

hmm i cant seem to get it to work on nginx + phpfpm ... giving me an 404 whenever i access the index.php ... when i replace the contents of the index.php with a simple "echo 'hello'" it works fine... any idea, Kyek?

logs show nothing
0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 03 January 2013 - 10:31 PM (#891)

View PostderTechniker, on 03 January 2013 - 06:25 PM, said:

hmm i cant seem to get it to work on nginx + phpfpm ... giving me an 404 whenever i access the index.php ... when i replace the contents of the index.php with a simple "echo 'hello'" it works fine... any idea, Kyek?

logs show nothing

Nginx doesn't parse PATH_INFO out of the box, so using the router won't work. If you're using a recent Nginx, I think there's some new config features to handle that better.
0


User is offline derTechniker 

  • BadBoy™
  • Group: Members
  • Posts: 1210
  • Joined: 06-July 10
  • LocationAustria
  • Expertise:HTML,CSS,PHP,Javascript,SQL

Posted 04 January 2013 - 03:04 AM (#892)

View PostKyek, on 03 January 2013 - 10:31 PM, said:

Nginx doesn't parse PATH_INFO out of the box, so using the router won't work. If you're using a recent Nginx, I think there's some new config features to handle that better.



Thanks.

Except for the fact that i did set "fastcgi_param PATH_INFO" in my config. I now deleted that line and the example blog shows up. WTH.

//edit: whoops oh wait, the index.php shows up but i can't go to any articles oh well

//EDIT2: Well looks like i got it to work. Found an older thread from you Kyek where you explained that. In fact i tried that but forgot to set fastcgi_pass to the fpm socket

This post has been edited by derTechniker: 04 January 2013 - 08:11 AM

0


User is offline Kyek 

  • Founder of wdR
  • Group: Administrators
  • Posts: 5078
  • Joined: 20-February 10
  • LocationPhiladelphia, PA, USA
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 04 January 2013 - 08:43 AM (#893)

For anyone else visiting this post in the future and having the same problem, all the "fastcgi_param" command does is sets the value of a $_SERVER[] variable inside the PHP environment. Nginx has to be told to physically parse the path info and save that data before it can be assigned with fastcgi_param.
0


User is offline Earnest 

  • Group: Members
  • Posts: 98
  • Joined: 19-March 10
  • LocationLausanne

Posted 07 March 2013 - 04:23 PM (#894)

Been a happy hydrogen user for quite some time now, but looking back at my code I have some questions.

What do you guys do after you have logged someone in (in a user account system)?
Right now after I insert the users login values into the database, I user a header("location: bla.php") to redirect to the users page.
However this is annoying because the paths it takes are either from the webroot or using php __DIR__, rather then hydrogens appurl.
(Meaning that between my local install and on my server I either have to change all my redirects, or some other shady stuff).

Then again, maybe I shouldn't be throwing headers, and there is another solution?
Thug aim.
0


Share this topic:


  • 45 Pages +
  • « First
  • 43
  • 44
  • 45
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services