Jump to content

JustinM01

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

About JustinM01

  • Birthday 04/27/1982

Contact Methods

  • Website URL
    http://www.jmccauli.com/

Profile Information

  • Gender
    Male
  • Location
    Denver, CO

JustinM01's Achievements

Member

Member (2/5)

0

Reputation

  1. Is there any reason that people can think as to why DOMDocument::saveHTML would remove the following: <![if !vml]> <img src="someimage.jpg" /> <![endif]> A little clarification... This HTML comment tag is used in my company's email newsletter code and is necessary to make Outlook 2007 behave properly. For whatever reason, saveHTML strips it out. I know that this doesn't conform to HTML standards and I'm guessing that that is why it is being stripped. BUT, from reading on the internet, saveHTML can produce junk html code anyways. Any help is appreciated.
  2. Hi all, I am trying to get CakePHP Paginator helper to output links as such: http://someurl/page/1 At the moment it outputs links like the following: http://someurl/posts/index/page:1 I have figured out how to change the controller and remove the action from the url. Unfortunately, I have yet to be able to figure out how to get CakePHP to output just the page number and not 'page:1'. Any help is greatly appreciated!
  3. Basically I would like to create something like what PHPFreaks and other sites have. When you post something here your can include a code snippet in a code block within your topic content. I was wondering how to do that as I would like to include such a feature in my blog. I want to create something like the following: some code If anyone know's of a site that already explains how to do this, than I would certainly take a link as help! Thanks in advance.
  4. I usually just extend Zend_Db_Table_Abstract. Like this: class SomeTable extends Zend_Db_Table_Abstract { protected $_name = 'table_in_your_db'; protected $_primary = 'column_name_of_your_primary_key'; } Its very simple. This allows me to use Zend_Db_Select very easily along with updates, inserts, and deletes. $tableObj = new SomeTable(); $select = $tableObj->select(); $select->where(array("$id = $someId", "time" => "UNIX_TIMESTAMP(time)")); $row = $tableObj->fetchRow($select); Sure, I could make an actual function on the table to do the above seamlessly, but I haven't yet. It works, and it works well. It really is up to you and what you're comfortable with. So, yes, I do make separate classes for each of my tables. It allows me to do the above and get fancy if I so choose.
  5. Its not supposed to close at the bottom.
  6. Zend_ACL is for controlling access only. Use Zend_Auth to store details once the user has been authorized. Like so: $session = new Zend_Session_Namespace('Zend_Auth'); /* Add a valid property to the session and set its value to true */ $session->valid = true; I believe Zend_Auth creates a default namespace called 'Zend_Auth'. You will have to verify that in the docs though. As long as you create the namespace like I've shown and pass the namespace name to the constructor, you will be able to access anything your try and store. Zend Framework is designed so that you really shouldn't be using Zend_Session or PHP's builtin session management. Just take a look at the Zend Framework Programmer's Reference. It should be able to answer most of your questions. EDIT: Zend_Session will need to be used for somethings, such as logging out.
  7. Those are actually background images on different elements. There is text there that says exactly what the images say. The text is just offset by about 10000 pixels. It is a form of image replacement and is meant to help people with screen readers. I don't know if that affects Google or not, but if you look at the page's source you will see what I mean.
  8. Ah, crap. OK, here it is: http://www.jmccauli.com/. Thanks and my bad.
  9. Just released my personal, home cooked web site. Please, check it out and tell me what you think. Any advice/comments are very much appreciated! Justin
  10. Hi all, First off, I want to say that I'm basically a newb when it comes to apache and linux. Having said, that I'm wondering how to profile apache using valgrind. Basically, this is what I'm trying now: valgrind --tool=callgrind --dump-instr=yes --trace-jump=yes -v /usr/local/apache2/bin/httpd -X I then use kcachegrind to view the .out file. Unforunately, the callgraph is just filled with things and when I look at the side bar I really don't see anything related to the MySQL stuff my site uses, i.e. connecting to, querying. if you follow this link: http://talks.php.net/show/oscon06/6 it'll show you what I was hoping to get. Maybe I'm not using kcachegrind right, but, I don't know. Any help would be appriciated.
  11. No offense here, but that wouldn't take more than five minutes. So, you have to ask yourself if that 5 minutes of boredom is worth it. While you're waiting for a fix here that website is exposing your underlying directory structure, what webserver you're using, and the name of the php file that's causing the problem. Hopefully you have the site disabled or otherwise not actually hooked up the web right now. BTW, if you're unwilling to do, I'm not sure why you would expect us to.
  12. Just a quick question here to those of you who are using linux as the os for your webserver. I basically new to linux as far as using it as an os for my webserver. Recently I've been trying to get Apache, PHP, and MySQL to the newest versions on my webserver. The problem is I'm using Plesk as a control panel, as far as I know I shouldn't try to upgrade apache because of the control panel and I have to be careful when upgrading PHP and MySQL. So, the question: Would it be better to just ditch any control panel software or what? As staying current with new release of the web software I mentioned above is important to me. Thanks for any help, Justin
  13. OK, first off, I'm not sure whether this belongs as a PHP topic, MySQL topic, or a Linux topic...but here goes... Say I have user data stored in a MySQL database that needs to be deleted after so many days. Is there a way to do it in PHP? If not how would I go about doing it? If there is a way in PHP, would it be better to check it for deletion when the user logs in ( I know I could do this btw ), or just delete everything that needs to be deleted during a period where the website/database is under a low load? Thanks for any help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.