tomt

I mostly code in coldfusion. I have a customer who wants a project done in

php

 . Up until this past Saturday I have never wrote one line of

php

 , so I am currently taking a crash course in it.

Coldfusion has a template called application.cfm that executes every time before the actual page being called is. In

asp

  I think it's called the global.asax page. Does

php

  have the equivilant to either of these two types of pages?

Thanks,
Tom

nutballs

I am an

asp

  guy and never use the global page, due to security-give-me-the-willies issues. So i just do an included page, that is my own global. i do the same thing in

php

 , mostly cause that is what I am used to doing for so many years. i dont know though if there is a global page, but i dont think so.

perkiset

KaptainKrayola on this board has exactly that experience (going from CF to

PHP

 Applause and would be a good person to ping.

I'll PM him and ask him to weigh in on this thread.


jammaster82

Im a

php

  wanna be too... done a little coldfusion just wondering what
version of server is out there my isp has 4.3 but 5.0 is out there..

is there a standard, preference amongst the cloud?

tomt

Thank you, perkiset

I already have what is to be done in coldfusion. It's a custom program that runs on my own server. My customer wants the same program done in

php

 . What I have been doing so far is going function by function making the translation. I have several windows opened on the documentation pages of

php

 

.net

  and using google. It took me two hours to figure out one custom function that I could do in cf in 10 minutes or less. But that is part of the

learn

 ing  curve.

Thanks again,
Tom

perkiset

No worries mate. I PMd him earlier but it may be a bit before he gets back.

In the mean time, if you have a sticking point and can articulate what the CF code does (not many of us read CF, perhaps JM can help too) then we can certainly assist you in getting the job done in

PHP

 .

jammaster82

Applause

ya man paste/post it here lets chop it up!

or over in the coldfusion part with krayola
would be good for the archives to flesh it
out and good for me and all to

learn

 ....

Perk, still waiting on the .dowhatimthinking()
class, ive got some apps i need to complete...

in the meantime ill work on my universal intention code pseudocompiler...

perkiset

Sorry my friend, I've been stuck on the SET BUGS OFF preprocessor directive and haven't yet polished it off. I'll work on DO whatImThinking() probably this year.

KaptainKrayola

There isn't (to my knowledge) an equivalent to application.cfm in

PHP

 .  What the Kaptain would do instead is use a framework or methodology like FuseBox.  You can then take advantage of everything going through the controller and kind of simulate the functionality of application.cfm.

or if you prefer a less structured method you'll probably have to just include your own template as mentioned above.

good luck!

Applause

perkiset

Who the fish was that? Applause

tomt

quote
There isn't (to my knowledge) an equivalent to application.cfm in

PHP

 .


I kind of figured that out and came up with a different solution. I should have the

php

  part done by lunch today. Then it's onto the coldfusion backend, which I know best.

I am surprised that I was able to pick up

php

  as easily as I did, but I can tell you it won't be my language of choice.

Thanks,
Tom

KaptainKrayola

quote author=perkiset link=topic=667.msg4616#msg4616 date=1199235708

Who the fish was that? Applause


YAR it be the ghost of Christmas past Applause

hopefully the Kaptain will be around more this year...

perkiset

quote author=KaptainKrayola link=topic=667.msg4626#msg4626 date=1199283868

hopefully the Kaptain will be around more this year...


Although hopeful, I'd guess I'm not optimistic  :Applause

JK KK, hope the new year is treating you right


Perkiset's Place Home   Politics @ Perkiset's