Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
can somebody clear this for me....
Old 02-27-2009, 08:27 AM can somebody clear this for me....
Banned

Posts: 34
Trades: 0
ok, well i have been battling with phpmailer, my server supports php5, i got lots of errors so i changed for phpmailer php4 version, but get error - error calling non-object and theline that gives error is - mail->isSmtp(),if i take that off it works fine but it wont send mails. anyone encounter this??

ok but a more confusing stuff that hopefuly can clear it for me.
ok firstly cakephp is basicly php classes and aids in developing oop programming right??
secondly - php5 is very similar to php4 but better oop support, so if i want to migrate php4 code to php5, there will be minor changes, unless i make it oop, right?
so its not an emergency to change to php5?

hope you guys can help out
Necaxa is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-27-2009, 11:21 AM Re: can somebody clear this for me....
randon's Avatar
Experienced Talker

Posts: 46
Name: Brandon
Trades: 0
maybe you could put the debug error its giving you, It may help clear up your problems with the code.

You said your server already supports php5.. so I assume you mean you want to upgrade your mailer to php5?
__________________

Please login or register to view this content. Registration is FREE
Web development blog and scripts.
randon is offline
Reply With Quote
View Public Profile
 
Old 02-27-2009, 11:23 AM Re: can somebody clear this for me....
Super Spam Talker

Latest Blog Post:
PSD Squirrel Launched
Posts: 932
Trades: 7
Hi there Necaxa,

If your server is running PHP5 then switching to phpmail for php4 rather than 5 will cause you some issues.. the OO system in PHP was totally rewritten at version 5, switch back to phpmailer for php5 if your running php5 and give us the errors you are getting and hopefully we can help you out further.

CakePHP is a php framework. It is written in strict MVC OO technique.. and it is well worth using for medium to large projects, I personally use it for most projects I undertake both commercially and personally. It speeds development time up as many of the core functions you will use often such as mysql calls are already coded, you just call them up and send them parameters. The downside of cake and all frameworks is an they are all so packed with features you probably wont use most of them and then you will have an overhead that slows down your site, possibly.

PHP5 and 4 are similar but there are important differences. You dont have to write PHP5 code OO, this is just your own choice based on preference. Migration of your PHP4 scripts to php5 is easy enough and not terribly time consuming. If your php4 app is not OO and you wish to write it in OO as when you migrate to php5 you are looking are a longer migration time and a learning a potential learning curved (depending on your experience in OO languages).

No, not an emergency to migrate old apps to php5 from 4, though dont write any more in php4... php6 is knocking around and support for 4 wont be around for ever.

all the best,
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Sir P; 02-27-2009 at 11:25 AM..
Sir P is offline
Reply With Quote
View Public Profile Visit Sir P's homepage!
 
Old 02-28-2009, 09:50 AM Re: can somebody clear this for me....
Banned

Posts: 34
Trades: 0
hey, thanks for the help, the mail script works, it was just an smtp issue with my server.
thanks for that explanation i am getting it, so by recommending me to stop writing php4 code, you mean stop writing in procedural mode ,right??
i am gona look into cakephp, would you recommend joomla?

ok here is another newbie questions i just throught about. i am finish off a site, everything is database driven. so i am wondering how search friendly it would be? for example- i have some articles stored in a database (user writes it on a form and sends it to db) vs (from the form dynamicaly a html page is created and saved on server, and i just store the name of article)???
which one is best??
Necaxa is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to can somebody clear this for me....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33105 seconds with 12 queries