Jump to content
Larry Ullman's Book Forums

Edward

Members
  • Content Count

    1115
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by Edward

  1. Well if you check php.net http://php.net/manual/en/mysqli.prepare.php mysqli_prepare() returns a statement object or FALSE if an error occurred. So mysqli_prepare that you have is returning FALSE which is boolean to $stmt which will cause all the functions/methods using it to fail. So its a problem with your database connection, you simply need to check the required file is being received. require ('../mysqli_connect(ch19).php');
  2. I would work directly with the Relational Active Record its there to make the job easier especially if you are using the framework. You want to check out this section in the Yii reference guide. http://www.yiiframework.com/doc/guide/1.1/en/database.arr Or if you want to extract model attributes from $_POST you would do something like $model->attributes=$_POST['Item'];
  3. I wonder how this works for Google analyzing your website. What happens when Google analyzes item/1/gun44 item/2/gun44 item/2-gun 44 instead of item/gun44-1 item/gun44-2 item/gun44-3 I used the 2nd method but the problem is you have to show list all the routes for other item controller actions in the config main.php so they can work. But if you done users you wouldn't want to go user/1 because you would be giving away there ID. And to solve the problem of listing extra routes in the main config file to have other user controller actions run. You could jus
  4. Its alright i know how it all works now, thanks for your help.
  5. One thing i am noticing when testing MG is it can make it through to Gmail but not Outlook. In the logs MG reports mail was accepted and delivered for both. I will try testing it on another few email hosts and see what happens. Ive made my first email template also the problem is when i send it to Gmail it doesn't interpret the HTML just leaving the raw HTML on the page? So how does that work do you have to be friends with Gmail before they interpret your HTML or am i doing something wrong? Edward slipped on a Banana again, i got it working rending the HTML, just the problem with Outlo
  6. Alright thanks for your help Jonathon... I guess you are lucky because you can just load up your own uploads and manage them in admin, so nothing needs to be too perfect to do that.
  7. Scrap the letterbox stuff i can do without that now. Any feed back Jonathon? Today i have worked on getting an email template ready and copied over some of the raw CSS into the table layout from Bootstrap.
  8. Can you show us the view file. Usually if there is a Javascript error it doesn't up in Yii. I am guessing there must be a mistake somewhere in the view php file as i have the same registerScriptFile methods but without any problems like that.
  9. Hi Jonathon. I wanted to ask you some what extensions did you have success with for uploading images and image manipulation in Yii? Ive noticed Image and EasyImage at Yii but wondering what you had to say... I have used SWFUpload the Flash plugin successfully and i liked it. You see what i am logging for is an image manipulation tool that can save images of different sizes holding perspective where i would be able to choose between letterbox or focused. I have a class to do this already but it would be neater i think if i was able to get a good extension to do this work which was an in
  10. Yes that one, just wondered was going to resend it, okay i know your busy. Thanks
  11. I have just gotten mailgun configured now, finally after 2 days, well it was worth it, its really good. The Yii extension that was made is also great works like clockwork. Well i am very happy now. I did send you an email by the way, did you get it? I feel much more confident now just having stuff on the server, i have gone back and fixed all my layouts and stuff to Bootstrap 3, it works really well when you mix and match things about. And the buttons look great on mobile devices, it took me a while but now i love them more than those on BS2. Thanks for your support.
  12. Its whichever server is hosting the DNS according to MG. I hate this stuff its so boring making it hard to absorb, coding is 1000's times easier for me. Well its done now server company added the records for me so that's where they were supposed to go.
  13. Larry like i said i have my domain with NetworkSolutions(NS) but where exactly should we add these TXT, CNAME and MX records given to us by MailGun? I got the MailGun settings to work when my IP was with NS but when i pointed the A Records to my other server where the domain should be pointing to, the setting failed. The problem is though with my VPS I can only find MX records and no TXT or CNAME places to update. I am just wondering what you did, i seem to be in some kind of loop right now where the wheels on the bus go round and round. Update ive spent the whole day on this g
  14. I'm working on setting up MailGun today on the DNS TXT, CNAME and MX records today at Network Solutions its driving me Banana's
  15. I wanted to know what TTL values some of you were using. I have my domain name with Network Solutions and they are default at 7200. I think when i was hosting last year with RackSpace the TTL's were set at 3600.
  16. I think i may have a vision into the future, just before i opened up this forum i just thought exactly as you wrote. Yes only those who have server access would be able to operate on the forum. So that means if we are on a dedicated server or a lower cost Virtual Private Server (VPS) we would be suffice. Suffice it not really a word i like to use(it sounds a bit weird to me) but i saw you and some others using it here so i thought id give it a shot this time. Thanks for your help...Larry I think im going to just leave this at 777 because me and my server team are getting problems with
  17. I am actually have real problem with 766. Now i am not getting errors with 766 but now the current javascript on the pages doesn't work. Also when i deleted a folder in assets like d99df and cleared all folders out, for some reason the server couldn't write back to that folder with the assets required for Yii. When i changed the folder settings back to 777 it worked again, this mystery doesn't seem to unravel easily like what i thought it would. But i agree with what Larry is saying if we can get it to 766 i would go with that as we don't really need executes on those files and limiting ac
  18. I know of the two folder assets and runtime that need write permissions, i set those at what Larry said at 766 but my server company said there may be problem on other scripts with what they done to achieve this, so i can't confirm this will be stable yet. All my other folders on the server are set as 755 and php files are at 644. So what do you have and what is the third writeable folder we need to be concerned with?
  19. You are a star! That's why i was wondering now whether i should wait for your extensions chapter comes out which i believe to be next before jumping the gun. I will be looking into the options... Here is a MailGun extension for Yii https://github.com/baibaratsky/php-mailgun
  20. Well i just need to send out some development figures, 10,000,000 emails a month was what i was hoping for after 10 - 15 years of my site being up. Any back to reality i want to ask something if we use MailGun do we still need to implement Swith Mailer, or just use MailGun alone?
  21. Thanks for all the useful information. Its very interesting because when i was hosting with RackSpace we got to use SendGrid and now RackSpace have their own MailGun. So i calculated that if you Larry spend $19/month with MailGun you send out 48,000 emails a months, OMG. MailGun Vs SendGrid MailGun - 700,000emails - $316.50 SendGrid - 700,000emails - $399.95 (A nice round figure ) Summary: MailGun is the winner that works out 21% cheaper. Now if i was sending out 10,000,000 emails a month with MailGun i need to pay $1699, another nice round figure...
  22. I have a question i am about to start using Swift Mailer, i decided to leave my email stuff until later on however what is the recommended mail transport system I should use for my eCommerce website? I will probably have to contact my server company to get anything done other than using the standard php mail() function which i have read seems to suck.
  23. My server company are struggling with this, the query is now on hold till someone more technical comes in to handle this. Are you sure its 766? They asked me to confirm where i got this information from. I saw some other people on the Yii forums saying 777 but if you put 777 as opposed to 766, then the files are executable by both Group and the World. File Permissions Read - 4 Write - 2 Execute - 1 User - The owner of the file. Group - Other files which are in the same folder or group. World - Everyone else. I think it may be 776 im just guessing though. Nope just tried it doesn't work ei
  24. 766 is not workin arrggghhh! PHP warning mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied /home/user/framework/utils/CFileHelper.php(307) 295 * @param array $options newDirMode element used, must contain access bitmask296 * @param boolean $recursive whether to create directory structure recursive if parent dirs do not exist297 * @return boolean result of mkdir298 * @see mkdir299 */300 private static function mkdir($dst,array $options,$recursive)301 {302 $prevDir=dirname($dst);303 if($recursive &&a
  25. Yeah there were a few things not installed for my apache like the PDO drivers so they were missing from the php.ini file configuration. Well i guess at the end of the day once its all done and working its all fun. That's why i love coding more than servers because we have total control over what we are doing and don't have to wait to get things fixed.
×
×
  • Create New...